RE: global resources

2002-05-29 Thread Mark Shurgot

You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib

-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources


I can't seem to get my classes as global. 
 
I want them to be acessed by all applications... so I placed it under
$CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
Well... when I do that, either two things happen: it doesn't find the
classes and nothing works, or it gives me a crazy error regarding
ServletException and some cast error.
 
any clues?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: global resources

2002-05-29 Thread Phillip Morelock

Just for your edification, FYI the other ones you are currently using are
for TOMCAT's classes, not yours.  This previous reply is correct.

fillup


On 5/29/02 11:06 AM, Mark Shurgot [EMAIL PROTECTED] wrote:

 You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib
 
 -Original Message-
 From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:59 AM
 To: [EMAIL PROTECTED]
 Subject: global resources
 
 
 I can't seem to get my classes as global.
 
 I want them to be acessed by all applications... so I placed it under
 $CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
 Well... when I do that, either two things happen: it doesn't find the
 classes and nothing works, or it gives me a crazy error regarding
 ServletException and some cast error.
 
 any clues?
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: global resources

2002-05-29 Thread Christian J. Dechery

I tried that too... if I do that Tomcat doesn't even start.
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 15:06  
You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib 

-Original Message- 
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 10:59 AM 
To: [EMAIL PROTECTED] 
Subject: global resources 


I can't seem to get my classes as global. 

I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right? 

Well... when I do that, either two things happen: it doesn't find the 
classes and nothing works, or it gives me a crazy error regarding 
ServletException and some cast error. 

any clues? 

.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 


-- 
To unsubscribe, e-mail:  mailto:[EMAIL PROTECTED]  
For additional commands, e-mail:  mailto:[EMAIL PROTECTED]  






Re: global resources

2002-05-29 Thread Phillip Morelock

It might help if you described what you're doing in a little more detail.

What are these classes you want commonly accessible?

Are they in jars? Packed correctly, etc.?

Please elaborate.

fillup


On 5/29/02 11:07 AM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 I tried that too... if I do that Tomcat doesn't even start.
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 [EMAIL PROTECTED] 29/05/02 15:06 
 You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib
 
 -Original Message-
 From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:59 AM
 To: [EMAIL PROTECTED]
 Subject: global resources
 
 
 I can't seem to get my classes as global.
 
 I want them to be acessed by all applications... so I placed it under
 $CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
 Well... when I do that, either two things happen: it doesn't find the
 classes and nothing works, or it gives me a crazy error regarding
 ServletException and some cast error.
 
 any clues? 
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: global resources

2002-05-29 Thread Christian J. Dechery

I want both... I have some classes that are unpacked, that I'd put in the 
common/classes dir... and some jars... along with them is the oracle driver 
(classes12.jar)... when I execute the JSP I get the exception thrown when the driver 
can't be found... if I take this file (classes12.jar) and place it in 
mywebapp/WEB-INF/lib it works fine...
 
it feels to me that this package is the only one tomcat isn't beeing able to share 
across webapps... all other classes and libs works fine...
 
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 15:17  
It might help if you described what you're doing in a little more detail. 

What are these classes you want commonly accessible? 

Are they in jars? Packed correctly, etc.? 

Please elaborate. 

fillup 


On 5/29/02 11:07 AM, Christian J. Dechery  [EMAIL PROTECTED]  wrote: 

 I tried that too... if I do that Tomcat doesn't even start. 
 
 .:| Christian J. Dechery 
 .:| FINEP - Depto. de Sistemas 
 .:| [EMAIL PROTECTED] 
 .:| (21) 2555-0332 
 
 [EMAIL PROTECTED] 29/05/02 15:06  
 You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib 
 
 -Original Message- 
 From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, May 29, 2002 10:59 AM 
 To: [EMAIL PROTECTED] 
 Subject: global resources 
 
 
 I can't seem to get my classes as global. 
 
 I want them to be acessed by all applications... so I placed it under 
 $CATALINA_HOME/classes and $CATALINA_HOME/lib right? 
 
 Well... when I do that, either two things happen: it doesn't find the 
 classes and nothing works, or it gives me a crazy error regarding 
 ServletException and some cast error. 
 
 any clues? 
 
 .:| Christian J. Dechery 
 .:| FINEP - Depto. de Sistemas 
 .:| [EMAIL PROTECTED] 
 .:| (21) 2555-0332 
 


-- 
To unsubscribe, e-mail:  mailto:[EMAIL PROTECTED]  
For additional commands, e-mail:  mailto:[EMAIL PROTECTED]  






Re: global resources

2002-05-29 Thread Jacob Kjome

Hello Christian,

By chance, are the libraries that you put in TOMCAT_HOME/lib refer to
libraries that you put in your webapp's WEB-INF/lib?  If so, this just
isn't going to work.  The WEB-INF/lib libraries can see libraries in
TOMCAT_HOME/lib, but not the other way around.

For instance, the developers at Log4j say that you should have
log4j.jar in each separate webapp's WEB-INF/lib directory.  However,
this imposes itself upon any libraries that are using Log4j.  They
will need to also be inside WEB-INF/lib as well where, if Log4j was
designed a non-static way where it could exist in TOMCAT_HOME/lib and
serve all webapps with Loggers without running into each other, then
you could have the libraries that reference log4j safely in
TOMCAT_HOME/lib.

If you didn't understand that, if all else fails, just put everything
in WEB-INF/lib except for XML and DOM libraries, which are forbidden
in the child classloader, and stuff like DBCP which both Tomcat and
your webapp need access to (TOMCAT_HOME/common/lib).

Jake

Wednesday, May 29, 2002, 12:59:01 PM, you wrote:

CJD I can't seem to get my classes as global. 
 
CJD I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
CJD Well... when I do that, either two things happen: it doesn't find the classes and 
nothing works, or it gives me a crazy error regarding ServletException and some cast 
error.
 
CJD any clues?
 
CJD .:| Christian J. Dechery
CJD .:| FINEP - Depto. de Sistemas
CJD .:| [EMAIL PROTECTED]
CJD .:| (21) 2555-0332




-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: global resources (2)

2002-05-29 Thread Phillip Morelock

Ha!

Looks like i had it backwards...

Thank goodness for documentation ;)

fillup


On 5/29/02 11:51 AM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 According to Tomcat's config, I should places classes and packages in /classes
 and /lib, not /common/classes and /common/lib.
 
 Altough neither is working for me... :/
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: global resources

2002-05-29 Thread Christian J. Dechery

but I just have some beans acessing a an Oracle database...
 
the only thing NOT working is the oracle drivers (classes12.jar, which I tried placing 
both in /common/lib and /lib)... and all the other classes (now in /common/lib) are 
working fine.
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 16:05  
Hello Christian, 

By chance, are the libraries that you put in TOMCAT_HOME/lib refer to 
libraries that you put in your webapp's WEB-INF/lib? If so, this just 
isn't going to work. The WEB-INF/lib libraries can see libraries in 
TOMCAT_HOME/lib, but not the other way around. 

For instance, the developers at Log4j say that you should have 
log4j.jar in each separate webapp's WEB-INF/lib directory. However, 
this imposes itself upon any libraries that are using Log4j. They 
will need to also be inside WEB-INF/lib as well where, if Log4j was 
designed a non-static way where it could exist in TOMCAT_HOME/lib and 
serve all webapps with Loggers without running into each other, then 
you could have the libraries that reference log4j safely in 
TOMCAT_HOME/lib. 

If you didn't understand that, if all else fails, just put everything 
in WEB-INF/lib except for XML and DOM libraries, which are forbidden 
in the child classloader, and stuff like DBCP which both Tomcat and 
your webapp need access to (TOMCAT_HOME/common/lib). 

Jake 

Wednesday, May 29, 2002, 12:59:01 PM, you wrote: 

CJD I can't seem to get my classes as global. 

CJD I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right? 

CJD Well... when I do that, either two things happen: it doesn't find the classes and 
nothing works, or it gives me a crazy error regarding ServletException and some cast 
error. 

CJD any clues? 

CJD .:| Christian J. Dechery 
CJD .:| FINEP - Depto. de Sistemas 
CJD .:| [EMAIL PROTECTED] 
CJD .:| (21) 2555-0332 




-- 
Best regards, 
Jacob mailto:[EMAIL PROTECTED] 


-- 
To unsubscribe, e-mail:  mailto:[EMAIL PROTECTED]  
For additional commands, e-mail:  mailto:[EMAIL PROTECTED]  






Re: global resources (better explained)

2002-05-29 Thread Phillip Morelock

pay attention to the order of classloaders -- i would jar your classes and
put them with the oracle classes, to ensure they're loaded in the same
space.  I have said this till I'm blue in the face, but so many problems
mysteriously go away when you use jars instead of just throwing class
files in xxx/classes.

cheers
fillup


On 5/29/02 12:20 PM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 I have a set of beans, the package names are finep and christian.
 
 both are in $CATALINA_HOME/classes
 
 calls to these classes occur normally... the problem is, that among these
 classes, some of them makes calls to the oracle driver... the oracle drivers
 (classes12.jar) are in $CATALINA_HOME/lib
 
 like this it's not working... but if I take classes12.jar and place it in
 mywebapp/WEB-INF/lib, everything works fine...
 
 does this behavious say something? I can't figure it out... I don't want to
 have this file (classes12.jar, which is kinda big) copied to ALL my webapps...
 
 thanks again
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]