-
1. Re: ClassNotFoundException
atifumar Aug 21, 2001 10:38 AM (in response to buzz)What Confiuration are u using , i am using jboss2.2.2/tomcat3.2.2 , i also had problems in finding the classes packaged in a jar file Actually when u start jboss-tomcat then its unable to find the jar file ,
i tackled this problem by including the jar file in the classpath this solves the problem
here's hwat i did in the run_with_tomcat.bat
@echo off
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JAVA_HOME%/lib/tools.jar;%JBOSS_HOME%/deploy
.\run.bat tomcat
if this also dosent work then try setting the full path of ur jar file
i hope one of the two will work
bfn -
2. Re: ClassNotFoundException
buzz Aug 21, 2001 10:25 PM (in response to buzz)I am also using jboss 2.2.2-tomcat 3.2.2.
Do you know if there is a definitive document regarding classpaths when dealing with jboss 2.2.2-tomcat 3.2.2. ? -
3. Re: ClassNotFoundException
buzz Aug 22, 2001 12:59 AM (in response to buzz)I believe I know what the problem is but I am unsure how to fix it....
I make the following call:
Object tempObj = Beans.instantiate (null,actionDelegateName);
Becuase I pass null as the first argument, a "system classloader" is used.... but that is not necessarily the classloader that has web-inf/classes or web-inf/lib in its classpath...
so the question is how do I get a reference to the classloader that has web-inf/classes and web-inf/lib in its classpath? -
4. Re: ClassNotFoundException
buzz Aug 22, 2001 1:11 AM (in response to buzz)I'm dancing a jig as I write this...
I used the following to get the appropriate classloader:
Object tempObj = Beans.instantiate (this.getClass().getClassLoader(),actionDelegateName);
woo hoo! -
5. Re: ClassNotFoundException
marc.fleury Aug 22, 2001 8:23 PM (in response to buzz)That's the context class loader