You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by steve sanden <st...@wholefoods.com> on 2002/02/04 17:51:25 UTC

Server Exception: loader constraints violated

Hello all -
Wondering if anyone has come accross this problem.

We have a service receiving an xml document as an string argument (our
provider can't pass it as an element :( )
We then write it (the xml string) to disk into a file then read the file
in as a DOM Document,  parse it and load the relevant info into a
database.
Sounds pretty straight forward.

Whenever we test this i get the following server fault message:

Generated fault:
 Fault Code   = SOAP-ENV:Server
 Fault String = Exception from service object: loader constraints
violated when linking org/w3c/dom/Document class

 We're running: Tomcat 4.0.1
                        JDK 1.3.1_01
                        Soap-2_2

The Classpath on the server (windows 2000) is set correctly with
xerces.jar at the beginning followed by soap.jar with all the other
relavant jar files in tow.

Hoping someone may have run accross this before

Thanks
Steve :)


having problems with SOAP in weblogic 6.1

Posted by Jed Coronado <je...@yahoo.com>.
Hi,

I'm new to this list, and currently I'm doing a client
that calls a SOAP server.  The client is a simple java
class that calls a server, however i get this error
everytime i run it.  I don't think the fault is with a
server, since I can get the proper reply when I just
use a simple test client class (using main()). 
However, this error appears when my client is inside
bea weblogic.

i'm using bea weblogic 6.1 sp1 on a win2k machine. 
i've put the xerces.jar (1.4.4)at the beginning of the
classpath and followed the howto for apache soap in
bea weblogic.

hope you guys can help me out on this. thanks in
advance.

jed

------------- begin error log --------------------

Proxies are set...
initializing vector...
stock symbol...ibm
Call to server in process...
Fault code: soap:Server
Fault is: electric.directory.DirectoryException: a
path cannot be empty
(SoapMessageHandler-processMessage) error
java.lang.Exception
        at 
net.sagent.snoopy.messaging.SoapMessageHandler.executeSoap(SoapMessag
eHandler.java:181)
        at 
net.sagent.snoopy.messaging.SoapMessageHandler.sendMessage(SoapMessag
eHandler.java:124)
        at 
net.sagent.snoopy.ejb.MessagingBean.processQuery(MessagingBean.java:1
44)
        at 
net.sagent.snoopy.ejb.MessagingBean_9brlyc_EOImpl.processQuery(Messag
ingBean_9brlyc_EOImpl.java:245)
        at
ProcessQueryServlet.doPost(ProcessQueryServlet.java:98)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
        at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
        at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
        at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
---------------------- end error log -------------



__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

having problems with SOAP in weblogic 6.1

Posted by Jed Coronado <je...@yahoo.com>.
Hi,

I'm new to this list, and currently I'm doing a client
that calls a SOAP server.  The client is a simple java
class that calls a server, however i get this error
everytime i run it.  I don't think the fault is with a
server, since I can get the proper reply when I just
use a simple test client class (using main()). 
However, this error appears when my client is inside
bea weblogic.

i'm using bea weblogic 6.1 sp1 on a win2k machine. 
i've put the xerces.jar (1.4.4)at the beginning of the
classpath and followed the howto for apache soap in
bea weblogic.

hope you guys can help me out on this. thanks in
advance.

jed

------------- begin error log --------------------

Proxies are set...
initializing vector...
stock symbol...ibm
Call to server in process...
Fault code: soap:Server
Fault is: electric.directory.DirectoryException: a
path cannot be empty
(SoapMessageHandler-processMessage) error
java.lang.Exception
        at 
net.sagent.snoopy.messaging.SoapMessageHandler.executeSoap(SoapMessag
eHandler.java:181)
        at 
net.sagent.snoopy.messaging.SoapMessageHandler.sendMessage(SoapMessag
eHandler.java:124)
        at 
net.sagent.snoopy.ejb.MessagingBean.processQuery(MessagingBean.java:1
44)
        at 
net.sagent.snoopy.ejb.MessagingBean_9brlyc_EOImpl.processQuery(Messag
ingBean_9brlyc_EOImpl.java:245)
        at
ProcessQueryServlet.doPost(ProcessQueryServlet.java:98)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
        at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
        at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
        at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
---------------------- end error log -------------



__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

Re: Server Exception: loader constraints violated

Posted by dovle <do...@delsyne.ro>.
I am shure is not related to your exception but I was wondering why should 
you write the data to disk ? 
I think you can parse it without saving it on disk. It might improve your 
speed. (I am not shure...)

:o)

dovle



> Hello all -
> Wondering if anyone has come accross this problem.
>
> We have a service receiving an xml document as an string argument (our
> provider can't pass it as an element :( )
> We then write it (the xml string) to disk into a file then read the file
> in as a DOM Document,  parse it and load the relevant info into a
> database.
> Sounds pretty straight forward.
>
> Whenever we test this i get the following server fault message:
>
> Generated fault:
>  Fault Code   = SOAP-ENV:Server
>  Fault String = Exception from service object: loader constraints
> violated when linking org/w3c/dom/Document class
>
>  We're running: Tomcat 4.0.1
>                         JDK 1.3.1_01
>                         Soap-2_2
>
> The Classpath on the server (windows 2000) is set correctly with
> xerces.jar at the beginning followed by soap.jar with all the other
> relavant jar files in tow.
>
> Hoping someone may have run accross this before
>
> Thanks
> Steve :)

Re: Server Exception: loader constraints violated

Posted by dovle <do...@delsyne.ro>.
I am shure is not related to your exception but I was wondering why should 
you write the data to disk ? 
I think you can parse it without saving it on disk. It might improve your 
speed. (I am not shure...)

:o)

dovle



> Hello all -
> Wondering if anyone has come accross this problem.
>
> We have a service receiving an xml document as an string argument (our
> provider can't pass it as an element :( )
> We then write it (the xml string) to disk into a file then read the file
> in as a DOM Document,  parse it and load the relevant info into a
> database.
> Sounds pretty straight forward.
>
> Whenever we test this i get the following server fault message:
>
> Generated fault:
>  Fault Code   = SOAP-ENV:Server
>  Fault String = Exception from service object: loader constraints
> violated when linking org/w3c/dom/Document class
>
>  We're running: Tomcat 4.0.1
>                         JDK 1.3.1_01
>                         Soap-2_2
>
> The Classpath on the server (windows 2000) is set correctly with
> xerces.jar at the beginning followed by soap.jar with all the other
> relavant jar files in tow.
>
> Hoping someone may have run accross this before
>
> Thanks
> Steve :)