Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 and WL8.1 (deploy problem)

 
Ro Dowd
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic