You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cheryl A Norsworthy <Ch...@raytheon.com> on 2003/05/21 01:21:54 UTC

classpath problem


hi

I am new to this list.

I am having a problem.

I have just changed to a new server and went from tomcat 3.3.1a to 4.1.24

I moved my application by putting my war file in the webapps directory.

I am getting a compile  error when I ask for my first jsp page.  It has a
usebean in it and it seems that the class of the bean can not be found.  my
servlet finds it ok, to instantiate the bean, but the jsp can not seem to
find it.  it's in the application's web-inf/classes directory.

in the application's log, after the compile error, it lists the classpath
as

classpath=/E:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/classes/;/E:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/lib/commons-httpclient.jar;/E:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/classes/;/E:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/lib/commons-httpclient.jar;E:/jakarta-tomcat-4.1.24/shared/classes/;E:/jakarta-tomcat-4.1.24/common/classes/;E:/jakarta-tomcat-4.1.24/common/endorsed/xercesImpl.jar;E:/jakarta-tomcat-4.1.24/common/endorsed/xmlParserAPIs.jar;E:/jakarta-tomcat-4.1.24/common/lib/activation.jar;E:/jakarta-tomcat-4.1.24/common/lib/ant.jar;E:/jakarta-tomcat-4.1.24/common/lib/commons-collections.jar;E:/jakarta-tomcat-4.1.24/common/lib/commons-dbcp.jar;E:/jakarta-tomcat-4.1.24/common/lib/commons-logging-api.jar;E:/jakarta-tomcat-4.1.24/common/lib/commons-pool.jar;E:/jakarta-tomcat-4.1.24/common/lib/jasper-compiler.jar;E:/jakarta-tomcat-4.1.24/common/lib/jasper-runtime.jar;E:/jakarta-tomcat-4.1.24/common/lib/jdbc2_0-stdext.jar;E:/jakarta-tomc!

 at-4.1.24/common/lib/jndi.jar;E:/ja
karta-tomcat-4.1.24/common/lib/jta.jar;E:/jakarta-tomcat-4.1.24/common/lib/mail.jar;E:/jakarta-tomcat-4.1.24/common/lib/naming-common.jar;E:/jakarta-tomcat-4.1.24/common/lib/naming-factory.jar;E:/jakarta-tomcat-4.1.24/common/lib/naming-resources.jar;E:/jakarta-tomcat-4.1.24/common/lib/servlet.jar



note the first entries are specific to my application - webDragon.

also note the forward slash / before the drive letter that tomcat is
installed on for the application specific paths.  the other paths to the
"typical" tomcat jar files do not contain the forward slash.

also note that the entries for my application are listed twice.

it seems that the slash is being added somewhere, but I can't figure out
where.

does anyone have any ideas ?

-cheryl




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: classpath problem

Posted by Galbayar <ga...@mobinet.mn>.
dont add web-inf/classes web-inf/lib dirs to a system class path.
move commons-httpclient.jar to tomcat_home/common/lib dir

-----Original Message-----
From: Cheryl A Norsworthy [mailto:Cheryl_A_Norsworthy@raytheon.com]
Sent: Wednesday, May 21, 2003 7:22 AM
To: Tomcat Users List
Subject: classpath problem




hi

I am new to this list.

I am having a problem.

I have just changed to a new server and went from tomcat 3.3.1a to 4.1.24

I moved my application by putting my war file in the webapps directory.

I am getting a compile  error when I ask for my first jsp page.  It has a
usebean in it and it seems that the class of the bean can not be found.  my
servlet finds it ok, to instantiate the bean, but the jsp can not seem to
find it.  it's in the application's web-inf/classes directory.

in the application's log, after the compile error, it lists the classpath
as

classpath=/E:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/classes/;/E:/j
akarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/lib/commons-httpclient.jar;/E
:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/classes/;/E:/jakarta-tomca
t-4.1.24/webapps/webDragon/WEB-INF/lib/commons-httpclient.jar;E:/jakarta-tom
cat-4.1.24/shared/classes/;E:/jakarta-tomcat-4.1.24/common/classes/;E:/jakar
ta-tomcat-4.1.24/common/endorsed/xercesImpl.jar;E:/jakarta-tomcat-4.1.24/com
mon/endorsed/xmlParserAPIs.jar;E:/jakarta-tomcat-4.1.24/common/lib/activatio
n.jar;E:/jakarta-tomcat-4.1.24/common/lib/ant.jar;E:/jakarta-tomcat-4.1.24/c
ommon/lib/commons-collections.jar;E:/jakarta-tomcat-4.1.24/common/lib/common
s-dbcp.jar;E:/jakarta-tomcat-4.1.24/common/lib/commons-logging-api.jar;E:/ja
karta-tomcat-4.1.24/common/lib/commons-pool.jar;E:/jakarta-tomcat-4.1.24/com
mon/lib/jasper-compiler.jar;E:/jakarta-tomcat-4.1.24/common/lib/jasper-runti
me.jar;E:/jakarta-tomcat-4.1.24/common/lib/jdbc2_0-stdext.jar;E:/jakarta-tom
c!

 at-4.1.24/common/lib/jndi.jar;E:/ja
karta-tomcat-4.1.24/common/lib/jta.jar;E:/jakarta-tomcat-4.1.24/common/lib/m
ail.jar;E:/jakarta-tomcat-4.1.24/common/lib/naming-common.jar;E:/jakarta-tom
cat-4.1.24/common/lib/naming-factory.jar;E:/jakarta-tomcat-4.1.24/common/lib
/naming-resources.jar;E:/jakarta-tomcat-4.1.24/common/lib/servlet.jar



note the first entries are specific to my application - webDragon.

also note the forward slash / before the drive letter that tomcat is
installed on for the application specific paths.  the other paths to the
"typical" tomcat jar files do not contain the forward slash.

also note that the entries for my application are listed twice.

it seems that the slash is being added somewhere, but I can't figure out
where.

does anyone have any ideas ?

-cheryl




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: classpath problem

Posted by John Corrigan <jo...@johncorrigan.net>.
Can you access the example JSPs that shipped with 4.1.24?

Given the drive letters, I'm assuming you are running under Windows.  Given
that you said that it is a new server I'm assuming that you are running Java
1.4.1_02.  If so, and the example JSPs do not work then the problem could be
the JVM Library setting in the registry.  For some reason the JVM.DLL in
"client" doesn't get along with Tomcat.  Try changing the value of "JVM
Library" to "C:\j2sdk1.4.1_02\jre\bin\server\jvm.dll" in the registry for
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat
4.1/Parameters.

-----Original Message-----
From: Cheryl A Norsworthy [mailto:Cheryl_A_Norsworthy@raytheon.com]
Sent: Tuesday, May 20, 2003 4:22 PM
To: Tomcat Users List
Subject: classpath problem




hi

I am new to this list.

I am having a problem.

I have just changed to a new server and went from tomcat 3.3.1a to 4.1.24

I moved my application by putting my war file in the webapps directory.

I am getting a compile  error when I ask for my first jsp page.  It has a
usebean in it and it seems that the class of the bean can not be found.  my
servlet finds it ok, to instantiate the bean, but the jsp can not seem to
find it.  it's in the application's web-inf/classes directory.

in the application's log, after the compile error, it lists the classpath
as

classpath=/E:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/classes/;/E:/j
akarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/lib/commons-httpclient.jar;/E
:/jakarta-tomcat-4.1.24/webapps/webDragon/WEB-INF/classes/;/E:/jakarta-tomca
t-4.1.24/webapps/webDragon/WEB-INF/lib/commons-httpclient.jar;E:/jakarta-tom
cat-4.1.24/shared/classes/;E:/jakarta-tomcat-4.1.24/common/classes/;E:/jakar
ta-tomcat-4.1.24/common/endorsed/xercesImpl.jar;E:/jakarta-tomcat-4.1.24/com
mon/endorsed/xmlParserAPIs.jar;E:/jakarta-tomcat-4.1.24/common/lib/activatio
n.jar;E:/jakarta-tomcat-4.1.24/common/lib/ant.jar;E:/jakarta-tomcat-4.1.24/c
ommon/lib/commons-collections.jar;E:/jakarta-tomcat-4.1.24/common/lib/common
s-dbcp.jar;E:/jakarta-tomcat-4.1.24/common/lib/commons-logging-api.jar;E:/ja
karta-tomcat-4.1.24/common/lib/commons-pool.jar;E:/jakarta-tomcat-4.1.24/com
mon/lib/jasper-compiler.jar;E:/jakarta-tomcat-4.1.24/common/lib/jasper-runti
me.jar;E:/jakarta-tomcat-4.1.24/common/lib/jdbc2_0-stdext.jar;E:/jakarta-tom
c!

 at-4.1.24/common/lib/jndi.jar;E:/ja
karta-tomcat-4.1.24/common/lib/jta.jar;E:/jakarta-tomcat-4.1.24/common/lib/m
ail.jar;E:/jakarta-tomcat-4.1.24/common/lib/naming-common.jar;E:/jakarta-tom
cat-4.1.24/common/lib/naming-factory.jar;E:/jakarta-tomcat-4.1.24/common/lib
/naming-resources.jar;E:/jakarta-tomcat-4.1.24/common/lib/servlet.jar



note the first entries are specific to my application - webDragon.

also note the forward slash / before the drive letter that tomcat is
installed on for the application specific paths.  the other paths to the
"typical" tomcat jar files do not contain the forward slash.

also note that the entries for my application are listed twice.

it seems that the slash is being added somewhere, but I can't figure out
where.

does anyone have any ideas ?

-cheryl




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org