In your JBuider environment, you will be having a project(xxx.jpr) and all
the java files that use will be under this project(you may to create the
project if you haven't done already).
Right click on the xxx.jpr and click properties.You will get a window.Under
the source tab,u have got to specify the location of the *.java files.In
most cases you will be having it all in the same folder,but some java files
may be in a different folder.Make sure that you include all of them.
Now select your java file that you want to compile and compile it.JBuilder
will now where to look for the source file when it does the compiling
Ram
>From: "Mick Sullivan" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: FIRST JSP PRGRAM - PLEASE HELP!
>Date: Fri, 12 Jan 2001 18:48:15 -0000
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Hi I need help!!
I think this problem will be easy to solve as 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 <name>".
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\
Are these the right folders to store those files in?
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)
I think the problem may be because I cant generate the .class file. Anyone know why this might be?
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(JspParseEventListener.java, Compiled Code)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.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(JspServlet.java:149)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java: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(HttpConnectionHandler.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, Mick
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]