troubleshooting Question

Having Problems porting web services from Tomcat 5 to SJSAS 8.2

Avatar of NoushinB
NoushinB asked on
Application ServersJava App Servers
4 Comments1 Solution385 ViewsLast Modified:
Hello,

I need help porting my web based application from Tomcat 5 to SJSAS 8.2.

Here are some more details:

I developed a service using Java/Servlet/Axis1 and deployed as a war file to Tomcat. I then developed a client application that accesses my service using Axis 1 type invokation from a JSP and deployed as another war file to Tomcat. This worked fine under Tomcat. However, when I tried to deploy my 2 war files to Sun Java System Application Server  8.2, I started having some problems.

Initially I ran into JVM security policy problems, which I overcame by simply turning off the checks in
c:/Sun/AppServer/8.2/domains/domain1/config/domain.xml. However I still get the following exceptions when trying to invoke my webservice from the calling jsp.

Questions:

1. What are the proper permissions to place in my java.policy file to secure my web based application under SJSAS?

2. Are the following technologies compatible? Axis1, Java5, SJSAS 8.2?

3. How can I resolve these exception?

4. I have axis.jar and its accompanying jar files in my deployed application lib directory. Do I need to add any more jar files to SJSAS class path settings? what needs to go in admin console: JVM Settings->Path Settings -> JVM Classpath Settings?

Thanx for your help.

Here is the exceptions stack trace:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
      {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:396)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
      at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
      at org.apache.axis.client.Call.invoke(Call.java:2553)
      at org.apache.axis.client.Call.invoke(Call.java:2248)
      at org.apache.axis.client.Call.invoke(Call.java:2171)
      at org.apache.axis.client.Call.invoke(Call.java:1691)
      at org.apache.jsp.anakam.authenproc_jsp._jspService(authenproc_jsp.java:154)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:264)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
      at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
      at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
      at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
      at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
      at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)


java.lang.NullPointerException
      at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
      at org.apache.axis.client.Call.invoke(Call.java:2251)
      at org.apache.axis.client.Call.invoke(Call.java:2171)
      at org.apache.axis.client.Call.invoke(Call.java:1691)
      at org.apache.jsp.anakam.authenproc_jsp._jspService(authenproc_jsp.java:154)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:264)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
      at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
      at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
      at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
      at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
      at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
Caused by: java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:396)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
      at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
      at org.apache.axis.client.Call.invoke(Call.java:2553)
      at org.apache.axis.client.Call.invoke(Call.java:2248)
      ... 28 more
ASKER CERTIFIED SOLUTION
NoushinB

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros