[JBoss jBPM] - How can i run jbpm31 on mysql5.x ? Unknown entity: org.jbpm.
by dengzi725
I run jbpm31 on mysql4.x very well . and i try to get it to run on mysql5.x , find some following errors . someone can help to find the issues? Thanks very much .
2006-12-08 16:22:39,576 DEBUG net.sf.ehcache.Cache - org.jbpm.graph.def.Node.events: Is element with key org.jbpm.graph.def.Node.events#10 expired?: false
2006-12-08 16:22:39,576 DEBUG org.jbpm.msg.db.DbMessageService - sending msg 'org.jbpm.command.ExecuteNodeCommand@15c024c' to destination 'CMD_EXECUTOR'
org.hibernate.MappingException: Unknown entity: org.jbpm.command.ExecuteNodeCommand
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:512)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1272)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:460)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:520)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:513)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:509)
at org.jbpm.db.MessagingSession.save(MessagingSession.java:48)
at org.jbpm.msg.db.DbMessageService.send(DbMessageService.java:58)
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.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$14af7d34_2.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:119)
at org.jbpm.graph.def.Node.leave(Node.java:383)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$14af7d34_2.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:174)
at org.jbpm.graph.exe.Token.signal(Token.java:123)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
at org.jbpm31.example.action.WorkflowManager.forwardTaskInstaceNext(WorkflowManager.java:226)
at org.jbpm31.example.action.WorkflowAction.startProcess(WorkflowAction.java:700)
at org.apache.jsp.workflow.start_jsp._jspService(start_jsp.java:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:595)
2006-12-08 16:22:39,732 DEBUG org.jbpm.JbpmContext - closing JbpmContext
2006-12-08 16:22:39,732 DEBUG org.jbpm.svc.Services - closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@19b08cc
2006-12-08 16:22:39,732 DEBUG org.jbpm.persistence.db.DbPersistenceService - committing hibernate transaction
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992179#3992179
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992179
19 years, 4 months
[JBoss Seam] - Understanding Seam
by lightbulb432
I just deployed my first simple Seam application, and have some questions about the generated HTML I see. I am wondering how each of the generated hidden fields and javascript in the output below contribute to Seam's functionality.
How do each of these form fields help Seam do what it does? Seam is a wonderful tool, but I'd like to understand "how" it does what it does (on a high enough level that it might be explained in a couple of detailed replies to this post)...because right now it seems a bit "too" transparent and magical.
<input type="hidden" name="registerForm_SUBMIT" value="1" />
| <input type="hidden" name="registerForm:_link_hidden_" />
| <script type="text/javascript"><!--
| function clear_registerForm() {
| var f = document.forms['registerForm'];
| f.elements['registerForm:_link_hidden_'].value='';
| f.target='';
| }
| clear_registerForm();
| //--></script>
| <input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="rO0ABXNyA=" />
| <input type="hidden" name="jsf_state_64" id="jsf_state_64" value="wcHBwcHh4" />
| <input type="hidden" name="jsf_viewid" id="jsf_viewid" value="/register.xhtml" />
As an example of things I'm wondering: how do these fields store state, are these fields only used with client-side state-saving, how do these fields implement the whole notion of conversations and business processes, what is stored on the client (i.e. in these fields) versus the server, etc.
I've read the manuals and tutorials, but there are still a lot of questions I have. Hopefully people who know can explain or people like me who do not can work through it to figure this all out!
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992174#3992174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992174
19 years, 4 months
[JBoss Seam] - PostgreSQL collection problem
by sherkan777
Hi all,
Sorry for off topic, but those forum is most often searched:P
My problem is with PostgreSQL db, previous I've used MySQL and everythink worked fine, but when I migrated to Postgre somethink wrong is going on with my collection.
Let's see.
Mother has childrens relation 1->n
List myChildrens = new LinkedList();
when i load mother object from db i have childrens positioned like I inserted them to db. (that is in mysql).
example:
Tom, Mike, Ann.
After migration to postgresql, every time childrens are loaded different like in set collection.
Example:
1. Tom, Mike, Ann
2. Mike, Ann, Tom etc.
Anyone have an idea what should i check or what mechanism is responsible for loading objects from db?
By the way mother object is loaded by Find method NOT query. (order by)
Or maybe i made somethink wrong in my ds xml file with connection properties.
Here's and some source code.
MySQL DS:
| <datasources>
| <local-tx-datasource>
| <jndi-name>MyDS</jndi-name>
|
| <connection-url>jdbc:mysql://localhost:3306/myDB?useUnicode=true&characterEncoding=latin2</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>root</user-name>
| <password>root</password>
| <exception-sorter-class-name>
| org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
| </exception-sorter-class-name>
|
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
and PostgreSQL ds:
| <datasources>
| <local-tx-datasource>
| <jndi-name>MyDS</jndi-name>
|
| <connection-url>jdbc:postgresql://localhost:5432/myDB</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>postgres</user-name>
| <password>root</password>
|
| <metadata>
| <type-mapping>PostgreSQL 8.2</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992172#3992172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992172
19 years, 4 months
[JBoss Seam] - Icefaces project setup
by venkee17
Hi,
Iam trying to create an icefaces project.
I included jars,configured web.xml,faces-config.xml.
My problem is some thing different.
If iam using
<ice:commandButton id="sampleButton" value="Click" partialSubmit="true"> </ice:commandButton>
it is rendering fine but if iam calling a bean method
<ice:commandButton id="sampleButton" value="#{MainPage.currentDivision}" partialSubmit="true"> </ice:commandButton>
iam unable to retrieve the value in value attribute.
my web.xml................................
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"
metadata-complete="true">
<display-name>Ice Faces Impl</display-name>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.iface</param-value>
</context-param>
<context-param>
<param-name>javax.faces.application.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.synchronousUpdate</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<listener-class>
com.icesoft.faces.util.event.servlet.ContextEventRepeater
</listener-class>
<!-- servlet>
<servlet-name>HibernateTestServlet</servlet-name>
<display-name>HibernateTestServlet</display-name>
<servlet-class>
com.mega.planning2.test.HibernateTestServlet
</servlet-class>
</servlet-->
<!-- Faces Servlet -->
<!--
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
-->
<!-- Faces Servlet Mapping -->
<!-- <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.ifaces</url-pattern>
</servlet-mapping> -->
<servlet-name>Persistent Faces Servlet</servlet-name>
<servlet-class>
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>
com.icesoft.faces.webapp.xmlhttp.BlockingServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- JavaServer Faces Servlet Mapping -->
<!-- servlet-mapping>
<servlet-name>HibernateTestServlet</servlet-name>
<url-pattern>/HibernateTestServlet</url-pattern>
</servlet-mapping-->
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
faces-config.xml.......................
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>DataStore</managed-bean-name>
<managed-bean-class>demo.DataStore</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>items</property-name>
<property-class>java.util.List</property-class>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>MainPage</managed-bean-name>
<managed-bean-class>demo.MainPage</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/page.jspx</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/page.jspx</to-view-id>
</navigation-case>
</navigation-rule>
<locale-config/>
<message-bundle>errorMessages</message-bundle>
</faces-config>
can anybody help me to resolve this problem.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992166#3992166
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992166
19 years, 4 months