2 Replies Latest reply on Jul 29, 2008 6:39 PM by pjinc

    Unable to run the project generated with seam-gen

      Posting this issue on the forum as suggested by Pete
      Thanks for your help



      JBSEAM-3185:
      --------------------------------


      Description:
      I'm trying to run a project generated with seam-gen.
      when I open the project in explorer nothing happens on the page and I see lots off stack trace messages running in server console:
      steps:


      1. configure project: seam setup (all defaults)
      2. create project: seam create-project
      3. start jboss server: ./run.sh -b(myhost)
      4. deploy project: seam deploy
      5. navigate to the webpage of a project: http://myhost:8080/myproj
      6. console exploads with stack trace.


      I tried both 2.0 and 2.1 versions of seam and got the same results on linux, I also tried the same steps on my laptop running XP with 2.0.3 CR1 and everything worked perfectly, I was able to get a starting page. I was also able to run a registration sample on the linux server.


      Please prompt what am I missing.

        • 1. Re: Unable to run the project generated with seam-gen
          nickarls

          I can't believe I actually went to the JIRA, downloaded the 6,5M log file, extracted it to it's full 141M size and looked at it, but for some strange reason I did.


          Caused by: javax.naming.NameNotFoundException: UserTransaction not bound
          



          Sadly, in all that log I didn't find any info on why that is.

          • 2. Re: Unable to run the project generated with seam-gen

            Thank you for the effort Nicklass,


            Any suggestions ?
            Maybe I can turn a debug mode or any other trace on or post any configuration files ? As I said I did not change anything, It was a strate forward seam-gen configuration with all default settings.


            FYI, I noticed that after I point the browser to the project the log file does not get updated anymore, I just see alot of console  messages that stop right after I navigate from the project to the the JMX console. Below are the build.properties file generated by seam-gen setup and stack trace samples.


            Thanks again for any help.


            /test/csapps/java/jboss-seam-2.0.3.CR1/seam-gen/build.properties
            ----------------------------------------------------------#Generated by seam setup
            #Tue Jul 29 11:07:28 CDT 2008
            hibernate.connection.password=
            workspace.home=/test/csapps/java/workspace
            model.package=org.domain.proj1
            driver.jar=../lib/hsqldb.jar
            action.package=org.domain.proj1
            test.package=org.domain.proj1.test
            database.type=hsql
            richfaces.skin=blueSky
            hibernate.default_catalog.null=
            hibernate.default_schema.null=
            database.drop=n
            project.name=proj1
            hibernate.connection.username=sa
            hibernate.connection.driver_class=org.hsqldb.jdbcDriver
            hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
            project.type=war
            icefaces.home=
            database.exists=n
            jboss.home=/test/csapps/java/jboss-4.2.2.GA
            hibernate.dialect=org.hibernate.dialect.HSQLDialect
            hibernate.connection.url=jdbc\:hsqldb\:.
            icefaces=n
            
            ########################################################
            Stack trace samples:
            ########################################################
            ss(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
            6)
                    at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.RuntimeException: exception invoking: getTransaction
                    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:135)
                    at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
                    at org.jboss.seam.Component.unwrap(Component.java:2118)
                    at org.jboss.seam.Component.getInstance(Component.java:1890)
                    at org.jboss.seam.Component.getInstance(Component.java:1855)
                    at org.jboss.seam.Component.getInstance(Component.java:1832)
                    at org.jboss.seam.Component.getInstance(Component.java:1827)
                    at org.jboss.seam.transaction.Transaction.instance(Transaction.java:36)
                    at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListen
            er.java:600)
                    ... 43 more
            
            Caused by: javax.naming.NamingException: Could not dereference object [Root exce
            ption is javax.naming.NameNotFoundException: UserTransaction not bound]
                    at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1215)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:758)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:774)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                    at javax.naming.InitialContext.lookup(InitialContext.java:351)
                    at org.jboss.seam.transaction.Transaction.getUserTransaction(Transaction
            .java:79)
                    at org.jboss.seam.transaction.Transaction.createUTTransaction(Transactio
            n.java:71)
                    at org.jboss.seam.transaction.Transaction.getTransaction(Transaction.jav
            a:44)
                    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:585)
                    at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                    ... 51 more
            Caused by: javax.naming.NameNotFoundException: UserTransaction not bound
                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                    at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                    at javax.naming.InitialContext.lookup(InitialContext.java:351)
                    at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1209)
                    ... 63 more
            11:10:55,983 ERROR [Contexts] could not discover transaction status