users@glassfish.java.net

Re: Add jsf and backbean to web application without deploy all application

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 05 Oct 2010 10:56:52 -0700

jar files packaged inside a jar are not supported.

-marina

glassfish_at_javadesktop.org wrote:
> To my knowledge, having several jars as a part of an EJB project means you will have to pack the dependencies within the jar and a classpath entry to the META-INF/MANIFES.INF of your jar project.
>
> For example
> ejb-impl.jar
> +---/lib/ejb-interfaces.jar
> +---/lib/ejb-jpa.jar
> +---/META-INF/MAINFEST.INF
> +--Entry in this file saying classpath: lib/ejb-interfaces.jar, /lib/ejb-jpa.jar
>
> Maybe the easiest way is to deploy the ejb jar module inside an EAR project and add all dependant jars to the lib directory of the ear project. In this case, you woulnd't need add anything to /META-INF/MAINFEST.INF as any jars in the lib directory become inmediatly available to any of hte jee modules.
> [Message sent by forum member 'pablopina']
>
> http://forums.java.net/jive/thread.jspa?messageID=484368
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>