JAR Hell with XFire in M5

4 messages Options
Embed this post
Permalink
mraible

JAR Hell with XFire in M5

Reply Threaded More More options
Print post
Permalink
FYI... Just in case you haven't played with M5 yet.

A Struts 2 basic application now has 92 JARs in its WEB-INF/lib
directory! Total size of directory: 32.5 MB.

If I exclude xfire-all, it's 52 JARs and 19.1 MB.

Does XFire take the cake for the most bloated library you can use or
are we just including too much (xfire-all vs. fine-grained
dependencies)?

Total size of xfire-all: 40 JARs, 13.4 MB. Yikes!

Matt

--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Jason Thrasher

Re: JAR Hell with XFire in M5

Reply Threaded More More options
Print post
Permalink
Yes, I noticed that as well.  I wonder what the bloat would be for Axis2, since there are already so many Apache jars in the war already?  Jetty is MUCH slower with xfire, and seems to run out of PermGen faster when doing restarts.

However, with Maven, just eclude the appfuse-service's dependancy (core module's pom.xml):
<exclusion>
  <groupId>org.codehaus.xfire</groupId>
  <artifactId>xfire-all</artifactId>
</exclusion>

And include the javax.jws so the any services you do have will compile:
                <!-- let Java Web Services stuff compile, sans xFire -->
                <dependency>
                        <groupId>javax.jws</groupId>
                        <artifactId>jsr181</artifactId>
                        <version>1.0</version>
                </dependency>

That gets the WAR back down to around 20 MB.

Jason



mraible wrote:
FYI... Just in case you haven't played with M5 yet.

A Struts 2 basic application now has 92 JARs in its WEB-INF/lib
directory! Total size of directory: 32.5 MB.

If I exclude xfire-all, it's 52 JARs and 19.1 MB.

Does XFire take the cake for the most bloated library you can use or
are we just including too much (xfire-all vs. fine-grained
dependencies)?

Total size of xfire-all: 40 JARs, 13.4 MB. Yikes!

Matt

--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@appfuse.dev.java.net
For additional commands, e-mail: dev-help@appfuse.dev.java.net
mraible

Re: JAR Hell with XFire in M5

Reply Threaded More More options
Print post
Permalink
I found that I'm able to eliminate 12 JARs by using the following
dependencies rather than xfire-all:

http://xfire.codehaus.org/Maven+Guide

However, it still adds 28 JARs to the mix.

Matt

On 6/1/07, Jason Thrasher <[hidden email]> wrote:

>
> Yes, I noticed that as well.  I wonder what the bloat would be for Axis2,
> since there are already so many Apache jars in the war already?  Jetty is
> MUCH slower with xfire, and seems to run out of PermGen faster when doing
> restarts.
>
> However, with Maven, just eclude the appfuse-service's dependancy (core
> module's pom.xml):
> <exclusion>
>   <groupId>org.codehaus.xfire</groupId>
>   <artifactId>xfire-all</artifactId>
> </exclusion>
>
> And include the javax.jws so the any services you do have will compile:
>                 <!-- let Java Web Services stuff compile, sans xFire -->
>                 <dependency>
>                         <groupId>javax.jws</groupId>
>                         <artifactId>jsr181</artifactId>
>                         <version>1.0</version>
>                 </dependency>
>
> That gets the WAR back down to around 20 MB.
>
> Jason
>
>
>
>
> mraible wrote:
> >
> > FYI... Just in case you haven't played with M5 yet.
> >
> > A Struts 2 basic application now has 92 JARs in its WEB-INF/lib
> > directory! Total size of directory: 32.5 MB.
> >
> > If I exclude xfire-all, it's 52 JARs and 19.1 MB.
> >
> > Does XFire take the cake for the most bloated library you can use or
> > are we just including too much (xfire-all vs. fine-grained
> > dependencies)?
> >
> > Total size of xfire-all: 40 JARs, 13.4 MB. Yikes!
> >
> > Matt
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/JAR-Hell-with-XFire-in-M5-tf3855660s2369.html#a10924266
> Sent from the AppFuse - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: JAR Hell with XFire in M5

Reply Threaded More More options
Print post
Permalink
FYI... I've opened an issue in JIRA for this at:

http://issues.appfuse.org/browse/APF-797

From my blog post[1], I've come to discover that using xfire-spring and xfire-java5 is the leanest XFire configuration. This config uses XmlBeans by default and reduces the JAR count by another 7.

Matt

[1] http://raibledesigns.com/rd/entry/jar_hell_with_xfire_1

mraible wrote:
I found that I'm able to eliminate 12 JARs by using the following
dependencies rather than xfire-all:

http://xfire.codehaus.org/Maven+Guide

However, it still adds 28 JARs to the mix.

Matt

On 6/1/07, Jason Thrasher <jason@coachthrasher.com> wrote:
>
> Yes, I noticed that as well.  I wonder what the bloat would be for Axis2,
> since there are already so many Apache jars in the war already?  Jetty is
> MUCH slower with xfire, and seems to run out of PermGen faster when doing
> restarts.
>
> However, with Maven, just eclude the appfuse-service's dependancy (core
> module's pom.xml):
> <exclusion>
>   <groupId>org.codehaus.xfire</groupId>
>   <artifactId>xfire-all</artifactId>
> </exclusion>
>
> And include the javax.jws so the any services you do have will compile:
>                 <!-- let Java Web Services stuff compile, sans xFire -->
>                 <dependency>
>                         <groupId>javax.jws</groupId>
>                         <artifactId>jsr181</artifactId>
>                         <version>1.0</version>
>                 </dependency>
>
> That gets the WAR back down to around 20 MB.
>
> Jason
>
>
>
>
> mraible wrote:
> >
> > FYI... Just in case you haven't played with M5 yet.
> >
> > A Struts 2 basic application now has 92 JARs in its WEB-INF/lib
> > directory! Total size of directory: 32.5 MB.
> >
> > If I exclude xfire-all, it's 52 JARs and 19.1 MB.
> >
> > Does XFire take the cake for the most bloated library you can use or
> > are we just including too much (xfire-all vs. fine-grained
> > dependencies)?
> >
> > Total size of xfire-all: 40 JARs, 13.4 MB. Yikes!
> >
> > Matt
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@appfuse.dev.java.net
> > For additional commands, e-mail: dev-help@appfuse.dev.java.net
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/JAR-Hell-with-XFire-in-M5-tf3855660s2369.html#a10924266
> Sent from the AppFuse - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@appfuse.dev.java.net
> For additional commands, e-mail: dev-help@appfuse.dev.java.net
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@appfuse.dev.java.net
For additional commands, e-mail: dev-help@appfuse.dev.java.net