tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Problem with SendMailServlet examples application
Date Mon, 18 Feb 2002 13:21:14 GMT
you must have mail.jar in your classpath (usually in the folder
/tomcat/common/lib/(mail.jar).

you should be able to compile the sendmail servlet by executing the
command : 

classes/> javac -classpath
$pathtotomcat/tomcat/common/lib/mail.jar;$pathtotomcat/tomcat/common/lib
/servlet.jar; SendmailServlet.java

I think that would do. (depends on what functionality you have added to
your SendmailServlet).

hope it helps
-reynir@hugsmidjan.is





> -----Original Message-----
> From: Jose Luis Rojano Piernagorda [mailto:jluis.rojano@senado.es]
> Sent: 18. febrúar 2002 13:23
> To: 'Tomcat Users List'
> Subject: Re: Problem with SendMailServlet examples application
> 
> 
> Hi Randy,
> 
> Do you know why, in the example directory
> "$CATALINA_HOME/webapps/examples/WEB-INF/classes" we have 
> every source file
> (*.java) with its corresponding binary (*.class) except for the
> SendMailServlet.java source?????
> 
> I also tried to compile the SendMailServlet.java to get the 
> corresponding
> absent binary, but I don't know how to do it correctly. I 
> have instaled the
> J2SDK 1.3.1 on a solaris 8 environment
> 
> Regards,
> Jose.
> 
> 
> 
> 
> ----- Original Message -----
> From: "Randy Layman" <randy.layman@aswethink.com>
> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> Sent: Monday, February 18, 2002 1:03 PM
> Subject: RE: Problem with SendMailServlet examples application
> 
> 
> >
> > Tomcat doesn't compile .java files into .class files.  As far as I
> > know, this is only a feature of Resin and none of the other servlet
> > containers.  You will need to use javac to convert your .java into a
> .class
> > and put that file into the WEB-INF/classes directory.
> >
> > Randy
> >
> >
> > > -----Original Message-----
> > > From: jluis.rojano@senado.es [mailto:jluis.rojano@senado.es]
> > > Sent: Monday, February 18, 2002 7:44 AM
> > > To: 'Tomcat Users List'
> > > Subject: Problem with SendMailServlet examples application
> > >
> > >
> > > Hi,
> > >
> > > I am having a problem while executing one of the examples
> > > that comes with the tomcat 4.0.1 and/or 4.0.2 distribution.
> > >
> > > After a clean installation of tomcat-401/402 i try to execute
> > > the sample application /examples that comes with the
> > > distribution. Everything goes fine with any of the other
> > > appz, but in the JSP samples page the "Send Mail example"
> > > application that gives me an error:
> > >
> > > **************************************************************
> > > Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error
> > >
> > > --------------------------------------------------------------
> > > ------------------
> > >
> > > type Exception report
> > >
> > > message Internal Server Error
> > >
> > > description The server encountered an internal error
> > > (Internal Server Error) that prevented it from fulfilling
> > > this request.
> > >
> > > exception
> > >
> > > javax.servlet.ServletException: Wrapper cannot find servlet
> > > class SendMailServlet or a class it depends on
> > > at
> > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> > > rapper.java:871)
> > > ... ...
> > > at
> > > org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
> > > ection.java:194)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > > root cause
> > >
> > > java.lang.ClassNotFoundException: SendMailServlet
> > > at
> > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> > > lassLoader.java:1394)
> > > at
> > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> > > lassLoader.java:1243)
> > > ... ...
> > > at
> > > org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
> > > ection.java:194)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > > *****************************************
> > >
> > > In $CATALINA_HOME/webapps/examples/WEB-INF/classes directory
> > > i don't have the SendMailServlet.class binary, only the
> > > SendMailServlet.java source code.
> > > Any ideas?????
> > > Best regards,
> > > Jose L. Rojano
> > >
> > >
> > >
> >
> > --
> > To unsubscribe:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message