ianohlander
Programmer
Ok, honestly, I don't know if my problem is JBuilder 6 (or at least how I'm using it) or with the Tomcat server I downloaded.
After having read 3 books on JSP, I have written a couple of JSP's and when I run them inside the JBuilder environement (with its Tomcat engine) it runs fine. I can open up a browser, point it to the local server and my JSP name, and it works exactly as I want. Now, for deployment testing purposes, I also downloaded Tomcat as a stand-alone server and installed it. I know it works, because when I run it, I can run all the Servlet and JSP examples that come with Tomcat.
But I wanted to test deployment. JBuilder 6 automatically creates my WAR for me (its just called Default). Following the HORRENDOUS Tomcat documentation (or I must simply be dumb), I put the WAR in the WEBAPPS directory of my stand-alone Tomcat. I run Tomcat and it generates the "Default" directory, complete with JSP page, web.xml file (which looks exactly like JBuilder's XML file for my program- almost nothing there- all it says is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "<web-app />
), and classes. So I point my browser to " But I keep getting an error that says that the JSP is not available.
So what am I doing wrong? Is my set up in JBuilder wrong (I haven't changed it. It's out of the box) or am I not doing something right with Tomcat.
After some searching I found a suggestion that I add something like this to the context manager. So I added the following to the Server.xml (in the commented tags that said context manager- is that where it goes?):
< Context path="/Default" docBase="webapps/Default" debug="0" reloadable="true" >
< /Context >
It didn't work- Tomcat wouldn't even run.
Please help me! I am so frustrated. The JSP is simple, it works in JBuilder, but I need it to work with Tomcat alone.
Thank you for anyhelp you can offer.
Ian Ohlander
ianohlander@yahoo.com
After having read 3 books on JSP, I have written a couple of JSP's and when I run them inside the JBuilder environement (with its Tomcat engine) it runs fine. I can open up a browser, point it to the local server and my JSP name, and it works exactly as I want. Now, for deployment testing purposes, I also downloaded Tomcat as a stand-alone server and installed it. I know it works, because when I run it, I can run all the Servlet and JSP examples that come with Tomcat.
But I wanted to test deployment. JBuilder 6 automatically creates my WAR for me (its just called Default). Following the HORRENDOUS Tomcat documentation (or I must simply be dumb), I put the WAR in the WEBAPPS directory of my stand-alone Tomcat. I run Tomcat and it generates the "Default" directory, complete with JSP page, web.xml file (which looks exactly like JBuilder's XML file for my program- almost nothing there- all it says is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "<web-app />
), and classes. So I point my browser to " But I keep getting an error that says that the JSP is not available.
So what am I doing wrong? Is my set up in JBuilder wrong (I haven't changed it. It's out of the box) or am I not doing something right with Tomcat.
After some searching I found a suggestion that I add something like this to the context manager. So I added the following to the Server.xml (in the commented tags that said context manager- is that where it goes?):
< Context path="/Default" docBase="webapps/Default" debug="0" reloadable="true" >
< /Context >
It didn't work- Tomcat wouldn't even run.
Please help me! I am so frustrated. The JSP is simple, it works in JBuilder, but I need it to work with Tomcat alone.
Thank you for anyhelp you can offer.
Ian Ohlander
ianohlander@yahoo.com