Re: SOAP Error
Hey Scott, I solved my problem.It is class path problem. I corrected my classpath and it is running now. Thanx a lot for your great help..You really helped me to get rid of that big stack trace. Regards, Vijay Vijay Shinde wrote: > Hey Scott, > I got rid of the white space Now i am getting following error. > > C:\soap-2_3\samples\hello>java Example1_client > http://localhost:8080/soap/servle > t/rpcrouter "vijay" > > Calling the SOAP Server to say hello > > The SOAP Server says: http://localhost:8080/soap/servlet/rpcrouter > Ouch, the call failed: > Fault Code = SOAP-ENV:Server.BadTargetObjectURI > Fault String = Unable to resolve target object: samples.Hello > > Vijay > > Scott Nichol wrote: > > > First, a guess. Does your deployment descriptor include white space in > > the specification of the fault listener? The following might cause an > > error like you observe: > > > > > > org.apache.soap.server.DOMFaultListener > > > > If you do have white space, get rid of it like: > > > > org.apache.soap.server.DOMFaultListener > tener> > > > > Second, if this is not your problem, you may want to grab a nightly > > build at http://cvs.apache.org/dist/soap/nightly/, as it may have fixed > > your problem, and if not, it is likely to report it in a more meaningful > > way. > > > > Scott Nichol > > - Original Message - > > From: "Vijay Shinde" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Tuesday, December 31, 2002 1:08 PM > > Subject: SOAP Error > > > > > > > > Hey Scott, > > > > > > I get this as an exception > > > C:\soap-2_3\samples\hello>java Example1_client > > > http://localhost:8080/soap/servle > > > t/rpcrouter "vv" > > > > > > > > > Calling the SOAP Server to say hello > > > > > > > > > The SOAP Server says: > > http://localhost:8080/soap/servlet/rpcrouterException > > > in t > > > hread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; > > msg=Unsupported > > > respon > > > se content type "text/html", must be: "text/xml". > > > Response w > > > as: > > >Apache Tomcat/4.0.4 - Error > > > report > > e> > > > Apach > > > e Tomcat/4.0.4 - HTTP Status 500 - Internal Server > > Error
> > size=& > > > quot;1" noshade>type Exception > > > report
> > gt;message Internal Server > > > Error& > > > lt;/p>
description The server > > > encountered > > > an internal error (Internal Server Error) that prevented it from > > fulfilling > > > thi > > > s request.
exception > > >
j > > > avax.servlet.ServletException: Error building response envelope: > > > java.lang.NullP > > > ointerException > > > at > > > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet. > > > java:418) > > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > > icationFilterChain.java:247) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > > ilterChain.java:193) > > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > > alve.java:243) > > > at > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > .java:566) > > > at > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > a:472) > > > at > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > > > > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > > alve.java:190) > > > at > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > .java:566) > > > at > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > a:472) > > > at > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > > > > > at > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java: > > > 2347) > > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > > ava:180) > > > at > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > .java:566) > > > at > > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche > > > rValve.java:170) > > > at > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > .java:564) > > > at > > > org.apache.catalina.valves.ErrorRepo
Re: SOAP Error
Hey Scott, I got rid of the white space Now i am getting following error. C:\soap-2_3\samples\hello>java Example1_client http://localhost:8080/soap/servle t/rpcrouter "vijay" Calling the SOAP Server to say hello The SOAP Server says: http://localhost:8080/soap/servlet/rpcrouter Ouch, the call failed: Fault Code = SOAP-ENV:Server.BadTargetObjectURI Fault String = Unable to resolve target object: samples.Hello Vijay Scott Nichol wrote: > First, a guess. Does your deployment descriptor include white space in > the specification of the fault listener? The following might cause an > error like you observe: > > > org.apache.soap.server.DOMFaultListener > > If you do have white space, get rid of it like: > > org.apache.soap.server.DOMFaultListener tener> > > Second, if this is not your problem, you may want to grab a nightly > build at http://cvs.apache.org/dist/soap/nightly/, as it may have fixed > your problem, and if not, it is likely to report it in a more meaningful > way. > > Scott Nichol > - Original Message - > From: "Vijay Shinde" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, December 31, 2002 1:08 PM > Subject: SOAP Error > > > > > Hey Scott, > > > > I get this as an exception > > C:\soap-2_3\samples\hello>java Example1_client > > http://localhost:8080/soap/servle > > t/rpcrouter "vv" > > > > > > Calling the SOAP Server to say hello > > > > > > The SOAP Server says: > http://localhost:8080/soap/servlet/rpcrouterException > > in t > > hread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; > msg=Unsupported > > respon > > se content type "text/html", must be: "text/xml". > > Response w > > as: > >Apache Tomcat/4.0.4 - Error > > report > e> > > Apach > > e Tomcat/4.0.4 - HTTP Status 500 - Internal Server > Error
> size=& > > quot;1" noshade>type Exception > > report
> gt;message Internal Server > > Error& > > lt;/p>
description The server > > encountered > > an internal error (Internal Server Error) that prevented it from > fulfilling > > thi > > s request.
exception > >
j > > avax.servlet.ServletException: Error building response envelope: > > java.lang.NullP > > ointerException > > at > > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet. > > java:418) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > icationFilterChain.java:247) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > ilterChain.java:193) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > alve.java:243) > > at > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > .java:566) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > a:472) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > alve.java:190) > > at > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > .java:566) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > a:472) > > at > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > > > at > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java: > > 2347) > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > ava:180) > > at > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > .java:566) > > at > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche > > rValve.java:170) > > at > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > .java:564) > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > > ava:170) > > at > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > .java:564) > > at > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: > > 468) > > at > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > .java:564) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > a:472) > > at > > org.apache.catalina.core.ContainerBase.invoke(C
Re: SOAP Error
First, a guess. Does your deployment descriptor include white space in the specification of the fault listener? The following might cause an error like you observe: org.apache.soap.server.DOMFaultListener If you do have white space, get rid of it like: org.apache.soap.server.DOMFaultListener Second, if this is not your problem, you may want to grab a nightly build at http://cvs.apache.org/dist/soap/nightly/, as it may have fixed your problem, and if not, it is likely to report it in a more meaningful way. Scott Nichol - Original Message - From: "Vijay Shinde" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 31, 2002 1:08 PM Subject: SOAP Error > > Hey Scott, > > I get this as an exception > C:\soap-2_3\samples\hello>java Example1_client > http://localhost:8080/soap/servle > t/rpcrouter "vv" > > > Calling the SOAP Server to say hello > > > The SOAP Server says: http://localhost:8080/soap/servlet/rpcrouterException > in t > hread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported > respon > se content type "text/html", must be: "text/xml". > Response w > as: >Apache Tomcat/4.0.4 - Error > report e> > Apach > e Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
size=& > quot;1" noshade>type Exception > report
gt;message Internal Server > Error& > lt;/p>
description The server > encountered > an internal error (Internal Server Error) that prevented it from fulfilling > thi > s request.
exception >
j > avax.servlet.ServletException: Error building response envelope: > java.lang.NullP > ointerException > at > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet. > java:418) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > icationFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > ilterChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > alve.java:243) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:566) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > a:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > alve.java:190) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:566) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > a:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java: > 2347) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > ava:180) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:566) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche > rValve.java:170) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:564) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > ava:170) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:564) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: > 468) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:564) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > a:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > ve.java:174) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > .java:566) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > a:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > at > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso > r.java:1027) > at > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja > va:1125) > at java.lang.Thread.run(Thread.java:479) >
noshade> l> > ] > at org.apache.soa
Re: SOAP Error
Tobias, I do the same developpment and i had your problem. I correct it install Fop package in the Tomcat Directory (in jakarta\soap\Web-inf\classes to my case) Marina - Original Message - From: "Tobias Mueller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 12:51 AM Subject: SOAP Error > Hi! > > I'm trying to develop a WebService which generates a certain PDF file (via > FOP / Tomcat 4.0.3). The WebService is basically a bean, which Publish() > tries to do the generation. The XML and XSL File is available on the > Server. But I always receive this message: > > Fault Code = SOAP-ENV:Server.Exception: > Fault String = org/apache/fop/apps/InputHandler > > The SourceCode is the following: > > ackage Publishing; > > import java.io.*; > import java.util.*; > > import org.xml.sax.InputSource; > import org.xml.sax.XMLReader; > > import org.apache.fop.apps.Driver; > import org.apache.fop.apps.Version; > import org.apache.fop.apps.InputHandler; > import org.apache.fop.apps.XSLTInputHandler; > > import org.apache.log.*; > > public class generatePDF { > > public void Publish(String XMLfile, String XSLfile, String outFile) throws > Exception { > > File MyXMLfile = new File(XMLfile); > File MyXSLfile = new File(XSLfile); > > try { > > Driver driver = new Driver(); > driver.setRenderer(Driver.RENDER_PDF); > InputHandler inputHandler = new XSLTInputHandler(MyXMLfile, MyXSLfile); > XMLReader parser = inputHandler.getParser(); > driver.setOutputStream(new FileOutputStream(outFile)); > driver.render(parser, inputHandler.getInputSource()); > > } catch (Exception ex) { > > System.out.println(ex); > > } > > //return "built " + outFile; > } > > }
RE: SOAP error with sample addressbook
Hi, Is the location of your classes given in the classpath? And did you properly install the soap.war file into tomcat? You can check if the soap directory in tomcat is having the samples folder and all other classes of the samples.If not then the soap.war file is not deploed properly into tomcat or the problem is with classpath. Thanks, Jyothi -Original Message- From: Manu De Backer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 7:47 PM To: [EMAIL PROTECTED] Subject: SOAP error with sample addressbook I'm trying the SOAP addressbook sample. The server (TOMCAT v3.2, Windows = 2000) is properly installed. While executing the testit batch file I get = the following error: Fault String =3D Deployment error in SOAP service urn:AddressFetcher': = class name 'samples.addressbook.Address' could not be resolved: = samples.addressbook.Address What am I doing wrong. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: SOAP error with sample addressbook
it can only be a classpath problem. check that the current directory and the directory are in the system classpath as well as tomcat's classpath. > -- > From: Manu De Backer > Reply To: [EMAIL PROTECTED] > Sent: Wednesday, September 12, 2001 7:47 PM > To: [EMAIL PROTECTED] > Subject: SOAP error with sample addressbook > > I'm trying the SOAP addressbook sample. The server (TOMCAT v3.2, Windows = > 2000) is properly installed. While executing the testit batch file I get = > the following error: > > Fault String =3D Deployment error in SOAP service urn:AddressFetcher': = > class name 'samples.addressbook.Address' could not be resolved: = > samples.addressbook.Address > > What am I doing wrong. > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp >
RE: Soap error on new installation
note, the files are removed physically as well. I can successful triger a nice error message by making a typo in the method name. It'll tell me that the method name doesn't exist. -Original Message- From: pravin pachbhai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Re: Soap error on new installation SET CLASSPATH=C:\soap\samples\addressbook;c:\xerces\xerces.jar;%CLASSPATH% before running this example remove the jaxp.jar and parse.jar file from tomcat\lib folder. use the xerces1.4 or greater version. --- HariNam Singh <[EMAIL PROTECTED]> wrote: > Hi, > > I installed SOAP on Tomcat a few hours ago, and > still can't get my sample > service to run properly. > > As I saw lots of notes on XML parser, I made sure > that mine was in the > front. As it still didn't work, I got the latest > from jaxp. Then 1.4.1 > Xerces. Then 1.2.1 Xerces. Neither of those made it > work. Plus, the error > message totally undescript. See below, what the http > tunneling tool snaps > up: > > HTTP/1.0 500 Internal Server Error Content-Type: > text/xml; charset=utf-8 > Content-Length: 475 Set-Cookie2: > JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" > Set-Cookie: > JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: > Tomcat Web Server/3.2.2 > (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 > x86; java.vendor=Sun > Microsyste > 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:Server.Exception: > > org/apache/soap/rpc/RPCMessage > > /soap/servlet/rpcrouter > > ms Inc.) > > > > > > > > Here is the classpath > C:\javasoft\jakarta-tomcat-3.2.2\bin>startup > Setting your CLASSPATH statically. > > Using CLASSPATH: > c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- > 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 > \ima > p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar > ;c:\ > javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif > tmqp > lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ > jms. > jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j > net. > jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j > ta-s > pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ > 1_1/ > jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja > kart > a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j > ar;c > :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar > > Starting Tomcat in new window > > > I tried jdk 1.4.0 beta at first, and then switched > back to 1.3. > > I got a whole bunch of error messages earlier that > were related to the > deployed service, like that it couldn't find the > class, or my class used > some imports that were missing. Thus, I thought, I > was pretty close to > getting it work, when I got those resolved. > > > Thanks a lot, > HariNam Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com
RE: Soap error on new installation
Pravin, thank you for your prompt response. As the classpath attached to the original message shows, jaxp.jar and parse.jar are not present anymore. Also, xerces.jar was the first entry. Furthermore, I mentioned that I had tried Xerces 1.4.1 already without success. I had another engineer looking over it. It's getting frustrating... Any other suggestions? I'm just running out of ideas to try. HariNam -Original Message- From: pravin pachbhai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: Re: Soap error on new installation SET CLASSPATH=C:\soap\samples\addressbook;c:\xerces\xerces.jar;%CLASSPATH% before running this example remove the jaxp.jar and parse.jar file from tomcat\lib folder. use the xerces1.4 or greater version. --- HariNam Singh <[EMAIL PROTECTED]> wrote: > Hi, > > I installed SOAP on Tomcat a few hours ago, and > still can't get my sample > service to run properly. > > As I saw lots of notes on XML parser, I made sure > that mine was in the > front. As it still didn't work, I got the latest > from jaxp. Then 1.4.1 > Xerces. Then 1.2.1 Xerces. Neither of those made it > work. Plus, the error > message totally undescript. See below, what the http > tunneling tool snaps > up: > > HTTP/1.0 500 Internal Server Error Content-Type: > text/xml; charset=utf-8 > Content-Length: 475 Set-Cookie2: > JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" > Set-Cookie: > JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: > Tomcat Web Server/3.2.2 > (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 > x86; java.vendor=Sun > Microsyste > 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:Server.Exception: > > org/apache/soap/rpc/RPCMessage > > /soap/servlet/rpcrouter > > ms Inc.) > > > > > > > > Here is the classpath > C:\javasoft\jakarta-tomcat-3.2.2\bin>startup > Setting your CLASSPATH statically. > > Using CLASSPATH: > c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- > 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 > \ima > p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar > ;c:\ > javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif > tmqp > lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ > jms. > jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j > net. > jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j > ta-s > pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ > 1_1/ > jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja > kart > a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j > ar;c > :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar > > Starting Tomcat in new window > > > I tried jdk 1.4.0 beta at first, and then switched > back to 1.3. > > I got a whole bunch of error messages earlier that > were related to the > deployed service, like that it couldn't find the > class, or my class used > some imports that were missing. Thus, I thought, I > was pretty close to > getting it work, when I got those resolved. > > > Thanks a lot, > HariNam Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com
Re: Soap error on new installation
SET CLASSPATH=C:\soap\samples\addressbook;c:\xerces\xerces.jar;%CLASSPATH% before running this example remove the jaxp.jar and parse.jar file from tomcat\lib folder. use the xerces1.4 or greater version. --- HariNam Singh <[EMAIL PROTECTED]> wrote: > Hi, > > I installed SOAP on Tomcat a few hours ago, and > still can't get my sample > service to run properly. > > As I saw lots of notes on XML parser, I made sure > that mine was in the > front. As it still didn't work, I got the latest > from jaxp. Then 1.4.1 > Xerces. Then 1.2.1 Xerces. Neither of those made it > work. Plus, the error > message totally undescript. See below, what the http > tunneling tool snaps > up: > > HTTP/1.0 500 Internal Server Error Content-Type: > text/xml; charset=utf-8 > Content-Length: 475 Set-Cookie2: > JSESSIONID=g20woj32b1;Version=1;Discard;Path="/soap" > Set-Cookie: > JSESSIONID=g20woj32b1;Path=/soap Servlet-Engine: > Tomcat Web Server/3.2.2 > (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 > x86; java.vendor=Sun > Microsyste > 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:Server.Exception: > > org/apache/soap/rpc/RPCMessage > > /soap/servlet/rpcrouter > > ms Inc.) > > > > > > > > Here is the classpath > C:\javasoft\jakarta-tomcat-3.2.2\bin>startup > Setting your CLASSPATH statically. > > Using CLASSPATH: > c:\javasoft\xerces-1_2_1\xerces.jar;c:\javasoft\jakarta-tomcat- > 3.2.2\classes;c:\javasoft\jaf-1.0.1\activation.jar;;c:\javasoft\javamail-1.2 > \ima > p.jar;c:\javasoft\javamail-1.2\mailapi.jar;c:\javasoft\javamail-1.2\smtp.jar > ;c:\ > javasoft\javamail-1.2\mail.jar;c:\javasoft\javamail-1.2\pop3.jar;c:\dev\swif > tmqp > lay;c:\javasoft/swiftmq_2_1_1/jars/jcert.jar;c:\javasoft/swiftmq_2_1_1/jars/ > jms. > jar;c:\javasoft/swiftmq_2_1_1/jars/jndi.jar;c:\javasoft/swiftmq_2_1_1/jars/j > net. > jar;c:\javasoft/swiftmq_2_1_1/jars/jsse.jar;c:\javasoft/swiftmq_2_1_1/jars/j > ta-s > pec1.jar;c:\javasoft/swiftmq_2_1_1/jars/smqclient.jar;c:\javasoft/swiftmq_2_ > 1_1/ > jars/swiftmq.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\ant.jar;c:\javasoft\ja > kart > a-tomcat-3.2.2\lib\jasper.jar;c:\javasoft\jakarta-tomcat-3.2.2\lib\servlet.j > ar;c > :\javasoft\jakarta-tomcat-3.2.2\lib\webserver.jar > > Starting Tomcat in new window > > > I tried jdk 1.4.0 beta at first, and then switched > back to 1.3. > > I got a whole bunch of error messages earlier that > were related to the > deployed service, like that it couldn't find the > class, or my class used > some imports that were missing. Thus, I thought, I > was pretty close to > getting it work, when I got those resolved. > > > Thanks a lot, > HariNam Do You Yahoo!? For regular News updates go to http://in.news.yahoo.com
RE: Soap Error
No, I can see it fine. > -Original Message- > From: Jonathan Chawke [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 8:01 AM > To: [EMAIL PROTECTED] > Subject: Re: Soap Error > > > Hi Janesh, > > I've just looked and the page > [http://xml.apache.org/soap/faq/faq_chawke.html] seems to be > there so I can > only assume you have a network problem at your end. Is anyone > else having > problems seeing it? > > Here's the information anyway: > > 1.1 Help! I'm getting this error: "Element must contain > a:'faultcode' > element" > This is probably due to a bug in some newer releases of > Xerces (e.g. 1.3.1). > Try using Xerces 1.2.3 or 1.3.0 instead (on both the client > AND the server) > - have a look on http://xml.apache.org/dist/xerces-j/. You > should also make > sure that xerces.jar is the FIRST entry in your classpath. > > 1.2 Help! I'm getting this error: "Unable to resolve > namespace URI for > 'xsd'". > Ensure that: > (a) You are using Xerces 1.2.3 or 1.3.0 (but NOT 1.3.1) - on > both the client > and the server (if both are using Apache-SOAP). > (b) xerces.jar is the FIRST entry in your CLASSPATH, as > described in the > Apache-SOAP installation instructions. > (c) There is ONLY ONE version of xerces.jar in your CLASSPATH. > (d) There are no other XML parsers in your classpath. Some > people have > experienced this problem due to an early version of the JAXP > package hiding > in JAVA_HOME/jre/lib/ext. > > > Hope this helps, > Jonathan. > > >From: "Janesh Vasudeva" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > >Subject: Re: Soap Error > >Date: Thu, 21 Jun 2001 18:18:17 +0530 > > > >Hi > > > >i tried to open that page but nothing is visible , pls , if > u don't mind > >write me solution for problem > > > >Thanks in advance > >Janesh > >- Original Message - > >From: Jonathan Chawke <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Thursday, June 21, 2001 6:09 PM > >Subject: Re: Soap Error > > > > > > > See http://xml.apache.org/soap/faq/faq_chawke.html#Q1_1 > > > Jonathan. > > > > > > >From: "Janesh Vasudeva" <[EMAIL PROTECTED]> > > > >Reply-To: [EMAIL PROTECTED] > > > >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > > > >Subject: Soap Error > > > >Date: Thu, 21 Jun 2001 17:21:49 +0530 > > > > > > > >When running Calculator eg. , this error comes > > > > > > > >invoke service > > > > URL= http://localhost:7001/soap/servlet/rpcrouter > > > > URN =soap1 > > > >SOAPException= SOAP-ENV:Client, A > > > >'http://schemas.xmlsoap.org/soap/envelope/:Fau > > > >lt' element must contain a: 'faultcode' element. > > > > > > > > what to do? > > > > > > > >_ > > > > Get Your Private, Free E-mail from MSN Hotmail at > >http://www.hotmail.com. > > > > > > > __ > ___ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Soap Error
Hi Janesh, I've just looked and the page [http://xml.apache.org/soap/faq/faq_chawke.html] seems to be there so I can only assume you have a network problem at your end. Is anyone else having problems seeing it? Here's the information anyway: 1.1 Help! I'm getting this error: "Element must contain a:'faultcode' element" This is probably due to a bug in some newer releases of Xerces (e.g. 1.3.1). Try using Xerces 1.2.3 or 1.3.0 instead (on both the client AND the server) - have a look on http://xml.apache.org/dist/xerces-j/. You should also make sure that xerces.jar is the FIRST entry in your classpath. 1.2 Help! I'm getting this error: "Unable to resolve namespace URI for 'xsd'". Ensure that: (a) You are using Xerces 1.2.3 or 1.3.0 (but NOT 1.3.1) - on both the client and the server (if both are using Apache-SOAP). (b) xerces.jar is the FIRST entry in your CLASSPATH, as described in the Apache-SOAP installation instructions. (c) There is ONLY ONE version of xerces.jar in your CLASSPATH. (d) There are no other XML parsers in your classpath. Some people have experienced this problem due to an early version of the JAXP package hiding in JAVA_HOME/jre/lib/ext. Hope this helps, Jonathan. >From: "Janesh Vasudeva" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Re: Soap Error >Date: Thu, 21 Jun 2001 18:18:17 +0530 > >Hi > >i tried to open that page but nothing is visible , pls , if u don't mind >write me solution for problem > >Thanks in advance >Janesh >- Original Message ----- >From: Jonathan Chawke <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, June 21, 2001 6:09 PM >Subject: Re: Soap Error > > > > See http://xml.apache.org/soap/faq/faq_chawke.html#Q1_1 > > Jonathan. > > > > >From: "Janesh Vasudeva" <[EMAIL PROTECTED]> > > >Reply-To: [EMAIL PROTECTED] > > >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > > >Subject: Soap Error > > >Date: Thu, 21 Jun 2001 17:21:49 +0530 > > > > > >When running Calculator eg. , this error comes > > > > > >invoke service > > > URL= http://localhost:7001/soap/servlet/rpcrouter > > > URN =soap1 > > >SOAPException= SOAP-ENV:Client, A > > >'http://schemas.xmlsoap.org/soap/envelope/:Fau > > >lt' element must contain a: 'faultcode' element. > > > > > > what to do? > > > > >_ > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > > > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Soap Error
Hi i tried to open that page but nothing is visible , pls , if u don't mind write me solution for problem Thanks in advance Janesh - Original Message - From: Jonathan Chawke <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 6:09 PM Subject: Re: Soap Error > See http://xml.apache.org/soap/faq/faq_chawke.html#Q1_1 > Jonathan. > > >From: "Janesh Vasudeva" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > >Subject: Soap Error > >Date: Thu, 21 Jun 2001 17:21:49 +0530 > > > >When running Calculator eg. , this error comes > > > >invoke service > > URL= http://localhost:7001/soap/servlet/rpcrouter > > URN =soap1 > >SOAPException= SOAP-ENV:Client, A > >'http://schemas.xmlsoap.org/soap/envelope/:Fau > >lt' element must contain a: 'faultcode' element. > > > > what to do? > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. >
Re: Soap Error
See http://xml.apache.org/soap/faq/faq_chawke.html#Q1_1 Jonathan. >From: "Janesh Vasudeva" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Soap Error >Date: Thu, 21 Jun 2001 17:21:49 +0530 > >When running Calculator eg. , this error comes > >invoke service > URL= http://localhost:7001/soap/servlet/rpcrouter > URN =soap1 >SOAPException= SOAP-ENV:Client, A >'http://schemas.xmlsoap.org/soap/envelope/:Fau >lt' element must contain a: 'faultcode' element. > > what to do? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.