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 Axis2 and WL8.1 (deploy problem) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 and WL8.1 (deploy problem)" Watch "Axis2 and WL8.1 (deploy problem)" New topic
Author

Axis2 and WL8.1 (deploy problem)

Ro Dowd
Greenhorn

Joined: Jul 10, 2006
Posts: 22
Hi, I'm using Axis2 (V1.0) deployed into Weblogic 8.1 and am having trouble deploying my axis2.war.

My application aar file (called work.aar) is in the "WEB-INF/services" dir inside the axis2.war file. When i drop the axis2.war file into the applications/ dir I get the below:

<ServletContext(id=19413030,name=axis2,context-path=/axis2): Failed while destroying servlet: AxisServlet.
java.lang.NullPointerException
at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
at javax.servlet.GenericServlet.log(GenericServlet.java:300)

Strange thing is i can see the "happy" page - http://localhost:7200/axis2/services/listServices - which indicates
my web service is alive.

I looked at the below resource which indicates that for WL8.1 weblogic.xml needs to be updated so that the WL classloader looks in WEB-INF/ first - http://ws.apache.org/axis/java/install.html#WebLogic8.1
(see section called "Weblogic 8.1 in the last URL). That didnt seem to work though..

Any help much appreciated. Thanks, Ronan.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Check the Axis 2 requirements: JDK 1.4
Axis2 Installation Guide: System Requirements.

Weblogic 8.1 is only J2EE 1.3 compliant - therefore the underlying Java Engine doesn't have to support anything beyond Java 1.3.
Ro Dowd
Greenhorn

Joined: Jul 10, 2006
Posts: 22
Hi, Thanks for your reply. BEA Weblogic 8.1 is jdk1.4 compliant (not just 1.3) though so I dont think thats the problem - any other suggestions?
thanks..
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Ro Dowd:
I looked at the below resource which indicates that for WL8.1 weblogic.xml needs to be updated so that the WL classloader looks in WEB-INF/ first - http://ws.apache.org/axis/java/install.html#WebLogic8.1
(see section called "Weblogic 8.1 in the last URL). That didnt seem to work though.

I suspect you have done this already - but just in case. That same URL has a second point indicating that in addition to the change in the weblogic.xml you also need to change the CLASSPATH in the server startup script (you probably did this already but it seemed easy to overlook).
What I find puzzling the total lack of reference to a minimum WL 8.1 SP level.

http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1055256

A value specified in the console will take precedence over a value set manually.

You should probably use any means at your disposal to determine whether your prefer-web-inf-classes setting was actually accepted.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 and WL8.1 (deploy problem)
 
Similar Threads
Exception occuring at Weblogic
Unable to deploy .aar files in weblogic
JWSDP with WebLogic
axis2
need help on axis download