File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Error in deploying web services in axis2 when deployed on https Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in deploying web services in axis2 when deployed on https" Watch "Error in deploying web services in axis2 when deployed on https" New topic
Author

Error in deploying web services in axis2 when deployed on https

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi Friends,

I am facing issues in deploying axis2 webservices in ssl. I have made changes in axis2.xml and I have configured transportsender and receiver tags. Earlier it was giving fileNotFoundException so I included the following jars:-

httpcore-4.0.jar
httpcore-nio-4.0.1.jar
axis2-1.4.1.jar

Now it is giving nullPointer exception in deploying axis2-1.4.1.jar.

2011-03-04 15:12:24,332 [http-443-1] INFO org.apache.axis2.deployment.ModuleDeployer - Deploying module: addressing - file:/usr/local/java/apache-tomcat-6.0.20/webapps/ConsHealthMHLWebSvc/WEB-INF/lib/axis2-1.4.1.jar
2011-03-04 15:12:24,342 [http-443-1] INFO org.apache.axis2.transport.http.AxisServlet - java.lang.NullPointerException


After that i commented transport sender tag. Now it is giving following error. The xml is formed but the endpoint is still http://localhost:8080 rather than https://localhost

Please help


Poornima Sharma
SCJP 6.0
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
The error is

java.lang.NullPointerException
at org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener.getSSLContext(HttpCoreNIOSSLListener.java:96)
at org.apache.axis2.transport.nhttp.HttpCoreNIOListener.init(HttpCoreNIOListener.java:151)
at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:447)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi Friends,

This is for those who are facing such issues, please use axis2 1.5.4 and ssl will work fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in deploying web services in axis2 when deployed on https