THANKS to Mr. Lance for his reply.
I tried to modify my /jboss/server/default/deploy/tomcat4-service.xml file as shown below:
--------------------------------------------------------------------------------------------------------------
<Server>
<Service name = "JBoss-Tomcat">
<Engine name="MainEngine" defaultHost="localhost">
<Logger className = "org.jboss.web.catalina.Log4jLogger"
verbosityLevel = "trace" category = "org.jboss.web.localhost.Engine"/>
<Host name="localhost">
<Valve className = "org.apache.catalina.valves.AccessLogValve"
prefix = "localhost_access" suffix = ".log"
pattern = "common" directory = "../server/default/log" />
<DefaultContext cookies = "true" crossContext = "true" override = "true" />
</Host>
</Engine>
<!-- A HTTP Connector on port 8080 -->
<Connector className = "org.apache.catalina.connector.http.HttpConnector"
port = "8080" redirectPort="8443" minProcessors = "3" maxProcessors = "10" enableLookups = "true"
acceptCount = "10" debug = "0" connectionTimeout = "60000"/>
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" scheme="https" secure="true">
<Factory className="org.jboss.web.catalina.security.SSLServerSocketFactory"
securityDomainName="java:/jaas/TomcatSSL" clientAuth="false"
protocol = "TLS"/>
</Connector>
</Service>
</Server>
--------------------------------------------------------------------------------------------------------------
Later when I run my JBOSS, I get following Errors - wonder why?
--------------------------------------------------------------------------------------------------------------
13:47:35,031 ERROR [EmbeddedCatalinaServiceSX] Starting failed
java.lang.NullPointerException
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:74)
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:57)
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:189)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
at java.lang.reflect.Method.invoke(Native Method)
13:47:35,132 ERROR [SARDeployer] start operation failed on package file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
java.lang.NullPointerException
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:74)
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:57)
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:189)
13:47:35,269 ERROR [MainDeployer] could not start deployment: file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java(Compiled Code))
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
+ nested throwable:
java.lang.NullPointerException
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:74)
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:57)
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:189)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
13:47:35,382 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@716eee7e{ url
=file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java(Compiled Code))
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
at java.lang.reflect.Method.invoke(Native Method)
+ nested throwable:
java.lang.NullPointerException
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:74)
at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:57)
--------------------------------------------------------------------------------------------------------------
All, I want to do is to use my Tomcat Application using SSL Certificates. It works using "http://www.hari.com:8080/hari/register.jsp" BUT NOT when I try "https://..."
Can anyone of you please help me out on this?
THANKS!
From: L Nehring <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: SSL Config on Tomcat (443 or 8443)
Date: Wed, 13 Nov 2002 12:21:19 -0700
Hari,
You'll probably want to edit Tomcat's server.xml and add/modify a couple
Connector specifications inside the Service spec, such as the following.
(Now, I'm using Tomcat 4.0.6 with JBoss 3.0.4, so for me this file is actually
the $JBOSS_HOME/server/default/deploy/tomcat4-service.xml file.) You'll
probably want to get the documentation and more help on the Apache Jakarta
website and the JBoss website for stuff like this. Note that you could change
all the port 8080's to 80 and the port 8433's to 443, but then you'll need to
run Tomcat as root. For myself, I prefer to use the JK2 connector with
Apache2.40+ and keep Tomcat (and apps like it) away from listening on ports on
any interface other than localhost. Security patches for Apache come out
quicker than for the other stuff.....
<!-- A HTTP Connector on port 8080 -->
<Connector className =
"org.apache.catalina.connector.http.HttpConnector"
port = "8080" redirectPort="8443" minProcessors = "3"
maxProcessors = "10" enableLookups = "true"
acceptCount = "10" debug = "0" connectionTimeout = "60000" />
<!-- SSL/TLS Connector configuration using the SSL domain keystore
-->
<Connector
className="org.apache.catalina.connector.http.HttpConnector"
port="8443" scheme="https" secure="true">
<Factory
className="org.jboss.web.catalina.security.SSLServerSocketFactory"
securityDomainName="java:/jaas/TomcatSSL" clientAuth="false"
protocol = "TLS"/>
</Connector>
Hope this helps.
r,
Lance
Manoj Kithany wrote:
> Hi Experts:
>
> My Apache+SSL is working now - thanks to you all. I checked it using
> https://www.hari.com.
>
> However, I have a small Application which contains JSP+Servlets which calls
> Oracle DB via JDBC. This application is working fine when I type
> http://www.hari.com:8080/hari/index.jsp but when I try HTTPS as
> https://www.hari.com:8080/hari/index.jsp it does'nt work - ie page does'nt
> shows up.
>
> I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
> listens to port 8080 - so how do I integrate both the ports to work
> together? Any useful information on above is appreciated.
>
> THANKS!
>
> HARI
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]