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
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://
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.
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
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
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