Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running jsp's

 
prasanthi kothapa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
i have javawebsrever2.0 running on my machine.
i have downloaded jswdk to run my jsp's..
please tell me how to go about it.

thanx,
prasanthi
 
Ashok Anumandla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to run jsp's in jswdk ,copy your jsp file under examples/jsp directory, startserver under jswdk home directory and url is http://localhost:8080/examples/jsp .If you want to run your working directory you need to edit your webserver.xml file, in that you need to change webApplication id ,mapping and docBase like exsisting one.
By
Ashok
 
prasanthi kothapa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ashok,
i have my jsp file in the examples/jsp directory.On saying
startserver & giving the URL http:\\localhost:8080\ i am
getting the home page, but on running my jsp i get the
following error in the console:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
please help me out......
thanks..
prasanthi
 
Ashok Anumandla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This problem is classpath in your environment, your classpath should contains following three.
1.for javac classpath= c:\jdk1.2.2\lib\tools.jar
2.for jsp class file classpath=c:\jswdk-1.0.1\lib\jspengine.jar
3.for servlets classes classpath=c:\jswdk-1.0.1\lib\servlet.jar
Above three must be in your classpath.Try to add like your home directory.
I think this will help you
Thanx
Ashok
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic