Hi,
I have been using Java Web Server 2.0 for a long time (on NT
platform). Now I want to migrate to iPlanet web server 6.0 SP4.
I was using a JSP page to send emails. The JSP was working fine on
previous web server. Means, the code is fine. Now, I want to know -
what configuration is required to make the same JSP work with iPlanet
web server?
In fact, I read all the documentation of JavaMail and of iPlanet web
server and configured both accordingly. But, still it is NOT
working!!! The Problem is described below :
Problem :
I installed the iPlanet web server 6.0 SP4. I also downloaded the
JavaMail API1.3 and JAF (Javabean Activation Framework) and put the
JAR files into Environment variable - classpath.
But when I try to run the JSP file, which just sends an email using
the JavaMail 1.3 packages (it was working fine with my previous web
server - Java Web Server 2.0. So, the code is fine), it does not work
and gives following ERRORs :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[10/Oct/2002:11:42:39] info ( 117): Internal Info: loading servlet
/test/mailsend6.jsp
[10/Oct/2002:11:42:53] info ( 117): JSP: JSP1x compiler threw
exception
org.apache.jasper.JasperException: Unable to compile class for
JSPNote: sun.tools.javac.Main has been deprecated.
C:\iPlanet\Servers\https-web_test.xyz.com\config\..\ClassCache\_jsps\_test\_mailsend6_jsp.java:18:
Package javax.mail not found in import .
import javax.mail.*;
^
C:\iPlanet\Servers\https-web_test.xyz.com\config\..\ClassCache\_jsps\_test\_mailsend6_jsp.java:19:
Package javax.mail.internet not found in import.
import javax.mail.internet.*;
^
C:\iPlanet\Servers\https-web_test.xyz.com\config\..\ClassCache\_jsps\_test\_mailsend6_jsp.java:20:
Class javax.activation.DataHandler not found in import.
import javax.activation.DataHandler;
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
[10/Oct/2002:11:42:53] warning ( 117): Internal error: Failed to get
GenericServlet. (uri=/test/mailsend6.jsp,SCRIPT_NAME=/test/mailsend6.jsp)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Can you give some solution for this problem?
Thanks,
Nirav. |