[JBoss jBPM] - Re: Please help me, 'scheduler' unavailable ??
by EugeneV
"kukeltje" wrote : what jbpm version
| what server is it running in
| what is the config
This is 3.1.2. I am trying to run it as a JUnit test (stand-alone), which works fine until I add the timer. Without the timer, empty config with the default values works fine. With the timer, it does not. I have added the configuration below, but it did not help.
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
|
| <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
| <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
| <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
| <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
| <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
| <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
| <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
| <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
|
| <int name="jbpm.byte.block.size" value="1024" singleton="true" />
| <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
| <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
| <long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
|
| </jbpm-configuration>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984334#3984334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984334
19Â years, 6Â months
[JBoss Eclipse IDE (users)] - Problem with deployment
by kingcu
I am using JBoss IDE 1.6 (built on Eclipse) and developing a web app that utilize JFreeChart (through Cewolf tags in JSPs). It works fine when I ran it on my local machine through the IDE debug feature.
However, when I deploy it onto the production server (JBoss 4.0.1), the chart is not drawn and an exception is thrown (see below).
Anyone else having similiar problem? Thanks.
java.lang.NoClassDefFoundError
at org.jfree.chart.ChartFactory.createPieChart(ChartFactory.java:231)
at de.laures.cewolf.taglib.CewolfChartFactory.getChartInstance(CewolfChartFactory.java:137)
at de.laures.cewolf.taglib.SimpleChartDefinition.produceChart(SimpleChartDefinition.java:30)
at de.laures.cewolf.taglib.AbstractChartDefinition.getChart(AbstractChartDefinition.java:121)
at de.laures.cewolf.taglib.ChartImageDefinition.ensureRendered(ChartImageDefinition.java:137)
at de.laures.cewolf.taglib.ChartImageDefinition.getSize(ChartImageDefinition.java:146)
at de.laures.cewolf.CewolfRenderer.doGet(CewolfRenderer.java:153)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984333#3984333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984333
19Â years, 6Â months
[JBoss Seam] - Exception when using @EJB (or JNDI to inject a session bean)
by antispart
I'm in the process of porting (well, re-creating really) a web app with Seam. It's been working great except that I get an Exception when using @EJB to inject another session bean.
Until now, all my session beans had worked independantly of each other so I hadn't noticed this.
I have a session bean:
@Stateful
@Name("showMatrix")
@Scope(ScopeType.SESSION)
public class PlayerActionBean implements PlayerActionLocal {
@In(create=true)
private EntityManager entityManagerSeam;
@In(required=false)
PlayerPlay selectedPlayerPlay;
@Out(required=false)
List someList;
@EJB
private SomeBeanLocal someBean;
@Factory("someList")
public void create() {
// use someBean here
}
...
}
This worked fine until I tried injecting a session bean "someBean" with @EJB.
Any ideas what could be going wrong?
Stack trace:
javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalArgumentException: could not set field value: showMatrix.selectedPlayerPlay
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
[ ... ]
at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
at $Proxy173.replay(Unknown Source)
at com.example.web.PlayerActionBean.createMatrix(PlayerActionBean.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ ... ]
16:26:41,666 ERROR [STDERR] calProxy.java:98)
at $Proxy198.createMatrix(Unknown Source)
at com.example.web.PlayerActionLocal$$FastClassByCGLIB$$609ecd47.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
[ ... ]
Caused by: java.lang.IllegalArgumentException: could not set field value: showMatrix.selectedPlayerPlay
at org.jboss.seam.Component.setFieldValue(Component.java:1508)
at org.jboss.seam.Component.injectFields(Component.java:1299)
[ ... ]
16:26:42,151 ERROR [STDERR] tionContext.java:64)
at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:79)
at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ ... ]
Caused by: java.lang.IllegalArgumentException: Could not set field value by reflection: PlayerActionBean.selectedPlayerPlay on: com.example.SlotsPlayerBean with value: class com.example.model.PlayerPlay
at org.jboss.seam.util.Reflections.set(Reflections.java:75)
at org.jboss.seam.Component.setFieldValue(Component.java:1504)
.. 235 more
Caused by: java.lang.IllegalArgumentException
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:37)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:57)
at java.lang.reflect.Field.set(Field.java:656)
at org.jboss.seam.util.Reflections.set(Reflections.java:61)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984332#3984332
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984332
19Â years, 6Â months
[JBoss Seam] - Re: Application Startup Actions
by iradix
Ok Gavin, it looks to me like the problem stems from the SeamListener trying to instantiate the application scoped SFSB before Jboss is initialized. Adding depends="org.jboss.seam.core.Ejb" doesn't seem to help. Stack trace follows
| -Exception sending context initialized event to listener instance of class org.j
| boss.seam.servlet.SeamListener
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: sta
| teLoader
| at org.jboss.seam.Component.newInstance(Component.java:1662)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:153)
| at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:12
| 7)
| at org.jboss.seam.init.Initialization.init(Initialization.java:323)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.j
| ava:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
| t.java:3669)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
| 104)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
| .java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
| 9)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
| va:589)
| at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
| ava:536)
| at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471
| )
| at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
| at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
| :311)
| at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
| eSupport.java:119)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
| )
| at org.apache.catalina.core.StandardService.start(StandardService.java:4
| 50)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:683
| )
| at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
| Caused by: javax.naming.NamingException: Local server is not initialized
| at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnl
| yContextFactory.java:45)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
| 67)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
| )
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:197)
| at org.jboss.seam.util.Naming.getInitialContext(Naming.java:35)
| at org.jboss.seam.util.Naming.getInitialContext(Naming.java:47)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:992)
| at org.jboss.seam.Component.instantiate(Component.java:979)
| at org.jboss.seam.Component.newInstance(Component.java:1658)
| ... 28 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984326#3984326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984326
19Â years, 6Â months