xml-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Isaacson" <cisaac...@capita2.com>
Subject Re: Address Book Error
Date Wed, 09 Aug 2000 11:29:53 GMT
I think there is a bug in this example or version of SOAP, as I ran the
Stock Quote example fine with the same configuration. I continue to get an
error with Address Book about not being able to resolve the class:
samples.addressbook.Address (which is defined in the deployment descriptor).
I checked my classpath on the server and client and all seems to be well.

I am running the example with WebSphere 3.021, and using SOAP 2.0, rc2.

If there is something else someone wants to check or try I'm willing to do
so.

Thanks,

Cory
----- Original Message -----
From: "Paul McKernon" <p.mckernon@aepona.com>
To: <soap-user@xml.apache.org>
Sent: Tuesday, August 08, 2000 11:06 AM
Subject: Re: Address Book Error


> Cory - what I have done is comment out lines 91-113 of the tomcat.sh
script
> which sets up the CLASSPATH. I have done this so that I know EXACTLY what
> CLASSPATH is being set ( I had problems with xerces.jar ). The text below
is
> added to startup file (linux) but you can adapt it to suit your windows
> environment.
>
> I also copied the webapps dir to ....../jakarta-tomcat/webapps/ROOT/soap/
so
> thay they are visible to the outside world. Then I copied the
AddressBook.class
> to ......./jakarta-tomcat/webapps/ROOT/soap/samples/addressbook/
>
> Cant guarantee that this will help but you can give it a go.
>
>
> Paul.
>
> ###########################################################
> # Added by P McKernon to set up the tomcat & xerces environments
>
> # Classpath variable
>
> # xerces.jar must come first
> setenv CLASSPATH /project/soap/xerces-1_1_3/xerces.jar
>
> setenv CLASSPATH ${CLASSPATH}:/project/soap/xml-soap
> setenv CLASSPATH ${CLASSPATH}:/project/soap/xml-soap/lib
> setenv CLASSPATH ${CLASSPATH}:/opt/java/jdk/jdk1.2.2/lib/
> setenv CLASSPATH ${CLASSPATH}:/opt/java/jdk/jdk1.2.2/lib/tools.jar
>
> setenv CLASSPATH ${CLASSPATH}:/project/soap/xml-soap/lib/smtp.jar
> setenv CLASSPATH ${CLASSPATH}:/project/soap/xml-soap/lib/soap.jar
> setenv CLASSPATH ${CLASSPATH}:/project/soap/xml-soap/lib/xmisoap.jar
> setenv CLASSPATH ${CLASSPATH}:/project/soap/xml-soap/lib/pop3.jar
>
> setenv CLASSPATH
${CLASSPATH}:/project/soap/jakarta-tomcat/webapps/ROOT/soap
> setenv CLASSPATH ${CLASSPATH}:/project/soap/jakarta-tomcat/lib/ant.jar
> setenv CLASSPATH
${CLASSPATH}:/project/soap/jakarta-tomcat/lib/webserver.jar
> setenv CLASSPATH ${CLASSPATH}:/project/soap/jakarta-tomcat/lib/servlet.jar
> setenv CLASSPATH ${CLASSPATH}:/project/soap/jakarta-tomcat/lib/jasper.jar
> setenv CLASSPATH ${CLASSPATH}:/project/soap/jakarta-tomcat/lib/xml.jar
>
>
> # Tomcat home directory variable
> setenv TOMCAT_HOME /project/soap/jakarta-tomcat
>
> # Java home directory variable
> setenv JAVA_HOME /opt/java/jdk/jdk1.2.2
>
> # Path variable
> setenv PATH ${PATH}:/opt/java/jdk/jdk1.2.2
> setenv PATH ${PATH}:/opt/java/jdk/jdk1.2.2/bin
> setenv PATH ${PATH}:/project/soap
> setenv PATH ${PATH}:/project/soap/xml-soap
> setenv PATH ${PATH}:/project/soap/xerces-1_1_3
> setenv PATH ${PATH}:/project/soap/jakarta-tomcat
> setenv PATH ${PATH}:/project/soap/jakarta-tomcat/lib
> setenv PATH ${PATH}:/project/soap/jakarta-tomcat/bin
> setenv PATH ${PATH}:/project/soap/jakarta-tomcat/webapps/ROOT
> setenv PATH ${PATH}:/project/soap/jakarta-tomcat/webapps/ROOT/soap
> ###########################################################
>
>
>
>
> Cory Isaacson wrote:
>
> > Paul,
> >
> > That's what's strange. I do get the usage parameters, and it definitely
runs
> > up to a point, and then I get the error. My directories are:
> >
> > D:\xml-soap-20_rc2\samples\addressbook
> >
> > and I have D:\xml-soap-20_rc2 in both the server CLASSPATH and the
client
> > CLASSPATH. Can you send me a sample of your CLASSPATH variables so I can
> > compare them to mine?
> >
> > Thanks,
> >
> > Cory
> > ----- Original Message -----
> > From: "Paul McKernon" <p.mckernon@aepona.com>
> > To: <soap-user@xml.apache.org>
> > Sent: Tuesday, August 08, 2000 10:01 AM
> > Subject: Re: Address Book Error
> >
> > > apologies - that sounds like it. As far as I know it is important to
keep
> > the
> > > directory structure e.g.
> > >
> > > if /soapclasses/ was on the CLASSPATH then the example classes would
have
> > to be
> > > in /soapclasses/samples/addressbook/
> > >
> > > You could try running the example with no parameters - if you get the
> > usage:
> > > type message then you are ok - classnotfound means it is not visible
to
> > the
> > > java compiler.
> > >
> > > Paul.
> > >
> > >
> > > "Steven J. McDowall" wrote:
> > >
> > > > No, more than likely he doesn't have the actual "client" java
classes
> > > > in the tomcat path either!
> > > >
> > > > Not only must the soap and xml jars be available to tomcat, the
actually
> > > > java class files that IMPLEMENT the classes must be available too to
> > load
> > > > from.
> > > >
> > > > What I did was to create a /usr/local/tomcat/soap-classes dir (your
> > mileage
> > > > may vary) and then in the tomcat.sh (or .bat) add this to the list
> > > > of CLASSPATH.. That way, all my soap classes can be put in here..
> > > > >From then on, I just put my compiled soap stuff in that dir and all
is
> > > > good..
> > > >
> > > > -Steve
> > > >
> > > > -----Original Message-----
> > > > From: pm0268 [mailto:pm0268]On Behalf Of Paul McKernon
> > > > Sent: Tuesday, August 08, 2000 8:37 AM
> > > > To: soap-user@xml.apache.org
> > > > Subject: Re: Address Book Error
> > > >
> > > > Is the service deployed? Sounds like it isn't.
> > > >
> > > > Cory Isaacson wrote:
> > > >
> > > > > Thank you, I finally figured that out. However, I still am getting
an
> > > > error:
> > > > >
> > > > > Now I get the following (which I think is the end of the line
> > finally):
> > > > >
> > > > > D:\xml-soap-2_0_rc2\samples\addressbook>java
> > > > samples.addressbook.GetAddress
> > > > > http://localhost/webapp/apache-soap/rpcrouter.jsp "John B. Good"
> > > > > Generated fault:
> > > > >   Fault Code   = SOAP-ENV:Client
> > > > >   Fault String = deployment error in SOAP service
> > 'urn:AddressFetcher':
> > > > > class name 'samples.addressbook.Address' could not be resolved:
> > > > > samples.addressbook.Address
> > > > >
> > > > > This should indicate that I don't have the CLASSPATH set
correctly,
> > but I
> > > > > definitely have the CLASSPATH set to include the SOAP root
directory,
> > > > which
> > > > > is just above the samples directory. I have this set on both the
> > server
> > > > and
> > > > > the client. Anything else I'm missing?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Cory
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Rick Cole" <rickcole3@yahoo.com>
> > > > > To: <soap-user@xml.apache.org>
> > > > > Sent: Tuesday, August 08, 2000 8:58 AM
> > > > > Subject: Re: Address Book Error
> > > > >
> > > > > > Make sure that you set the number of mappings to 2 for
> > > > > > the AddressBook sample. If you don't, they will not be
> > > > > > saved. Hope this helps!
> > > > > >
> > > > > > Rick
> > > > > >
> > > > > >
> > > > > > --- Cory Isaacson <cisaacson@capita2.com> wrote:
> > > > > > > Patrick,
> > > > > > >
> > > > > > > I did, but for some reason it didn't show up when I
> > > > > > > view the service after I deploy it. Any idea why?
> > > > > > >
> > > > > > > Cory
> > > > > > >   ----- Original Message -----
> > > > > > >   From: Patrick Pham
> > > > > > >   To: soap-user@xml.apache.org
> > > > > > >   Sent: Monday, August 07, 2000 8:06 AM
> > > > > > >   Subject: RE: Address Book Error
> > > > > > >
> > > > > > >
> > > > > > >                I wonder that if you set:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
> > > > > > >
> > > > > > >
> > > > > >
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer
> > > > > > >
> > > > > > >               when you deployed the service.
> > > > > > >     -----Original Message-----
> > > > > > >     From: Cory Isaacson
> > > > > > > [mailto:cisaacson@capita2.com]
> > > > > > >     Sent: Monday, August 07, 2000 8:47 PM
> > > > > > >     To: soap-user@xml.apache.org
> > > > > > >     Subject: Re: Address Book Error
> > > > > > >
> > > > > > >
> > > > > > >     That handled that error, but now I get the
> > > > > > > following error. I deployed the service with a
> > > > > > > Serializer, but when I go to list the service and
> > > > > > > view the details, the Serializer section is missing.
> > > > > > > Any ideas?
> > > > > > >
> > > > > > >     Cory
> > > > > > >
> > > > > > >     <B>Root Error-1</B>: No Serializer found
to
> > > > > > > serialize a 'samples.addressbook.Address' using
> > > > > > > encoding style
> > > > > > > 'http://schemas.xmlsoap.org/soap/encoding/'.<BR>
> > > > > > >     [SOAPException: faultCode=SOAP-ENV:Server;
> > > > > > > msg=No Serializer found to serialize a
> > > > > > > 'samples.addressbook.Address' using encoding style
> > > > > > > 'http://schemas.xmlsoap.org/soap/encoding/'.;
> > > > > > > targetException=java.lang.IllegalArgumentException:
> > > > > > > No Serializer found to serialize a
> > > > > > > 'samples.addressbook.Address' using encoding style
> > > > > > > 'http://schemas.xmlsoap.org/soap/encoding/'.]
> > > > > > >      at
> > > > > > >
> > > > > >
> > > > >
> > > >
> >
D_0003a.WebSphere.AppServer.hosts.d_00025fault_0005fhost.apache_0002dsoap.we
> > > > > b.rpcrouter_jsp_1._jspService(Compiled
> > > > > > > Code)
> > > > > > >      at
> > > > > > >
> > > > > > com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:137)
> > > > > > >
> > > > > > >
> > > > > > >       ----- Original Message -----
> > > > > > >       From: Cory Isaacson
> > > > > > >       To: soap-user@xml.apache.org
> > > > > > >       Sent: Monday, August 07, 2000 2:54 PM
> > > > > > >       Subject: Address Book Error
> > > > > > >
> > > > > > >
> > > > > > >       I get the following error when I try and run
> > > > > > > the Address Book sample:
> > > > > > >
> > > > > > >       D:\xml-soap-2_0_rc2>java
> > > > > > > samples.addressbook.GetAddress
> > > > > > > http://localhost/webapp/
> > > > > > >       apache-soap/rpcrouter.jsp "John B. Good"
> > > > > > >       java.lang.NoClassDefFoundError:
> > > > > > > org/apache/xerces/utils/Base64
> > > > > > >               at
> > > > > > >
> > > > > >
> > org.apache.soap.encoding.soapenc.Base64Serializer.<init>(Base64Serial
> > > > > > >       izer.java:18)
> > > > > > >               at
> > > > > > >
> > > > > >
> > org.apache.soap.encoding.SOAPMappingRegistry.<init>(SOAPMappingRegist
> > > > > > >       ry.java:248)
> > > > > > >               at
> > > > > > >
> > > > > > samples.addressbook.GetAddress.main(GetAddress.java:95)
> > > > > > >
> > > > > > >       I am using xerces.jar from version 1.0.3, but
> > > > > > > I looked and there is no 'Base64' class. Some other
> > > > > > > version I need? I am working with soap 2 rc2.
> > > > > > >
> > > > > > >       Thanks in advance,
> > > > > > >
> > > > > > >       Cory
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Kick off your party with Yahoo! Invites.
> > > > > > http://invites.yahoo.com/
> > > > > >
> > >
>


Mime
View raw message