Hello,
I am developping a web application using several servlets. And I was
wondering how could I add sub-directory in the lib directory of my
webapp. I need something like 20 jar files and without organization,
it is a big mess.
I just don't know how to make tomcat know that I am using
sub
), and configure Tomcat to use it for your webapp.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Edouard Dalla-Costa [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 4:08 AM
To: [EMAIL PROTECTED]
Subject: Lib directory
Hello,
I am developping a web
In Weblogic I can have subfolders in the lib directory, isn't this possible in Tomcat? It
seems like I need to have all my jar files directly under the lib folder...
Regards
BTJ
--
---
Bjørn T Johansen
Correct. No subdirs.
-Tim
Bjørn T Johansen wrote:
In Weblogic I can have subfolders in the lib directory, isn't this
possible in Tomcat? It seems like I need to have all my jar files
directly under the lib folder
Hello!
Is tomcat able to load classes (not jar-files) from the
$CATALINA_HOME/shared/classes directory dynamically
(without tomcat-restart)?
And if so, how? I wasn't able to do it.
--
Thanks,
Martin
-
To unsubscribe,
Hi,
Nope, common/shared classes require a restart.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Martin Morawetz [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 12:04 PM
To: Tomcat Users List
Subject: loading classes from the shared/lib directory
Hello
From: Tim Funk [EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 5:43 PM
From the spec:
The web application classloader must load classes from the WEB-INF/
classes
directory first, and then from library JARs in the WEB-INF/lib directory.
So if you have patches - don't JAR them.
Since
If I have jars that I'd like to put in to the WARs lib directory (or, say,
shared/lib), is there any way I can, perhaps, name them to guarantee use
order?
For example, say I have:
mystuff.jar and mystuff_patch.jar
If I have CLASSPATH=mystuff_patch.jar:mystuff.jar, then, ordinarily, Java
From the spec:
The web application classloader must load classes from the WEB-INF/ classes
directory first, and then from library JARs in the WEB-INF/lib directory.
So if you have patches - don't JAR them.
Since the spec doesn't specify JAR order, it may be different between
containers
and
archivevalue parameters for a jar in the /WEB-INF/lib directory
On Fri, 28 Mar 2003, Susan Hoddinott wrote:
Date: Fri, 28 Mar 2003 09:25:45 +0800
From: Susan Hoddinott [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject
. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 11:51 AM
Subject: Re: Creating an HTML file with the correct codebase and
archivevalue parameters for a jar in the /WEB-INF/lib directory
On Fri, 28 Mar 2003, Susan Hoddinott wrote:
Date: Fri, 28 Mar
parameters for a jar in the /WEB-INF/lib directory
Thanks. Do you have the servlet spec reference link where this is
explained?
Section 9.5, second paragraph: No file contained in the WEB-INF
directory may be served directly to a client by the container.
Craig
- Original Message
, 2003 11:51 AM
Subject: Re: Creating an HTML file with the correct codebase and
archivevalue parameters for a jar in the /WEB-INF/lib directory
On Fri, 28 Mar 2003, Susan Hoddinott wrote:
Date: Fri, 28 Mar 2003 09:25:45 +0800
From: Susan Hoddinott [EMAIL PROTECTED]
Reply-To: Tomcat Users
for a jar in the /WEB-INF/lib directory
Java(TM) Servlet API Specification (Specification)
Version: 2.3
SRV.9.5 Directory Structure
http://java.sun.com/products/servlet/download.html
-Tim
Susan Hoddinott wrote:
Thanks. Do you have the servlet spec reference link where this is
explained
Hello,
I am trying to create an HTML file which accesses
classes and applets in a jar file (demo.jar) which is in the WEB-INF/lib
directory. I seem to have problems getting it to recognise the existence
of the jar file and/or more than the first applet in the jar file. If I
put the jar
parameters for a jar in the /WEB-INF/lib directory
Hello,
I am trying to create an HTML file which accesses classes and applets in
a jar file (demo.jar) which is in the WEB-INF/lib directory. I seem to
have problems getting it to recognise the existence of the jar file
and/or more than
the
path Specified error (see below).
The root cause indicates that it is a missing JAR file, but that file exists
under the CATALINA_BASE/edgile/WEB-INF/lib directory, but for some reason is
not being found. It is found and correctly started when I move the edgile
webapp to the webapps directory
Maybe it is corrupt? Can you view the contents of the jar file?
jar -tf iwxml.jar
Larry
[EMAIL PROTECTED] 10/17/02 15:17 PM
Hi:
It seems that Tomcat doesn't support any jar in the WEB-INF/lib
directory.
By the way I'm not using symlinks at all in the WEB-INF/lib directory.
Tomcat 4.1.12
Hi:
It seems that Tomcat doesn't support any jar in the WEB-INF/lib
directory.
By the way I'm not using symlinks at all in the WEB-INF/lib directory.
Tomcat 4.1.12
Sun JDK 1.4.1
Red Hat 8
The file mywebapp/WEB-INF/lib/iwxml.jar does exist!
The owner of the Tomcat process is root,so it can read
Hi,
I want to use symlinks for all my jar files in the WEB-INF/lib
directory
of my webapp. Tomcat can't handle those symlinks.
That's not part of the specification. In fact, all tomcat's required to
handle is a WAR file containing your entire webapp. That tomcat allows
you to deploy
in the WEB-INF/lib
directory.
By the way I'm not using symlinks at all in the WEB-INF/lib directory.
Tomcat 4.1.12
Sun JDK 1.4.1
Red Hat 8
The file mywebapp/WEB-INF/lib/iwxml.jar does exist!
The owner of the Tomcat process is root,so it can read the archive.
--
To unsubscribe, e
, October 17, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: No jars allowed in the WEB-INF/lib directory
Hi:
It's not corrupt
jar -tvf iwxml.jar
works fine.
On Thu, 2002-10-17 at 16:29, Larry Meadors wrote:
Maybe it is corrupt? Can you view the contents of the jar file
Hi:
I want to use symlinks for all my jar files in the WEB-INF/lib directory
of my webapp. Tomcat can't handle those symlinks.
My OS is RedHat 8.0
Sun JDK 1.4.1
Tomcat 4.1.12
I need to get it to work in RedHat 7.3, 8.0 and Solaris 8.0
I have not test with Solaris, anyway, I need it working
Hi,
I am currently working on a project. I want to install this project under c:\root in
my computer. in c:\root\servlet\servlet.jar there are my servlets. and I want to call
these servlets like the following url:
http://localhost/servlet/hello (there is hello.class in
The servlet spec requires that your app must look like:
contextName/ (put static content here)
WEB-INF/ (put web.xml here)
lib/ (put your .jar libraries here)
classes/ (put your standalone classes here)
Also, you will need to put your contextName directory under
Hi,
I am currently working on a project. I want to install this project under c:\root in
my computer. in c:\root\servlet\servlet.jar there are my servlets. and I want to call
these servlets like the following url:
http://localhost/servlet/hello (there is hello.class in
Hello,
I've just subscribed to this list, and I have a question. If anybody could
help, I would appreciate that.
I am JARring a few .properties archives, and saving them in the
WEB-INF/lib directory. After the service is restarted the server was
supposed to pre-load the archives
Hi,
I am running tomcat on NT 4.0 and am having an issues with a parent/child
servlet situation. Particularly, I have two simple servlets - ServletParent
- in one jar in the lib directory for my application - and another servlet -
ServletChild (which extends ServletParent) - in a different jar
Hey Rob, thanks for the help. Let me figure out how this works for me.
greetings
Paresh
-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 8:07 PM
To: [EMAIL PROTECTED]
Subject: Re: problem in loading jar files in WEB-INF\lib directory
Ugh
files in WEB-INF\lib directory
On Fri, 17 Aug 2001, Paresh Deshpande wrote:
Hi Rob,
thanks for your reply, Rob. I was waiting for the reply for quite a while
:)).
It is not specifically mentioned in the docs how the class files in
WEB-INF\classes
are loaded. Neither is it mentioned
]]
Sent: Friday, August 17, 2001 1:14 AM
To: [EMAIL PROTECTED]
Subject: problem in loading jar files in WEB-INF\lib directory
Hi,
I am trying to run my application on APACHE with TOMCAT servlet
engine. I
have placed the jar files required for web
application in myapp\WEB-INF\lib folder
get class cast exception
error. Tomcat
does not find the class. How can I solve this problem?
paresh
-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: RE: problem in loading jar files in WEB-INF\lib directory
?
paresh
-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: RE: problem in loading jar files in WEB-INF\lib directory
Sounds like you could learn a lot from reading the Application Developer's
Guide
thanks Rob,
got the particular information :
When you install an application into Tomcat (or any other 2.2-compatible
server), the classes in the WEB-INF/classes/
directory, as well as all classes in JAR files found in the WEB-INF/lib/
directory, are added to the class path for your
particular
Then, the only question remaining is classes in my jar file are not being
loaded for
some reason. While loading the servlet, somewhere midway, the classes in
WEB-INF\lib
directory are not being loaded. strange isn't it?
How do you know the classes are not being loaded? What kind of error
-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 7:34 PM
To: [EMAIL PROTECTED]
Subject: Re: problem in loading jar files in WEB-INF\lib directory
Then, the only question remaining is classes in my jar file are not being
loaded for
some reason
come donw to Bangalore...
paresh
-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 7:34 PM
To: [EMAIL PROTECTED]
Subject: Re: problem in loading jar files in WEB-INF\lib directory
Then, the only question remaining is classes in my jar file
to Bangalore...
paresh
-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 7:34 PM
To: [EMAIL PROTECTED]
Subject: Re: problem in loading jar files in WEB-INF\lib directory
Then, the only question remaining is classes in my jar file
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 1:14 AM
To: [EMAIL PROTECTED]
Subject: problem in loading jar files in WEB-INF\lib directory
Hi,
I am trying to run my application on APACHE with TOMCAT servlet
engine. I
have placed the jar files required for web
into
the System classloader (by putting them on the CLASSPATH, or
into Tomcat's top level lib directory).
Craig
Hi,
I am trying to run my application on APACHE with TOMCAT servlet engine. I
have placed the jar files required for web
application in myapp\WEB-INF\lib folder. Will tomcat automatically pick up
this jar file? Or do I need to add them manually
in tomcat.bat?
Further, do I need to add
Is it valid to place servlets in a JAR file, and place them in the lib
directory (in WEB-INF dir of WAR file)?
Thanks,
J
On Fri, 27 Jul 2001, James Hughes wrote:
Is it valid to place servlets in a JAR file, and place them in the lib
directory (in WEB-INF dir of WAR file)?
Sure. The same is true for non-servlet classes. Just be sure you put the
JAR files exactly in the /WEB-INF/lib directory
I am working on a web publishing app and am using Tomcat 3.2.1 with Cocoon.
My application is installed by putting the .war file in the
tomcat_home/webapps directory and restarting Tomcat. I am finding that any
.jar files that I include in the WEB-INF/lib directory are not available to
my
I don't think you are missing anything.
The jar files in your web apps. web-inf/lib directory
can not be seen from classes loaded from outside of
your web app. Someplace you are probably loading a
class that does not have access to the jar files in
your web app.
--- Tait, Allen [EMAIL
I've just started to use Tomcat. I created a .war file for my servlet and
on startup of tomcat, the .war file was processed. Trying to access the
servlet caused some ClassDefNotFound errors to appear. I moved the
necessary .jar files to the WEB-INF/lib directory, and restarted tomcat
46 matches
Mail list logo