dcsimg
HELP!!! JBuilder JSP deployment problems
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ian_Ohlander
Posted On:   Friday, April 26, 2002 01:36 PM

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. 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 testing purposes, I also downloaded Tomcat as a stand-alone server and installed it. 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 p   More>>

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.



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 testing purposes, I also downloaded Tomcat as a stand-alone server and installed it. 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, XML file (which looks exactly like JBuilder's XML file for my program- almost nothing there- it's just one JSP), and classes. So I point my browser to "http://Localhost:8080/myfilename.jsp. 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 (out of the box) or am I not doing something right with Tomcat.



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 outside of it.



Thank you for anyhelp you can offer.



Ian Ohlander


ianohlander@yahoo.com

   <<Less

Re: HELP!!! JBuilder JSP deployment problems

Posted By:   Jean_Fotovat  
Posted On:   Thursday, May 2, 2002 02:31 AM

hello,

i've nearly same problem but under jbuilder.
i've a jsp with jsp:include tag, and the compiler generates an error : tag invalid.
i don't know how to deal with this error.
could you help ?
thanks

Re: HELP!!! JBuilder JSP deployment problems

Posted By:   Anonymous  
Posted On:   Monday, April 29, 2002 09:37 PM

Hi,



I think your steps are correct. But could it be the directory (path) that leads to your JSP in the WAR file thats different from what you entered on the browser?



As for the servlets, make sure your web.xml is set correctly, i.e. all the servlets are mapped correctly.
About | Sitemap | Contact