Re: Tomcat v4.0.2 : doesn't find JAR files in the WEB-INF/lib

2002-02-28 Thread Lassie

Sriram Narayanan wrote:

 (snip)
 
 Hi Craig,
 The web-inf directory is already in capital letter on the windows file
 system. Is there another place, or another conf file I should check for
 this capital letter thing ?
 

 It really must be an issue of capital case. Here's how you could check.
 1. From the Windows Explorer, go to View-Options and select the check box Display 
the full path in the title bar.
 2. Apply these changes.
 3. Navigate to the WEB-INF folder, and select the web.xml file. Now check the title 
bar, if the folder name is not WEB-INF, then you just need
 to rename this. Remember, all the characters must be in capital case.

My  WEB-INF folder appears to be in capital letters... I don't understand why I get 
the NoClassDefFoundError.
To be sure I tried this jsp code :
%
 String classpath = (String)context.getAttribute(org.apache.catalina.jsp_classpath);
 StringTokenizer st = new StringTokenizer(classpath, ;);
 while (st.hasMoreTokens()) {
  String curr = st.nextToken();
 %
  nbsp;nbsp;%=curr%br
 %
 }
 %

I got the correct result for the classpath constructed by tomcat :
  E:/Webapps/Context/WEB-INF/classes
  E:/Webapps/Context/WEB-INF/lib/classes12.jar
  E:/Webapps/Context/WEB-INF/lib/myjarfile.jar
  E:/Webapps/Context/WEB-INF/lib/oraclexsql.jar
  E:/Webapps/Context/WEB-INF/lib/xmlparserv2.jar
  E:/Webapps/Context/WEB-INF/lib/xsu12.jar
  D:/Apache/jakarta-tomcat-4.0.2/classes/
  D:/Apache/jakarta-tomcat-4.0.2/lib/jasper-compiler.jar
  D:/Apache/jakarta-tomcat-4.0.2/lib/jasper-runtime.jar
  D:/Apache/jakarta-tomcat-4.0.2/lib/naming-factory.jar
  D:/Apache/jakarta-tomcat-4.0.2/common/classes/
  D:/Apache/jakarta-tomcat-4.0.2/common/lib/naming-common.jar
  D:/Apache/jakarta-tomcat-4.0.2/common/lib/naming-resources.jar
  D:/Apache/jakarta-tomcat-4.0.2/common/lib/servlet.jar
  D:/Apache/jakarta-tomcat-4.0.2/common/lib/tools.jar

So : the tomcat classpath looks ok, but I still get the NoClassDefFoundError when 
trying to access my classes... any clue ?
Tx

Lassie


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat v4.0.2 : doesn't find JAR files in the WEB-INF/lib

2002-02-27 Thread Lassie

Hi,
Is somebody already aware of the following behavior :
Tomcat is unable to find my JAR files, if I place them into the 
MY_CONTEXT/Web-inf/lib directory (classNotFoundException).
This is only working when using %CATALINA_HOME%/lib or 
%CATALINA_HOME/common/lib.

Is there a workaround for that ?
Thanks

Lassie

PS : I checked the CLASSPATH with the org.apache.catalina.jsp_classpath 
class, and It looks like it's OK. weird...






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat v4.0.2 : doesn't find JAR files in the WEB-INF/lib

2002-02-27 Thread Lassie

Craig R. McClanahan wrote:

On Wed, 27 Feb 2002, Lassie wrote:

Hi,
Is somebody already aware of the following behavior :
Tomcat is unable to find my JAR files, if I place them into the
MY_CONTEXT/Web-inf/lib directory (classNotFoundException).
This is only working when using %CATALINA_HOME%/lib or
%CATALINA_HOME/common/lib.

The WEB-INF directory name *must* be in all capital letters.
Servlet and JSP pages are case sensitive, even on Windows.

Hi Craig,
The web-inf directory is already in capital letter on the windows file 
system. Is there another place, or another conf file I should check for 
this capital letter thing ?

Lassie




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]