Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3572

Unable to deploy todo example from seam

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • EWP 5.0.1
    • EWP 5.0.0.CR1, EWP 5.0.0.CR3
    • Seam
    • None
    • Release Notes

      It is not possible to deploy seam "todo" example because bsh.jar is missing in EWP distribution.
      The error when deploying the application is following: java.lang.NoClassDefFoundError: bsh/TargetError

      The whole stack trace is here:

      2010-01-28 09:50:33,982 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-todo]] (HDScanner) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
      at org.jboss.seam.Component.newInstance(Component.java:2144)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:305)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:279)
      at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:115)
      at org.jboss.seam.init.Initialization.init(Initialization.java:740)
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy38.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1211)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:371)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:256)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: could not deploy a process definition
      at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:300)
      at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
      at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
      at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
      at org.jboss.seam.Component.newInstance(Component.java:2132)
      ... 70 more
      Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
      at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110)
      at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135)
      at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
      at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:323)
      at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:456)
      at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
      at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:267)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
      at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:105)
      at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
      at org.jbpm.persistence.jta.JtaDbPersistenceService.isJtaTransactionInProgress(JtaDbPersistenceService.java:68)
      at org.jbpm.persistence.jta.JtaDbPersistenceService.<init>(JtaDbPersistenceService.java:46)
      at org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(JtaDbPersistenceServiceFactory.java:66)
      at org.jbpm.svc.Services.getService(Services.java:177)
      at org.jbpm.svc.Services.getPersistenceService(Services.java:231)
      at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:705)
      at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:638)
      at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
      at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:316)
      at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:294)
      ... 80 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedConstructorAccessor310.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107)
      ... 100 more
      Caused by: java.lang.NoClassDefFoundError: bsh/TargetError
      at java.lang.Class.getDeclaredFields0(Native Method)
      at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
      at java.lang.Class.getDeclaredField(Class.java:1880)
      at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:134)
      at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160)
      at org.hibernate.mapping.Property.getGetter(Property.java:294)
      at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:300)
      at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:122)
      at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:78)
      ... 104 more
      Caused by: java.lang.ClassNotFoundException: bsh.TargetError from BaseClassLoader@805a58{VFSClassLoaderPolicy@ab7f0e{name=vfszip:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/deploy/jboss-seam-todo.ear/ domain=ClassLoaderDomain@dc03d8{name=seam.jboss.org:loader=seam-todo parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@14627a{DefaultDomain}} roots=[MemoryContextHandler@19046576[path= context=vfsmemory://3j011-di2wwu-g4zaz3qv-1-g4zb1t5u-9i real=vfsmemory://3j011-di2wwu-g4zaz3qv-1-g4zb1t5u-9i], DelegatingHandler@6531680[path=lib/jboss-el.jar context=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear real=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear/lib/jboss-el.jar], DelegatingHandler@21402415[path=lib/jbpm-jpdl.jar context=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear real=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear/lib/jbpm-jpdl.jar], DelegatingHandler@6888799[path= context=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear real=vfszip:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear], DelegatingHandler@17262587[path=jboss-seam-todo.jar context=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear real=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear/jboss-seam-todo.jar], DelegatingHandler@29837820[path=seam.deployer/lib-int/jboss-seam-int-jbossas.jar context=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/deployers/ real=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/deployers/seam.deployer/lib-int/jboss-seam-int-jbossas.jar], DelegatingHandler@15146525[path=jboss-seam.jar context=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear real=file:/home/mgencur/Java/jboss-ewp-5.0.0/jboss-ewp-5.0/jboss-as-web/server/default/tmp/3j011-di2wwu-g4zaz3qv-1-g4zb1t1u-9h/jboss-seam-todo.ear/jboss-seam.jar]] delegates=null exported=[, org.jbpm.logging.log, org.jboss.seam.theme, org.jboss.seam.security.crypto, org.jbpm.jpdl, org.jboss.seam.security.management, org.jboss.seam.contexts, org.jboss.seam.el, org.jboss.seam.exception, org.jbpm.security.permission, org.jbpm.graph.node, org.jbpm.db.compatibility, org.jbpm.msg.db, org.jbpm.graph.action, org.jbpm.context.exe.matcher, org.jboss.seam.annotations.datamodel, org.jboss.seam.security.jaas, org.jboss.seam.init, org.jbpm, org.jboss.el.parser, org.jboss.seam.annotations.bpm, org.jbpm.module.def, org.jboss.seam.framework, org.jbpm.context.log.variableinstance, org.jbpm.calendar, org.jbpm.logging.db, org.jbpm.db.hibernate, org.jbpm.configuration, org.jbpm.persistence.db, org.jboss.seam.log, org.jboss.seam.captcha, org.jboss.seam.core, org.jbpm.command, org.jbpm.taskmgmt, org.jbpm.jpdl.el.impl, org.jboss.seam.servlet, org.jbpm.context.exe.converter, org.jboss.seam.drools, org.jbpm.jcr.jackrabbit, org.jbpm.security.authorization, org.jboss.seam.annotations, META-INF.maven.org.jbpm.jbpm3.jbpm-jpdl, org.jbpm.scheduler, org.jboss.seam.persistence, org.jboss.seam.pageflow, org.jbpm.module.exe, org.jboss.seam.security.digest, org.jbpm.job, org.jboss.seam.text, org.jboss.seam.faces, org.jbpm.mail, org.jboss.seam.deployment, org.jbpm.db, org.jboss.seam.jmx, org.jboss.seam.jms, org.jbpm.graph.exe, org.jboss.seam.example.todo, org.jbpm.context.log, org.jbpm.web, org.jbpm.taskmgmt.def, org.jboss.seam.async, org.jboss.seam.annotations.security.management, org.jboss.seam.integration.jbossas.jms, org.jboss.el.util, org.jboss.seam.bpm, org.jboss.seam.security, org.jboss.seam.web, org.jboss.el, org.jboss.seam.security.management.action, org.jboss.seam.databinding, org.jboss.seam.annotations.security, org.jbpm.security, org.jboss.seam.transaction, org.jbpm.command.impl, org.jboss.seam.document, org.jboss.seam.mock, org.jboss.seam.mail, org.jbpm.context.exe, org.jboss.seam.navigation, org.jboss.seam.international, org.jbpm.jcr.jndi, org.jbpm.ant, org.jbpm.scheduler.def, org.jbpm.instantiation, org.jboss.seam.webservice, org.jbpm.jpdl.par, org.jbpm.svc.save, org.jbpm.jpdl.el, org.jbpm.file.def, org.jbpm.util, org.jbpm.security.authentication, org.jbpm.logging, org.jbpm.job.executor, org.jbpm.logging.exe, META-INF.maven.org.jboss.seam.integration.jboss-seam-int-jbossas, org.jboss.seam.cache, org.jbpm.scheduler.db, org.jboss.seam.jsf, org.jbpm.persistence.jta, org.jboss.seam.intercept, org.jboss.seam.integration.jbossas.vfs, org.jboss.seam.annotations.intercept, org.jbpm.context.exe.variableinstance, org.jbpm.signal, org.jbpm.jpdl.el.parser, org.jboss.seam.example.todo.test, org.jboss.seam.ejb, org.jbpm.bytes, org.jboss.seam.annotations.async, org.jbpm.graph.log, org.jbpm.jpdl.exe, org.jbpm.msg, org.jbpm.persistence, org.jbpm.jcr, org.jbpm.taskmgmt.impl, org.jboss.seam.annotations.web, org.jbpm.tx, org.jboss.seam, org.jboss.seam.annotations.faces, org.jboss.seam.security.openid, org.jbpm.context.def, org.jboss.seam.security.permission, org.jbpm.svc, org.jboss.seam.annotations.exception, org.jboss.seam.util, org.jbpm.jpdl.xml, org.jbpm.taskmgmt.exe, org.jbpm.jcr.impl, META-INF, org.jboss.seam.security.permission.action, org.jboss.seam.annotations.security.permission, org.jbpm.graph.def, org.jboss.el.lang, org.jbpm.taskmgmt.log, org.jbpm.jpdl.convert, org.jbpm.graph.node.advanced] <IMPORT-ALL>NON_EMPTY}}
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      ... 113 more

              mnovotny@redhat.com Marek Novotny
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: