Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-22 Thread Christopher Schultz
ssage- From: Christopher Schultz Sent: Friday, January 22, 2021 1:47 PM To: users@tomcat.apache.org Subject: Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running. Attention: This email was sent from someone outside of eClinicalWorks. Always use caution

RE: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-22 Thread Jalaj Asher
The files are being reopened and then closed and then again reopened. Regards Jalaj P Asher -Original Message- From: Christopher Schultz Sent: Friday, January 22, 2021 1:47 PM To: users@tomcat.apache.org Subject: Re: Reg: Jars under web-inf lib being accessed by tomcat even when the

Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-22 Thread Christopher Schultz
;lsof /WEB-INF/lib/*.jar" Are you seeing the files *reopened* over and over again? Or are you just seeing them opened and kept open? -chris -Original Message- From: Christopher Schultz Sent: Wednesday, January 20, 2021 4:41 PM To: users@tomcat.apache.org Subject: Re: Reg: Jars under w

RE: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-22 Thread Jalaj Asher
Hi Chris, We have not set the autoreload setting at all. I believe by default its set to false. Please correct me if that’s not the case. Also manager is disabled in our environment. I used the watch command along with lsof highlighted below . Watch "lsof /WEB-INF/lib/*.jar&quo

Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-20 Thread Christopher Schultz
: Jars under web-inf lib being accessed by tomcat even when the application is not running. Attention: This email was sent from someone outside of eClinicalWorks. Always use caution when opening attachments or clicking links from unknown senders or when receiving unexpected emails. Jalaj, On 1

RE: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-19 Thread Jalaj Asher
@tomcat.apache.org Subject: Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running. Attention: This email was sent from someone outside of eClinicalWorks. Always use caution when opening attachments or clicking links from unknown senders or when receiving unexpected

Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-19 Thread Christopher Schultz
Jalaj, On 1/18/21 11:13, Jalaj Asher wrote: We have a situation where in we are seeing with tomcat 8.5 and higher that even when the application is not in use , tomcat is accessing different jars in that web-inf/ lib folder every few seconds or few minutes. These jars are not getting loaded

Re: Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-18 Thread Mark Thomas
On 18/01/2021 16:13, Jalaj Asher wrote: > We have a situation where in we are seeing with tomcat 8.5 and higher that > even when the application is not in use , tomcat is accessing different jars > in that web-inf/ lib folder every few seconds or few minutes. > > These jars

Reg: Jars under web-inf lib being accessed by tomcat even when the application is not running.

2021-01-18 Thread Jalaj Asher
We have a situation where in we are seeing with tomcat 8.5 and higher that even when the application is not in use , tomcat is accessing different jars in that web-inf/ lib folder every few seconds or few minutes. These jars are not getting loaded in memory , we profiled it to check if they

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-12-03 Thread Rhuberg,Anthony
Hi, -Original Message- From: Mark Thomas Sent: Thursday, October 10, 2019 3:54 AM To: users@tomcat.apache.org Subject: Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib On 09/10/2019 22:58, Rhuberg,Anthony wrote

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-11 Thread Rhuberg,Anthony
imply that. -Original Message- From: john.e.gr...@wellsfargo.com.INVALID Sent: Thursday, October 10, 2019 6:54 PM To: users@tomcat.apache.org Subject: RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib Tony

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-10 Thread John.E.Gregg
Tony, > -Original Message- > From: Rhuberg,Anthony > Sent: Thursday, October 10, 2019 5:22 PM > To: Tomcat Users List > Subject: RE: Performance test with Tomcat 9 shows increased cpu/disk usage > because of repeated opening/closing of jars in WEB-INF/lib

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-10 Thread Rhuberg,Anthony
We are still investigating what specific classloader reads that would trigger the repeated reload of the web-inf/lib/*.jars. One example we found is the use of javax.xml.transform.TransformerFactory.newInstance(). One of its features is to determine the implementation by searching for the

Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-10 Thread Mark Thomas
shows increased cpu/disk usage > because of repeated opening/closing of jars in WEB-INF/lib > > On 09/10/2019 21:03, Rhuberg,Anthony wrote: >> This seems to alleviate the issue... in context.xml (sc-test#sc.xml) >> > swallowOutput="true" backgro

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
repeated opening/closing of jars in WEB-INF/lib Hi Anthony Have you turned debug logging on to see what it is picking up as modified? On Wed, 09 Oct 2019, 22:24 Rhuberg,Anthony, wrote: > Thanks for your responses. > > I understand that re-reading the static files is not optimal, but h

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib On 09/10/2019 21:03, Rhuberg,Anthony wrote: > This seems to alleviate the issue... in context.xml (sc-test#sc.xml) > swallowOutput="true" backgroundProcessorDelay=&q

Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Mark Thomas
On 09/10/2019 21:03, Rhuberg,Anthony wrote: > This seems to alleviate the issue... in context.xml (sc-test#sc.xml) > backgroundProcessorDelay="90"> > > Not sure if this is the context reload trigger... i.e. the > webappLoader.backgroundProcess method is triggered every 90 seconds... It isn't. I

Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Paul Carter-Brown
hows increased cpu/disk usage > because of repeated opening/closing of jars in WEB-INF/lib > > On 09/10/2019 20:08, Rhuberg,Anthony wrote: > > On the other thread: Is this genuine class loading (in which case the > > response below is correct) or is the application reading

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
, 2019 3:56 PM To: users@tomcat.apache.org Subject: Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib On 09/10/2019 20:08, Rhuberg,Anthony wrote: > On the other thread: Is this genuine class loading (in which case

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
Check if JARs have been added or removed WebResource[] jars = resources.listResources("/WEB-INF/lib"); // Filter out non-JAR resources int jarCount = 0; for (WebResource jar : jars) { if (jar.getName().endsWith(".jar")

Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Mark Thomas
cache it. > -Original Message- > From: Rhuberg,Anthony > Sent: Wednesday, October 09, 2019 2:53 PM > To: Tomcat Users List > Subject: RE: Performance test with Tomcat 9 shows increased cpu/disk usage > because of repeated opening/closing of jars in WEB-INF/lib > > Ju

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
, 2019 2:53 PM To: Tomcat Users List Subject: RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib Just noticed another thread on this topic: RE: Tomcat discards and reloads the jar files from the webapps folder. Setting

RE: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
To: users@tomcat.apache.org Subject: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib Background: In the last few months we migrated our web application from Tomcat 7.0.55 to Tomcat 9.0.19 (26). That transition was

Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Rhuberg,Anthony
profile showed all the jars in WEB-INF/lib being closed and reopened within seconds while the application was processing requests (and to some extent when quite). Now we are trying to determine why. We have a general understanding that the WebappClassLoaderBase.java implementation changed in Tomcat

Feature? jdbc driver vs javamail loading from WEB-INF/lib

2019-01-05 Thread Vernat Emeric
Hello, Is the jdbc driver loading from WEB-INF/lib and used in jndi datasource an official feature, given that it is used in so many webapps? Then what about mail session and javamail? Before saying yes of course or never it is, see that the jdbc driver is loaded from WEB-INF/lib and used

Re: tomcat web-inf/lib and soft links, how to make them live happy

2018-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Narahari, On 2/1/18 5:07 PM, Narahari 'n' Savitha wrote: > I think I found the solution. Putting it here for comopleteness. > > In the $CATALINA_BASE/conf/context.xml file add the following to > the Context tag aka > > It looked like this before

Re: tomcat web-inf/lib and soft links, how to make them live happy

2018-02-01 Thread Narahari 'n' Savitha
t; NOw I do this > > cd webapps/myapp/WEB-INF/lib > > ln -s ../../../thejars/gson-2.3.1.jar gson-2.3.1.jar > > I then restart tomcat and the error comes up like this > > java.io.IOException: Failed to access resource /WEB-INF/lib/gson-2.3.1.jar > > so if I do a SOFT lin

tomcat web-inf/lib and soft links, how to make them live happy

2018-02-01 Thread Narahari 'n' Savitha
Friends: I am sure the experts here have stumbled on this. So please help. I have an app where I have myapp |_WEB-INF/lib/gson-2.3.1.jar When I start tomcat it works fine. NOw I do this cd webapps/myapp/WEB-INF/lib ln -s ../../../thejars/gson-2.3.1.jar gson-2.3.1.jar I then restart

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib continued...

2017-10-04 Thread Mark Thomas
be bundled > within the web application's WEB-INF/lib directory > > > Therefore, Tomcat 8.0 looks to be doing the right thing." > > Which I think is fine for the case where the container is augmenting a > existing web.xml. > > However the spec also says "If a fra

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib continued...

2017-10-04 Thread Brian Toal
nt language is in section 8.2.1 > > > If a framework wants its META-INF/web-fragment.xml honored in such a way > that it augments a web application's web.xml, the framework must be bundled > within the web application's WEB-INF/lib directory > > > Therefore,

Embedded tomcat does not find web-fragment in jars outside web-inf\lib continued...

2017-10-04 Thread Brian Toal
The chain [1] left of with: "The relevant language is in section 8.2.1 If a framework wants its META-INF/web-fragment.xml honored in such a way that it augments a web application's web.xml, the framework must be bundled within the web application's WEB-INF/lib directory Theref

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-11 Thread Michael Heinen
f there was a change/clarification that might have prompted this. I do recall in that timeframe that there were some clarifications about what got scanned in what circumstances. /me goes to read spec docs... The relevant language is in section 8.2.1 only JAR files bundled in a web application's

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Mark Thomas
n't know the reason for > that. > What next? Let me look at the specs and see if there was a change/clarification that might have prompted this. I do recall in that timeframe that there were some clarifications about what got scanned in what circumstances. /me goes to read spec docs...

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Michael Heinen
Am 10.05.2017 um 12:18 schrieb Mark Thomas: On 10/05/17 10:26, Michael Heinen wrote: Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: Hi all, I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. On development platforms we use an embedded t

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Mark Thomas
On 10/05/17 10:26, Michael Heinen wrote: > Am 10.05.2017 um 00:40 schrieb Mark Thomas: >> On 09/05/17 15:25, Michael Heinen wrote: >>> Hi all, >>> >>> I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. >>> On development platforms we use an embedded tomcat. >>> On of the jars on

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Michael Heinen
ent is processed when I move the jar to the web-inf\lib folder. Regards, Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional com

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-09 Thread Mark Thomas
> jarScanner.setScanManifest(false); > ctx.setJarScanner(jarScanner); > > Should this work with Tomcat 8 or is my expectation wrong? It should work. I'd recommend putting a break-point in StandardJarScanner and stepping through the Tomcat code to see what is going wrong. Mark &

Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-09 Thread Michael Heinen
e web-fragement is processed when I move the jar to the web-inf\lib folder. Regards, Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-07 Thread vimil
Thank you for updating the documentation. This helps a lot with clarifying how Resources work -- View this message in context: http://tomcat.10.x6.nabble.com/Tomcat-8-5-Regarding-PostResources-for-Web-Inf-lib-and-Web-Inf-classes-tp5053929p5054838.html Sent from the Tomcat - User mailing list

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-07 Thread Mark Thomas
s follows >> >> > className="org.apache.catalina.webresources.DirResourceSet" >> webAppMount="/WEB-INF/classes"/> >> >> > className="org.apache.catalina.webresources.FileResourceSet" >> webAppMount="/WEB-INF/lib/library1.jar&quo

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-06 Thread Mark Thomas
er >> resolves >>> libraries and class folders specified in post resources. >>> >>> if the order of post resources is as follows >>> >>> >> className="org.apache.catalina.webresources.DirResourceSet" >>> webAppMount=&qu

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-06 Thread Cristian Lorenzetto
is as follows > > > > > className="org.apache.catalina.webresources.DirResourceSet" > > webAppMount="/WEB-INF/classes"/> > > > > > className="org.apache.catalina.webresources.FileResourceSet" > > webAppMount="/WEB-INF/lib/library1.jar&

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-05 Thread Mark Thomas
esources.DirResourceSet" > webAppMount="/WEB-INF/classes"/> > > className="org.apache.catalina.webresources.FileResourceSet" > webAppMount="/WEB-INF/lib/library1.jar"/> > > then the class loader looks for classes in library1.jar before it looks for

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-03 Thread vimil
.10.x6.nabble.com/Tomcat-8-5-Regarding-PostResources-for-Web-Inf-lib-and-Web-Inf-classes-tp5053929p5054690.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-08-19 Thread Mark Thomas
ary1.jar" > className="org.apache.catalina.webresources.FileResourceSet" > webAppMount="/WEB-INF/lib/library1.jar"> > > > With the above configuration > the webapp classpath becomes - > WEB-INF\classes;WEB-INF\lib\*.jar;D:\Projects\lib\library1.jar;

Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-08-12 Thread Vimil Saju
classpath becomes - WEB-INF\classes;WEB-INF\lib\*.jar;D:\Projects\lib\library1.jar;D:\Projects\external\classes I expect the order to be WEB-INF\classes;WEB-INF\lib\*.jar;D:\Projects\external\classes;D:\Projects\lib\library1.jar; Is there a way to configure Context xml so that the classfolders

AW: performance (classloader?) problems with signed jars in WEB-INF/lib

2015-01-21 Thread Schulz-Hildebrandt, Ole
> That sounds possible. (I haven't looked at the code to check the theory > though.) > > Please open a Bugzilla issue for this so it doesn't get lost. thanks for your reply. I filed a bug for Tomcat 8: https://issues.apache.org/bugzilla/show_bug.cgi?id=57472 > I assume your web application is load

Re: performance (classloader?) problems with signed jars in WEB-INF/lib

2015-01-20 Thread Mark Thomas
that it had to do with a signed jar in the WEB-INF/lib of > the webapp. It is a 8mb self-signed jar of the jython-library from > which some classes are used in the initializing process of our > webapp. When using a non-signed version of the jar the time for > deploying and initializing

performance (classloader?) problems with signed jars in WEB-INF/lib

2015-01-20 Thread Schulz-Hildebrandt, Ole
Hi, After moving one of our web applications from Tomcat 7 to Tomcat 8 (latest 8.0.17) the time for deploying and initializing the webapp increased by a factor of 30 (6s vs. 180s). Analyzing the problem we found out that it had to do with a signed jar in the WEB-INF/lib of the webapp. It is a

How to mount multiply webAppMounts to WEB-INF/lib (multiply dirs with jars)

2013-10-15 Thread Johan Compagner
it seems that i can't add multiply dirs to the WEB-INF/lib dir i tried various stuff (Pre,Post,Jar) with classes this seems to work (can't fully test it because it need the jars) So what is exactly the right syntax to include multiply jars or dirs of jars ? if i use the above

Re: Order of classloading in WEB-INF/lib

2011-06-21 Thread Rafael Liu
Although not recommended you can place the [unziped] classes in WEB-INF/classes, or use Tomcat /lib. You should really deduplicate your JAR On Tue, Jun 21, 2011 at 8:05 AM, wrote: > Hi, > > in which order are classes loaded in jars in WEB-INF/lib? Alphabetically? > By > date? Un

RE: Order of classloading in WEB-INF/lib

2011-06-21 Thread spring
> > in which order are classes loaded in jars in WEB-INF/lib? > Alphabetically? By > > date? Unordered? > > There is no order. Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org Fo

Re: Order of classloading in WEB-INF/lib

2011-06-21 Thread Mark Thomas
On 21/06/2011 12:05, spr...@gmx.eu wrote: > Hi, > > in which order are classes loaded in jars in WEB-INF/lib? Alphabetically? By > date? Unordered? There is no order. > My problem is: > > My WEB-INF/lib contains jar's where on jar contains older versions of a >

Order of classloading in WEB-INF/lib

2011-06-21 Thread spring
Hi, in which order are classes loaded in jars in WEB-INF/lib? Alphabetically? By date? Unordered? My problem is: My WEB-INF/lib contains jar's where on jar contains older versions of a classes than the other jar. I will ensure to load the newer versions of the classes. How can this be

Re: Class.forName doesn't find classes located in WEB-INF/lib

2011-06-07 Thread Mark Thomas
On 06/06/2011 23:35, Clemens Eisserer wrote: > Hi Martin, > >> 3)webapp (everything found in WEB-INF/lib and WEB-INF/classes) >> >> you are using system classloader to loaf WEB-INF/lib jar >> use the webapp classloader > > So according to this, the servlet a

Re: Class.forName doesn't find classes located in WEB-INF/lib

2011-06-06 Thread Clemens Eisserer
Hi Martin, > 3)webapp (everything found in WEB-INF/lib and WEB-INF/classes) > > you are using system classloader to loaf WEB-INF/lib jar > use the webapp classloader So according to this, the servlet as well as the classes from WEB-INF/lib are loaded with the same classloader? What

RE: Class.forName doesn't find classes located in WEB-INF/lib

2011-06-06 Thread Caldarale, Charles R
> From: Clemens Eisserer [mailto:linuxhi...@gmail.com] > Subject: Class.forName doesn't find classes located in WEB-INF/lib > I have a servlet which dynamically loads classes from jar-files > located in WEB-INF/lib/, Do you do your own classloading, or let Tomcat's class

Class.forName doesn't find classes located in WEB-INF/lib

2011-06-06 Thread Clemens Eisserer
Hi, I have a servlet which dynamically loads classes from jar-files located in WEB-INF/lib/, however tomcat somehow seems to ignore those jar-files. in WEB-INF/lib/Notepad.jar there is a class Notepad.class (without any package), however loading that class yields: Loading Application Class

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Mark Thomas
On 20/01/2011 14:55, Reinwald Warapen wrote: > On 1/20/2011 8:03 PM, Caldarale, Charles R wrote: >>> From: Reinwald Warapen [mailto:reinwal...@directi.com] >>> Subject: Re: Why cant the the classes (in the jars) places in >>> Tomcat/lib see the classes from the

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
On 1/20/2011 8:20 PM, Martin Grotzke wrote: On Thu, Jan 20, 2011 at 2:24 PM, Reinwald Warapenwrote: @Martin :Actually I was trying to write my own Session Manager since i wanted to store the session into mysql. The issue was when deserializing Tomcat could not find the classes since the objects

RE: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Caldarale, Charles R
> From: Reinwald Warapen [mailto:reinwal...@directi.com] > Subject: Re: Why cant the the classes (in the jars) places in Tomcat/lib see > the classes from the webapp/WEB-INF/lib. > Then how do you suggest going about it? Exactly as others have suggested. For example: http://

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
On 1/20/2011 8:03 PM, Caldarale, Charles R wrote: From: Reinwald Warapen [mailto:reinwal...@directi.com] Subject: Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib. After reading the docs I figured that one work around would be to define

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Martin Grotzke
On Thu, Jan 20, 2011 at 2:24 PM, Reinwald Warapen wrote: > > @Martin :Actually I was trying to write my own Session Manager since i > wanted to store the session into mysql. The issue was when deserializing > Tomcat could not find the classes since the objects stored in the sessions > are related t

RE: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Caldarale, Charles R
> From: Reinwald Warapen [mailto:reinwal...@directi.com] > Subject: Re: Why cant the the classes (in the jars) places in Tomcat/lib see > the classes from the webapp/WEB-INF/lib. > After reading the docs I figured that one work around would be to define > my web-app/lib in t

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
) The msm jar is placed in tomcat's lib dir, the kryo serializer jar, required kryo jar (and friends) and all application related jars are living in the webapps WEB-INF/lib directory. This works, there's also a sample app on github ( https://github.com/magro/msm-sample-webapp ) with

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Reinwald Warapen
On 1/20/2011 4:23 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/19/2011 2:27 PM, Reinwald Warapen wrote: On 1/20/2011 12:47 AM, Mark Thomas wrote: On 19/01/2011 19:17, Reinwald Warapen wrote: I am writing a serializer/deserializer functionality (used

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-20 Thread Martin Grotzke
b dir, the kryo serializer jar, required kryo jar (and friends) and all application related jars are living in the webapps WEB-INF/lib directory. This works, there's also a sample app on github ( https://github.com/magro/msm-sample-webapp ) with a runtime directory containing a tomcat insta

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/19/2011 2:27 PM, Reinwald Warapen wrote: > On 1/20/2011 12:47 AM, Mark Thomas wrote: >> On 19/01/2011 19:17, Reinwald Warapen wrote: >>> I am writing a serializer/deserializer functionality (used in my custom >>> session manager that extend

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Pid
ough this class loader". But > theres no mention about the visibility of the webapp/WEB-INF/classes to > the classes in |$CATALINA_HOME/lib.So is there no way to configure the > same? Mark's point is that classes in yourApp/WEB-INF/lib (or classes) will never b

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Mark Thomas
On 19/01/2011 19:27, Reinwald Warapen wrote: > On 1/20/2011 12:47 AM, Mark Thomas wrote: >> On 19/01/2011 19:17, Reinwald Warapen wrote: >>> I am writing a serializer/deserializer functionality (used in my custom >>> session manager that extends ManagerBase). When deserializing I get >>> loads of j

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Reinwald Warapen
On 1/20/2011 12:47 AM, Mark Thomas wrote: On 19/01/2011 19:17, Reinwald Warapen wrote: I am writing a serializer/deserializer functionality (used in my custom session manager that extends ManagerBase). When deserializing I get loads of java.lang.ClassNotFoundException: exceptions. All the classe

Re: Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Mark Thomas
On 19/01/2011 19:17, Reinwald Warapen wrote: > I am writing a serializer/deserializer functionality (used in my custom > session manager that extends ManagerBase). When deserializing I get > loads of java.lang.ClassNotFoundException: exceptions. All the classes > for which the exceptions are thrown

Why cant the the classes (in the jars) places in Tomcat/lib see the classes from the webapp/WEB-INF/lib.

2011-01-19 Thread Reinwald Warapen
I am writing a serializer/deserializer functionality (used in my custom session manager that extends ManagerBase). When deserializing I get loads of java.lang.ClassNotFoundException: exceptions. All the classes for which the exceptions are thrown can be found in my webapp/WEB-INF/classes. How d

JAXB 2 and JAXB 1 in the WEB-INF/lib folder

2010-04-21 Thread Alex
Hi there, I'm running a tomcat 6, spring, apache cxf webservice, know it is a must to add one third party library to my webapp to fulfill an order. I have jaxb-impl-2.1.12.jar for apache cxf in WEB-INF/lib folder and the new library which contains the JAXB 1.0 runtime. JAXB 2 ist us

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-08 Thread Chinmoy Chakraborty
y. > > Thanks. > > mp > > > On Thu, Mar 4, 2010 at 5:23 PM, Pid wrote: > > > > > On 04/03/2010 10:53, Chinmoy Chakraborty wrote: > > > > > >> Hi All, > > >> > > >> Is it possible to delete a jar file from ../WEB

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Michael Powe
Hi All, > >> > >> Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is > >> running? I tried to delete the jar from 'lib' after putting following > >> entry > >> in catalina.policy: > >> > > > > It might

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Mark Thomas
take care fo the rest. Mark > > > > On Thu, Mar 4, 2010 at 5:23 PM, Pid wrote: > >> On 04/03/2010 10:53, Chinmoy Chakraborty wrote: >> >>> Hi All, >>> >>> Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is >>>

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Chinmoy Chakraborty
s it possible to delete a jar file from ../WEB-INF/lib when Tomcat is >> running? I tried to delete the jar from 'lib' after putting following >> entry >> in catalina.policy: >> > > It might be possible, but it would be a *very* bad idea. > > &g

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Pid
On 04/03/2010 10:53, Chinmoy Chakraborty wrote: Hi All, Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running? I tried to delete the jar from 'lib' after putting following entry in catalina.policy: It might be possible, but it would be a *very* bad ide

Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Chinmoy Chakraborty
Hi All, Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running? I tried to delete the jar from 'lib' after putting following entry in catalina.policy: grant codeBase "file:${catalina.home}/webapps/abcd/WEB-INF/lib" { permission java.io.FilePermission

Re: Servlets in web-inf/lib

2009-12-21 Thread David Smith
1. It's WEB-INF, not web-inf. Case matters. 2. If the classes are in .jar files, yes. Otherwise they will have to be in WEB-INF/classes --David Clay McCoy wrote: > I have some servlets that are in jars in web-inf/lib and Tomcat does not see > them. I know that it is typical to ha

Servlets in web-inf/lib

2009-12-21 Thread Clay McCoy
I have some servlets that are in jars in web-inf/lib and Tomcat does not see them. I know that it is typical to have servlets in web-inf/classes, but it is an existing application. Is there a way to get Tomcat to use these Servlets without moving them to web-inf/classes? They are mapped in

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread George Sexton
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Wednesday, September 23, 2009 2:32 PM > To: Tomcat Users List > Subject: RE: jars in common/lib directory Vs webapps/APP_NAME/WEB- > INF/lib > > > From:

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread Caldarale, Charles R
> From: George Sexton [mailto:geor...@mhsoftware.com] > Subject: RE: jars in common/lib directory Vs webapps/APP_NAME/WEB- > INF/lib > > The one case I can say where this may be desirable is log4j. Because of > dependencies, log4j.jar has to go in common/lib, and log4j.propertie

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread George Sexton
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Wednesday, September 23, 2009 7:24 AM > To: Tomcat Users List > Subject: RE: jars in common/lib directory Vs webapps/APP_NAME/WEB- > INF/lib > > > From: V Jayakum

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread Caldarale, Charles R
> From: V Jayakumar [mailto:v...@hotmail.com] > Subject: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib > > 1) Instead of including these jar files as part of the > applicationX.war, can they be copied to $CATALINA_HOME/common/lib Yes, but it's usually a bad

Re: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread Mikolaj Rydzewski
$CATALINA_HOME/common/lib & $CATALINA_HOME/webapps/appName/WEB-INF/lib Please read http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html carefully. -- Mikolaj Rydzewski - To unsubscribe, e-m

jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread V Jayakumar
ST.MF 0 Thu Sep 03 18:25:10 IST 2009 WEB-INF/ 3473 Sat Dec 01 00:42:08 IST 2007 WEB-INF/web.xml 563 Sat Dec 01 00:40:30 IST 2007 WEB-INF/httpinvoker-servlet.xml 18400 Wed May 06 18:35:08 IST 2009 WEB-INF/server-config.wsdd 0 Thu Sep 03 18:25:10 IST 2009 WEB-INF/lib/ 666594 Thu Sep

Re: jar loading in folder web-inf/lib/folder/*.jar

2009-06-30 Thread Daniel Henrique Alves Lima
GIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Karan, > > > > On 6/30/2009 3:12 AM, k...@dossier.no wrote: > > > Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss > > > 5.0.1GA this works fine but > > > The tomca

Re: jar loading in folder web-inf/lib/folder/*.jar

2009-06-30 Thread Daniel Henrique Alves Lima
On Tue, 2009-06-30 at 11:59 -0400, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Karan, > > On 6/30/2009 3:12 AM, k...@dossier.no wrote: > > Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss > > 5.0.1G

Re: jar loading in folder web-inf/lib/folder/*.jar

2009-06-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karan, On 6/30/2009 3:12 AM, k...@dossier.no wrote: > Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss > 5.0.1GA this works fine but > The tomcat class loader cant load thease files. Tomcat is following th

jar loading in folder web-inf/lib/folder/*.jar

2009-06-30 Thread kr
HI, Loading of jar files under WEB-INF/lib/a_foolder/*.jar wont work. On JBoss 5.0.1GA this works fine but The tomcat class loader cant load thease files., Thease jar files (WEB-INF/lib/a_foolder/*.jar) is referenced from the main.jar file (WEB-INF/lib/main.jar) manifest: WEB-INF/lib

RE: /WEB-INF/lib

2009-02-27 Thread Caldarale, Charles R
> From: Mudit Garg [mailto:maxmu...@gmail.com] > Subject: Re: /WEB-INF/lib > > You could set an explicit classpath in tomcat startup script like: Don't ever, ever, ever set CLASSPATH for Tomcat; you will confound the classloader design and end up with all sorts of ClassNotFou

Re: /WEB-INF/lib

2009-02-27 Thread Mudit Garg
at 3:48 PM, vlad vesa wrote: > > Hello everyone, > > it is possible to set something in tomcat or in my web application to load > libraries located in a custom folder within > webapplication/WEB-INF/lib/customFolder/*.jar  ? > > The reason of this is that the application has

/WEB-INF/lib

2009-02-27 Thread vlad vesa
Hello everyone, it is possible to set something in tomcat or in my web application to load libraries located in a custom folder within webapplication/WEB-INF/lib/customFolder/*.jar ? The reason of this is that the application has plugins and it would be preferable to organize the libs... if

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: chown root/root /bin/ps chmod 700 /bin/ps User can build his own ps binary. Security by obscurity is not a good way to go. I was just kidding. ;-) I'd still like to make it work though. It looks like such a nice way to solve the problem, apart f

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: chown root/root /bin/ps chmod 700 /bin/ps User can build his own ps binary. Security by obscurity is not a good way to go. -- Mikolaj Rydzewski - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: start) su - tomcatuser -c "/var/lib/jvm/java $CONFIDENTIAL_SETTINGS -jar " All of your 'confidential settings' will be visible to all users with one command: ps aux Ooops. chown root/root /bin/ps chmod 700 /bin/ps Damn! it sounded so

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Gregor Schneider
How about md5sum? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail:

Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-06 Thread Mikolaj Rydzewski
André Warnier wrote: start) su - tomcatuser -c "/var/lib/jvm/java $CONFIDENTIAL_SETTINGS -jar " All of your 'confidential settings' will be visible to all users with one command: ps aux There're ways to restrict such listing to only your processes. But anyway, command line arguments

  1   2   3   >