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 Tammo van Lessen <tv...@gmail.com> on 2008/08/27 20:34:05 UTC

Duplicate jars in war?

Hi devs,

I'm currently tweaking the dependency management in ODE, so I had a
closer look at your WAR distribution.

I stumbled upon WEB-INF/lib/mex-1.41-impl.jar and
WEB-INF/lib/soapmonitor-1.4.1.jar which look quite identical to
WEB-INF/modules/mex-1.41.mar and WEB-INF/modules/soapmonitor-1.41.mar.
Is this intentional or rather a quirk in the build system?

I actually don't care, I just let you know ;)

Cheers,
  Tammo


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Duplicate jars in war?

Posted by Eran Chinthaka <er...@gmail.com>.
This is a module dependency problem, it seems.

IMO, this can be address in four different ways.

1. Accept the fact that modules will have dependencies and come up with a
solution for this.
This is something we have to think a bit, as IIRC we don't have any way to
mention for module foo to work, module bar should be engaged.

2. Move the common stuff in to Axis2 engine itself.

3. Replicate the common things in both mex and security module related
packages.

4. Leave the things as it is, which seems crappy for me.

Thanks,
Chinthaka

On Wed, Aug 27, 2008 at 5:19 PM, Nandana Mihindukulasooriya <
nandana.cse@gmail.com> wrote:

> Hi Eran,
>      This  [1] is the reason for having the mex-impl jar and in Axis2 1.4.1
> mex-impl jar doesn't contain the module.xml and only mex.mar contains the
> module xml. But yes, the classes are present both in the jar and mar. Not
> sure whether soap monitor jar also present due to a similar reason.
>
> thanks,
> nandana
>
> [1] - https://issues.apache.org/jira/browse/AXIS2-3745
>
>
> On Wed, Aug 27, 2008 at 2:58 PM, Eran Chinthaka <er...@gmail.com>wrote:
>
>> Hi Deepal,
>>
>> If it is that the module.mar contains the module.xml and the lib contains
>> the jars, then there is something wrong in that.
>>
>> I just looked at both the jar and mar files and they contain the same
>> thing.
>>
>> IMHO, they should have only released mar files and must have removed jar
>> files. I think this is an error in the release script.
>>
>> Thanks Tammo for finding this out.
>>
>> Thanks,
>> Chinthaka
>>
>>
>> On Wed, Aug 27, 2008 at 2:43 PM, Deepal jayasinghe <de...@gmail.com>wrote:
>>
>>>
>>> > Hi devs,
>>> >
>>> > I'm currently tweaking the dependency management in ODE, so I had a
>>> > closer look at your WAR distribution.
>>> >
>>> > I stumbled upon WEB-INF/lib/mex-1.41-impl.jar and
>>> > WEB-INF/lib/soapmonitor-1.4.1.jar which look quite identical to
>>> > WEB-INF/modules/mex-1.41.mar and WEB-INF/modules/soapmonitor-1.41.mar.
>>> > Is this intentional or rather a quirk in the build system?
>>> >
>>> > I actually don't care, I just let you know ;)
>>> >
>>> >
>>> What you mentioned was a very good point I am not sure about why they
>>> have put both jars and mars file in the WAR distribution. One reason
>>> could be all the class files are in the jar and mar only contains the
>>> module.xml. I need to check that and confirm.
>>>
>>> Thank you!
>>> Deepal
>>> > Cheers,
>>> >   Tammo
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>>> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>>> >
>>> >
>>> >
>>>
>>>
>>> --
>>> Thanks,
>>> Deepal
>>> ................................................................
>>> http://blogs.deepal.org/
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>>
>>>
>>
>>
>> --
>> With Mettha,
>> Eran Chinthaka
>>
>> --------------------------------------------------------------------
>> Health is the greatest gift; contentment is the greatest wealth; trusting
>> is the best relationship; nirvana is the highest joy. - Dhammapada
>>
>
>
>
> --
> Nandana Mihindukulasooriya
> WSO2 inc.
>
> http://nandana83.blogspot.com/
> http://www.wso2.org
>



-- 
With Mettha,
Eran Chinthaka

--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada

Re: Duplicate jars in war?

Posted by Nandana Mihindukulasooriya <na...@gmail.com>.
Hi Eran,
     This  [1] is the reason for having the mex-impl jar and in Axis2 1.4.1
mex-impl jar doesn't contain the module.xml and only mex.mar contains the
module xml. But yes, the classes are present both in the jar and mar. Not
sure whether soap monitor jar also present due to a similar reason.

thanks,
nandana

[1] - https://issues.apache.org/jira/browse/AXIS2-3745

On Wed, Aug 27, 2008 at 2:58 PM, Eran Chinthaka <er...@gmail.com>wrote:

> Hi Deepal,
>
> If it is that the module.mar contains the module.xml and the lib contains
> the jars, then there is something wrong in that.
>
> I just looked at both the jar and mar files and they contain the same
> thing.
>
> IMHO, they should have only released mar files and must have removed jar
> files. I think this is an error in the release script.
>
> Thanks Tammo for finding this out.
>
> Thanks,
> Chinthaka
>
>
> On Wed, Aug 27, 2008 at 2:43 PM, Deepal jayasinghe <de...@gmail.com>wrote:
>
>>
>> > Hi devs,
>> >
>> > I'm currently tweaking the dependency management in ODE, so I had a
>> > closer look at your WAR distribution.
>> >
>> > I stumbled upon WEB-INF/lib/mex-1.41-impl.jar and
>> > WEB-INF/lib/soapmonitor-1.4.1.jar which look quite identical to
>> > WEB-INF/modules/mex-1.41.mar and WEB-INF/modules/soapmonitor-1.41.mar.
>> > Is this intentional or rather a quirk in the build system?
>> >
>> > I actually don't care, I just let you know ;)
>> >
>> >
>> What you mentioned was a very good point I am not sure about why they
>> have put both jars and mars file in the WAR distribution. One reason
>> could be all the class files are in the jar and mar only contains the
>> module.xml. I need to check that and confirm.
>>
>> Thank you!
>> Deepal
>> > Cheers,
>> >   Tammo
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >
>> >
>> >
>>
>>
>> --
>> Thanks,
>> Deepal
>> ................................................................
>> http://blogs.deepal.org/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>
>
> --
> With Mettha,
> Eran Chinthaka
>
> --------------------------------------------------------------------
> Health is the greatest gift; contentment is the greatest wealth; trusting
> is the best relationship; nirvana is the highest joy. - Dhammapada
>



-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org

Re: Duplicate jars in war?

Posted by Deepal jayasinghe <de...@gmail.com>.
Eran Chinthaka wrote:
> Hi Deepal,
>
> If it is that the module.mar contains the module.xml and the lib
> contains the jars, then there is something wrong in that.
>
> I just looked at both the jar and mar files and they contain the same
> thing.
If that is the case we should definitely remove those two jar files from
the war.

-Deepal

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Duplicate jars in war?

Posted by Eran Chinthaka <er...@gmail.com>.
Hi Deepal,

If it is that the module.mar contains the module.xml and the lib contains
the jars, then there is something wrong in that.

I just looked at both the jar and mar files and they contain the same thing.


IMHO, they should have only released mar files and must have removed jar
files. I think this is an error in the release script.

Thanks Tammo for finding this out.

Thanks,
Chinthaka

On Wed, Aug 27, 2008 at 2:43 PM, Deepal jayasinghe <de...@gmail.com>wrote:

>
> > Hi devs,
> >
> > I'm currently tweaking the dependency management in ODE, so I had a
> > closer look at your WAR distribution.
> >
> > I stumbled upon WEB-INF/lib/mex-1.41-impl.jar and
> > WEB-INF/lib/soapmonitor-1.4.1.jar which look quite identical to
> > WEB-INF/modules/mex-1.41.mar and WEB-INF/modules/soapmonitor-1.41.mar.
> > Is this intentional or rather a quirk in the build system?
> >
> > I actually don't care, I just let you know ;)
> >
> >
> What you mentioned was a very good point I am not sure about why they
> have put both jars and mars file in the WAR distribution. One reason
> could be all the class files are in the jar and mar only contains the
> module.xml. I need to check that and confirm.
>
> Thank you!
> Deepal
> > Cheers,
> >   Tammo
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
> >
>
>
> --
> Thanks,
> Deepal
> ................................................................
> http://blogs.deepal.org/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
With Mettha,
Eran Chinthaka

--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada

Re: Duplicate jars in war?

Posted by Deepal jayasinghe <de...@gmail.com>.
> Hi devs,
>
> I'm currently tweaking the dependency management in ODE, so I had a
> closer look at your WAR distribution.
>
> I stumbled upon WEB-INF/lib/mex-1.41-impl.jar and
> WEB-INF/lib/soapmonitor-1.4.1.jar which look quite identical to
> WEB-INF/modules/mex-1.41.mar and WEB-INF/modules/soapmonitor-1.41.mar.
> Is this intentional or rather a quirk in the build system?
>
> I actually don't care, I just let you know ;)
>
>   
What you mentioned was a very good point I am not sure about why they
have put both jars and mars file in the WAR distribution. One reason
could be all the class files are in the jar and mar only contains the
module.xml. I need to check that and confirm.

Thank you!
Deepal
> Cheers,
>   Tammo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
>   


-- 
Thanks,
Deepal
................................................................
http://blogs.deepal.org/


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org