Re: Connectors in Tomcat

2010-04-02 Thread Hemali Doshi
Hi, I would like to know how to link this new factory with the service Catalina. Because on checking with the JConsole, the attributes of this factory do not match with the existing one. Hence the connector is not created with the same factory and the code doesn't work. -Hemali

Re: Connectors in Tomcat

2010-04-02 Thread Hemali Doshi
Hi, Thanks Rajeev, i hadn't initialized the factory properly, now i don't get a null pointer exception, and it shows in the console that http connector is initialized and started at the port i'v given say 9002, but http is still not enabled in the sense that an html page does not run on http://

Re: Connectors in Tomcat

2010-04-01 Thread Rajeev Sampath
On Thu, Apr 1, 2010 at 4:42 PM, Hemali Doshi wrote: > We are using Tomcat 6.0.18 with jdk 1.5 on Windows XP. > > > > line 118 is: > > factory.createHttpsConnector("Catalina:type=Service,serviceName=Catalina", > "127.0.0.1", 8443); > * > > Have you instantiated the 'factory' properly? > > The s

Re: Connectors in Tomcat

2010-04-01 Thread Hemali Doshi
We are using Tomcat 6.0.18 with jdk 1.5 on Windows XP. line 118 is: factory.createHttpsConnector("Catalina:type=Service,serviceName=Catalina", "127.0.0.1", 8443); * The stack trace is as follows: java.lang.NullPointerException * at toggle1.doPost(*toggle1.java:118*) at javax.servlet.http.

Re: Connectors in Tomcat

2010-04-01 Thread Mark Thomas
On 01/04/2010 11:45, Hemali Doshi wrote: > Hi, > > We ran jconsole and found the the service is catalina and the mbean name is > Catalina:type=Service,serviceName=Catalina. but still the program is giving > null pointer exception. other two parameters have been passed as ip address > of my machine

Re: Connectors in Tomcat

2010-04-01 Thread Hemali Doshi
Hi, We ran jconsole and found the the service is catalina and the mbean name is Catalina:type=Service,serviceName=Catalina. but still the program is giving null pointer exception. other two parameters have been passed as ip address of my machine and port as say 8443. Do you know what the problem

Re: Connectors in Tomcat

2010-04-01 Thread Mark Thomas
On 01/04/2010 09:30, Hemali Doshi wrote: > Yes, i did look at the source code. But there is a parameter called parent > in createHttpsConnector method. I am unable to find the parent, I tried > passing Catalina,StandardEngine, etc. It gives me a null pointer exception > for whatever parent name I p

Re: Connectors in Tomcat

2010-04-01 Thread Hemali Doshi
Yes, i did look at the source code. But there is a parameter called parent in createHttpsConnector method. I am unable to find the parent, I tried passing Catalina,StandardEngine, etc. It gives me a null pointer exception for whatever parent name I pass. Thanks. -Hemali

Re: Connectors in Tomcat

2010-04-01 Thread Mark Thomas
On 01/04/2010 06:33, Hemali Doshi wrote: > Hi, > i wanted to create an https connector on a port other than 8443. There is a > method to create HttpsConnector in MBeanFactory. Could anyone kindly tell me > how to use this method and what parameters to pass? Did you read the JavaDoc or look at the

Connectors in Tomcat

2010-03-31 Thread Hemali Doshi
Hi, i wanted to create an https connector on a port other than 8443. There is a method to create HttpsConnector in MBeanFactory. Could anyone kindly tell me how to use this method and what parameters to pass? Thanks for your help. -Hemali