Re: Problem with SendMailServlet examples application

2002-02-19 Thread Jose Luis Rojano Piernagorda

Thanks!!! I had to set my CLASSPATH environment to include:

$CATALINA_HOME/common/lib/mail.jar:
$CATALINA_HOME/common/lib/jndi.jar:
$CATALINA_HOME/common/lib/servlet.jar

and compile using:

javac SendMailServlet.java

It works fine!




- Original Message -
From: "Reynir Hübner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 2:21 PM
Subject: RE: Problem with SendMailServlet examples application


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
[EMAIL PROTECTED]





> -Original Message-
> From: Jose Luis Rojano Piernagorda [mailto:[EMAIL PROTECTED]]
> 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" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > 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)
&

RE: Problem with SendMailServlet examples application

2002-02-18 Thread Reynir Hübner

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
[EMAIL PROTECTED]





> -Original Message-
> From: Jose Luis Rojano Piernagorda [mailto:[EMAIL PROTECTED]]
> 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" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > 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:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Problem with SendMailServlet examples application

2002-02-18 Thread Jose Luis Rojano Piernagorda

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" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > 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:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Problem with SendMailServlet examples application

2002-02-18 Thread Randy Layman


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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 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:   
For additional commands: 
Troubles with the list: