Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Not able to run jsp files using Tomcat.


Message #1 by "Naresh Ganatra" <nareshganatra@y...> on Sat, 2 Dec 2000 11:19:35 -0000
Dear Mr. Naresh Ganatra,

The following are the paths set using autoexec.bat file. Check ur paths.

Also if u are accessing a jsp file stored in webapps directory of
jakarta-tomcat server then you have to create a user directory inside web
apps
directory and then access the directory from a HTML file in another direc
tory
as follows:

<action =3D "http://localhost:8080/<user directory name>/<jsp file name.j
sp">

paths set using autoexec.bat:
@echo off
SET CTCM=3DC:\WIN98
rem @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup


@ECHO OFF
SET BLASTER=3DA220 I7 D1 T2
SET SNDSCAPE=3DC:\WIN98
rem PROMPT $P$G
rem - By Windows Setup - C:\WIN98\COMMAND\MSCDEX.EXE /S /d:MSCD001 /V /M:
8
PATH=3DD:\ORAWIN\BIN;C:\WIN98;C:\WIN98\COMMAND;C:\DOS;C:\UTILS;D:\ORAWIN9
8\BIN;d:\jdk1.3\bin;c:\tc\bin;c:\j2sdkee1.2.1\bin
set
CLASSPATH=3Dd:/jdk1.3/bin;c:/mydocu~1/arumugam/java/trial_pros;d:/jdk1.3/
lib/tools.jar;d:/j2sdkee1.2.1/lib/j2ee.jar;d:/j2ee_files/interface_files;
d:/j2ee_files/client_files;d:/j2ee_files/server_files;d:/pro_jsp;d:/javaw
ebserver2.0/lib;d:/java_book;d:/jdk1.3/jre/lib/rt.jar
rem d:/jsdk2.1/src;
rem set JAVA_HOME=3Dd:\jdk1.3
set ANT_HOME=3Dd:/Program Files/Apache Group/jakarta-tomcat
set TOMCAT_HOME=3Dd:/Program Files/Apache Group/jakarta-tomcat
set J2EE_HOME=3Dd:\j2sdkee1.2.1
set J2EE_CLASSPATH=3Dd:\j2sdkee1.2.1\lib\system\rt.jar
set JONAS_ROOT=3Dd:\jonas-2-1-1
call %J2EE_HOME%\bin\setenv.bat
call %J2EE_HOME%\bin\userconfig.bat
rem SET LMOUSE=3DC:\MOUSE
rem - SET TEMP=3DC:\WIN311\TEMP
cls
doskey

Hope this is solves ur problem.

regards
arumugam.a.s.

-------------------------------------------------------------------------


Your earlier message:


"Naresh Ganatra" <nareshganatra@y...> wrote:
Hi All,

I have installed tomcat on my machine as  a stand alone container.

I am able to get the main page of tomcat.
The example servlets are also running fine.
But none of the jsp examples are runnning.

It gives me the following error

java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:1
28)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:238)

        at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:4
13)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Js
pServlet.java:149)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet
=2Ejava:161)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:3
69)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:5
03)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Ht
tpConnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:
338)
        at java.lang.Thread.run(Thread.java:484)

I am using jsk1.3 and have specified the same for the JAVA_HOME in the
tomcat.bat file.
Has anybody goit an idea of what could be wrong.

Thanks in Advance.

Naresh



--- 

NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 

Web Development, Networking & Communications, and Hardware & Systems.  

Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=3D
1

  Return to Index