Piotr Tempes [
http://community.jboss.org/people/carek] created the discussion
"Re: jbpm, process definitions, jboss - looking for knowledge"
To view the discussion, visit:
http://community.jboss.org/message/597370#597370
--------------------------------------------------------------
thanks a lot for suggestion. Now I have changed database to mysql, but the problem still
remained... I found good article about changing java context to global jndi referance
here:
http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_d...
http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_d...
I followed instructions and only stacktrace changed:
[2011:04:92 09:04:506:info] ResourceChangeNotification created
[2011:04:92 09:04:515:info] ResourceChangeScanner reconfigured with interval=60
[2011:04:92 09:04:515:info] ResourceChangeScanner created with default interval=60
[2011:04:92 09:04:515:debug] ResourceChangeNotification monitor added
monitor=org.drools.io.impl.ResourceChangeScannerImpl@1cffeb4
[2011:04:92 09:04:521:debug] KnowledgeAgent building resource map
[2011:04:92 09:04:522:info] KnowledgeAgent created, with configuration:
monitorChangeSetEvents=true scanResources=true scanDirectories=true newInstance=true
[2011:04:92 09:04:531:info] KnowledgeAgent has started listening for ChangeSet
notifications
[2011:04:92 09:04:987:info] KnowledgeAgent applying ChangeSet
[2011:04:92 09:04:994:debug] KnowledgeAgent notifier subscribing to resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:995:debug] ResourceChangeNotification subscribing
listener=org.drools.agent.impl.KnowledgeAgentImpl@155d3a3 to resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:995:debug] ResourceChangeScanner subcribing
notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1b994de to resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:995:debug] KnowledgeAgent rebuilding KnowledgeBase using ChangeSet
[2011:04:92 09:04:119:exception]
java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize
KnowledgeDefinitionsPackage
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:732)
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:965)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:172)
at
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:78)
at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:187)
at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:70)
at org.jbpm.integration.console.CommandDelegate.main(CommandDelegate.java:293)
Caused by: java.io.FileNotFoundException:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa...
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210)
at org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146)
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:720)
... 9 more
[2011:04:92 09:04:122:debug] KnowledgeAgent obtaining pkg resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:123:exception]
java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize
KnowledgeDefinitionsPackage
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:993)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:172)
at
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:78)
at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:187)
at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:70)
at org.jbpm.integration.console.CommandDelegate.main(CommandDelegate.java:293)
Caused by: java.lang.NullPointerException
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:984)
... 8 more
[2011:04:92 09:04:125:info] KnowledgeAgent new KnowledgeBase now built and in use
[2011:04:92 09:04:126:debug] KnowledgeAgent finished rebuilding KnowledgeBase using
ChangeSet
[2011:04:92 09:04:126:debug] KnowledgeAgent unsubscribing from resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:126:debug] ResourceChangeNotification unsubscribing
listener=org.drools.agent.impl.KnowledgeAgentImpl@155d3a3 to resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:127:debug] ResourceChangeScanner unsubcribing
notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1b994de to resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:127:debug] ResourceChangeScanner resource=[UrlResource
path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
now has no subscribers
[2011:04:92 09:04:127:info] KnowledgeAgent has stopped listening for ChangeSet
notifications
jbpm.console.directory property not found
Loading process from file system: Evaluation.bpmn
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger
(org.jnp.interfaces.TimedSocketFactory).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.RuntimeException: Could not initialize
stateful knowledge session: [PersistenceUnit: org.drools.persistence.jpa] Unable to build
EntityManagerFactory
at
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:179)
at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:187)
at org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:70)
at org.jbpm.integration.console.CommandDelegate.main(CommandDelegate.java:293)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.drools.persistence.jpa] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:125)
... 3 more
Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:60)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:357)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
... 7 more
Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:57)
... 11 more
do I need to configure a transactionManager somehow?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/597370#597370]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]