Re:JSP not seeing WEB-INF/lib
Yeah, that's what's I have. It just occurred to me (this should've been obvious from the start) that it's the java compiler that's having trouble seeing WEB-INF/lib. How would I specify to the java compiler to look in WEB-INF/lib and possibly other directories (without changing CLASSPATH for the entire application server)? Is there something in web.xml for this? Thanks, Noel Please make sure you have a directory yourapp/WEB-INF and not yourapp/web-inf. Kobe On Wed, 22 Aug 2001 18:16:23 -0400 Noel L Yap [EMAIL PROTECTED] wrote: I'm running tomcat-3.2.3 with jdk-1.2.2 on NT 4. It looks like under certain conditions, tomcat will use WEB-INF/lib (eg when loading servlets), but when a JSP tries to import a class in a jar file in WEB-INF/lib, it doesn't find it. What do I need to do to get this working (I'd prefer not having to add the jar files to the CLASSPATH specially with the DOS command line length limit)? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. --- Under the Brooklyn Bridge What? Not seen the girl yet? -- George Costanza SignUP for your FREE email at http://www.ny.com/. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: a simple ( irritating) classpath problem
I'm also having problems with WEB-INF/lib. At the time the JSP is compiled, it seems that the Java compiler doesn't use WEB-INF/lib. What can be done about this? Thanks, Noel hi, There are three basic areas that classes can be put in tomcat: WEB-INF/classes - contains all the classes that form the web application WEB-INF/lib - contains jars that the web application uses TOMCAT_HOME/lib - contains jars that are available to _all_ applications using tomcat because i put all the package (com.oreilly.servlet.*) in the same directory with the servlet (under web-inf/classes/ com/servlet/ directory) if it is the package com.oreilly.servlet then it should go in WEB-INF/classes/com/oreilly/servlet - even better, I assume you got it as a jar, just put the jar in WEB-INF/lib . If it is a zip, then rename it to a jar. i tried putting the cos.jar file in the web-inf/lib directory, it didn't work what do you mean it didn't work? try jar -tf cos.jar to check that the classes are in the jar. I assume you are importing the required classes and that they exist in the jar. in put these files directly under the web-inf/classes/ directory , it didn't work either again, should be according to package then i added the full path tomcat_home/lib/cos.jar, to the classpath, didn't work either. I'm not sure why that didn't work - although if you put cos.jar in the classpath it _should_ be available to all web applications. well, i gave up, i just wanted to learn the LOGICAL way to set the classpath up. you dont need to set the classpath yourself. just put your jars in WEB-INF/lib and your classes in WEB-INF/classes hth, cheers dim This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: a simple ( irritating) classpath problem
What about tomcat-3.2.3? I've been doing a lot of searching; all I've found were trouble reports and no solutions. Can you provide a URL, please? Thanks, Noel Guys, not to be short-tempered here or anything, but open your eyes! These class loading issues have been a hot topic on the list for the last week, while all of you are writing/reading your own messages. 1) Search or browse the list the archives. 2) See classloader.html that describes Catalina's class loading architecture. You might have to browse the CVS repository... /jakarta-tomcat-4.0/catalina/docs/dev/classloader.html. - r On Thu, 23 Aug 2001 10:07:06 -0400 [EMAIL PROTECTED] wrote: I'm also having problems with WEB-INF/lib. At the time the JSP is compiled, it seems that the Java compiler doesn't use WEB-INF/lib. What can be done about this? Thanks, Noel hi, There are three basic areas that classes can be put in tomcat: WEB-INF/classes - contains all the classes that form the web application WEB-INF/lib - contains jars that the web application uses TOMCAT_HOME/lib - contains jars that are available to _all_ applications using tomcat because i put all the package (com.oreilly.servlet.*) in the same directory with the servlet (under web-inf/classes/ com/servlet/ directory) if it is the package com.oreilly.servlet then it should go in WEB-INF/classes/com/oreilly/servlet - even better, I assume you got it as a jar, just put the jar in WEB-INF/lib . If it is a zip, then rename it to a jar. i tried putting the cos.jar file in the web-inf/lib directory, it didn't work what do you mean it didn't work? try jar -tf cos.jar to check that the classes are in the jar. I assume you are importing the required classes and that they exist in the jar. in put these files directly under the web-inf/classes/ directory , it didn't work either again, should be according to package then i added the full path tomcat_home/lib/cos.jar, to the classpath, didn't work either. I'm not sure why that didn't work - although if you put cos.jar in the classpath it _should_ be available to all web applications. well, i gave up, i just wanted to learn the LOGICAL way to set the classpath up. you dont need to set the classpath yourself. just put your jars in WEB-INF/lib and your classes in WEB-INF/classes hth, cheers dim This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
FYI: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html broken links
The following links are broken: Loader Manager Resources Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: a simple ( irritating) classpath problem
These class loading issues have been a hot topic on the list for the last week, while all of you are writing/reading your own messages. The answers to these questions (or at least URLs to answers) need to be put into the FAQ. 1) Search or browse the list the archives. All I find are problem reports, not answers. 2) See classloader.html that describes Catalina's class loading architecture. You might have to browse the CVS repository... /jakarta-tomcat-4.0/catalina/docs/dev/classloader.html. Where is classloader.html? How can I get it? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
JSP not seeing WEB-INF/lib
I'm running tomcat-3.2.3 with jdk-1.2.2 on NT 4. It looks like under certain conditions, tomcat will use WEB-INF/lib (eg when loading servlets), but when a JSP tries to import a class in a jar file in WEB-INF/lib, it doesn't find it. What do I need to do to get this working (I'd prefer not having to add the jar files to the CLASSPATH specially with the DOS command line length limit)? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
tomcat.policy and WEB-INF/lib?
Do I need to do anything in tomcat.policy in order to be able to use CONTEXT/WEB-INF/lib? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
docs
Exactly where can I find docs that describe how I can add java command line arguments (eg, I want to define some variables)? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
RE: tomcat.policy and WEB-INF/lib?
Actually, I'm having problems getting stuff in WEB-INF/lib jar files to be imported by my JSP's (I'm getting ClassNotFoundException's). I was wondering if tomcat.policy had anything to do with the problems. Thanks, Noel well you can use the classloader, let's say that you have a jar file (test.jar) containing a property file (test.properties) and the jar file is in lib, then from your servlet you can say this.getClass().getClassLoader().getResourceAsStream(test.properties); is that what you are trying to achieve? Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Noel L Yap [mailto:[EMAIL PROTECTED]] Sent: Monday, August 20, 2001 8:46 AM To: [EMAIL PROTECTED] Subject: tomcat.policy and WEB-INF/lib? Do I need to do anything in tomcat.policy in order to be able to use CONTEXT/WEB-INF/lib? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
WEB-INF/lib not used?
I've just created a new web app. I'm able to bring up a trivial JSP so I'm pretty sure I've done something right. However, when I try to do an import within the JSP (eg import com.epicentric.common.*) I get Package com.epicentric.common not found in import. even though the jar file is installed in WEB-INF/lib. According to the docs, I shouldn't have to do anything other than put the jar into this directory. Can anyone help me out, please? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: WEB-INF/lib not used?
Sorry, I forgot to say that I'm using tomcat-3.2.3 and jdk-1.2.2. Thanks, Noel I've just created a new web app. I'm able to bring up a trivial JSP so I'm pretty sure I've done something right. However, when I try to do an import within the JSP (eg import com.epicentric.common.*) I get Package com.epicentric.common not found in import. even though the jar file is installed in WEB-INF/lib. According to the docs, I shouldn't have to do anything other than put the jar into this directory. Can anyone help me out, please? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: WEB-INF/lib not used?
Yes, several times. Noel you restart tomcat? Noel L Yap wrote: I've just created a new web app. I'm able to bring up a trivial JSP so I'm pretty sure I've done something right. However, when I try to do an import within the JSP (eg import com.epicentric.common.*) I get Package com.epicentric.common not found in import. even though the jar file is installed in WEB-INF/lib. According to the docs, I shouldn't have to do anything other than put the jar into this directory. Can anyone help me out, please? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: WEB-INF/lib not used?
It's only in WEB-INF/lib (it worked when I put it in tomcat-dir/lib, but I know I don't really want to do that). Noel Do you have it anywhere else in your CLASSPATH? It should only be in your WEB-INF/lib directory... - r This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
error in WEB-INF/xml
I'm getting the following upon start: ERROR reading D:\opt\jakarta-tomcat-3.2.3\webapps\portalserver\WEB-INF\web.xml At Missing whitespace before SYSTEM literal URI. ERROR reading D:\opt\jakarta-tomcat-3.2.3\webapps\portalserver\WEB-INF\web.xml org.xml.sax.SAXParseException: Missing whitespace before SYSTEM literal URI. at com.sun.xml.parser.Parser.fatal(Parser.java:2817) at com.sun.xml.parser.Parser.fatal(Parser.java:2811) at com.sun.xml.parser.Parser.whitespace(Parser.java, Compiled Code) at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2389) at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1100) at com.sun.xml.parser.Parser.parseInternal(Parser.java:481) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader .java:202) at org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java: 109) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java , Compiled Code) at org.apache.tomcat.core.ContextManager.init(ContextManager.java, Compi led Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) 2001-08-17 17:06:02 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-08-17 17:06:02 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 What does it mean? I'm using the default web.xml file that's mentioned in the docs, tomcat-3.2.3, and jdk-1.2.2. Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.
Re: Version
That's the version of the LICENSE file that you're seeing. It will have nothing to do with the version of Tomcat or Apache that you're running. Noel Rob, Obviously, you and I need to learn a little more before we can open our own little yahoo shop. I found out that in tomcat, it is named LICENSE. lol! I'm just kidding dude! That help was very useful and more than $10 worth even though the name was LICENSE. Now in the LICENSE of my tomcat, it is displayed: * $Header: /home/cvs/jakarta-tomcat/LICENSE,v 1.1.1.1 1999/10/09 00:19:57 duncan Exp $ * $Revision: 1.1.1.1 $ * $Date: 1999/10/09 00:19:57 $ I suppose it is very old one, namely, Circa 1999. And I think that is why it is giving us all kinds of all kinds of errors. Moreover, what I am really concerned is the following message displayed bellow of the above message: * * * The Apache Software License, Version 1.1 * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * Now, my question is: Is this an Apache's License README file or tomcat's? - Original Message - From: Rob S. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 3:02 PM Subject: Re: Version Oh. My. God. I should start a Yahoo! Shop answering questions for $10k =) You obviously have access to the server... cd to $TOMCAT_HOME and read the README file. - r On Thu, 16 Aug 2001 14:38:21 -0500 [EMAIL PROTECTED] wrote: Folks, How do I know what version of tomcat I have on my apache server? This dude who installed tomcat for us, I think, he installed only the beta release of tomcat. Now, he is asking $10,000 to fix it. Oh holly cow! was my bosses reaction.:) I used the command: openssl version -a But it only gave me the ssl version. Any help will be appreciated! This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.