The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish WebTier

Thread: Updating Glassfish 3 to the latest JSF 2 fails

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Feb 2, 2009 3:31 PM by: cayhorstmann Threads: [ Previous | Next ]
cayhorstmann

Posts: 228
Updating Glassfish 3 to the latest JSF 2 fails
Posted: Jan 31, 2009 8:55 AM
  Click to reply to this thread Reply

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

Ryan Lubke
Re: [webtier] Updating Glassfish 3 to the latest JSF 2 fails
Posted: Feb 2, 2009 9:29 AM   in response to: cayhorstmann
  Click to reply to this thread Reply

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

Posts: 228
Re: [webtier] Updating Glassfish 3 to the latest JSF 2 fails
Posted: Feb 2, 2009 3:31 PM   in response to: Ryan Lubke
  Click to reply to this thread Reply

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_ee.html




 XML java.net RSS