RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Davidson, Greg
Yeah, I read that, here is the problem:

I want to run Tomcat from my local PC.

I want to load the *.classes from a network drive (for night backup
purposes) not my local drive.
(I've changed the class path in the catalina.bat, but I don't like this)

I want to run the *.jsp from a network drive (for night backup purposes) not
my local drive.
(I've added a context in the server.xml for this)

Windows shortcuts are not the same as Unix symbolic links 
(can't use a shortcut in the WEB-INF/classes to point to the network drive)

Tomcat changes the system classpath, I tried setting the system(windows)
classpath to include the
network drive, but Tomcat changes it.
(I've changed the class path in the catalina.bat, but I don't like this)



-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 6:47 PM
To: Tomcat Users List
Subject: RE: getting java.lang.NoClassDefFoundError


Where is your bean's code being loaded from?  It should be in
$CATALINA_HOME/common/classes or your webapp's WEB-INF/classes (or it
can be in a JAR in $CATALINA_HOME/lib or your webapp's WEB-INF/lib).

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Davidson, Greg [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, January 27, 2003 5:44 PM
 To: '[EMAIL PROTECTED]'
 Subject: getting java.lang.NoClassDefFoundError
 
 
 I'm getting the following error:
 
 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
 
 when I try to execute the following:
 
 bean code:
 request(request, response)
 {
   request.getParamater(inputBox); //This line cause 
 the error.
 }
 
 Why isn't this (javax/servlet/http/HttpServletRequest) in 
 my/tomcat's classpath??  Is that the problem??
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Barclay A. Dunn
getParameter() is misspelled.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 8:57 PM
To: Tomcat Users List
Subject: Re: getting java.lang.NoClassDefFoundError




On Mon, 27 Jan 2003, Davidson, Greg wrote:

 Date: Mon, 27 Jan 2003 17:44:23 -0500
 From: Davidson, Greg [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' 
 [EMAIL PROTECTED]
 Subject: getting java.lang.NoClassDefFoundError

 I'm getting the following error:

 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

 when I try to execute the following:

 bean code:
 request(request, response)
 {
   request.getParamater(inputBox); //This line cause the
error.
 }

 Why isn't this (javax/servlet/http/HttpServletRequest) in my/tomcat's 
 classpath??  Is that the problem??


Most likely explanation is that you modified Tomcat's classpath to put
servlet.jar on it, or put the class containing the above code into the
system extensions directory, or otherwise messed with the standard file
layout.  Without more details about your environment, it's not possible
to know where the problem really lies.

Craig



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Tim Moore
 -Original Message-
 From: Davidson, Greg [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 28, 2003 8:57 AM
 To: 'Tomcat Users List'
 Subject: RE: getting java.lang.NoClassDefFoundError
 
 
 Yeah, I read that, here is the problem:
 
 I want to run Tomcat from my local PC.
 
 I want to load the *.classes from a network drive (for night backup
 purposes) not my local drive.
 (I've changed the class path in the catalina.bat, but I don't 
 like this)
 
 I want to run the *.jsp from a network drive (for night 
 backup purposes) not my local drive. (I've added a context in 
 the server.xml for this)

OK so if your context directory is already on a network drive, can't you
just put your classes in WEB-INF/classes and be done?  I must be
misunderstanding you.

 
 Windows shortcuts are not the same as Unix symbolic links 
 (can't use a shortcut in the WEB-INF/classes to point to the 
 network drive)
 
 Tomcat changes the system classpath, I tried setting the 
 system(windows) classpath to include the network drive, but 
 Tomcat changes it. (I've changed the class path in the 
 catalina.bat, but I don't like this)

My experience is that trying to muck with Tomcat's classloading scheme
only brings pain. :-\

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Shapira, Yoav
Howdy,

 I want to load the *.classes from a network drive (for night backup
 purposes) not my local drive.
 (I've changed the class path in the catalina.bat, but I don't
 like this)

I wouldn't like it either if I were you ;)

Besides posing a security risk (e.g. someone remapping the network drive
maliciously to other .class files), what do you gain from this?  Have
you considered packaging your app into a .war file and deploying that to
the server, instead of messing with symlinks, shortcuts, and mangled
classpaths that lead to a non-portable webapp?

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: getting java.lang.NoClassDefFoundError

2003-01-27 Thread Tim Moore
Where is your bean's code being loaded from?  It should be in
$CATALINA_HOME/common/classes or your webapp's WEB-INF/classes (or it
can be in a JAR in $CATALINA_HOME/lib or your webapp's WEB-INF/lib).

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Davidson, Greg [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, January 27, 2003 5:44 PM
 To: '[EMAIL PROTECTED]'
 Subject: getting java.lang.NoClassDefFoundError
 
 
 I'm getting the following error:
 
 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
 
 when I try to execute the following:
 
 bean code:
 request(request, response)
 {
   request.getParamater(inputBox); //This line cause 
 the error.
 }
 
 Why isn't this (javax/servlet/http/HttpServletRequest) in 
 my/tomcat's classpath??  Is that the problem??
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: getting java.lang.NoClassDefFoundError

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, Davidson, Greg wrote:

 Date: Mon, 27 Jan 2003 17:44:23 -0500
 From: Davidson, Greg [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: getting java.lang.NoClassDefFoundError

 I'm getting the following error:

 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

 when I try to execute the following:

 bean code:
 request(request, response)
 {
   request.getParamater(inputBox); //This line cause the error.
 }

 Why isn't this (javax/servlet/http/HttpServletRequest) in my/tomcat's
 classpath??  Is that the problem??


Most likely explanation is that you modified Tomcat's classpath to put
servlet.jar on it, or put the class containing the above code into the
system extensions directory, or otherwise messed with the standard file
layout.  Without more details about your environment, it's not possible to
know where the problem really lies.

Craig



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]