RE: JSP pages cannot be viewed
Utech - Han Lim wrote: I think I'm already set the classpath to point to the servlet.jar as you can see it obviously from my environment setting. Any else suggestion? I still cannot view the .jsp pages, and got stuck with it:( Does /usr/java/jdk1.3.1/lib/tools.jar exist? Are you sure your JAVA_HOME should be /usr/java/jdk1.3.1 and not just /usr/java? Note that Tomcat does not use the setting of CLASSPATH. You can try to debug this a bit more by putting some echo statements in Tomcat's startup.sh to see exactly what's on the command line used to start Tomcat. -- Andrew
JSP pages cannot be viewed
Hi, I just installed the Apache-1.3.20 and Tomcat-3.2.3, and all running smoothly until I try to view the .jsp pages at http://localhost:8080/ and I got this error result : Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) What is the causes of this problem? And another problem I got is when I try to create a helloworld.jsp that contain : HTML HEAD TITLE/TITLE META name=description content= META name=keywords content= META name=generator content=CuteHTML /HEAD BODY BGCOLOR=#FF TEXT=#00 LINK=#FF VLINK=#800080 h1Hello World - HTML .../h1 h1% out.println(Hello World - JSP ...); %/h1 /BODY /HTML And I got error when view this page in browser : 2001-07-30 02:50:56 - Ctx( /examples ): 404 R( /examples + /jsp/helloworld.jsp + null) JSP file not found Any help and suggestion will be appreciated. Thanks Han Lin System Consultant Unidux Technologies Pte Ltd (subsidiary of the public-listed Unidux Electronics Ltd) Tel : (65) 293 4797 Fax : (65) 293 4920 Email : [EMAIL PROTECTED]
RE: JSP pages cannot be viewed
-Original Message- From: Utech - Han Lim [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 11:38 AM To: [EMAIL PROTECTED] Subject: JSP pages cannot be viewed Sensitivity: Personal Hi, I just installed the Apache-1.3.20 and Tomcat-3.2.3, and all running smoothly until I try to view the .jsp pages at http://localhost:8080/ and I got this error result : [SNIP] This same question has been answered already on this list. Please refer to the list's archive at http://marc.theaimsgroup.com/?l=tomcat-userm=97869370231731w=2 and the response http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2 For future reference, this list is archived at http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 (among other places) and the archive is searchable. Since there are many questions that are repeated, I'd suggest you try find the answer to your question in the archive (after having gone through all the documentation first) before posing a question on the list. Pardon? Oh, you're welcome :) What is the causes of this problem? And another problem I got is when I try to create a helloworld.jsp that contain : [SNIP] And I got error when view this page in browser : 2001-07-30 02:50:56 - Ctx( /examples ): 404 R( /examples + /jsp/helloworld.jsp + null) JSP file not found Any help and suggestion will be appreciated. Thanks Where did you place your helloworld.jsp? Is it in /examples/jsp? If not, put it there, then try again. Of course, you can put it in any other context directory but make sure you adjust the request URL in your browser accordingly. Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer.
RE: JSP pages cannot be viewed
Are you sure you're using JDK instead of JRE ? Greetings, deacon Marcus -Original Message- From: Utech - Han Lim [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 9:38 AM To: [EMAIL PROTECTED] Subject: JSP pages cannot be viewed Sensitivity: Personal Hi, I just installed the Apache-1.3.20 and Tomcat-3.2.3, and all running smoothly until I try to view the .jsp pages at http://localhost:8080/ and I got this error result : Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManag er.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnec tion(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler .java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNeces sary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp Servlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManag er.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnec tion(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) What is the causes of this problem? And another problem I got is when I try to create a helloworld.jsp that contain : HTML HEAD TITLE/TITLE META name=description content= META name=keywords content= META name=generator content=CuteHTML /HEAD BODY BGCOLOR=#FF TEXT=#00 LINK=#FF VLINK=#800080 h1Hello World - HTML .../h1 h1% out.println(Hello World - JSP ...); %/h1 /BODY /HTML And I got error when view this page in browser : 2001-07-30 02:50:56 - Ctx( /examples ): 404 R( /examples + /jsp/helloworld.jsp + null) JSP file not found Any help and suggestion will be appreciated. Thanks Han Lin System Consultant Unidux Technologies Pte Ltd (subsidiary of the public-listed Unidux Electronics Ltd) Tel : (65) 293 4797 Fax : (65) 293 4920 Email : [EMAIL PROTECTED]
RE: JSP pages cannot be viewed
Yes, I'm sure I am using the JDK and JRE too, here is my Environment setting : TOMCAT_HOME=/usr/local/jakarta-tomcat LANG=en_US JAVA_HOME=/usr/java/jdk1.3.1 LOGNAME=hanlim SHLVL=2 SHELL=/bin/bash HOSTTYPE=i386 OSTYPE=linux-gnu HISTSIZE=10 TERM=xterm HOME=/root PATH=/usr/java/jdk1.3.1/bin:/usr/java/jdk1.3.1/lib/tools.jar:/usr/local/ jakarta-servletapi/lib/servlet.jar:/usr/local/bin:/bin:/usr/bin:/usr/X11 R6/bin:/home/hanlim/bin _=/usr/bin/env I think I set all thing properly but still cannot view the .jsp file. And according to Emir Alikadic's recommended website http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2, I'm not understand this statement : /* One word of caution though: on a windows system, even if you installed the development kit, a JRE is installed as well. Make sure you set your JAVA_HOME environment variable to correct one. (On my system the JDK is on c:\java\jdk1.3 and the JRE on c:\program files\JavaSoft\JRE\1.3) */ How can I set the JRE path? Thanks for help and suggestion. regards, Han Lin
RE: JSP pages cannot be viewed
-Original Message- From: Han Lin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 1:35 AM To: [EMAIL PROTECTED] Subject: RE: JSP pages cannot be viewed Sensitivity: Personal [SNIP] And according to Emir Alikadic's recommended website http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2, I'm not understand this statement : /* One word of caution though: on a windows system, even if you installed the development kit, a JRE is installed as well. Make sure you set your JAVA_HOME environment variable to correct one. (On my system the JDK is on c:\java\jdk1.3 and the JRE on c:\program files\JavaSoft\JRE\1.3) */ How can I set the JRE path? The idea is that you have to have the full J2SE SDK (formerly JDK) and not just the runtime (JRE). If you're sure you've downloaded/installed full version of J2SE, then you should have anything to worry about (of course, JAVA_HOME has to point to the installation directory, which you seem to have done). Thanks for help and suggestion. regards, Han Lin Regards, Emir. DISCLAIMER: The content of the preceding message is exclusively the personal opinion of the author, i.e. myself. Under no circumstances should the content be attributed to my employer.
RE: JSP pages cannot be viewed
I think you need to set the classpath to point to the servet.jar files ans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:05 AM To: [EMAIL PROTECTED] Subject: RE: JSP pages cannot be viewed Sensitivity: Personal Yes, I'm sure I am using the JDK and JRE too, here is my Environment setting : TOMCAT_HOME=/usr/local/jakarta-tomcat LANG=en_US JAVA_HOME=/usr/java/jdk1.3.1 LOGNAME=hanlim SHLVL=2 SHELL=/bin/bash HOSTTYPE=i386 OSTYPE=linux-gnu HISTSIZE=10 TERM=xterm HOME=/root PATH=/usr/java/jdk1.3.1/bin:/usr/java/jdk1.3.1/lib/tools.jar:/usr/local/ jakarta-servletapi/lib/servlet.jar:/usr/local/bin:/bin:/usr/bin:/usr/X11 R6/bin:/home/hanlim/bin _=/usr/bin/env I think I set all thing properly but still cannot view the .jsp file. And according to Emir Alikadic's recommended website http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2, I'm not understand this statement : /* One word of caution though: on a windows system, even if you installed the development kit, a JRE is installed as well. Make sure you set your JAVA_HOME environment variable to correct one. (On my system the JDK is on c:\java\jdk1.3 and the JRE on c:\program files\JavaSoft\JRE\1.3) */ How can I set the JRE path? Thanks for help and suggestion. regards, Han Lin
RE: JSP pages cannot be viewed
I think I'm already set the classpath to point to the servlet.jar as you can see it obviously from my environment setting. Any else suggestion? I still cannot view the .jsp pages, and got stuck with it:( Thanks. regards, Han Lin -Original Message- From: AN Sathe [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: RE: JSP pages cannot be viewed Sensitivity: Personal I think you need to set the classpath to point to the servet.jar files ans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:05 AM To: [EMAIL PROTECTED] Subject: RE: JSP pages cannot be viewed Sensitivity: Personal Yes, I'm sure I am using the JDK and JRE too, here is my Environment setting : TOMCAT_HOME=/usr/local/jakarta-tomcat LANG=en_US JAVA_HOME=/usr/java/jdk1.3.1 LOGNAME=hanlim SHLVL=2 SHELL=/bin/bash HOSTTYPE=i386 OSTYPE=linux-gnu HISTSIZE=10 TERM=xterm HOME=/root PATH=/usr/java/jdk1.3.1/bin:/usr/java/jdk1.3.1/lib/tools.jar:/usr/local/ jakarta-servletapi/lib/servlet.jar:/usr/local/bin:/bin:/usr/bin:/usr/X11 R6/bin:/home/hanlim/bin _=/usr/bin/env I think I set all thing properly but still cannot view the .jsp file. And according to Emir Alikadic's recommended website http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2, I'm not understand this statement : /* One word of caution though: on a windows system, even if you installed the development kit, a JRE is installed as well. Make sure you set your JAVA_HOME environment variable to correct one. (On my system the JDK is on c:\java\jdk1.3 and the JRE on c:\program files\JavaSoft\JRE\1.3) */ How can I set the JRE path? Thanks for help and suggestion. regards, Han Lin