fyness
asked on
SSL with Tomcat 5 and apache axis
Hi,
Im trying to configure tomcat to use SSL and I've followed the steps in the how-to guide and i cant get it to work. I changed the server.xml to allow for SSL using the following
<Connector className="org.apache.cata
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true" acceptCount="10" debug="0"
scheme="https" secure="true">
<Factory className="org.apache.cata
keystoreFile="c:\jakarta-t
keystorePass="changeit"
clientAuth="false" protocol="TLS"/>
</Connector>
But tomcat wont start when I put in the Factory element. I had initally used tomcat-jwsdp-1.4, would this have over riden anything or something. If anyone can help would much appricate it!
Thanks,
Suzy
what exception do you get?
ASKER
when tomcat doesnt start im not getting an exception that i can see, its not in the logs. if i take the factory element out its still doesnt run. I get the following when i run startup.bat
C:\jakarta-tomcat-5.0.27\b
Using CATALINA_BASE: C:\jakarta-tomcat-5.0.27
Using CATALINA_HOME: C:\jakarta-tomcat-5.0.27
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.27\t
Using JAVA_HOME: C:\j2sdk1.4.2_02
What does it display if you type:
catalina.bat start
instead of startup.bat
?
catalina.bat start
instead of startup.bat
?
Sory, I meant:
catalina.bat run
catalina.bat run
ASKER
its not finding the
Catalina.start using conf/server.xml: java.lang.ClassNotFoundExc eption: org.apac
he.catalina.connector.http .HttpConne ctor
java.lang.ClassNotFoundExc eption: org.apache.catalina.connec tor.http.H ttpConnect or
i took it out be still doesnt work.
Catalina.start using conf/server.xml: java.lang.ClassNotFoundExc
he.catalina.connector.http
java.lang.ClassNotFoundExc
i took it out be still doesnt work.
ASKER
when i take the two classnames out i get the following error
SEVERE: Null component Catalina:type=protocolHand ler,classN ame=null
27-Aug-2004 13:13:18 org.apache.catalina.startu p.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.lang.NullPointerExcep t
on
at org.apache.coyote.tomcat5. CoyoteConn ector.star t(CoyoteCo nnector.ja va
1529)
at org.apache.catalina.core.S tandardSer vice.start (StandardS ervice.jav a:
89)
at org.apache.catalina.core.S tandardSer ver.start( StandardSe rver.java: 23
3)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :556)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl
java:39)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc ce
sorImpl.java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:32 4)
at org.apache.catalina.startu p.Bootstra p.start(Bo otstrap.ja va:284)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:422)
27-Aug-2004 13:13:18 org.apache.catalina.startu p.Catalina start
INFO: Server startup in 6516 ms
SEVERE: Null component Catalina:type=protocolHand
27-Aug-2004 13:13:18 org.apache.catalina.startu
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.lang.NullPointerExcep
on
at org.apache.coyote.tomcat5.
1529)
at org.apache.catalina.core.S
89)
at org.apache.catalina.core.S
3)
at org.apache.catalina.startu
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
java:39)
at sun.reflect.DelegatingMeth
sorImpl.java:25)
at java.lang.reflect.Method.i
at org.apache.catalina.startu
at org.apache.catalina.startu
27-Aug-2004 13:13:18 org.apache.catalina.startu
INFO: Server startup in 6516 ms
Where did you install Tomcat? Does the path contain any special characters (space, "+", "-" etc)?
ASKER
its in stalled in jakarka-tomcat-5.0.27 on my c drive, the path is just jakarka-tomcat-5.0.27/bin
Did you try to run it before you installed the SSL? It might be that there was a problem with the installation. You might need to reinstall Tomcat.
ASKER
works fine without the ssl connection been opened i.e. removing the tags from the server.xml
Can you check Tomcat's jar files to see in which jar file the HttpConnector is? And also can you tell us the location of this class?
ASKER
I cant find the jar's actually im having trouble getting my localhost page up now. Im also getting this error
Catalina.start using conf/server.xml: java.lang.ClassNotFoundExc eption: org.apac
he.tomcat.service.PoolTcpC onnector
java.lang.ClassNotFoundExc eption: org.apache.tomcat.service. PoolTcpCon nector
at org.apache.commons.digeste r.Digester .createSAX Exception( Digester.j ava
:2540)
at org.apache.commons.digeste r.Digester .createSAX Exception( Digester.j ava
:2566)
at org.apache.commons.digeste r.Digester .startElem ent(Digest er.java:12 76)
at org.apache.catalina.util.C atalinaDig ester.star tElement(C atalinaDig est
er.java:65)
at org.apache.xerces.parsers. AbstractSA XParser.st artElement (Unknown Sour
ce)
at org.apache.xerces.impl.XML DocumentFr agmentScan nerImpl.sc anStartEle men
t(Unknown Source)
at org.apache.xerces.impl.XML DocumentFr agmentScan nerImpl$Fr agmentCont ent
Dispatcher.dispatch(Unknow n Source)
at org.apache.xerces.impl.XML DocumentFr agmentScan nerImpl.sc anDocument (Un
known Source)
at org.apache.xerces.parsers. XML11Confi guration.p arse(Unkno wn Source)
at org.apache.xerces.parsers. XML11Confi guration.p arse(Unkno wn Source)
at org.apache.xerces.parsers. XMLParser. parse(Unkn own Source)
at org.apache.xerces.parsers. AbstractSA XParser.pa rse(Unknow n Source)
at org.apache.commons.digeste r.Digester .parse(Dig ester.java :1548)
at org.apache.catalina.startu p.Catalina .load(Cata lina.java: 489)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :548)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.
java:39)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc ces
sorImpl.java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:32 4)
at org.apache.catalina.startu p.Bootstra p.start(Bo otstrap.ja va:284)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:422)
27-Aug-2004 16:25:03 org.apache.catalina.startu p.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.Invocati onTargetEx ception
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.
java:39)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc ces
sorImpl.java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:32 4)
at org.apache.catalina.startu p.Bootstra p.start(Bo otstrap.ja va:284)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:422)
Caused by: java.lang.NullPointerExcep tion
at org.apache.catalina.startu p.Catalina .await(Cat alina.java :619)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :579)
... 6 more
ANy ideas what the problem may be?
thanks
sue
Catalina.start using conf/server.xml: java.lang.ClassNotFoundExc
he.tomcat.service.PoolTcpC
java.lang.ClassNotFoundExc
at org.apache.commons.digeste
:2540)
at org.apache.commons.digeste
:2566)
at org.apache.commons.digeste
at org.apache.catalina.util.C
er.java:65)
at org.apache.xerces.parsers.
ce)
at org.apache.xerces.impl.XML
t(Unknown Source)
at org.apache.xerces.impl.XML
Dispatcher.dispatch(Unknow
at org.apache.xerces.impl.XML
known Source)
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
at org.apache.commons.digeste
at org.apache.catalina.startu
at org.apache.catalina.startu
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
java:39)
at sun.reflect.DelegatingMeth
sorImpl.java:25)
at java.lang.reflect.Method.i
at org.apache.catalina.startu
at org.apache.catalina.startu
27-Aug-2004 16:25:03 org.apache.catalina.startu
INFO: Server startup in 0 ms
java.lang.reflect.Invocati
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
java:39)
at sun.reflect.DelegatingMeth
sorImpl.java:25)
at java.lang.reflect.Method.i
at org.apache.catalina.startu
at org.apache.catalina.startu
Caused by: java.lang.NullPointerExcep
at org.apache.catalina.startu
at org.apache.catalina.startu
... 6 more
ANy ideas what the problem may be?
thanks
sue
Is that when you are running Tomcat or when you try to access your page?
ASKER
when i start up i think, i just tried starting up again and its not working and getting the same error as above
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I believe that a re-installation of Tomcat would have solved the problem.
ASKER
I had to export classpaths in bashrc to get it working
You can have the points though
THanks for you help
You can have the points though
THanks for you help