File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes ContextRoot in Jbuilder 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "ContextRoot in Jbuilder 7.0" Watch "ContextRoot in Jbuilder 7.0" New topic

ContextRoot in Jbuilder 7.0

Rajesh Navduri
Ranch Hand

Joined: Jun 28, 2001
Posts: 31
I am using jbuilder 7.0. I want to specify the context as 'cag/psnrweb'. But when I give like that jbuilder throwing an error.
"No appropriate node to show Web view for /cag/psnrweb/test.jsp, but the web server has been started"
Can anyone tell me how to set a desired contextRoot in Jbuilder.

Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
If you want receiving an answer, you should describe how you had received a problem (your steps) and your environment.
First of all, do you have Enterprise Edition of JBuilder?
Second, "web server has been started" has nothing to do with your application, it may be started on any garbage, it is independent.
See, how I reproduced your error at the end.
Then, you go to menu Run|Configuration (the same as Project|Properties)|Edit (or New)|Run|Server|JSP/Servlet/Launch URL
Usually it is there "/", then you can click button "..." or specify your context root.
"Edit (or New)" - you create new profile or change existing.
For ex., to /Context/JspWithCounter.jsp
The name is also there but name has nothing to do with path or even with filename and it is prohibited to have there "/".
Here is the structure that I created with jsp-wizard and with “context” separated Myjsp-application, eventually, is run from the following “context”:
http ://localhost:8084/Context/MyJsp.jsp]http://localhost:8084/Context/MyJsp.jsp
I have my jsp-application locally in J:/jsp/myjsp.jsp
I have in subdirectories:
I have my project in
I have there subdirectories:
Home directory of Tomcat is:
Main class: org.apache.catalina.startup.Bootstrap
Everything runs, OK.
Now if I rename "J:/jsp/" to "J:/jsp-gabbage/" I receive an error like yours.
[ November 13, 2002: Message edited by: G Vanin ]
Rajesh Navduri
Ranch Hand

Joined: Jun 28, 2001
Posts: 31
Thanks Guennadii. It worked now.
I agree. Here's the link:
subject: ContextRoot in Jbuilder 7.0
It's not a secret anymore!