You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Ruchith Fernando <ru...@gmail.com> on 2005/08/22 00:13:00 UTC

[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

Re: [Axis2] Libraries used by modules

Posted by Deepal Jayasinghe <de...@opensource.lk>.
hi dims

yup , this shoud work for both service and module too.


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



----- Original Message ----- 
From: "Davanum Srinivas" <da...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Monday, August 22, 2005 4:57 AM
Subject: Re: [Axis2] Libraries used by modules


Deepal,

So the jar should be like this? Right?

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

thanks,
dims


On 8/22/05, Deepal Jayasinghe <de...@opensource.lk> 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" <ru...@gmail.com>
> To: <ax...@ws.apache.org>
> 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
> 
> 
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform




Re: [Axis2] Libraries used by modules

Posted by Davanum Srinivas <da...@gmail.com>.
+1 to "classes/"

On 8/22/05, Venkat Reddy <vr...@gmail.com> wrote:
> having "classes/" dir at the top would be much cleaner. Isn't it?
> 
> - venkat
> 
> On 8/22/05, Glen Daniels <gl...@thoughtcraft.com> wrote:
> > +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
> >
> > Or should we have a "classes/" dir at the top level?
> >
> > /classes/com/serendib/modules/funky/FunkyModule.class
> >
> > --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 <de...@opensource.lk> 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" <ru...@gmail.com>
> > >>To: <ax...@ws.apache.org>
> > >>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
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Re: [Axis2] Libraries used by modules

Posted by Venkat Reddy <vr...@gmail.com>.
having "classes/" dir at the top would be much cleaner. Isn't it?

- venkat

On 8/22/05, Glen Daniels <gl...@thoughtcraft.com> wrote:
> +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
> 
> Or should we have a "classes/" dir at the top level?
> 
> /classes/com/serendib/modules/funky/FunkyModule.class
> 
> --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 <de...@opensource.lk> 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" <ru...@gmail.com>
> >>To: <ax...@ws.apache.org>
> >>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
> >>
> >>
> >>
> >>
> >
> >
> >
>

Re: [Axis2] Libraries used by modules

Posted by Eric Johnson <er...@tibco.com>.
A little late to this discussion, but how about following the OSGi standard?

Section 4.4.9 recommends putting a "Bundle-Classpath" attribute in the 
MANIFEST.MF file of the JAR format.

That would explicitly identify where the jar files and "classes" folder 
would be, rather than defining yet another approach.

Just an idea.

-Eric.

Glen Daniels wrote:

> +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
>
> Or should we have a "classes/" dir at the top level?
>
> /classes/com/serendib/modules/funky/FunkyModule.class
>
> --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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>> To: <ax...@ws.apache.org>
>>> 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
>>>
>>>
>>>
>>>
>>
>>
>>
>

Re: [Axis2] Libraries used by modules

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Guillaume ;

Thanks for info I will take a look at the , I think if we can do that it 
will make our job easier

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



----- Original Message ----- 
From: "Guillaume Sauthier" <Gu...@objectweb.org>
To: <ax...@ws.apache.org>
Sent: Tuesday, August 23, 2005 8:16 AM
Subject: Re: [Axis2] Libraries used by modules


> Deepal Jayasinghe wrote:
>
>> 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.
>
>
> I did it the hard way in JOnAS : list the entries, and find the ones with 
> a name that ends with '.jar'
>
>> 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.
>
>
> Strange, I though we had something in JOnAS that create a 
> WebAppClassLoader from a packed war file (loading WEB-INF/classes and all 
> WEB-INF/lib/*.jar). I must check if this works ...
>
> Instead of creating another ClassLoader, you just have to unpack the .mar 
> and then you can add the inner jar file URL to the URLClassLoader.
>
> Regards
> Guillaume
>
>>
>>
>>
>> Thanks,
>> Deepal
>> ................................................................
>> ~Future is Open~
>>
>>
>>
>> ----- Original Message ----- From: "Guillaume Sauthier" 
>> <Gu...@objectweb.org>
>> To: <ax...@ws.apache.org>
>> 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" 
>>>> <gl...@thoughtcraft.com>
>>>> To: <ax...@ws.apache.org>
>>>> 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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>>>>>> To: <ax...@ws.apache.org>
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> 



Re: [Axis2] Libraries used by modules

Posted by Guillaume Sauthier <Gu...@objectweb.org>.
Deepal Jayasinghe wrote:

> 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.


I did it the hard way in JOnAS : list the entries, and find the ones 
with a name that ends with '.jar'

> 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.


Strange, I though we had something in JOnAS that create a 
WebAppClassLoader from a packed war file (loading WEB-INF/classes and 
all WEB-INF/lib/*.jar). I must check if this works ...

Instead of creating another ClassLoader, you just have to unpack the 
.mar and then you can add the inner jar file URL to the URLClassLoader.

Regards
Guillaume

>
>
>
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
> ----- Original Message ----- From: "Guillaume Sauthier" 
> <Gu...@objectweb.org>
> To: <ax...@ws.apache.org>
> 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" 
>>> <gl...@thoughtcraft.com>
>>> To: <ax...@ws.apache.org>
>>> 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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>>>>> To: <ax...@ws.apache.org>
>>>>>> 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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>


Re: [Axis2] Libraries used by modules

Posted by Deepal Jayasinghe <de...@opensource.lk>.
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" <Gu...@objectweb.org>
To: <ax...@ws.apache.org>
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" <gl...@thoughtcraft.com>
>> To: <ax...@ws.apache.org>
>> 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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>>>> To: <ax...@ws.apache.org>
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
> 



Re: [Axis2] Libraries used by modules

Posted by Guillaume Sauthier <Gu...@objectweb.org>.
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" <gl...@thoughtcraft.com>
> To: <ax...@ws.apache.org>
> 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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>>> To: <ax...@ws.apache.org>
>>>> 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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
>


Re: [Axis2] Libraries used by modules

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi glen;

please see my comments below;

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



----- Original Message ----- 
From: "Glen Daniels" <gl...@thoughtcraft.com>
To: <ax...@ws.apache.org>
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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>>To: <ax...@ws.apache.org>
>>>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
>>>
>>>
>>>
>>>
>>
>>
>>
>
> 



Re: [Axis2] Libraries used by modules

Posted by Glen Daniels <gl...@thoughtcraft.com>.
+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

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

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

--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 <de...@opensource.lk> 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" <ru...@gmail.com>
>>To: <ax...@ws.apache.org>
>>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
>>
>>
>>
>>
> 
> 
> 

Re: [Axis2] Libraries used by modules

Posted by Davanum Srinivas <da...@gmail.com>.
Deepal,

So the jar should be like this? Right?

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

thanks,
dims


On 8/22/05, Deepal Jayasinghe <de...@opensource.lk> 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" <ru...@gmail.com>
> To: <ax...@ws.apache.org>
> 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
> 
> 
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Re: [Axis2] Libraries used by modules

Posted by Deepal Jayasinghe <de...@opensource.lk>.
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" <ru...@gmail.com>
To: <ax...@ws.apache.org>
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




Re: [Axis2] Libraries used by modules

Posted by Davanum Srinivas <da...@gmail.com>.
+1 to fix it :) Please log a bug 

-- dims

On 8/22/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> Ouch .. I'd consider this a bug .. META-INF/lib of the module should
> work! Otherwise a .mar file is not self complete.
> 
> Sanjiva.
> 
> On Sun, 2005-08-21 at 18:27 -0400, Davanum Srinivas wrote:
> > just keep them in the classpath (when running the simplehttpserver)
> >
> > -- dims
> >
> > On 8/21/05, Ruchith Fernando <ru...@gmail.com> wrote:
> > > 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
> > >
> >
> >
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Re: [Axis2] Libraries used by modules

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Ouch .. I'd consider this a bug .. META-INF/lib of the module should
work! Otherwise a .mar file is not self complete.

Sanjiva.

On Sun, 2005-08-21 at 18:27 -0400, Davanum Srinivas wrote:
> just keep them in the classpath (when running the simplehttpserver)
> 
> -- dims
> 
> On 8/21/05, Ruchith Fernando <ru...@gmail.com> wrote:
> > 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
> > 
> 
> 


Re: [Axis2] Libraries used by modules

Posted by Davanum Srinivas <da...@gmail.com>.
just keep them in the classpath (when running the simplehttpserver)

-- dims

On 8/21/05, Ruchith Fernando <ru...@gmail.com> wrote:
> 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
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform