Hi Guillaume ;

jar:file:///home/sauthieg/myarchive.mar!/classes/ (final / is required !) :- yup this is working , but to load the jars inside the jar file we need to have different classloader , the problem is this how do we know the names of the jars inside the jar file. In addition to that I tried that way (jar:file:///home/sauthieg/myarchive.mar!/lib/mylib.jar) , but it did not work for me that is why I went for separate classLoader.



Thanks,
Deepal
................................................................
~Future is Open~



----- Original Message ----- From: "Guillaume Sauthier" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 23, 2005 4:56 AM
Subject: Re: [Axis2] Libraries used by modules


Hi Deepal

You can still use URLClassLoader to add a directory/jar inside a jar :
jar:file:///home/sauthieg/myarchive.mar!/classes/ (final / is required !)
or
jar:file:///home/sauthieg/myarchive.mar!/lib/mylib.jar

no need to write another ClassLoader

Regards
Guillaume

Deepal Jayasinghe wrote:

Hi glen;

please see my comments below;

Thanks,
Deepal
................................................................
~Future is Open~



----- Original Message ----- From: "Glen Daniels" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, August 22, 2005 5:13 AM
Subject: Re: [Axis2] Libraries used by modules


+1

Should classes just go in the jar at the top level?

/META-INF/module.xml
/lib/some.jar
/com/serendib/modules/funky/FunkyModule.class


this is what we have right now .


Or should we have a "classes/" dir at the top level?

/classes/com/serendib/modules/funky/FunkyModule.class


if we are going for something like this we have classloading problem , I have written a ClassLoader for axis2 but it is only to load lib files inside lib directory. Other class are loaded by URLClassLoader so if we are going for this approach we will be having classloaing issues.

comments ...



--Glen

Davanum Srinivas wrote:

Deepal,

So the jar should be like this? Right?

/META-INF/module.xml
/lib/ur.jar

thanks,
dims


On 8/22/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi Ruchith

if you put your lib files inside .mar file , it should work , I have
implemnted that way :)

META-INF
  module.xml
lib
 ur.jar

Thanks,
Deepal
................................................................
~Future is Open~



----- Original Message -----
From: "Ruchith Fernando" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, August 21, 2005 3:13 PM
Subject: [Axis2] Libraries used by modules


Hi,

Where should we include the jars that are required by a module?
I tried having them in:
- META-INF/lib/ of the module and
- WEB-INF/lib/ of the repository/axis2 Home
And none of them seems to work

Thanks
--
Ruchith

















Reply via email to