Some of the usual class loading problems are

1. classpath for Tomcat changed in catalina.[sh|bat].  Since Tomcat 3.3, I believe, 
there has been no need to change the Tomcat startup script.

2. soap.jar in a directory that Tomcat will load.  It should not be deployed in the 
server.  All Apache SOAP classes must be accessed from the webapp (i.e. soap.war).

3. soap.jar in $JAVA_HOME/jre/lib/ext or $JAVA_HOME/lib/ext.  It is not a Java 
extension and should not be in either of those directories.

4. Required jars, such as the xml parser, activation or javamail in multiple 
locations, such as both in the server shared directory and the webapp directory.  
These should be in exactly one place.  I typically have them in the shared directory.  
These also should not be in the Java extension directories.

Before checking these things, do a jar -tvf activation.jar to confirm that it contains 
javax.activation.DataSource.  I don't know why it would not, but if it does not, you 
would, of course, need to obtain a version that does.

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: "'Scott Nichol'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 30, 2003 9:40 AM
Subject: RE: Errors on execution of ServiceManagerClient 


> Anyhow, It doesn't make any difference I get a new exception of 
> 
> NoClassDefFoundError: javax/activation/DataSource
>         java.lang.Class.forName0(Native Method)
>         java.lang.Class.forName(Class.java:141)
>  
> org.apache.soap.encoding.SOAPMappingRegistry.class$(SOAPMappingRegistry.java
> :83)
> org.apache.soap.encoding.SOAPMappingRegistry.&lt;clinit&gt;(SOAPMappingR
> egistry.java:236)
>         org.apache.soap.server.http.ServerHTTPUtils.getSMRFromContext
> 
> The Apache SOAP FAQ states that if you are able to get in the browser the
> Statement about PUT rather than get then everything is more or less normal.
> I don't know where the mistake is??
> 
> regards,
> 
> ----------------------------------------------------------------------
> David Chalissary
> Software Developer
> Tel:          +353 1 216 2814
> Fax:         +353 1 216 2077
>  
> Siemens Business Services
> Fitzwilliam Court, 
> Leeson Close, 
> Dublin 2, 
> Ireland.
> mailto:[EMAIL PROTECTED] 
> Web:  http://www.sbs.ie
> 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.
>  
> 
> -----Original Message-----
> From: Scott Nichol [mailto:[EMAIL PROTECTED] 
> Sent: 30 September 2003 13:10
> To: CHALISSARY DAVID
> Cc: [EMAIL PROTECTED]
> Subject: Re: Errors on execution of ServiceManagerClient 
> 
> The Tomcat 5 classloader docs
> (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html)
> say to either put these in shared/lib or the lib for your webapp.
> 
> 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: "'Scott Nichol'" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 30, 2003 5:44 AM
> Subject: RE: Errors on execution of ServiceManagerClient 
> 
> 
> > No there is a shared folder with classes and lib directory but its empty.
> > 
> > I had put the activation.jar in the server/lib directory, should it be in
> > the shared folder??
> > 
> > Regards,
> > 
> > ----------------------------------------------------------------------
> > David Chalissary
> > Software Developer
> > 
> > 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.
> >  
> > 
> > -----Original Message-----
> > From: Scott Nichol [mailto:[EMAIL PROTECTED] 
> > Sent: 30 September 2003 10:41
> > To: [EMAIL PROTECTED]
> > Cc: CHALISSARY DAVID
> > Subject: Re: Errors on execution of ServiceManagerClient 
> > 
> > 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.
> > > 
> > >  
> > > 
> > >  
> > > 
> > > 
> > 
>

Reply via email to