This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ContextRoot in Jbuilder 7.0

 
Rajesh Navduri
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Guennadii. It worked now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic