8 Replies Latest reply on Jan 13, 2006 3:56 PM by gavin.king

    jboss-seam-head build errors

    matthew.edwards

      I got the following error building: examples/issues

      BUILD FAILED
      C:\J2EE\project\jboss-seam-head\examples\issues\build.xml:126: C:\J2EE\project\jboss-seam-head\examples\issues\resources\WEB-INF\lib not found.

      The example is missing the WEB-INF/lib folder (and libraries).

        • 1. Re: jboss-seam-head build errors
          gavin.king

          The directory *is* in CVS, it is empty though (no jars needed).

          Maybe you simply shouldn't use "prune directories" on the CVS checkout.

          • 2. Re: jboss-seam-head build errors
            matthew.edwards

            Is the build.properties file in the issues folder needed/necissary? The example doesn't build without it; however, to be consistent with the other examples maybe we could pull the jboss location from the build.properties file in the root folder instead.

            • 3. Re: jboss-seam-head build errors
              gavin.king

              Trouble is that the issues build is not extending the build.xml from the root dir like most of the other examples are. (This was cos the app was originally gen'd by Hibernate Tools.)

              I would love to have someone who is good with build scripts (ie. not me) go over all the Seam build scripts and tidy them up before the release next week. Christian did it last time, but I think he is pretty busy right now.

              • 4. Re: jboss-seam-head build errors
                redeeze

                Looks like the jBPM jar was updated but the reference within Eclipse was not. I get the following problem:

                Project jboss-seam-head is missing required library: 'lib/jbpm-3.1-alpha2.jar'

                I think jbpm-3.1-alpha2.jar needs to be removed from the Eclipse classpath and jbpm-3.1-beta1.jar needs to be added.

                • 5. Re: jboss-seam-head build errors
                  redeeze

                   

                  Trouble is that the issues build is not extending the build.xml from the root dir like most of the other examples are. (This was cos the app was originally gen'd by Hibernate Tools.)


                  To fix the build file, I simply replaced it with the build file in the examples/booking demo and changed two lines:
                  <!-- Naming -->
                   <property name="Name" value="JBoss Seam Issues Example"/>
                   <property name="example.name" value="jboss-seam-issues"/>


                  Then I renamed the examples/issues/resources/jsp folder to examples/issues/resources/view.

                  Other than that, the datasource in the build.xml file could be set to "_NOTHING_" but the same results will be found.

                  Whatever tools you used to generate the example build script pretty much borrowed the essential ant commands from the project root build script. The bookings demo doesn't borrow them, so it was just a matter of copy and paste.

                  I really like how you have your projects setup. I have based my projects after your pattern--it really simplifies organization. I can pretty much use your ant build scripts to build my projects now.

                  Thanks for your help, eh.

                  • 6. Re: jboss-seam-head build errors
                    robjellinghaus

                    Sounds like the tool generator should have an option to share a root build.xml, to enable lots of tool-generated subprojects sharing a common build.xml.

                    Another nice thing for the infinite todo list :-)
                    Cheers!
                    Rob

                    • 7. Re: jboss-seam-head build errors: DVD demo won't deploy
                      matthew.edwards

                      I build Seam, then I build the DVD demo app. When I startup the JBoss server I get the following error:

                      2006-01-13 11:05:23,015 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dvd]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                      java.lang.RuntimeException: could not deploy a process definition
                      at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:129)
                      at org.jboss.seam.core.Jbpm.startup(Jbpm.java:53)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
                      at org.jboss.seam.Component.callComponentMethod(Component.java:1112)
                      at org.jboss.seam.Component.callCreateMethod(Component.java:1100)
                      at org.jboss.seam.Component.newInstance(Component.java:1089)
                      at org.jboss.seam.Component.getInstance(Component.java:1037)
                      at org.jboss.seam.Component.getInstance(Component.java:1020)
                      at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:88)
                      at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:68)
                      at org.jboss.seam.init.Initialization.init(Initialization.java:90)
                      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:30)
                      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
                      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
                      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                      at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
                      at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
                      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
                      at org.jboss.web.WebModule.startModule(WebModule.java:68)
                      at org.jboss.web.WebModule.startService(WebModule.java:46)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                      at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                      at $Proxy0.start(Unknown Source)
                      at org.jboss.system.ServiceController.start(ServiceController.java:428)
                      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                      at $Proxy33.start(Unknown Source)
                      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                      at $Proxy34.start(Unknown Source)
                      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                      at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                      at $Proxy6.deploy(Unknown Source)
                      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
                      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
                      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
                      Caused by: org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
                      at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:169)
                      at org.hibernate.transaction.JTATransaction.begin(JTATransaction.java:102)
                      at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1236)
                      at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:96)
                      at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:172)
                      at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:422)
                      at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:165)
                      at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:124)
                      ... 102 more
                      Caused by: javax.transaction.RollbackException: Already marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=green/15, BranchQual=, localId=15]
                      at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:617)
                      at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:158)
                      ... 109 more

                      • 8. Re: jboss-seam-head build errors
                        gavin.king

                        This should already be fixed.