Hello world,
For some reason, i had to change default conf of my jboss 3.2.2 in order to
avoid the use of jboss class loader.
It's now set in [jboss]\deploy\jbossweb-
tomcat41.sar\META-INF\jboss-service.xml in this way :
attribute name=UseJBossWebLoaderfalse/attribute
The problem is now my
It doesn't see any classes in any of your jars? I was using JBoss 3.2.2
back in 2003 and had the same issue. Once I set the web loader to
false, I realized that some utility classes were getting loaded from
jars deployed in other wars. Effectively, now each webapp has its own
classloader.
Hi all.
I'm having problems with ClassLoader. I have a RMI client that calls a
RMI server. What I keep getting as an error is a ClassCastException.
This is the code:
Object obj = Naming.lookup(url);
search = (SearchRMI) obj;
And the exception is:
java.lang.ClassCastException
at
Could anyone describe how to load classes within a servlet using a URLClassLoader in
Tomcat, or reference to a link somewhere?
/O
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
have you looked at tomcat's classloader document?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
Charlie
-Original Message-
From: Ola Berg [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 8:15 AM
To: Tomcat Users List
Subject: ClassLoader issue
have you looked at tomcat's classloader document?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
Charlie
Yes, and it basically talks about the class loaders that Tomcat uses. But I want to be
able to load classes from an jar file at an arbitrary URL specified at
Try using ClassLoader.getResourceAsStream() instead of ClassLoader.getSystemResourceAsStream().
The method you are using says "go use the system class loader", and bypasses
any resources that are in your jar file under WEB-INF/lib.
Craig McClanahan
Juergen Baumann wrote:
I
try to load files
I try to load files in an InputStream
(using ClassLoader) in the init() method of a Servlet that is loaded on startup.
The files reside in a .jar file that contains all the classes as
well.
Using ClassLoader works fine in a
stand-alone application, however, as soon as I try to make it work
I use Tomcat 3.2 under Windows2000
Pro.
- Original Message -
From: Juergen
Baumann
To: [EMAIL PROTECTED]
Sent: Friday, December 15, 2000 12:36 PM
Subject: Classloader issue
I try to load files in an InputStream
(using ClassLoader) in the init() method of a Servlet that is loaded