4 Replies Latest reply: Dec 20, 2010 5:28 PM by Ales Justin RSS

Seam numberguess cannot find resources

Ales Justin Master

When deploying Seam Numberguess I get this:

2008-06-09 12:48:54,869 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-numberguess]] (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:1986)
 at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
 at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
 at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
 at org.jboss.seam.init.Initialization.init(Initialization.java:596)
 at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3862)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
 at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
 at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
 at org.jboss.web.deployers.WebModule.start(WebModule.java:90)
 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:585)
 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 $Proxy35.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:271)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
 at org.jboss.system.ServiceController.doChange(ServiceController.java:664)
 at org.jboss.system.ServiceController.start(ServiceController.java:436)
 at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:150)
 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:108)
 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:174)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1023)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: pageflow resource not found: cheat.jpdl.xml
 at org.jboss.seam.bpm.Jbpm.getPageflowDefinitionFromResource(Jbpm.java:153)
 at org.jboss.seam.bpm.Jbpm.installPageflowDefinitions(Jbpm.java:235)
 at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:73)
 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:585)
 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
 at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
 at org.jboss.seam.Component.callComponentMethod(Component.java:2092)
 at org.jboss.seam.Component.callCreateMethod(Component.java:2015)
 at org.jboss.seam.Component.newInstance(Component.java:1976)
 ... 68 more


This file is in root:
- jboss-seam-numberguess.ear
 - cheat.jpdl.xml
 - ...


Did we 'fix' resources lookup:
- I remember Anil having an issue with resources directly from archive's root

But I don't see this issue on other Seam examples - perhaps they load resources on demand?