Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

javax/activation/DataSource error (JRUN-JSP-JBean)

843836Aug 4 2003 — edited Aug 5 2003
Hi everyone,

Thanks for reading this. I've compiled a simple JavaBean that uses JavaMail and JavaActivationFramework (javax.mail, javax.activation are imported). It is supposed to send mail, and it is very close doing so.

In my jsp page, I've included the following lines :

<jsp:useBean id="sendmail" class="jspbeans.SendMail" scope="page"/>
<jsp:setProperty name="sendmail" property="host" value="mail.mycompany.com"/>
<jsp:setProperty name="sendmail" property="to" value="me@mycompany.com"/>
<jsp:setProperty name="sendmail" property="from" value="me@hiscompanyl.com"/>
<jsp:setProperty name="sendmail" property="msg" value="From my jsp page !"/>
<jsp:setProperty name="sendmail" property="subject" value="An alert has been sent to you"/>
<%= sendmail.getMsg() %>

No problems there, my page displays the message, so the Bean is correctly included. But when I had the function call that actually sends the message :
<%sendmail.send()%>
I obtain an annoying error about the activation framework:

------------------------------------------------------------------------
java.lang.NoClassDefFoundError: javax/activation/DataSource
at jspbeans.SendMail.send(SendMail.java:85)
at jrun__process_lits2ejsp11._jspService(jrun__process_lits2ejsp11.java:201)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /process_lits.jsp:57
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:384)
at jrun__process_lits2ejsp11._jspService(jrun__process_lits2ejsp11.java:206)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
------------------------------------------------------------------------

All references to this error points to the CLASSPATH, but I've double checked everything. My OS is Windows XP, and my classpath is :
D:\oracle\ora92\jdbc\lib\classes12.zip;D:\oracle\ora92\jdbc\lib\nls_charset12.zip;D:\Java\j2eesdk1.4_beta2\lib\j2ee.jar;D:\Java\jaf-1.0.2\activation.jar;d:\Java\javamail-1.3.1\mail.jar

In JRUN console, I've added two new classpath entries for the default server, pointing to activation.jar and mail.jar... and I made a copy of activation.jar in about any pertient /lib folder I've found on my computer :-)

Please help me, I'm so close to success!

Thanks !

Tom

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 2 2003
Added on Aug 4 2003
2 comments
240 views