[JBoss jBPM] - Error deploying jpbm-console 3.2
by chip_schoch
I downloaded jbpm 3.2 and ran the new mssql scripts to create the new schema. When I tried to deploy the jbpm-console.war in my JBossAs.4.0.5.GA (ejb3) installed server I get the following exception:
| 2007-04-15 09:17:38,268 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 2007-04-15 09:17:38,268 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
| 2007-04-15 09:17:38,268 DEBUG [org.jbpm.svc.Services] closing service 'tx': org.jbpm.tx.TxService@12a4aec
| 2007-04-15 09:17:38,268 ERROR [org.jbpm.job.executor.JobExecutorThread] exception in job executor thread. waiting 10000 milliseconds
| org.jbpm.JbpmException: couldn't get acquirable jobs
| at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:44)
| at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:111)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
| Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.loader.Loader.doList(Loader.java:2147)
| at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
| at org.hibernate.loader.Loader.list(Loader.java:2023)
| at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
| at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
| at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:780)
| at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:40)
| ... 2 more
| Caused by: java.sql.SQLException: Line 1: Incorrect syntax near '@P0'.
| at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)
| at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)
| at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)
| at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:628)
| at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:418)
| at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:693)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236)
| at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
| at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
| at org.hibernate.loader.Loader.doQuery(Loader.java:662)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
| at org.hibernate.loader.Loader.doList(Loader.java:2144)
| ... 11 more
Any Ideas what this is caused by?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037367#4037367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037367
19 years
[JBoss Seam] - Factory.. not being called when I first use the bean?
by tony.herstell@gmail.com
Is this correct as initCategories is not being called!
I can call another routine in the bean and categoriesSet is empty.
(I have run this with breakpoints and it is really not being called)
|
| @CacheConfig(idleTimeoutSeconds=1800) // This keep the object "alive" longer than the session.
| @Stateful // A component stays in existance for the duration of the Scope (conversation in this instance).
| @Name("categoryController") // Name used within SEAM for an instance of this class.
| @Scope(ScopeType.SESSION) // Scope that this class exists in.
| public class CategoryControllerImpl implements Serializable, CategoryController {
|
| /**
| * Inject and leverage the Seam Logger.
| */
| @Logger
| private Log log;
|
| /**
| * Inject the EJB3 Persistance context in EXTENDED mode so will remain "current" over
| * multiple clinet/server round trips.
| */
| @PersistenceContext(type = EXTENDED)
| private EntityManager em;
|
| /**
| * The categories
| */
| private Set<Category> categoriesSet = new LinkedHashSet<Category>();
|
| @Factory("categoriesSet") // Is run whenever this bean is created.
| public void initCategories() {
| log.error("> initCategories");
| Query query = em.createQuery("from Category"); // TODO trim for date etc.
| List<Category> categoryList = query.getResultList();
| categoriesSet.addAll(categoryList);
| // Linked hash set preserves order (could use tree if we wanted to order them - add a coparator function).
| log.debug("< initCategories");
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037361#4037361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037361
19 years
[Installation, Configuration & Deployment] - JBoss 4.0.4 GA with EJB 3.0_RC-8-FD
by dobpilot
Subject. Anybody, can help me. When i can deployment my ejb application jboss log this:
at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)14:39:06,046 INFO [EJB3Deployer] Deployed: file:/D:/develop/java/my_first_ejb3/MyEjb/MyEjb.jarIncomplete Deployment listing:--- MBeans waiting for other MBeans ---ObjectName: jboss.j2ee:service=EJB3,module=MyEjb.jar State: FAILED Reason: java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---ObjectName: jboss.j2ee:service=EJB3,module=MyEjb.jar State: FAILED Reason: java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1367) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) 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:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 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:659) 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.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266) 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:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 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:659) at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179) 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:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)[2007-04-15 02:39:06,093] Module MyEjb: Error during module deployment. See server log for details.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037358#4037358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037358
19 years
[EJB 3.0] - EJB Timer service
by mrchit_2000
Hello,
I want to set a timer and a method to be invoked when timer expires periodically. When I have a session bean's method annotated with @Timeout, that method keeps being invoked repeatedly when Jboss starts up, even before the code create a Timer using TimerService. Is there a default timer created somewhere in Jboss and that timer is global, i.e any @Timeout method of any session bean would be called when the default timer expires? Also, it seems the period of invoking the method is about 10 seconds as I observed on my system.
Could someone help explain how timer should be set up and used in Session bean?
Thanks a lot,
LNgo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037355#4037355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037355
19 years