Skip to main content

Updating Glassfish 3 to the latest JSF 2 fails

2 replies [Last post]
cayhorstmann
Offline
Joined: 2003-06-13

I ran mojarra-2.0.0-SNAPSHOT-glassfish-updater.jar on my GFv3 install, and got this cryptic error message:

Updating glassfish at
/home/apps/glassfish-v3-prelude-b28c/glassfish
with new JSF jars.
java.lang.RuntimeException: Multiple .jar files starting with javax.javaee. Update cannot proceed
at com.sun.faces.tools.GlassfishUpdater.updateV3Jars(GlassfishUpdater.java:320)
at com.sun.faces.tools.GlassfishUpdater.main(GlassfishUpdater.java:137)

Is the updater broken, or am I doing something wrong? Oddly enough, I have no files starting with javax.javaee.

Here are the ones starting with javax:

$ find -name "javax*jar"./modules/javax.enterprise.deploy.jar
./modules/web/javax.servlet.jsp.jstl.jar
./modules/javax.mail.jar
./modules/javax.xml.stream.jar
./modules/javax.security.auth.message.jar
./modules/javax.servlet.jar
./modules/javax.persistence.jar
./modules/javax.transaction.jar
./modules/javax.security.jacc.jar
./modules/javax.resource.jar
./modules/javax.activation.jar
./modules/javax.annotation.jar
./modules/javax.servlet.jsp.jar

There is one containing javaee:

$ find -name "*javaee*jar"
./modules/deployment-javaee-core.jar

Thanks,

Cay

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

webtier@javadesktop.org wrote:
> I ran mojarra-2.0.0-SNAPSHOT-glassfish-updater.jar on my GFv3 install, and got this cryptic error message:
>
> Updating glassfish at
> /home/apps/glassfish-v3-prelude-b28c/glassfish
> with new JSF jars.
> java.lang.RuntimeException: Multiple .jar files starting with javax.javaee. Update cannot proceed
> at com.sun.faces.tools.GlassfishUpdater.updateV3Jars(GlassfishUpdater.java:320)
> at com.sun.faces.tools.GlassfishUpdater.main(GlassfishUpdater.java:137)
>
> Is the updater broken, or am I doing something wrong? Oddly enough, I have no files starting with javax.javaee.
>
>
Hmm, the updater should have been removed from the nightly build
process. Will have to
track this down.

At any rate, no need to use the updater with V3 Prelude. If you want to
use a nightly build
of 2.0.0, then:

1. backup modules/jsf-api.jar and modules/web/jsf-impl.jar
2. Copy jsf-api.jar from the binary bundle to modules
3. Copy jsf-impl.jar from the binary bundle to modules/web

> Here are the ones starting with javax:
>
> $ find -name "javax*jar"./modules/javax.enterprise.deploy.jar
> ./modules/web/javax.servlet.jsp.jstl.jar
> ./modules/javax.mail.jar
> ./modules/javax.xml.stream.jar
> ./modules/javax.security.auth.message.jar
> ./modules/javax.servlet.jar
> ./modules/javax.persistence.jar
> ./modules/javax.transaction.jar
> ./modules/javax.security.jacc.jar
> ./modules/javax.resource.jar
> ./modules/javax.activation.jar
> ./modules/javax.annotation.jar
> ./modules/javax.servlet.jsp.jar
>
> There is one containing javaee:
>
> $ find -name "*javaee*jar"
> ./modules/deployment-javaee-core.jar
>
> Thanks,
>
> Cay
> [Message sent by forum member 'cayhorstmann' (cayhorstmann)]
>
> http://forums.java.net/jive/thread.jspa?messageID=329405
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>

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

cayhorstmann
Offline
Joined: 2003-06-13

Thanks so much--that's what I am telling my students to do too. http://weblogs.java.net/blog/cayhorstmann/archive/2009/02/towards_java_e...