ClassLoader question

2005-01-26 Thread Li Ma
Hi there, I embedded Tomcat Embedded edition into my app. Here's a brief folder structureof my app: / lib bin Tomcat lib webapps myapp WEB-INF li

Re: Gurus! JCE and classloader question

2005-01-05 Thread Lionel Pasquier
Arg... My bad The test has been done, but a jar was remaining in the WEB-INF Antony Paul wrote: May be there are two jar files or unzipped class files of the same class. Check for it also. rgds Antony Paul On Thu, 23 Dec 2004 16:22:33 +0100, Lionel Pasquier <[EMAIL PROTECTED]> wrote: We

Re: Gurus! JCE and classloader question

2004-12-23 Thread Antony Paul
May be there are two jar files or unzipped class files of the same class. Check for it also. rgds Antony Paul On Thu, 23 Dec 2004 16:22:33 +0100, Lionel Pasquier <[EMAIL PROTECTED]> wrote: > Well, I tried to put the library in common/lib (and I think also for a > different try, in shared/lib). U

Re: Gurus! JCE and classloader question

2004-12-23 Thread Lionel Pasquier
Well, I tried to put the library in common/lib (and I think also for a different try, in shared/lib). Usually it is in WEB-INF/lib. But the problem occured also. I believe that the factory used by the jvm searches for the first instance of the JCE. Then it tries to cast it into another instance

Re: Gurus! JCE and classloader question

2004-12-23 Thread Antony Paul
Where you put the provider jar file ?. WEB-INF/lib ?. Try putting it in shared/lib or common/lib if the same jar file is used by multiple applications. rgds Antony Paul On Thu, 23 Dec 2004 15:01:04 +0530, Antony Paul <[EMAIL PROTECTED]> wrote: > Which JCE provider you are using ? > > rgds > Ant

Re: Gurus! JCE and classloader question

2004-12-23 Thread Antony Paul
Which JCE provider you are using ? rgds Antony Paul On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier <[EMAIL PROTECTED]> wrote: > Hello again! > > Any guru around to solve my problem please? :-) > > Lionel Pasquier wrote: > > > Hello, > > > > I have a trouble with using a JCE and multiple

Gurus! JCE and classloader question

2004-12-21 Thread Lionel Pasquier
Hello again! Any guru around to solve my problem please? :-) Lionel Pasquier wrote: Hello, I have a trouble with using a JCE and multiple contexts. From what I could have read around here this is probably linked to a classloader problem. Could you guys help? Basicaly, I generate a RSA Keypair, t

JCE and classloader question

2004-12-17 Thread Lionel Pasquier
Hello, I have a trouble with using a JCE and multiple contexts. From what I could have read around here this is probably linked to a classloader problem. Could you guys help? Basicaly, I generate a RSA Keypair, then create a certificate and want to self sign it. Finally i need to store the priv

RE: ClassLoader question

2004-11-08 Thread Mark Claassen
. > -Original Message- > From: Mark Claassen [mailto:[EMAIL PROTECTED] > Sent: Monday, November 08, 2004 3:14 PM > To: 'Tomcat Users List' > Subject: RE: ClassLoader question > > > I forgot to mention that I am running 4.1, however the docs > are simila

RE: ClassLoader question

2004-11-08 Thread Mark Claassen
; Sent: Monday, November 08, 2004 2:47 PM > To: Tomcat Users List > Subject: RE: ClassLoader question > > > > Hi, > RTFM: > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-h > owto.html. > It clearly (in bold, capital letters) says server/lib is not >

Re: ClassLoader question

2004-11-08 Thread e-Denton Subscriber
TED]> Sent: Monday, November 08, 2004 1:40 PM Subject: ClassLoader question > What is the difference between the server/lib and shared directories as far > as the class loaders are concerned? > > Background: > --- > I was having trouble with CGI scripts, so I wanted

RE: ClassLoader question

2004-11-08 Thread Shapira, Yoav
>Sent: Monday, November 08, 2004 2:40 PM >To: 'Tomcat Users List' >Subject: ClassLoader question > >What is the difference between the server/lib and shared directories as far >as the class loaders are concerned? > >Background: >--- >I was having tr

ClassLoader question

2004-11-08 Thread Mark Claassen
What is the difference between the server/lib and shared directories as far as the class loaders are concerned? Background: --- I was having trouble with CGI scripts, so I wanted to creat a new CGIServlet to run some tests. To start the process, I copied source of the tomcat CGIServlet fi

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-19 Thread John H
- Original Message - From: "Jeanfrancois Arcand" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 16, 2004 5:52 PM Subject: Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question > Have yo

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-16 Thread Jeanfrancois Arcand
anager. -- Jeanfrancois *sigh* Any thoughts? - Original Message - From: "Jeanfrancois Arcand" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 15, 2004 2:55 PM Subject: Re: Extending GenericPrincipal/RealmBase: Essentially a

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-16 Thread John H
thoughts? - Original Message - From: "Jeanfrancois Arcand" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 15, 2004 2:55 PM Subject: Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question &

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-16 Thread Jeanfrancois Arcand
whatever you want. -- Jeanfrancois Regards, Rossen Raykov -Original Message- From: John H [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 1:32 PM To: Tomcat Users List Subject: Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question Webap

RE: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-15 Thread Benjamin Armintor
o prohibit both reflection and access to other classloaders. -Original Message- From: Rossen Raykov [mailto:[EMAIL PROTECTED] Sent: Thu 4/15/2004 9:50 PM To: 'Tomcat Users List' Cc: Subject:RE: Extending GenericPrincipal/RealmBase: Essentially a classloader

RE: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-15 Thread Rossen Raykov
gt; Subject: Re: Extending GenericPrincipal/RealmBase: > Essentially a classloader question > > > Webapps can see GenericPrincipal only when I move > catalina.jar to common/lib. That's the kicker. Catalina has > supplied a nice generic principal that implements > java.se

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-15 Thread Jeanfrancois Arcand
John H wrote: HI all, He have implemented our own realm and principal buy extending org.apache.catalina.realm.RealmBase and GenericPrincipal. (Using TC5.0.19 on Solaris and Windows. Realm defined in .) By doing this, however, we've got ourselves into sort of a catch 22 in terms of classloadin

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-15 Thread John H
st be missing the reasoning behind that. - Original Message - From: "Benjamin Armintor" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 15, 2004 12:34 PM Subject: RE: Extending GenericPrincipal/RealmBase: Essentially a classl

RE: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-15 Thread Benjamin Armintor
Message- From: John H [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:25 AM To: Tomcat Users List Subject: Extending GenericPrincipal/RealmBase: Essentially a classloader question HI all, He have implemented our own realm and principal buy extending

Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-15 Thread John H
HI all, He have implemented our own realm and principal buy extending org.apache.catalina.realm.RealmBase and GenericPrincipal. (Using TC5.0.19 on Solaris and Windows. Realm defined in .) By doing this, however, we've got ourselves into sort of a catch 22 in terms of classloading. Hopefully so

RE: AW: Classloader question

2003-06-17 Thread Shapira, Yoav
ge- >From: Julie H. Zhu [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 17, 2003 11:46 AM >To: [EMAIL PROTECTED] >Subject: Re: AW: Classloader question > >I ran into a strange problem that may have some thing to do with the >Classloader in Tomcat. > >I have a servlet app

Re: AW: Classloader question

2003-06-17 Thread Julie H. Zhu
I ran into a strange problem that may have some thing to do with the Classloader in Tomcat. I have a servlet application which is running fine by itself under Tomcat. However, if there is another application running at the same time, it throws NoClassDef exception, especially when it needs to acce

userDatabase / classloader question

2003-03-12 Thread [EMAIL PROTECTED]
hi all, trying to reference the userDatabase from my application, but get a Class CastException. Here is my code: javax.naming.Context ctx = new InitialContext(); Object ud = ctx.lookup("java:comp/env/userDatabase"); //System.out.println(ud.getClass().getClassLoader()); UserDatabase usrd = (UserD

Classloader question in Tomcat 4.1.x

2002-09-24 Thread Wu Yiqun
Hello: I have some web application using commons-digester and common-dbcp. When I upgrade from tc 4.0->tc 4.1.12, I found there are some jar in common/lib and server/lib. From the Class Loader Howto, it is assumed following class search order: /WEB-INF/classes of your web application /W

Re: Classloader question between tomcat 3.3 and 4.0.3

2002-06-10 Thread Jacob Kjome
Do you use Class.forName("MyClass") to load classes anywhere? If so, your libraries in WEB-INF/lib or WEB-INF/classes that attempt to load the caching library in TOMCAT_HOME/lb (called TOMCAT_HOME/shared/lib in 4.1.x) or TOMCAT_HOME/common/lib won't be able to find it because that package was

Classloader question between tomcat 3.3 and 4.0.3

2002-06-10 Thread Nic Holbrook
I am deploying several web applications which access data through the proxy/facade pattern into EJB's. Some of this data is shared across applications. I have 1 jar file that is shared, and handles some in memory caching of data, etc. In tomcat 3.3, I have this jar in the lib/apps director

RE: Classloader question

2002-05-07 Thread Mario Felarca
From: Larry Isaacs <[EMAIL PROTECTED]> To: 'Tomcat Users List' <[EMAIL PROTECTED]> Subject: RE: Classloader question Date: Tue, 7 May 2002 08:17:44 -0400 MIME-Version: 1.0 Content-Type: text/plain >Because Tomcat 3.3.x uses the JDK delagation model for >classl

RE: Classloader question

2002-05-07 Thread Mario Felarca
Message-ID: <D054B0637615D611967000D0B78059CB025571@IBM3000> From: tamir <[EMAIL PROTECTED]> To: 'Tomcat Users List' <[EMAIL PROTECTED]> Subject: RE: Classloader question Date: Tue, 7 May 2002 10:05:36 +0200 MIME-Version: 1.0 Content-Type: text/plain; chars

RE: Classloader question

2002-05-07 Thread tamir
aware of an equivalent feature in Tomcat 4.x. Cheers, Larry > -Original Message- > From: tamir [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 9:18 AM > To: 'Tomcat Users List' > Subject: RE: Classloader question > > > Hi Larry, > As I understa

RE: Classloader question

2002-05-07 Thread Larry Isaacs
eature in Tomcat 4.x. Cheers, Larry > -Original Message- > From: tamir [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 9:18 AM > To: 'Tomcat Users List' > Subject: RE: Classloader question > > > Hi Larry, > As I understand the additionalJars attribu

RE: Classloader question

2002-05-07 Thread tamir
-Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 2:18 PM To: 'Tomcat Users List' Subject: RE: Classloader question The classloader diagram is found at: <http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_ clas

RE: Classloader question

2002-05-07 Thread Larry Isaacs
; will be searched after WEB-INF/classes, so a different version of a class in WEB-INF/classes will take priority over classes added by "additionalJars". Cheers, Larry > -Original Message- > From: tamir [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 4:06 AM

RE: Classloader question

2002-05-07 Thread tamir
D]] Sent: Tuesday, May 07, 2002 7:06 AM To: [EMAIL PROTECTED] Subject: Classloader question Hello, I have a situation with Tomcat 3.3a where I am trying to allow a specific servlet context to load a version of a class from within their WEB-INF/classes directory, while other contexts on the serve

Classloader question

2002-05-06 Thread Mario Felarca
Hello, I have a situation with Tomcat 3.3a where I am trying to allow a specific servlet context to load a version of a class from within their WEB-INF/classes directory, while other contexts on the server use a different version of that class that is loaded by the apps classloader. I can curren

RE: AW: Classloader question

2001-12-20 Thread Guido Medina
x27; Subject: RE: AW: Classloader question > Servlet containers look for JAR files, not ZIP files. Why > Oracle persists > in shipping their JDBC drivers in ZIP format is a mystery to > me -- but the > complaints should go to them. As I understand it, .zip files can be rena

RE: AW: Classloader question

2001-12-20 Thread Guido Medina
: Classloader question On Wed, 19 Dec 2001, David Morsberger wrote: > Date: Wed, 19 Dec 2001 21:19:16 -0500 > From: David Morsberger <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]>, > "Lauer,

RE: AW: Classloader question

2001-12-20 Thread Justin Rowles
> I tried and it works. > The manifest isn't used here so you can only rename the file. > > If you want to be clean you must unzip the file and recreate > the jar but it's pointless. Thanks for that - that was my understanding. Nice to have it confirmed. J. -- You're only jealous cos the lit

RE: AW: Classloader question

2001-12-20 Thread Arnaud Héritier
i 20 décembre 2001 11:09 > À:'Tomcat Users List' > Objet:RE: AW: Classloader question > > > Servlet containers look for JAR files, not ZIP files. Why > > Oracle persists > > in shipping their JDBC drivers in ZIP format is a mystery to > > me -

RE: AW: Classloader question

2001-12-20 Thread Justin Rowles
> Servlet containers look for JAR files, not ZIP files. Why > Oracle persists > in shipping their JDBC drivers in ZIP format is a mystery to > me -- but the > complaints should go to them. As I understand it, .zip files can be renamed to .jar files without a problem. The manifesto is missing,

RE: AW: Classloader question

2001-12-20 Thread Arnaud Héritier
auer, Oliver > Objet: Re: AW: Classloader question > > > > On Wed, 19 Dec 2001, David Morsberger wrote: > > > Date: Wed, 19 Dec 2001 21:19:16 -0500 > > From: David Morsberger <[EMAIL PROTECTED]> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> &g

Re: AW: Classloader question

2001-12-19 Thread Craig R. McClanahan
quot; <[EMAIL PROTECTED]> > Subject: Re: AW: Classloader question > > I ran into a similar problem today that I can not explain while upgrading to > tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC > driver, classes12.zip. > > I placed the Oracle clas

Re: AW: Classloader question

2001-12-19 Thread Jan Labanowski
gt; > Date: Mon, 17 Dec 2001 18:56:34 +0100 > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > > Subject: AW: Classloader question > > > > But why wasn't the class found in myapp/WEB-INF/lib ? Sorry, but I don't > > understand

Re: AW: Classloader question

2001-12-19 Thread David Morsberger
quot;Lauer, Oliver" <[EMAIL PROTECTED]> > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > Date: Mon, 17 Dec 2001 18:56:34 +0100 > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > Subject: AW: Classloader question > > B

AW: AW: Classloader question

2001-12-17 Thread Lauer, Oliver
1277 > Fax: +49 221 148 43963 > Mobil: +49 179 59 064 59 > e-Mail: [EMAIL PROTECTED] > _ > -Ursprüngliche Nachricht- Von: Bo Xu [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 21:22 An: Tomcat Users List Betreff: Re: AW: C

Re: AW: Classloader question -- soap

2001-12-17 Thread E B
I (and a few others) have observed that when using soap+tomcat4 for message style services, I need to remove the soap classes from soap/WEB-INF/classes and put soap.jar in the common/lib. This is only with the message style services. this means, the messagerouter's class(say MR) is being loaded

Re: AW: Classloader question

2001-12-17 Thread Bo Xu
- Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 1:51 PM Subject: Re: AW: Classloader question On Mon, 17 Dec 2001, Lauer, Oliver wrote: > > But why w

Re: AW: Classloader question

2001-12-17 Thread Craig R. McClanahan
achricht- > Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 17. Dezember 2001 18:50 > An: Tomcat Users List > Betreff: Re: Classloader question > > > > > On Mon, 17 Dec 2001, Heikki Doeleman wrote: > > > Date: Mon, 17 Dec 2001

RE: Classloader question

2001-12-17 Thread Guido Medina
class inside a jspBean tag remember to specify the class That's all I can tell about, try it and good luck, Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:08 PM To: 'Tomcat Users List' Subject: AW: Classloader questi

AW: Classloader question

2001-12-17 Thread Lauer, Oliver
zember 2001 19:03 An: 'Tomcat Users List' Betreff: RE: Classloader question Because WEB-INF/lib is for the specifique's application .jar files and WEB-INF/classes is for .class files, don't mix the concept, .jar files are treat as another kind of file system, that's why yo

RE: Classloader question

2001-12-17 Thread Guido Medina
: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 1:57 PM To: 'Tomcat Users List' Subject: AW: Classloader question But why wasn't the class found in myapp/WEB-INF/lib ? Sorry, but I don't understand that !? > AXA eSolutions GmbH > AXA Konzern A

AW: Classloader question

2001-12-17 Thread Lauer, Oliver
43963 > Mobil: +49 179 59 064 59 > e-Mail: [EMAIL PROTECTED] > _ > -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 18:50 An: Tomcat Users List Betreff: Re: Classloader question On

Re: Classloader question

2001-12-17 Thread Craig R. McClanahan
On Mon, 17 Dec 2001, Heikki Doeleman wrote: > Date: Mon, 17 Dec 2001 13:06:21 +0100 > From: Heikki Doeleman <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: Cla

RE: Classloader question

2001-12-17 Thread Heikki Doeleman
yes, I did -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 1:25 PM To: 'Tomcat Users List' Subject: AW: Classloader question Did you something like this in server xml ? in your localhost container ? > AXA eSolutio

AW: Classloader question

2001-12-17 Thread Lauer, Oliver
179 59 064 59 > e-Mail: [EMAIL PROTECTED] > _ > -Ursprüngliche Nachricht- Von: Heikki Doeleman [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 13:16 An: 'Tomcat Users List' Betreff: RE: Classloader question my structure is

RE: Classloader question

2001-12-17 Thread Heikki Doeleman
, December 17, 2001 1:13 PM To: Tomcat Users List Subject: Re: Classloader question Check that the directory containing WEB-INF is a context path for a web application. Perhaps Tomcat isn't recognizing your WEB-INF directory because it doesn't know that the parent directory is the bas

Re: Classloader question

2001-12-17 Thread Richard Sand
-Richard - Original Message - From: "Heikki Doeleman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 1:06 PM Subject: Classloader question > Hi everyone, > > trying to make a web application work using Tomcat 4.0.1 I found the > followi

Classloader question

2001-12-17 Thread Heikki Doeleman
Hi everyone, trying to make a web application work using Tomcat 4.0.1 I found the following behaviour, which I don't quite understand: my application uses a library called xhive.jar - putting xhive.jar in [catalina]/common/lib This works fine, as expected - putting it in [myapp]/WEB-INF/lib