Hi all,
We have developed a Java servlet application to handle web service requests and responses. It is built on Eclipse using Java 1.6.0.29 and Tomcat 7 all running on Windows. It was developed on my PC then tested on a Test server and to be run Live on a Live server. I have set up an SSL certificate on both the Test and Live servers as outlined on Tomcats online instructions and amended the Tomcat server.xml file to have the connector below;
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false" disableUploadTimeout="true
" enableLookups="false" maxThreads="150" port="8443" keystoreFile="C:\Keys\Port
alLive.key
store" keystorePass="Key#P4rtal" protocol="org.apache.coyot
e.http11.H
ttp11NioPr
otocol" scheme="https" secure="true" sslProtocol="TLS" />
The servlet deploys and functions fine on my PC and the Test server using a
https://localhost:8443 URL with SoapUI but on the Live server no response is returned in SoapUI and the Tomcat logs error at the top is;
java.lang.NoClassDefFoundE
rror: Could not initialize class javax.crypto.SunJCE_b
My investigation so far seems to suggest the issue is with the jce.jar, however I have tried the following with no success. Please can someone help.
Ensured the jce.jar is in the jre\lib directory
Ensured the jre\lib is set up as JAVA_HOME environment variable
Ensured that JAVA_HOME is in the classpath environment variable
Tried swapping the location of jce.jar to Tomcats lib directory
Tried placing the jce.jar in the applications WEB-INF\lib directory and rebuilding and redeploying
Placing the location of the jce.jar in the applications Build Path and rebuilding and redeploying
I also attempted changing the “protocol” attribute of the server.xml connector from Http11NioProtocol to Http11Protocol but this gave the error below in the TOMCAT logs BEFORE Tomcat deployed the WAR;
Failed to initialize connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.Lifecy
cleExcepti
on: Failed to initialize component [Connector[HTTP/1.1-8443]]
Thank you so much in advance
ajfarroll