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 pb...@fourthstage.com on 2001/02/28 18:36:45 UTC

soap installation

Hello,
I try run tomcat.bat file,it  gives the following error.

Context log: path="/examples" Adding context path="/examples"
docBase="webapps/ 
examples" 
Set debug to 1 
Starting tomcat. Check logs/tomcat.log for error messages Context log:
path="" A 
dding context path="" docBase="webapps/ROOT" 
Context log: path="/test" Adding context path="/test" docBase="webapps/test"

Context log: path="/soap" Adding context path="/soap"
docBase="C:\soap-2_1\weba 
pps\soap" 
Starting tomcat install="c:\jakarta-tomcat" home="C:\jakarta-tomcat"
classPath=" 
c:\xerces-1_3_0\xerces.jar;c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\w
ebse 
rver.jar;c:\jakarta-tomcat\lib\jasper.jar;c:\jakarta-tomcat\lib\xml.jar;c:\j
akar 
ta-tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar;c:\xerces-1_3_0\xerces.jar
;c:\ 
jdk1.3\lib;c:\jdk1.3\bin;.;..;c:\jdk1.3\lib\dt.jar;c:\jdk1.3\lib\tools.jar;c
:\so 
ap-2_1;c:\soap-2_1\lib\soap.jar;c:\soap-2_1\lib\xmisoap.jar" 
XmlMapper: Can't find method setDescription in Wrapper(rpcrouter null) CLASS
class org.apache.tomcat.core.ServletWrapper


When I try to open admin page(list.jsp,deploy.jsp and undeploy.jsp) on the
browser
I ger error messages like

Deploy a Service
Error: 500
Location: /soap/admin/deploy.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
	at
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
seFacade.java:157)
	at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)
can anyone help me on this?

Thanks for any help.
Babu.


Re: Passing Objects Problem

Posted by Steven Geach <St...@elata.com>.
Hi

Its all in the examples as per the tutorial you are working through.
Basically the registry needs the Invoice type set like this:

// prepare the mapping registry
     SOAPMappingRegistry registry = new SOAPMappingRegistry();
     QName qname = new QName( "urn:my_encoding", "Invoice" );
     BeanSerializer serializer = new BeanSerializer();
     registry.mapTypes( Constants.NS_URI_SOAP_ENC, qname, Invoice.class,
serializer, serializer );

That allows the SOAP server to work with type Invoices.

You probably have a typo somewhere.

Cheers

Steve



Virat Aggarwal wrote:
> 
> Thnx for ur help, but could you please guide me as to how to setup soap
> registry? I am a newbie to all this
> 
> Thnx
> 
> ----- Original Message -----
> From: "Steven Geach" <St...@elata.com>
> To: <so...@xml.apache.org>
> Sent: Monday, March 05, 2001 4:06 PM
> Subject: Re: Passing Objects Problem
> 
> > Hi
> >
> > Have you set up the Soap Registry correctly? As the message seems to
> > indicate that it does not know about Objects of type Invoice.
> >
> > Steve
> >
> > Virat Aggarwal wrote:
> > >
> > > Hi,
> > >
> > > I was trying to run the sample program given on the following link:
> > >
> > > http://www-106.ibm.com/developerworks/library/ws-peer3/?dwzone=ws
> > >
> > > This has an example of how objects can be passed using SOAP. I have used
> the
> > > exact same setup as mentioned on the link. When I try the code under
> Passing
> > > Objects section, I get the following output:
> > >
> > > HTTP/1.0 400 Bad Request
> > > Content-Type: text/xml; charset=UTF-8
> > > Content-Length: 520
> > > Set-Cookie2: JSESSIONID=56g8qeg9h1;Version=1;Discard;Path="/soap"
> > > Set-Cookie: JSESSIONID=56g8qeg9h1;Path=/soap
> > > Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
> 1.3.0;
> > > Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> > >
> > > <SOAP-ENV:Envelope
> > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > > <SOAP-ENV:Body>
> > > <SOAP-ENV:Fault>
> > > <faultcode>SOAP-ENV:Client</faultcode>
> > > <faultstring>No Deserializer found to deserialize a
> > > 'urn:my_encoding:Invoice' using encoding style
> > > 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> > > <faultactor>/soap/servlet/rpcrouter</faultactor>
> > > </SOAP-ENV:Fault>
> > > </SOAP-ENV:Body>
> > > </SOAP-ENV:Envelope>
> > >
> > > Could anybody suggest why this is happening?
> > > Any help would be appreciated!
> > >
> > > Thanks
> >
> > --
> > Steven Geach
> > Java Engineer
> >

-- 
Steven Geach
Java Engineer

Re: Passing Objects Problem

Posted by Virat Aggarwal <vi...@softhome.net>.
Thnx for ur help, but could you please guide me as to how to setup soap
registry? I am a newbie to all this

Thnx

----- Original Message -----
From: "Steven Geach" <St...@elata.com>
To: <so...@xml.apache.org>
Sent: Monday, March 05, 2001 4:06 PM
Subject: Re: Passing Objects Problem


> Hi
>
> Have you set up the Soap Registry correctly? As the message seems to
> indicate that it does not know about Objects of type Invoice.
>
> Steve
>
> Virat Aggarwal wrote:
> >
> > Hi,
> >
> > I was trying to run the sample program given on the following link:
> >
> > http://www-106.ibm.com/developerworks/library/ws-peer3/?dwzone=ws
> >
> > This has an example of how objects can be passed using SOAP. I have used
the
> > exact same setup as mentioned on the link. When I try the code under
Passing
> > Objects section, I get the following output:
> >
> > HTTP/1.0 400 Bad Request
> > Content-Type: text/xml; charset=UTF-8
> > Content-Length: 520
> > Set-Cookie2: JSESSIONID=56g8qeg9h1;Version=1;Discard;Path="/soap"
> > Set-Cookie: JSESSIONID=56g8qeg9h1;Path=/soap
> > Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.0;
> > Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> >
> > <SOAP-ENV:Envelope
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > <SOAP-ENV:Body>
> > <SOAP-ENV:Fault>
> > <faultcode>SOAP-ENV:Client</faultcode>
> > <faultstring>No Deserializer found to deserialize a
> > 'urn:my_encoding:Invoice' using encoding style
> > 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> > <faultactor>/soap/servlet/rpcrouter</faultactor>
> > </SOAP-ENV:Fault>
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
> > Could anybody suggest why this is happening?
> > Any help would be appreciated!
> >
> > Thanks
>
> --
> Steven Geach
> Java Engineer
>


Re: Passing Objects Problem

Posted by Steven Geach <St...@elata.com>.
Hi

Have you set up the Soap Registry correctly? As the message seems to
indicate that it does not know about Objects of type Invoice.

Steve

Virat Aggarwal wrote:
> 
> Hi,
> 
> I was trying to run the sample program given on the following link:
> 
> http://www-106.ibm.com/developerworks/library/ws-peer3/?dwzone=ws
> 
> This has an example of how objects can be passed using SOAP. I have used the
> exact same setup as mentioned on the link. When I try the code under Passing
> Objects section, I get the following output:
> 
> HTTP/1.0 400 Bad Request
> Content-Type: text/xml; charset=UTF-8
> Content-Length: 520
> Set-Cookie2: JSESSIONID=56g8qeg9h1;Version=1;Discard;Path="/soap"
> Set-Cookie: JSESSIONID=56g8qeg9h1;Path=/soap
> Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0;
> Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> 
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Client</faultcode>
> <faultstring>No Deserializer found to deserialize a
> 'urn:my_encoding:Invoice' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> <faultactor>/soap/servlet/rpcrouter</faultactor>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> Could anybody suggest why this is happening?
> Any help would be appreciated!
> 
> Thanks

-- 
Steven Geach
Java Engineer

BeanSerializer Example

Posted by Virat Aggarwal <vi...@softhome.net>.
Are there any beanserializer examples around???



Passing Objects Problem

Posted by Virat Aggarwal <vi...@softhome.net>.
Hi,

I was trying to run the sample program given on the following link:

http://www-106.ibm.com/developerworks/library/ws-peer3/?dwzone=ws

This has an example of how objects can be passed using SOAP. I have used the
exact same setup as mentioned on the link. When I try the code under Passing
Objects section, I get the following output:

HTTP/1.0 400 Bad Request
Content-Type: text/xml; charset=UTF-8
Content-Length: 520
Set-Cookie2: JSESSIONID=56g8qeg9h1;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=56g8qeg9h1;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0;
Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>No Deserializer found to deserialize a
'urn:my_encoding:Invoice' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Could anybody suggest why this is happening?
Any help would be appreciated!

Thanks



Personal Java Apache Soap

Posted by Virat Aggarwal <vi...@softhome.net>.
Will Apache Soap work in Personal Java??? I mean if the client runs personal
java will it be able to send RPC requests to the apache soap server


Re: SOAP Kxml CLDC MIDP

Posted by Wouter Cloetens <wo...@mind.be>.
That's an interesting idea. Try the kvm-interest mailing list.

The CLDC API is severely restricted. It could never run the Apache-SOAP code the way it
is. However, the basic functionality required to perform HTTP post requests is there,
a SOAP request need only be a string, and the kxml parser can probably help in parsing
out the response. Not nearly as easy to do as using Apache-SOAP's rich functionality,
but I suspect that you typically don't need a very rich and generic API on an embedded
system/PDA/mobile phone; just something simple with a small footprint that will support
a very limited set of remote services.

Are you volunteering for an open source SOAP for embedded devices project? ;-)

bfn, Wouter

On Thu, Mar 01, 2001 at 02:00:18AM +0800, Virat Aggarwal wrote:
> Hi, 
> 
> Is there a soap implementation for CLDM/MIDP based devices. I found Kxml parser which can be used with CLDC from www.enhydra.com
> 
> If there is no such implementation, can somebody suggest any alternatives.
> 
> Thanks

SOAP Kxml CLDC MIDP

Posted by Virat Aggarwal <vi...@softhome.net>.
soap installationHi, 

Is there a soap implementation for CLDM/MIDP based devices. I found Kxml parser which can be used with CLDC from www.enhydra.com

If there is no such implementation, can somebody suggest any alternatives.

Thanks
  ----- Original Message ----- 
  From: pbritto@fourthstage.com 
  To: soap-dev@xml.apache.org 
  Sent: Thursday, March 01, 2001 1:36 AM
  Subject: soap installation


  Hello, 
  I try run tomcat.bat file,it  gives the following error. 

  Context log: path="/examples" Adding context path="/examples" docBase="webapps/
  examples"
  Set debug to 1
  Starting tomcat. Check logs/tomcat.log for error messages Context log: path="" A
  dding context path="" docBase="webapps/ROOT"
  Context log: path="/test" Adding context path="/test" docBase="webapps/test"
  Context log: path="/soap" Adding context path="/soap" docBase="C:\soap-2_1\weba
  pps\soap" 
  Starting tomcat install="c:\jakarta-tomcat" home="C:\jakarta-tomcat" classPath="
  c:\xerces-1_3_0\xerces.jar;c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\webse
  rver.jar;c:\jakarta-tomcat\lib\jasper.jar;c:\jakarta-tomcat\lib\xml.jar;c:\jakar
  ta-tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar;c:\xerces-1_3_0\xerces.jar;c:\
  jdk1.3\lib;c:\jdk1.3\bin;.;..;c:\jdk1.3\lib\dt.jar;c:\jdk1.3\lib\tools.jar;c:\so
  ap-2_1;c:\soap-2_1\lib\soap.jar;c:\soap-2_1\lib\xmisoap.jar"
  XmlMapper: Can't find method setDescription in Wrapper(rpcrouter null) CLASS class org.apache.tomcat.core.ServletWrapper



  When I try to open admin page(list.jsp,deploy.jsp and undeploy.jsp) on the browser 
  I ger error messages like 

  Deploy a Service 
  Error: 500 
  Location: /soap/admin/deploy.jsp 
  Internal Servlet Error: 
  java.lang.IllegalStateException: Response has already been committed 
          at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157) 
          at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299) 
          at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377) 
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
          at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) 
          at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) 
          at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) 
          at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) 
          at java.lang.Thread.run(Unknown Source) 
  can anyone help me on this? 

  Thanks for any help. 
  Babu.