Hello,

I'm getting an "internal server error" when trying to enable MTOM in Axis2.1.4.
Here is what I did :
- I installed Axis2.1.4 into Tomcat 5.5.26 (with JDK  1.5.0.15, on Windows) (I dropped 
the .war in tomcat's "webapps" folder
- in webapps/axis2/WEB-INF/conf/axis2.xml , I changed the parameter 
"enableMTOM" to true (SwA is still disabled)
- I restarted Tomcat
Then :
- Axis2 homepage displays correctly ; also "List services" and services WSDL 
dynamic generation are still working.
- BUT when trying to execute any operation of any service from the browser (e.g http://localhost:8080/axis2/services/Version/getVersion) , I get an "Internal server error", and Tomcat logs the following error for the servlet AxisServlet : java.lang.NoClassDefFoundError javax/activation/DataSource (see stack trace copied below). Same stack trace when executing the operation from an Axis2 client.

I tried to move activation-1.1.jar from "webapps/axis2/WEB-INF/lib" to several other lib/ locations (jdk, jre, tomcat...), no success. No success either, when adding this jar to my CLASSPATH variable.

Has someone any idea ?


Thanks,
Pierre Muller


java.lang.NoClassDefFoundError: javax/activation/DataSource
at org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:141)
at 
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:159)
at 
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:472)
at 
org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:143)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at 
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at 
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at 
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)




**************************
Si vous n'êtes pas le destinataire désigné de ce message ou une personne 
autorisée à l'utiliser, toute distribution, copie, publication ou usage à 
quelques fins que ce soit des informations dans ce message sont interdits. 
Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce 
message.
This e-mail is confidential. If you are not the addressee or an authorized 
recipient of this message, any distribution, copying, publication or use of 
this information for any purpose is prohibited. Please notify the sender 
immediately by e-mail and then delete this message.
**************************





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to