how shall i run jsp pages ? ?

how can i run jsp pages on my local machine.

or how can i get java web server 2.0

i tried to use some jsp1_0ea-win

but running jsp page gives the following error

java.lang.NoClassDefFoundError: sun/tools/javac/Main

at com.sun.jsp.compiler.Main.compile(Main.java:196)

at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114)

at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:69)

at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77)

at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125)

at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)

at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)

at com.sun.web.core.Context.handleRequest(Context.java:382)

at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:135)

so how can i go on now

or any other software to help

[1070 byte] By [inishant] at [2007-9-26 1:23:31]
# 1
I recommend you use Tomcat instead jws2.0and your problem is the jar file: tools.jar in the JAVA_HOME/lib directory has not been added to your CLASSPATH
fayefun at 2007-6-29 1:02:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

JavaWebServer2.0 is available on CD or u can download from sun site.

In JWS2.0 put your .jsp files in public_html/abc/.jsp files.

abc is the folder which user will create.

On address bar of the Browser type

http://localhost:8080/abc/.jsp

I think this will work very well.

Bye

sameerleekha at 2007-6-29 1:02:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Java Webserver 2.0 is not available for download now as sun has declared the End Of Life of Java Web Server. You can use any other webserver, you can download the trial version of any of the Webserver and try it. YOu can download Tomcat, JRun or even Weblogic as 30 days trial version.

Otherwise you can test your applications on the the www.webappcabaret.com . YOu have to register your self. Once you register you get a free space of 5MB and you can deploy your application there for testing. They have Tomcat as Webserver and MySQL as database.

JSP pages are generally stored at same place where the HTML pages are stored and in most of the webserver you will find public_html directory where you place all the HTML and JSP files.

I donot what is this "jsp1_0ea-win" , what I can assune is that this is a zip file which consists of JSP API. If my assumption is true you cannot run JSP using this as you you need as Servlet Container and JSP Servlet for converting this JSP to servlet and deploying it as servlet. JSP is a simplified form of servlet, it is always converted to servlet by JSP servlet.

Hope this will help you.

Harpreet

harpreet_hira at 2007-6-29 1:02:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...