You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by "Hansen, Richard" <Ri...@westgroup.com> on 2001/04/25 18:13:28 UTC

RE: Exception "java.lang.NoClassDefFoundError: javax/servlet/Serv letContext" when trying to deploy a service

The short answer is because it can't find "javax.servlet.ServletContext".
Have you deployed from the command line sucessfully before without it?
ServiceManagerClient seems to want it so I put servlet.jar in my classpath.

> 
> I'm trying the April 24 nightly build, and get an uncaught 
> exception when 
> trying to deploy a service.  Any idea why?
> 
> Here's the complaint:
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> javax/servlet/ServletContext
>         at java.lang.Class.getMethods0(Native Method)
>         at java.lang.Class.getDeclaredMethods(Class.java:1071)
>         at java.beans.Introspector$1.run(Introspector.java:858)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at 
> java.beans.Introspector.getPublicDeclaredMethods(Introspector.
> java:856)
>         at 
> java.beans.Introspector.getTargetEventInfo(Introspector.java:562)
>         at java.beans.Introspector.getBeanInfo(Introspector.java:300)
>         at java.beans.Introspector.getBeanInfo(Introspector.java:87)
>         at 
> org.apache.soap.encoding.soapenc.BeanSerializer.getPropertyDes
> criptors(Unknown 
> Source)
>         at 
> org.apache.soap.encoding.soapenc.BeanSerializer.marshall(Unkno
> wn Source)
>         at 
> org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Unknown 
> Source)
>         at 
> org.apache.soap.rpc.RPCMessage.serializeParams(Unknown Source)
>         at org.apache.soap.rpc.RPCMessage.marshall(Unknown Source)
>         at org.apache.soap.Body.marshall(Unknown Source)
>         at org.apache.soap.Envelope.marshall(Unknown Source)
>         at 
> org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown 
> Source)
>         at org.apache.soap.rpc.Call.invoke(Unknown Source)
>         at 
> org.apache.soap.server.ServiceManagerClient.invokeMethod(Unkno
> wn Source)
>         at org.apache.soap.server.ServiceManagerClient.deploy(Unknown 
> Source)
>         at org.apache.soap.server.ServiceManagerClient.main(Unknown 
> Source)
> 
> I have on my CLASSPATH: xerces.jar (v 1.2.2), activation.jar 
> (from JAF 
> 1.0.1), mail.jar (from javamail 1.2), soap.jar, and nothing 
> else --- in 
> that order.
> 
> It's not obvious to me why ServiceManagerClient.deploy would want to 
> include a javax/servlet/ServletContext in the message it sends.
> 
> Thanks,
> Mike
> 

The views, opinions, and judgments expressed in this message are solely
those of the author. The message contents have not been reviewed or
approved by West Group.


Re: Please Help !!!!!!!!!

Posted by Naggi Rao <na...@softhome.net>.
Well I started with the COM Objects
but in vain.
Now we are trying to do it manually..
I am first writing a simple Sockets client which does a post..

Cheers,
Naggi

----- Original Message -----
From: "Scott Nichol" <sn...@computer.org>
To: <so...@xml.apache.org>
Sent: Wednesday, April 25, 2001 10:18 AM
Subject: Re: Please Help !!!!!!!!!


> Yes, it should work.  Many of us have found that the best way to debug
SOAP is to use
> the TcpTunnelGui application that is part of the Apache SOAP distribution.
The
> application acts as a relay at the TCP port level and displays the data
going each
> direction.
>
> I am curious, are you using COM objects from the SOAP Toolkit, or are you
manually
> creating the HTTP request, SOAP envelope, etc.?
>
> Scott
>
> ----- Original Message -----
> From: "Naggi Rao" <na...@softhome.net>
> To: <so...@xml.apache.org>
> Sent: Wednesday, April 25, 2001 12:43 PM
> Subject: Please Help !!!!!!!!!
>
>
> > Hi all,
> > We are trying to communicate from a ASP to Apache's Soap Engine (on
Weblogic
> > Server)
> > I am trying to establish a prrof of concept here and all I am tryin to
do is
> > POST an XML request from the ASP to the SOAP Server.
> > Now my question is : Technically (rather by principle ) it should work..
the
> > soap server should send a response back as long as the request is in a
> > proper format.
> > But it doesnt !
> > Have any of you successfully communicated to Apache SOAP from a ASP ?
> > If so  could you please share your thoughts.
> > Any suggestions are welcome as I am desperate !!!
> >
> > Thanxs in advance,
> > Naggi
> >
> >
> >
> >
>
>


Sockets Worked !

Posted by Naggi Rao <na...@softhome.net>.
Thanxs all.
The java sockets client worked fine ..
I guess I would try to test it with a COM Sockets in ASP

Cheer.
Naggi
:)

----- Original Message -----
From: "Scott Nichol" <sn...@computer.org>
To: <so...@xml.apache.org>
Sent: Wednesday, April 25, 2001 10:18 AM
Subject: Re: Please Help !!!!!!!!!


> Yes, it should work.  Many of us have found that the best way to debug
SOAP is to use
> the TcpTunnelGui application that is part of the Apache SOAP distribution.
The
> application acts as a relay at the TCP port level and displays the data
going each
> direction.
>
> I am curious, are you using COM objects from the SOAP Toolkit, or are you
manually
> creating the HTTP request, SOAP envelope, etc.?
>
> Scott
>
> ----- Original Message -----
> From: "Naggi Rao" <na...@softhome.net>
> To: <so...@xml.apache.org>
> Sent: Wednesday, April 25, 2001 12:43 PM
> Subject: Please Help !!!!!!!!!
>
>
> > Hi all,
> > We are trying to communicate from a ASP to Apache's Soap Engine (on
Weblogic
> > Server)
> > I am trying to establish a prrof of concept here and all I am tryin to
do is
> > POST an XML request from the ASP to the SOAP Server.
> > Now my question is : Technically (rather by principle ) it should work..
the
> > soap server should send a response back as long as the request is in a
> > proper format.
> > But it doesnt !
> > Have any of you successfully communicated to Apache SOAP from a ASP ?
> > If so  could you please share your thoughts.
> > Any suggestions are welcome as I am desperate !!!
> >
> > Thanxs in advance,
> > Naggi
> >
> >
> >
> >
>
>


Re: setting system properties

Posted by Scott Nichol <sn...@computer.org>.
The javadoc for DocumentBuilderFactory#newInstance says:

This method uses the following ordered lookup procedure to determine the
DocumentBuilderFactory implementation class to load:
    o Use the javax.xml.parsers.DocumentBuilderFactory system property.
    o Use the properties file "lib/jaxp.properties" in the JRE directory. This
configuration file is in standard java.util.Properties format and contains the fully
qualified name of the implementation class with the key being the system property
defined above.
    o Use the Services API (as detailed in the JAR specification), if available, to
determine the classname. The Services API will look for a classname in the file
META-INF/services/javax.xml.parsers.DocumentBuilderFactory in jars available to the
runtime.
    o Platform default DocumentBuilderFactory instance.

----- Original Message -----
From: "Adnan Fida" <af...@point2.com>
To: <so...@xml.apache.org>
Sent: Wednesday, April 25, 2001 1:21 PM
Subject: setting system properties


> This question has less to do with SOAP but I was unable to find any other
> place to ask this question.
>
> Currently I am using JAXP and have two XML parsers (Xerces and Crimson). My
> application defaults to Crimson where I want it to use Xerces. After going
> through JAXP FAQ I found out that there is a system property that can be set
> to control underlying parser implementation.
>
> Does anyone would know the name and value of that property.
>
> I would really appreciate any help.
>
> Adnan
>
> -----Original Message-----
> From: Scott Nichol [mailto:snichol@computer.org]
> Sent: Wednesday, April 25, 2001 11:19 AM
> To: soap-dev@xml.apache.org
> Subject: Re: Please Help !!!!!!!!!
>
>
> Yes, it should work.  Many of us have found that the best way to debug SOAP
> is to use
> the TcpTunnelGui application that is part of the Apache SOAP distribution.
> The
> application acts as a relay at the TCP port level and displays the data
> going each
> direction.
>
> I am curious, are you using COM objects from the SOAP Toolkit, or are you
> manually
> creating the HTTP request, SOAP envelope, etc.?
>
> Scott
>
> ----- Original Message -----
> From: "Naggi Rao" <na...@softhome.net>
> To: <so...@xml.apache.org>
> Sent: Wednesday, April 25, 2001 12:43 PM
> Subject: Please Help !!!!!!!!!
>
>
> > Hi all,
> > We are trying to communicate from a ASP to Apache's Soap Engine (on
> Weblogic
> > Server)
> > I am trying to establish a prrof of concept here and all I am tryin to do
> is
> > POST an XML request from the ASP to the SOAP Server.
> > Now my question is : Technically (rather by principle ) it should work..
> the
> > soap server should send a response back as long as the request is in a
> > proper format.
> > But it doesnt !
> > Have any of you successfully communicated to Apache SOAP from a ASP ?
> > If so  could you please share your thoughts.
> > Any suggestions are welcome as I am desperate !!!
> >
> > Thanxs in advance,
> > Naggi
> >
> >
> >
> >
>
>
>


setting system properties

Posted by Adnan Fida <af...@point2.com>.
This question has less to do with SOAP but I was unable to find any other
place to ask this question.

Currently I am using JAXP and have two XML parsers (Xerces and Crimson). My
application defaults to Crimson where I want it to use Xerces. After going
through JAXP FAQ I found out that there is a system property that can be set
to control underlying parser implementation.

Does anyone would know the name and value of that property.

I would really appreciate any help.

Adnan

-----Original Message-----
From: Scott Nichol [mailto:snichol@computer.org]
Sent: Wednesday, April 25, 2001 11:19 AM
To: soap-dev@xml.apache.org
Subject: Re: Please Help !!!!!!!!!


Yes, it should work.  Many of us have found that the best way to debug SOAP
is to use
the TcpTunnelGui application that is part of the Apache SOAP distribution.
The
application acts as a relay at the TCP port level and displays the data
going each
direction.

I am curious, are you using COM objects from the SOAP Toolkit, or are you
manually
creating the HTTP request, SOAP envelope, etc.?

Scott

----- Original Message -----
From: "Naggi Rao" <na...@softhome.net>
To: <so...@xml.apache.org>
Sent: Wednesday, April 25, 2001 12:43 PM
Subject: Please Help !!!!!!!!!


> Hi all,
> We are trying to communicate from a ASP to Apache's Soap Engine (on
Weblogic
> Server)
> I am trying to establish a prrof of concept here and all I am tryin to do
is
> POST an XML request from the ASP to the SOAP Server.
> Now my question is : Technically (rather by principle ) it should work..
the
> soap server should send a response back as long as the request is in a
> proper format.
> But it doesnt !
> Have any of you successfully communicated to Apache SOAP from a ASP ?
> If so  could you please share your thoughts.
> Any suggestions are welcome as I am desperate !!!
>
> Thanxs in advance,
> Naggi
>
>
>
>




Re: Please Help !!!!!!!!!

Posted by Scott Nichol <sn...@computer.org>.
Yes, it should work.  Many of us have found that the best way to debug SOAP is to use
the TcpTunnelGui application that is part of the Apache SOAP distribution.  The
application acts as a relay at the TCP port level and displays the data going each
direction.

I am curious, are you using COM objects from the SOAP Toolkit, or are you manually
creating the HTTP request, SOAP envelope, etc.?

Scott

----- Original Message -----
From: "Naggi Rao" <na...@softhome.net>
To: <so...@xml.apache.org>
Sent: Wednesday, April 25, 2001 12:43 PM
Subject: Please Help !!!!!!!!!


> Hi all,
> We are trying to communicate from a ASP to Apache's Soap Engine (on Weblogic
> Server)
> I am trying to establish a prrof of concept here and all I am tryin to do is
> POST an XML request from the ASP to the SOAP Server.
> Now my question is : Technically (rather by principle ) it should work.. the
> soap server should send a response back as long as the request is in a
> proper format.
> But it doesnt !
> Have any of you successfully communicated to Apache SOAP from a ASP ?
> If so  could you please share your thoughts.
> Any suggestions are welcome as I am desperate !!!
>
> Thanxs in advance,
> Naggi
>
>
>
>


Please Help !!!!!!!!!

Posted by Naggi Rao <na...@softhome.net>.
Hi all,
We are trying to communicate from a ASP to Apache's Soap Engine (on Weblogic
Server)
I am trying to establish a prrof of concept here and all I am tryin to do is
POST an XML request from the ASP to the SOAP Server.
Now my question is : Technically (rather by principle ) it should work.. the
soap server should send a response back as long as the request is in a
proper format.
But it doesnt !
Have any of you successfully communicated to Apache SOAP from a ASP ?
If so  could you please share your thoughts.
Any suggestions are welcome as I am desperate !!!

Thanxs in advance,
Naggi