8 Replies Latest reply on Jun 18, 2009 11:05 PM by Dan Sellars

    jBoss crashes when basic seam app deployed, any ideas?

    Dan Sellars Newbie
      Hi,

      I am a brand new user to seam and I am currently trying to go through the tutorial.  Once I create a basic skeleton with:

      ./seam setup
      ./seam create-project

      it appears to be created ok.  I then do:

      ./seam explode

      and everything appears fine.  However when I browse to the web page at

      http://localhost:8080/mc4/

      I get a welcome screen but then jboss crashes with a segmentation fault :-(

      just before that I get a few erros like:

      16:28:58,046 ERROR [STDERR] Jun 17, 2009 4:28:58 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/usr/local/appservers/jboss-4.2.3.GA/server/default/deploy/mc4.ear/mc4.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml

      then:

      Invalid memory access of location 43601458 eip=904716cd
      /usr/local/jboss/bin/run.sh: line 255:  1527 Segmentation fault      "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"

      I am using:

      jboss 4.2.3
      seam 2.1.2
      mysql 5.1.35

      and running on macos 1.4.  The example apps provided with seam worked just fine.  Does anyone have any idea what I may be doing wrong here?

      Cheers,
      Dan.
        • 1. Re: jBoss crashes when basic seam app deployed, any ideas?
          Dan Sellars Newbie

          Just a quick update. It seems that if I use ICEfaces rather than Rich faces it is ok.  Any idea why this would be?


          Thanks, 

          • 2. Re: jBoss crashes when basic seam app deployed, any ideas?
            Arbi Sookazian Master

            That's very strange.  Never heard of segmentation fault until now.


            I do see this in my server.log, however:


            2009-06-17 15:41:24,383 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
            2009-06-17 15:41:24,383 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
            2009-06-17 15:41:24,414 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
            2009-06-17 15:41:24,461 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
            2009-06-17 15:41:24,461 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
            2009-06-17 15:41:24,492 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
            2009-06-17 15:41:24,508 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
            2009-06-17 15:41:24,555 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
            2009-06-17 15:41:24,617 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/a4j.taglib.xml
            2009-06-17 15:41:24,633 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/jsp.taglib.xml
            2009-06-17 15:41:24,633 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/ajax4jsf.taglib.xml
            2009-06-17 15:41:24,695 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/rich.taglib.xml
            2009-06-17 15:41:24,711 ERROR [STDERR] Jun 17, 2009 3:41:24 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/java/jboss-eap-4.3/jboss-as/server/default/deploy/BETS.ear/BETS.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/richfaces.taglib.xml
            

            • 3. Re: jBoss crashes when basic seam app deployed, any ideas?
              Stuart Douglas Master

              Make sure you are using the latest JVM. This is a jvm bug, or a bug in a library used by the jvm, if you can get an actual stack trace from the JVM it will probably give you an idea of what is causing the problem.

              • 4. Re: jBoss crashes when basic seam app deployed, any ideas?
                Dan Sellars Newbie
                Being a mac it is the latest jvm available.  I have been through the examples lookign for ones that use rich faces and they seem to work fine. (I think booking uses some ajax for the search?)

                java -version =
                java version "1.5.0_19"
                Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
                Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)

                also I have no idea how ot get a jvm stack trace on macos and my googlefu seems to be letting me down. :-(
                • 5. Re: jBoss crashes when basic seam app deployed, any ideas?
                  Dan Sellars Newbie
                  In case any once else comes across this issue I figured it out, after a little more digging and came across this post:

                  http://seamframework.org/Community/RichFacesProblemWithOSX

                  It does seem like it is a rich faces issue, I tried the suggested fix:

                  -Dapple.awt.graphics.UseQuartz=false

                  by adding it to bin/run.conf and it seems to have doen the trick.

                  -Djava.awt.headless=true

                  Seems to work too.  Any one know which the prefered method would be?

                  Regards,
                  Dan.

                  • 6. Re: jBoss crashes when basic seam app deployed, any ideas?
                    David Salter Novice

                    Hi Dan, Are you running on OS X 10.4?  I had this problem a while ago on 10.4, and used this fix, but this isn't needed in OS x 10.5


                    I always use the -Dapple.... option and it always seems to work on 10.4.


                    Cheers,


                    Dave.

                    • 7. Re: jBoss crashes when basic seam app deployed, any ideas?
                      Binesh Gummadi Novice

                      JBoss AS or Tomcat may crash when running an app using RF 3.2.1 or higher, and the reason appears to be a problem with Apple's renderer engine. A workaround is to run the server with the following option. This would force mac to use Sun's renderer instead. Example running JBoss AS:


                      bin/run.sh -Dapple.awt.graphics.UseQuartz=false



                      • 8. Re: jBoss crashes when basic seam app deployed, any ideas?
                        Dan Sellars Newbie

                        yeah it's 10.4 so using that seems to work...