Here it is:

F:\Tomcat\webapps\ROOT>javap -verbose oracle.jsp.webutil.email.SendMailBean
Compiled from SendMailBean.java
public class oracle.jsp.webutil.email.SendMailBean extends java.lang.Object
{
    public oracle.jsp.webutil.email.SendMailBean();
        /* Stack=1, Locals=1, Args_size=1 */
    public java.lang.String send(java.lang.String, java.lang.String,
java.lang.S
tring, java.lang.String, java.lang.String, java.lang.String,
java.lang.String);
        /* Stack=4, Locals=17, Args_size=8 */
}

signatures match...

Curiously the doc doesnt say anything about
String=send(String,String,String,String,String,String,String)
but does mention a SendMessage()

Advice??
Thanks,

-Martin
----- Original Message -----
From: "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 7:53 PM
Subject: Re: Classpath for JSPC


> Martin,
> Run the javap command on the ojsputil.jar for the SendMailBean and see
what
> the method signature of the send method is to determine what parameters it
> takes. Otherwise, just get the source from otn.oracle.com and compile the
> class yourself.
>
> Regards,
>
> Richard
>
>
> -----Original Message-----
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2003 4:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Classpath for JSPC
>
>
> Here is the error:
>
>   <jsp:useBean id="sendMail" class="oracle.jsp.webutil.email.SendMailBean"
> scope="page" />
> causes:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 44 in the jsp file: /SendMail.jsp
>
> Generated servlet error:
> Project base dir set to: F:\Tomcat
> Detected Java version: 1.4 in: E:\J2SE1.41\jre
> Detected OS: Windows 2000
>     [javac] SendMail_jsp.java added as SendMail_jsp.class doesn't exist.
>     [javac] Compiling 1 source file
>     [javac] Using modern compiler
>     [javac] Compilation arguments:
>     [javac] '-classpath'
>     [javac]
>
'F:\Tomcat\bin\bootstrap.jar;F:\Tomcat\shared\classes;F:\Tomcat\common\class
>
es;F:\Tomcat\common\endorsed\xmlParserAPIs.jar;F:\Tomcat\common\endorsed\xer
>
cesImpl.jar;F:\Tomcat\common\lib\activation.jar;F:\Tomcat\common\lib\jasper-
>
runtime.jar;F:\Tomcat\common\lib\jasper-compiler.jar;F:\Tomcat\common\lib\na
>
ming-resources.jar;F:\Tomcat\common\lib\commons-collections.jar;F:\Tomcat\co
>
mmon\lib\naming-common.jar;F:\Tomcat\common\lib\commons-logging-api.jar;F:\T
>
omcat\common\lib\ant.jar;F:\Tomcat\common\lib\mail.jar;F:\Tomcat\common\lib\
>
commons-dbcp.jar;F:\Tomcat\common\lib\servlet.jar;F:\Tomcat\common\lib\jdbc2
>
_0-stdext.jar;F:\Tomcat\common\lib\commons-pool.jar;F:\Tomcat\common\lib\jnd
>
i.jar;F:\Tomcat\common\lib\naming-factory.jar;F:\Tomcat\common\lib\jta.jar;F
> :\Tomcat\common\lib\tools.jar'
>     [javac] '-sourcepath'
>     [javac] 'F:\Tomcat\work\Standalone\localhost\_'
>     [javac] '-encoding'
>     [javac] 'UTF8'
>     [javac] '-g'
>     [javac]
>     [javac] The ' characters around the executable and arguments are
>     [javac] not part of the command.
>     [javac] File to be compiled:
>     [javac]     F:\Tomcat\work\Standalone\localhost\_\SendMail_jsp.java
>
> F:\Tomcat\work\Standalone\localhost\_\SendMail_jsp.java:76: send() in
> oracle.jsp.webutil.email.SendMailBean cannot be applied to
>
(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.la
> ng.String,java.lang.String,java.lang.String)
>     String l_result  =
> sendMail.send(l_from,l_to,l_cc,l_bcc,l_subject,l_message,l_smtpSvr);
>                                ^
> 1 error
>
> Oracle's ojsputil.jar dendMail.send apparently doesnt take 7 string
> parameters but all the docs I have located say it does... Any advice?
>
> Thanks,
> -Martin
>
> ----- Original Message -----
> From: "Martin Gainty" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 07, 2003 3:11 PM
> Subject: Classpath for JSPC
>
>
> Hello Everyone:
>
> When I have a new bean which I reference should I update
> 1)the main classpath?
> 2)the web.xml JSPServlet init-parm classpath?
>
> *I currently get this error*
>
> location: class org.apache.jsp.SendMail_jsp
>       SendMailBean sendMail = null;
>       ^
>
>
>
> An error occurred at line: 43 in the jsp file: /SendMail.jsp
>
> Generated servlet error:
> F:\Tomcat\work\Standalone\localhost\_\SendMail_jsp.java:54: cannot resolve
> symbol symbol  : class SendMailBean
> location: class org.apache.jsp.SendMail_jsp
>         sendMail = (SendMailBean) pageContext.getAttribute("sendMail",
> PageContext.PAGE_SCOPE);
>                     ^
>
>
>
> An error occurred at line: 43 in the jsp file: /SendMail.jsp
>
> Generated servlet error:
> F:\Tomcat\work\Standalone\localhost\_\SendMail_jsp.java:57: cannot resolve
> symbol symbol  : class SendMailBean
> location: class org.apache.jsp.SendMail_jsp
>             sendMail = (SendMailBean)
> java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> "SendMailBean");
>                         ^
> 3 errors
>
>
>         at
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
> r.java:130)
>
>
> Thanks,
>
> Marty Gainty
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to