If you are an Axis2 regular user you might have been encountered this error a couple of time :
java.io.FileNotFoundException: /xoraapps/axis2-web/listSingleService.jsp
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:143)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.java:362)
at com.caucho.server.http.QRequestDispatcher.include(QRequestDispatcher.java:274)
at org.apache.axis2.transport.http.AbstractAgent.renderView(AbstractAgent.java:120)
at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:448)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)

I had this error with Axis 2 version 1.5 from 1.5.3 and it made me nuts. I spent time on googling possible answers but I found nothing really usefull or pointing me in the correct direction.

But the error message basically points to a jsp : listSingleService.jsp

I took the axis2-webapp.war and I extracted the axis2-web directory into my root web services. New try and …. new failure. Trying to access my web service with the URL …/myService/services/myService?wsdl redirected me to the previous jsp … and showing that there is no service registered. WTF ?

Obviously my service is not recognised … It was a waste of time to add the axis2-web directory and I suggest you don’t do it.

And now the real answer : put axis2 in debug mode. If you use log4j, the logger is org.apache.axis2.

<logger name="org.apache.axis2" >
<level value="debug" />
<appender-ref ref="axis2" />
</logger>

Once debug mode is activated restart your service and try to get the WSDL from a web browser. You’re going to get the same error message. Now go to the axis2 logs : you should now see WHY Axis2 does not recognised your service as Axis2 will now print the full error message of why your service is not recognised (with the stack trace). From this point you should be able to fix your problem. Once your problem is fixed don’t forget to put axis2 on warn or error level.

Why does Axis2 hide this error message from you and forces you to go in debug mode to fix is a good question ….

Hope this help you to save some hours of pain in the a…..

, ,

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *


*

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>