[JBoss jBPM] - Attribute 'continue' is not allowed to appear in element 'on
by liny
Hi,
I downloaded jBPM and use ant to demo.setup.
After that, I can use jBPM-console, but no any example task or process.
I notice there is a exception as below:
| [jbpm-deploy] org.jbpm.api.JbpmException:
| [jbpm-deploy] xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'on'.
| [line=10 column=43 ]: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear
| in element 'on'.
| [jbpm-deploy] error: no start activity in process [line=3 column=57 ]
| [jbpm-deploy] at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:168)
| [jbpm-deploy] at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:141)
| [jbpm-deploy] at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:50)
| [jbpm-deploy] at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:55)
| [jbpm-deploy] at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:46)
| [jbpm-deploy] at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:32)
| [jbpm-deploy] at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| [jbpm-deploy] at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
| [jbpm-deploy] at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
| [jbpm-deploy] at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| [jbpm-deploy] at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:89)
| [jbpm-deploy] at org.jbpm.pvm.internal.ant.JbpmDeployTask.deployFile(JbpmDeployTask.java:110)
| [jbpm-deploy] at org.jbpm.pvm.internal.ant.JbpmDeployTask.execute(JbpmDeployTask.java:60)
| [jbpm-deploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| [jbpm-deploy] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
| [jbpm-deploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [jbpm-deploy] at java.lang.reflect.Method.invoke(Method.java:597)
| [jbpm-deploy] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
| [jbpm-deploy] at org.apache.tools.ant.Task.perform(Task.java:348)
| [jbpm-deploy] at org.apache.tools.ant.Target.execute(Target.java:357)
| [jbpm-deploy] at org.apache.tools.ant.Target.performTasks(Target.java:385)
| [jbpm-deploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
| [jbpm-deploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
| [jbpm-deploy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| [jbpm-deploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
| [jbpm-deploy] at org.apache.tools.ant.Main.runBuild(Main.java:758)
| [jbpm-deploy] at org.apache.tools.ant.Main.startAnt(Main.java:217)
| [jbpm-deploy] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
| [jbpm-deploy] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
| [jbpm-deploy] Caused by: org.jbpm.api.JbpmException
| [jbpm-deploy] at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:164)
| [jbpm-deploy] ... 28 more
I am new to jBPM, any suggestion is welcome!
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244204#4244204
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244204
17 years
[Persistence, JBoss/CMP, Hibernate, Database] - Re: hbm.xml to javax.persistence annotations problems
by mpurdy1973
i figured it out. the problem it was my first time with JPA annotations, now it is clear.
i used JoinTable annotation, which is used in a many to many relationship, which cause hibernate to create a link table.
once i switch it back to JoinColumn, it worked the same:
code from User
| @OneToMany
| (
| mappedBy = "id",
| targetEntity = TrainingRequest.class,
| fetch = FetchType.EAGER,
| cascade = CascadeType.ALL
| )
| private Set<TrainingRequest> trainingRequests;
|
code from TrainingRequest
| @ManyToOne()
| @JoinColumn
| (
| name = "user_id",
| nullable = false,
| updatable = false
| )
| private User user;
|
db output from mysql
| mysql> show tables;
| +------------------+
| | Tables_in_test |
| +------------------+
| | trainingrequests |
| | users |
| +------------------+
| 2 rows in set (0.00 sec)
|
| mysql> desc users;
| +----------+--------------+------+-----+---------+----------------+
| | Field | Type | Null | Key | Default | Extra |
| +----------+--------------+------+-----+---------+----------------+
| | user_id | bigint(20) | NO | PRI | NULL | auto_increment |
| | password | varchar(255) | YES | | NULL | |
| | username | varchar(255) | YES | | NULL | |
| +----------+--------------+------+-----+---------+----------------+
| 3 rows in set (0.01 sec)
|
| mysql> desc trainingrequests;
| +--------------------+--------------+------+-----+---------+----------------+
| | Field | Type | Null | Key | Default | Extra |
| +--------------------+--------------+------+-----+---------+----------------+
| | trainingrequest_id | bigint(20) | NO | PRI | NULL | auto_increment |
| | cost | double | YES | | NULL | |
| | subject | varchar(255) | YES | | NULL | |
| | summary | varchar(255) | YES | | NULL | |
| | user_id | bigint(20) | NO | MUL | NULL | |
| +--------------------+--------------+------+-----+---------+----------------+
| 5 rows in set (0.00 sec)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244203#4244203
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244203
17 years
[EJB 3.0] - Re: Junit failed.
by samwan809
Followed your suggested change, it might work for the Junit test case, but it failed with the "ordinary" case:
| calling_card_reg # ant test
| Buildfile: build.xml
|
| compile-test:
| [javac] Compiling 11 source files
| [javac] /usr/liferay-portal-5.2.3/dev/portlets/calling_card_reg/docroot/WEB-INF/src/com/ip6networks/calling_card_registration/struts/action/CallingCardRegistrationAction.java:29: package com.liferay.portal.struts does not exist
| [javac] import com.liferay.portal.struts.PortletAction;
| [javac] ^
| [javac] /usr/liferay-portal-5.2.3/dev/portlets/calling_card_reg/docroot/WEB-INF/src/com/ip6networks/calling_card_registration/struts/action/CallingCardRegistrationAction.java:34: package javax.portlet does not exist
| [javac] import javax.portlet.ActionRequest;
|
However I don't expect running "ant test" will caused the code above to be compiled. How to "exclude" the compilation only goes to "com.ip6networks.calling_card_registration.test" rather than "com.ip6networks.calling_card_registration.Action" ?
Thanks very much for patient.
Sam
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244194#4244194
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244194
17 years