Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » web-fragment.xml causes nested jar on deployment
web-fragment.xml causes nested jar on deployment [message #539073] Wed, 09 June 2010 14:48 Go to next message
Ramonus is currently offline Ramonus
Messages: 2
Registered: July 2009
Junior Member
Hi,

I'm having trouble deploying my Dynamic Web Project with a specific jar (WEB-INF\lib\primefaces-2.0.0.jar) using the latest Eclipse Helios JEE RC3.
Because this jar contains the file \META-INF\web-fragment.xml, the jar gets nested in itself after deployment to the server (primefaces-2.0.0.jar first entry is primefaces-2.0.0.jar). Resulting the server not finding the classes in the jar. When I manually remove web-fragment.xml from the jar, the deployed jar is just fine.
I'm using Glassfish v3.0.1 with the Eclipse server plugin "GlassFish v3 Java EE 6 runtime".
Is this a bug, with an older Helios milestone, this problem didn't occur?
Anyone?

Regards,
Ramon
Re: web-fragment.xml causes nested jar on deployment [message #539114 is a reply to message #539073] Wed, 09 June 2010 16:36 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On 6/9/2010 10:48 AM, Ramonus wrote:
> Hi,
>
> I'm having trouble deploying my Dynamic Web Project with a specific jar
> (WEB-INF\lib\primefaces-2.0.0.jar) using the latest Eclipse Helios JEE RC3.
> Because this jar contains the file \META-INF\web-fragment.xml, the jar
> gets nested in itself after deployment to the server
> (primefaces-2.0.0.jar first entry is primefaces-2.0.0.jar). Resulting
> the server not finding the classes in the jar. When I manually remove
> web-fragment.xml from the jar, the deployed jar is just fine.
> I'm using Glassfish v3.0.1 with the Eclipse server plugin "GlassFish v3
> Java EE 6 runtime".
> Is this a bug, with an older Helios milestone, this problem didn't occur?
> Anyone?
>
> Regards,
> Ramon

This is a behavior change in WTP 3.2 that server adapters may have to be
updated to handle. The built-in Tomcat and Generic server adapters have
already done so. It looks like the Glassfish server adapter will have
to as well. The behavior change is documented in Bug 309206[1]. The
bugs for this behavior in the Tomcat and the Generic server adapters
were Bug 306732[2] and Bug 310647[3], respectively. You may want to
report this issue on a Glassfish forum.

Cheers,
Larry


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=309206
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=306732
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=310647
Re: web-fragment.xml causes nested jar on deployment [message #539478 is a reply to message #539114] Thu, 10 June 2010 21:56 Go to previous messageGo to next message
ludo  is currently offline ludo
Messages: 9
Registered: July 2009
Junior Member
Thanks for the info and report,
I will look into the issue soon,

Ludo
Re: web-fragment.xml causes nested jar on deployment [message #539666 is a reply to message #539073] Fri, 11 June 2010 18:31 Go to previous message
Ramonus is currently offline Ramonus
Messages: 2
Registered: July 2009
Junior Member
Ludo, so I don't need to file this issue anymore in the Glassfish plugin bugbase?

Regards,
Ramon
Previous Topic:Bug in stopping JBoss?
Next Topic:Add propertysheet contributions to existing html editor
Goto Forum:
  


Current Time: Thu Sep 18 07:55:21 GMT 2014

Powered by FUDForum. Page generated in 0.02673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software