• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

ContextRoot in Jbuilder 7.0

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Guennadii. It worked now.
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic