Re: Errors on execution of ServiceManagerClient

"Scott Nichol" <[email protected]>
Newsgroups gmane.text.xml.soap.devel
Message-ID <075e01c38736$e3aebfd0$6401a8c0@northgate>
Tomcat is throwing an exception for

java.lang.NoClassDefFoundError: javax/activation/MimeTypeParseException

That class should be in activation.jar.  Tomcat 4 ships with an activation.jar in a common directory.  Does Tomcat 5 do the same?

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.

----- Original Message ----- 
From: "CHALISSARY DAVID" <[email protected]>
To: <[email protected]>
Sent: Tuesday, September 30, 2003 4:52 AM
Subject: Re: Errors on execution of ServiceManagerClient 


> Hi all, 
> 
>  
> 
> I am running the ServiceManagerClient to see if the installation is correct,
> when I connect using the browser I am getting 
> 
> the message as was expected but when I execute on the command line I get an
> error as mentioned below
> 
> The error is about the response being in text/html instead of the text/xml. 
> 
> I had dropped the war file in the Tomcats web-app directory and I don't have
> an explicit web-server ahead of Tomcat
> 
> Is there anything wrong in the installation process or is there any more
> that needs to be done??
> 
>  
> 
> I am not a member of the mailing list, could somebody who have encountered
> similar problem post the reply to my 
> 
> e-mail account [email protected]
> <mailto:[email protected]> 
> 
>  
> 
> Regards and thanks in advance.....
> 
>  
> 
> The stack trace after the execution.....
> 
>  
> 
> C:\soap-2_3_1>java -classpath
> C:\soap-2_3_1\lib\soap.jar;C:\soap-2_3_1\lib\mail.
> 
> jar;C:\soap-2_3_1\lib\activation.jar
> org.apache.soap.server.ServiceManagerClient
> 
>  http://localhost:8080/soap/servlet/rpcrouter list
> 
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
> msg=Unsu
> 
> pported response content type &quot;text/html; charset=ISO-8859-1&quot;,
> must be
> 
> : &quot;text/xml&quot;. Response was:
> 
>  
> 
> &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.0.12 - Error
> report&lt;/title&gt;&lt;style&gt;&lt;!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;ba
> 
> ckground-color:#525D76;font-size:22px;} H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:16px;} H3 {font-family:Tahoma,Ari
> 
> al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
> {font-famil
> 
> y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
> 12px;}A {color :
> 
> black;}HR {color : #525D76;}--&gt;&lt;/style&gt;
> &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 500 - &lt;/h1&gt;&lt;HR
> size=&quot;1&quot; noshade&gt;&lt;p&gt;&
> 
> lt;b&gt;type&lt;/b&gt; Exception
> report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt;
> &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&
> 
> gt;The server encountered an internal error () that prevented it from
> fulfilling this
> request.&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;exception&lt;/b&gt; &lt;pre&
> 
>  gt;javax.servlet.ServletException: Servlet execution threw an exception
> &lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;root cause&lt;/b&gt; &lt;pre&gt;
> 
>  
> 
> java.lang.NoClassDefFoundError: javax/activation/MimeTypeParseException
> 
>  
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
> 
>  a:286)
> 
>          javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 
>          javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
>  &lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;note&lt;/b&gt; &lt;u&gt;The full
> stack t
> 
>  race of the root cause is available in the Tomcat
> logs.&lt;/u&gt;&lt;/p&gt;&lt;H
> 
>  R size=&quot;1&quot; noshade&gt;&lt;h3&gt;Apache
> Tomcat/5.0.12&lt;/h3&gt;&lt;/bo
> 
>  dy&gt;&lt;/html&gt;
> 
>  ]
> 
>          at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
> 
>          at org.apache.soap.rpc.Call.invoke(Call.java:255)
> 
>          at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> 
>  erClient.java:129)
> 
>          at
> org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient
> 
>  .java:151)
> 
>         at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> 
>  
> 
> ----------------------------------------------------------------------
> 
> David Chalissary
> 
> Software Developer
> 
>  <mailto:[email protected]> mailto:[email protected] 
> 
> This e-mail contains confidential information and is for the exclusive use
> of the addressee/s.  If you are not the addressee, then any distribution,
> copying or use of this e-mail is prohibited.  If received in error, please
> advise the sender and delete it immediately.  We accept no liability for any
> loss or damage suffered by any person arising from use of this e-mail.
> 
>  
> 
>  
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.