and of course because tomcat's servlet.jar had to be added thanks again Ram



[EMAIL PROTECTED]

09/05/2001 11:05 AM
Please respond to soap-user

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        RE: beginner question about samples included in SOAP install




well i finaly found the problem... each time i changed he classpath graphicaly (right cilck on my computer etc..) i was not changed on my dos prompt... really stupid in fact. sorry again

elise

--------------------------------------------
Lionbridge Technologies - France
www.lionbridge.com



[EMAIL PROTECTED]

09/05/2001 10:38 AM
Please respond to soap-user

       
       To:        [EMAIL PROTECTED]

       cc:        

       Subject:        RE: beginner question about samples included in SOAP install





thanks  Ram.

well all the errors i get where when i try to launch the testit.cmd file given with the sample StockQuote in this case (but it's the same with each sample). this command does this :


@echo off

echo This test assumes a server URL of http://localhost:8080/soap/servlet/rpcrouter

echo Deploying the stockquote service...

java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

echo .

echo Verify that it's there

java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list

echo .

echo Running the stockquote test

java samples.stockquote.GetQuote http://localhost:8080/soap/servlet/rpcrouter IBM

echo .

echo Undeploy it now

java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter undeploy urn:xmltoday-delayed-quotes

echo .

echo Verify that it's gone

java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list


so it seems that it runs the client correctly (like you said in your mail)

first i should deploy the service. the problem as i said is that if i try to deploy a service with the apache-soap admin client (in the browser) and click on deploy to deploy a new service i get an error like this :


Error: 500

Location: /soap/admin/deploy.jsp

Internal Servlet Error:

javax.servlet.ServletException

Root cause:

java.lang.NullPointerException



and if i try to do test the sample with the testit.cmd i do get the error given in my last mails :



Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu

pported response content type "text/html", must be: "text/xml". Response was:

<head><title>Error: 500</title></head>

<body>

<h1>Error: 500</h1>

<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br>

<pre>java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet


in Installation Instructions for Apache SOAP v2.2 they talk about two parts : client side instructions and server side instructions. and for each part there's a test to do.. the test for server side is simply to
Point your browser to: http://localhost:port/soap/servlet/rpcrouter  and it works fine.
the test for client side is to run the samples that came with the distribution. this part is the problem.


so as it still doesn't work i wonder if this problem could come from the JAPX i installed : Apache Xerces. Could a bad installation of Xerces cause this kind of error ? i also worked on the classpath during hours, because i thought it's a simple classpath problem... i put it here again, if someone can compare with its own classpath to tell me what's wrong... it would be great


C:\apache\jakarta-tomcat-3.3-m4\lib\common\servlet.jar;

C:\apache\soap-2_2;

C:\apache\xerces-1_4_3\xerces.jar;

C:\apache\soap-2_2\lib\soap.jar;

C:\jdk1.2.2;

C:\jdk1.2.2\bin;

C:\jdk1.2.2\lib\tools.jar;

C:\lib\javamail-1.2\mail.jar;

C:\lib\jaf-1.0.1\activation.jar;

C:\lib\bsf-2_2\lib\bsf.jar;

C:\lib\rhino1_5R2\js.jar


thanks again

Elise



"Ram, Kumar" <[EMAIL PROTECTED]>

09/05/2001 10:08 AM
Please respond to soap-user

       
      To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

      cc:        

      Subject:        RE: beginner question about samples included in SOAP install





Hi,

      I too am a beginner and came accross that problem. The problem was how i started/run the program.
For eg, when i start like this
D:\ram\soapeg>java samples.test.GetUser
http://localhost:8080 "seven"

I get the following error
Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type "tex
t/html", must be: "text/xml". Response was:
<head><title>Not Found (404)</title></head>
<body><h1>Not Found (404)</h1>
<b>Original request:</b> HTTP/1.0
<br><br>
<b>Not found request:</b> HTTP/1.0
</body>


However if you run the program giving the proper/entire url it should work.


D:\ram\soapeg>java samples.test.GetUser
http://localhost:8080/soap/servlet/rpcrouter "seven"

Ram

-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
Tuesday, September 04, 2001 10:22 PM
To:
[EMAIL PROTECTED]
Subject:
beginner question about samples included in SOAP install



hi all, I've for the first time installed apache, jakarta-tomcat-3.3-m4 ,  xerces 1.4.3 and SOAP 2.2. i think i have followed each install steps....

now to test if everything is okay i tried to launch any of the samples give with SOAP install... (for example : the calculator)


when i launch the testit.cmd i get this :


This test assumes a server URL of http://localhost:8080/soap/servlet/rpcrouter

Deploying the calculator service...

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu

pported response content type "text/html", must be: "text/xml". Response was:

<head><title>Error: 500</title></head>

<body>

<h1>Error: 500</h1>

<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br>

<pre>java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest: method

getSession()Ljavax/servlet/http/HttpSession; not found

     at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.

java, Compiled Code).........

   

its the same when i go under Apache-SOAP admin client and click on DEPLOY (to deploy a web service) i get always this error but returned in an other way :


JspFactoryImpl: Exception initializing page context - java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest: method getSession()Ljavax/servlet/http/HttpSession; not found


here is my classpath :

C:\apache\soap-2_2;

C:\apache\xerces-1_4_3\xerces.jar;

C:\apache\jakarta-tomcat-3.3-m4\webapps\Hello;

C:\apache\soap-2_2\lib\soap.jar;

C:\jdk1.2.2;

C:\jdk1.2.2\bin;

C:\jdk1.2.2\lib\tools.jar;

C:\lib\javamail-1.2\mail.jar;

C:\lib\jaf-1.0.1\activation.jar;

C:\lib\bsf-2_2\lib\bsf.jar;

C:\lib\rhino1_5R2\js.jar;


any idea ??

regards,

Elise




Reply via email to