You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Dan Weiler <dk...@chronosinc.com> on 2003/01/10 23:27:00 UTC
My jar not being picked up at runtime
I am attempting to pass my own object to my SOAP service and am running into some runtime problems that I am assuming to be classpath related. My deployment descriptor is pretty basic (see below) and it successfully deploys the service. The symptoms are a NoClassDefFound as soon as the deployed service is hit, and I have determined the class that it is complaining about is the object that I am passing ("BadOrderModel"). In the course of trying to resolve my path issue, I have dropped the jar that contains the BadOrderModel.class just about everywhere, including the following locations: my module's WEB-INF/lib, unjarred the class files into WEB-INF/classes, put the jar into tomcat's lib and common/lib. None of these things seems to work and I am slowly but surely losing my mind. Has anyone seen this type of behavior? The technologies/versions that I am using are Tomcat4, SOAP 2.3.
Any clues would be appreciated.
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:crb-transactions">
<isd:provider
type="java"
scope="Application"
methods="getFunction putFunction">
<isd:java class="xrb.soap.Transactions"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn://mycompany.com/objects/" qname="x:BadOrderModel"
javaType="crb.model.shopping.BadOrderModel"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" />
</isd:mappings>
</isd:service>
Re: My jar not being picked up at runtime
Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
Is your class declared "public"?
Sanjiva.
----- Original Message -----
From: "Dan Weiler" <dk...@chronosinc.com>
To: <so...@xml.apache.org>
Sent: Saturday, January 11, 2003 4:27 AM
Subject: My jar not being picked up at runtime
I am attempting to pass my own object to my SOAP service and am running into
some runtime problems that I am assuming to be classpath related. My
deployment descriptor is pretty basic (see below) and it successfully
deploys the service. The symptoms are a NoClassDefFound as soon as the
deployed service is hit, and I have determined the class that it is
complaining about is the object that I am passing ("BadOrderModel"). In the
course of trying to resolve my path issue, I have dropped the jar that
contains the BadOrderModel.class just about everywhere, including the
following locations: my module's WEB-INF/lib, unjarred the class files into
WEB-INF/classes, put the jar into tomcat's lib and common/lib. None of these
things seems to work and I am slowly but surely losing my mind. Has anyone
seen this type of behavior? The technologies/versions that I am using are
Tomcat4, SOAP 2.3.
Any clues would be appreciated.
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:crb-transactions">
<isd:provider
type="java"
scope="Application"
methods="getFunction putFunction">
<isd:java class="xrb.soap.Transactions"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn://mycompany.com/objects/" qname="x:BadOrderModel"
javaType="crb.model.shopping.BadOrderModel"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" />
</isd:mappings>
</isd:service>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: My jar not being picked up at runtime
Posted by Scott Nichol <sn...@scottnichol.com>.
Your "normally" put your service classes and "helper" classes in
$CATALINA_HOME/webapps/soap/WEB-INF/lib or classes. You very likely
need to restart Tomcat at this point. It sounds, however, like you have
already done this. For your last sanity check, I would be certain the
the jar is nowhere (not lib, common/lib, WEB-INF/lib,
$JAVA_HOME/jre/lib/ext) and that its constituent classes are exploded
under WEB-INF/classes. Then restart Tomcat and try. If you still get
an error, post it here to see if anyone sees anything your eyes are
missing.
Scott Nichol
----- Original Message -----
From: "Dan Weiler" <dk...@chronosinc.com>
To: <so...@xml.apache.org>
Sent: Friday, January 10, 2003 5:27 PM
Subject: My jar not being picked up at runtime
I am attempting to pass my own object to my SOAP service and am running
into some runtime problems that I am assuming to be classpath related.
My deployment descriptor is pretty basic (see below) and it successfully
deploys the service. The symptoms are a NoClassDefFound as soon as the
deployed service is hit, and I have determined the class that it is
complaining about is the object that I am passing ("BadOrderModel"). In
the course of trying to resolve my path issue, I have dropped the jar
that contains the BadOrderModel.class just about everywhere, including
the following locations: my module's WEB-INF/lib, unjarred the class
files into WEB-INF/classes, put the jar into tomcat's lib and
common/lib. None of these things seems to work and I am slowly but
surely losing my mind. Has anyone seen this type of behavior? The
technologies/versions that I am using are Tomcat4, SOAP 2.3.
Any clues would be appreciated.
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:crb-transactions">
<isd:provider
type="java"
scope="Application"
methods="getFunction putFunction">
<isd:java class="xrb.soap.Transactions"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultL
istener>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn://mycompany.com/objects/" qname="x:BadOrderModel"
javaType="crb.model.shopping.BadOrderModel"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" />
</isd:mappings>
</isd:service>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: My jar not being picked up at runtime
Posted by Scott Nichol <sn...@scottnichol.com>.
Your "normally" put your service classes and "helper" classes in
$CATALINA_HOME/webapps/soap/WEB-INF/lib or classes. You very likely
need to restart Tomcat at this point. It sounds, however, like you have
already done this. For your last sanity check, I would be certain the
the jar is nowhere (not lib, common/lib, WEB-INF/lib,
$JAVA_HOME/jre/lib/ext) and that its constituent classes are exploded
under WEB-INF/classes. Then restart Tomcat and try. If you still get
an error, post it here to see if anyone sees anything your eyes are
missing.
Scott Nichol
----- Original Message -----
From: "Dan Weiler" <dk...@chronosinc.com>
To: <so...@xml.apache.org>
Sent: Friday, January 10, 2003 5:27 PM
Subject: My jar not being picked up at runtime
I am attempting to pass my own object to my SOAP service and am running
into some runtime problems that I am assuming to be classpath related.
My deployment descriptor is pretty basic (see below) and it successfully
deploys the service. The symptoms are a NoClassDefFound as soon as the
deployed service is hit, and I have determined the class that it is
complaining about is the object that I am passing ("BadOrderModel"). In
the course of trying to resolve my path issue, I have dropped the jar
that contains the BadOrderModel.class just about everywhere, including
the following locations: my module's WEB-INF/lib, unjarred the class
files into WEB-INF/classes, put the jar into tomcat's lib and
common/lib. None of these things seems to work and I am slowly but
surely losing my mind. Has anyone seen this type of behavior? The
technologies/versions that I am using are Tomcat4, SOAP 2.3.
Any clues would be appreciated.
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:crb-transactions">
<isd:provider
type="java"
scope="Application"
methods="getFunction putFunction">
<isd:java class="xrb.soap.Transactions"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultL
istener>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn://mycompany.com/objects/" qname="x:BadOrderModel"
javaType="crb.model.shopping.BadOrderModel"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" />
</isd:mappings>
</isd:service>
Re: My jar not being picked up at runtime
Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
Is your class declared "public"?
Sanjiva.
----- Original Message -----
From: "Dan Weiler" <dk...@chronosinc.com>
To: <so...@xml.apache.org>
Sent: Saturday, January 11, 2003 4:27 AM
Subject: My jar not being picked up at runtime
I am attempting to pass my own object to my SOAP service and am running into
some runtime problems that I am assuming to be classpath related. My
deployment descriptor is pretty basic (see below) and it successfully
deploys the service. The symptoms are a NoClassDefFound as soon as the
deployed service is hit, and I have determined the class that it is
complaining about is the object that I am passing ("BadOrderModel"). In the
course of trying to resolve my path issue, I have dropped the jar that
contains the BadOrderModel.class just about everywhere, including the
following locations: my module's WEB-INF/lib, unjarred the class files into
WEB-INF/classes, put the jar into tomcat's lib and common/lib. None of these
things seems to work and I am slowly but surely losing my mind. Has anyone
seen this type of behavior? The technologies/versions that I am using are
Tomcat4, SOAP 2.3.
Any clues would be appreciated.
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:crb-transactions">
<isd:provider
type="java"
scope="Application"
methods="getFunction putFunction">
<isd:java class="xrb.soap.Transactions"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn://mycompany.com/objects/" qname="x:BadOrderModel"
javaType="crb.model.shopping.BadOrderModel"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer" />
</isd:mappings>
</isd:service>