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 Install Axis on iPlanet 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Install Axis on iPlanet 6.0" Watch "Install Axis on iPlanet 6.0" New topic
Author

Install Axis on iPlanet 6.0

Chris McRae
Greenhorn

Joined: Dec 02, 2005
Posts: 6
Morning all,
Quick question. I'm trying to install Axis on iPlanet 6.0 so that it works (please don't ask me why I'm using iPlanet 6.0, I know it's out of date and all that), but I'm having no luck. I've been successful installing Axis on Tomcat with no problem. I have put Axis on iPlanet so that it looks like it's installed correctly. The happyaxis.jsp page shows that everything is happy, and I can call a local endpoint successfully, so I know Axis can parse correctly. I'm also able to develop a web service, and deploy it successfully (it does appear correctly in the web service listing). Unfortunately, even though the web service is show as deployed, and everything appears to be configured correctly with Axis, when I try to call the web service from a client, I get a faultString with a NullPointerException, which has a faultCode of Server.userException. I also was able to deploy and access the same web service when using Tomcat, with the only difference between the two being the endpoints-one for iPlanet and one for Tomcat.
I've seen that to install Axis on Sun 7, the server.policy file is to be modified. However, iPlanet 6 does not have a server.policy file. It does have a java.policy file, but modifying that file hasn't worked for me. So if there is anyone out there that could help me with this, I would greatly appreciate it. Thanks.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
My guess says, there is something wrong on the webservice method that you are calling. Did you tried a simple operations like add, divide etc.,
Also try to use the SOAPMonitor or TCPIPSniffer to see what soap message being transfered between server and client. If the SOAP Request and Response were correct, then there is something wrong with your client code.


Spritle Software Blogs
Chris McRae
Greenhorn

Joined: Dec 02, 2005
Posts: 6
I thought of that, so I wrote a simple method that takes a string parameter in and the method just appends another string to it and returns the whole thing (for example, if the in parameter is 'hello', the web service will return 'hello world'). I've also used the SOAP monitor to look at the soap messages. The soap message from the client is correct, but there is no reply from the server. But the client can't be the problem, since I'm using the same web service code(client and server) on both Tomcat and iPlanet. Everything works fine in Tomcat, but doesn't in iPlanet, although everything else seems to be okay (validation, list of services, deployment, undeployment, etc). Thanks for your help.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Can you post the fault detail as well ?
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail: ?//

Well!.. my second guess now is somehow iplanet jars and axis jars doesn't like each other or one of them need an update.
You may have to search at axis mailing list as well =>http://ws.apache.org/axis/mail.html
Chris McRae
Greenhorn

Joined: Dec 02, 2005
Posts: 6
Sure. Here is the complete fault detail:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:MCRAE

java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:10
87)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:784)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at services.ws_search_wsdl.GetSearchesBindingStub.helloWorld(GetSearchesBindingStub.java:129
7)
at helloWorldClient.main(helloWorldClient.java:19)


Thank you very much for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Install Axis on iPlanet 6.0