Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Whats wrong with my axis2 in my wls 8.1?  RSS feed

 
Fredrik Andersson
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have downloaded axis2:
1.4.1
1.4
1.3

Inside each one of these dist there is a lib and webapp folder. I have copied the the lib folder into the webapp/WEB-INF.

Then I have tried to deploy the webapp inside my wls 8.1.5.

But I jus get:

<2008-okt-15 kl 21:23 CEST> <Error> <HTTP> <BEA-101125> <[ServletContext(id=34204313,name=webapp,context-path=/webapp)] Error occurred while instantiating servlet: "AxisServlet".
java.lang.NoSuchMethodError: <init>
at org.apache.axis2.engine.DispatchPhase.<clinit>()V(DispatchPhase.java:270)
at jrockit.vm.Reflect$IClass.runClinit(I)V(Unknown Source)
at jrockit.vm.Reflect$IClass.ensureInitialized(Ljava/lang/Class V(Unknown Source)

....followed by....

<2008-okt-15 kl 21:23 CEST> <Error> <HTTP> <BEA-101216> <Servlet: "AxisServlet" failed to preload on startup in Web application: "webapp".
javax.servlet.ServletException: Servlet class: 'org.apache.axis2.transport.http.AxisServlet' doesn't have a default constructor
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run()Ljava/lang/Object;(ServletStubImpl.java:1098)

Do you guys see what I'm missing?

Best regards
Fredrik
 
Fredrik Andersson
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solution seems to be a weblogic.xml:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

Then build the axis2.war and deploy that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!