aspose file tools*
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
Author

ContextRoot in Jbuilder 7.0

Rajesh Navduri
Ranch Hand

Joined: Jun 28, 2001
Posts: 31
Hi,
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.

Regds
Rajesh
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Rajesh,
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:
J:/jsp/WEB-INF/web.xml
J:/jsp/WEB-INF/classes/jsp/JspWithCounter.class
I have my project in
k:/jbproject/jb-wizard/MyPrj.jpx
I have there subdirectories:
k:/jbproject/jb-wizard/bakk:/jbproject/jb-wizard/classes
k:/jbproject/jb-wizard/src/jsp/JspWithCounter.java
k:/jbproject/jb-wizard/Tomcat/work/Context
k:/jbproject/jb-wizard/defaultroot/WEB-INF
Home directory of Tomcat is:
J:/XP_ProgramFiles/JBuilder7/jakarta-tomcat-4.0.3
Main class: org.apache.catalina.startup.Bootstrap
REPRODUCING ERROR:
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: http://aspose.com/file-tools
 
subject: ContextRoot in Jbuilder 7.0