[JBoss Seam] - Hibernate SQL statements are not getting logged
by grettke_spdr
Hi folks,
I'm running Seam 1.2.1 on JBoss 4.0.5GA.
Also using JPA EntityManager, not going straight against a Session.
In each of my persistence.xmls, I've added
| <!-- Echo all executed SQL to stdout -->
| <property name="show_sql" value="true" />
| <!-- pretty print of all SQL-Statements -->
| <property name="hibernate.format_sql" value="true" />
|
to the properties of my datasource.
When the app is deployed, I can see the sql statements that create the database (as hibernate.hbm2ddl.auto is set to create-drop). I can also see the statements for entities get pregenerated. This is all in the default server log.
When I run the app, persist my entities, and let the method complete on the EJB, I don't see the actual SQL that is getting executed to persist my entities.
What am I doing wrong here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047022#4047022
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047022
18 years, 11 months
[JBoss jBPM] - ClassCast exception when executing simple process
by sergey.rybets
Hello.
I have following problem -
23:37:37,248 ERROR [[Test]] Servlet.service() for servlet Test threw exception
java.lang.ClassCastException: org.jbpm.msg.jms.JmsMessageServiceFactoryImpl
at org.jbpm.svc.Services.getServiceFactory(Services.java:122)
at org.jbpm.svc.Services.getService(Services.java:139)
at org.jbpm.svc.Services.getCurrentService(Services.java:88)
at org.jbpm.svc.Services.getCurrentService(Services.java:81)
at org.jbpm.graph.def.Node.enter(Node.java:314)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$6bc12d7d.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:393)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
I've written simple servlet that executes process definition to check if I've done everything ok with configuring JMS.
process definition:
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="testasync">
| <start-state name="start">
| <transition name="s" to="s"></transition>
| </start-state>
| <node name="s" async="true">
| <transition name="" to="node1"></transition>
| </node>
| <node name="node1">
| <transition name="" to="end1"></transition>
| </node>
| <end-state name="end1"></end-state>
| </process-definition>
configuration of jbpm context:
<jbpm-context>
| <service name="persistence">
| <factory>
| <bean
| class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isCurrentSessionEnabled">
| <false />
| </field>
| <field name="isTransactionEnabled">
| <false />
| </field>
| </bean>
| </factory>
| </service>
| <service name="message">
| <factory>
| <bean
| class="org.jbpm.msg.jms.JmsMessageServiceFactoryImpl">
| <field name="connectionFactoryJndiName">
| <string value="java:/JmsXA" />
| </field>
| <field name="destinationJndiName">
| <string value="queue/JbpmJobQueue" />
| </field>
| </bean>
| </factory>
| </service>
|
| <service name="scheduler"
| factory="org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory"/>
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| <service name="logging"
| factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication"
| factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
I watched in debug mode all of these services are not null but I can't get what's wrong. Help, it seems that I've don everything like was described in user guide. What can be wrong?
Thank you
P.S. if I remove attribute async from node ClassCastException appears on casting org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory to org.jbpm.svc.ServiceFactory.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047019#4047019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047019
18 years, 11 months