Thanks Katherine!
I think that could be that answer.
>From: Katherine Fraser Reply-To: A mailing list about Java Server Pages
>specification and reference To: [EMAIL PROTECTED] Subject: Re:
>COMPILING BEAN TO .CLASS???? Date: Fri, 12 Jan 2001 16:21:12 -0500
>
>Mary-
>
>I'm not sure about the Tomcat errors since I'm using WebLogic, however...
>What may be a problem with compiling the bean is that in order for the
>class to be found as hello.namehandler (package.class), you will need first
>to put the namehandler class in a folder called "hello" and also make sure
>that the "hello" folder is in a directory listed in your classpath. That
>way your JSP will be able to find the bean class when it runs. Hope this
>helps.
>
>-katherine
>
>
>-----Original Message----- From: Mary McCarthy
>[mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 3:52 PM To:
>[EMAIL PROTECTED] Subject: COMPILING BEAN TO .CLASS????
>
>
>Hi I need help!! I think this problem will be easy to solve but this is my
>first attempt at a JSP application. I am copying a JSP program from the
>java.sun.com website and attempting to run it on tomcat. The program is a
>simple one, the user enters his name into a text box and presses submit.
>His name is then printed up on the screen, i.e. "Hello ". I have created
>the two .jsp files (hellouser.jsp and response.jsp) and stored them in
>C:\jakarta-tomcat\webapps\Hello\ I have created the bean (namehandler.java)
>as a .java file and stored it in
>C:\jakarta-tomcat\webapps\Hello\Web-inf\Classes\ The problem is with
>JBuilder when I try to compile the namehandler.java, no class file is
>generated!! I have tried compiling the .java file to a .class in JBuilder,
>but I keep getting the following warning: "Warning #908: check sourcepath;
>source c:\jakarta-tomcatzwebapps\Hello\Web-inf\Classes\namehandler.java
>cannot be found on source pathby appending \hello\namehandler.java to each
>sourcepath entry." (hello is the name of the package)
>
>When I try to view the Application while tomcat is running I get this error
>message: Error: 500 Location: /Hello/hellouser.jsp Internal Servlet Error:
>org.apache.jasper.JasperException: Bad file argument to include at
>org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
>ntListener.java, Compiled Code) at
>org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
>ener.java:116) at
>org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled
>Code) at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
>Code) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at
>org.apache.jasper.compiler.Parser.parse(Parser.java:1034) at
>org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
>at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
>rvlet.java:149) at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:161) at
>org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at
>org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
>Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
>Compiled Code) at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:160) at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
>) at java.lang.Thread.run(Thread.java:479) If anyone has any idea at all
>where the problem may lie please please help me. Thanks in advance, Mary
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set
>JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at:
>
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.html
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets