Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problems using JAXM, please help !

7 views
Skip to first unread message

sappy

unread,
Dec 18, 2001, 2:40:04 PM12/18/01
to
Hello All

I'm trying to use the JAXM stuff in our product and I'm encountering
some problems, I'm hoping someone could take a couple of minutes to
answer my questions...

1) Using the sample program ( SendingServlet ), I get an exception on
the following code.

MessageFactory mf = MessageFactory.newInstance();

This throws a SOAPException, with the description :
"cannot instantiate com.sun.xml.messaging.soap.MessageFactoryImpl"

Any idea what I'm missing ?

Note : My servlet container is Tomcat.

2) I have a non-JAXM client talking SOAP to a JAXM based servlet
running in Tomcat. i.e my class extends JAXMServlet and implements
ReqRespListener.

When I send my servlet a request I get the following exception in
Tomcat.

exception
javax.servlet.ServletException: JAXM POST failed null
at javax.xml.messaging.JAXMServlet.doPost(JAXMServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
rest of the stack trace.....

Any idea what's going on here ?

Thanking you in advance for taking the time to answer these questions.

Sappy.

RIck

unread,
Dec 19, 2001, 12:16:31 PM12/19/01
to
Sappy,

let me try to answer these. The first issue has to do with the fact
that you're missing the JAXM client.jar file in your Tomcat setup. You
should be able to find it in your JAXM install directory. Just copy it
into your <tomcat-install-dir>\lib directory and restart Tomcat.

As for the second problem ... I'm not totally sure what may be causing
this. I'd suggest adding your JAXM .jar files to your Tomcat classpath
as a start.

Hope this helps.


sap...@hotmail.com (sappy) wrote in message news:<bcecb7e0.0112...@posting.google.com>...

0 new messages