[JBoss Portal] - portal deployment problem
by selvarevathi
hi all,
im new to portal n wen i deploy the weatherportlet.ear sample program .im getting this following error.
my jboss As version is 4.0.4 & portal server version 2.4
any assistance is greatly appreciated..
16:32:31,993 INFO [EARDeployer] Init J2EE application: file:/D:/jboss4.0.4/serv
er/default/deploy/weatherportlet.ear
16:32:32,133 INFO [TomcatDeployer] deploy, ctxPath=/weatherportlet, warUrl=.../
tmp/deploy/tmp61136weatherportlet.ear-contents/weatherportlet-exp.war/
16:32:32,414 INFO [PortletAppDeployment] These instances have been found in -ob
ject.xml, you should put them in the file D:\jboss4.0.4\server\default\.\tmp\dep
loy\tmp61136weatherportlet.ear-contents\weatherportlet-exp.war\WEB-INF/portlet-i
nstances.xml
16:32:32,414 INFO [PortletAppDeployment] <?xml version="1.0" encoding="utf-8" s
tandalone="yes"?>
<instance-id>WeatherPortletInstance</instance-id>
<portlet-ref>WeatherPortlet</portlet-ref>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059575#4059575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059575
17Â years, 6Â months
[EJB 3.0] - can have 2 joins on same column?
by serj_
hello
is it possible to have 2 columns in a table (Usr) who keep references to different records from another table (Member). I want to move a member from a list to another, without removing and creating a new Member. For example this code:
| //Usr u
| Tournamentmember t = new Tournamentmember();
| t.setUsr(u);
| em.persist(t);
| ...
| //Tournamentmember t
| u.getMembers().remove(t);//delete from one list
| u.getArchivedMembers().add(t);//add to new list
|
make's me to have removed member (t) in members collection too, even if I removed before (it is in both list!!!). Thanks for help
This are my table:
| @Entity
| class Usr{
| private java.util.Collection<Member> members;
| private java.util.Collection<Member> archivedMembers;
|
| @OneToMany(mappedBy = "usr", fetch = FetchType.LAZY)
| public java.util.Collection<Member> getMembers() {
| return members;
| }
|
|
| public void setMembers(java.util.Collection<Member> members) {
| this.members= members;
| }
|
|
| @OneToMany(mappedBy = "usr", fetch = FetchType.LAZY)
| public java.util.Collection<Member> getArchivedMembers() {
| return archivedMembers;
| }
|
|
| public void setArchivedMembers(java.util.Collection<Member> archivedMembers) {
| this.archivedMembers= archivedMembers;
| }
|
| }
|
| @Entity
| class Member{
| @ManyToOne(fetch = FetchType.EAGER)
| @NotNull
| //@JoinColumn(table="Usr", referencedColumnName = "id")
| public com.joyplay.ejb.persistence.Usr getUsr() {
| return usr;
| }
|
| public void setUsr(com.joyplay.ejb.persistence.Usr usr) {
| this.usr = usr;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059574#4059574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059574
17Â years, 6Â months
[JBoss jBPM] - Cancel a process in a repeated action
by vbub
i'm starting the execution of an action 5 seconds after entering a task node. this action repeatedly checks a state in a third party application and eventually shall cancel the whole process instance.
i'm trying to do this by using this code:
CancelProcessInstanceCommand cpic = new CancelProcessInstanceCommand(task.getProcessInstance().getId());
| cpic.setCancelSubProcesses(true);
| CommandServiceImpl csi = new CommandServiceImpl(jbpmConfiguration);
| csi.execute(cpic);
i get the following error (running with postgreSQL on apache tomcat):
12:38:46,520 ERROR [168.0.18:1] JobExecutorThread : exception in job executor thread. waiting 2500 milliseconds
| org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed}
| at org.jbpm.svc.Services.close(Services.java:235)
| at org.jbpm.JbpmContext.close(JbpmContext.java:139)
| at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:181)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:62)
| Caused by: org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:216)
| at org.jbpm.svc.Services.close(Services.java:222)
| ... 3 more
| Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.job.Timer#683]
| at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
| at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
| at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
| at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:253)
| at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:211)
| ... 4 more
|
| i've read about the concept of executing the commands asynchronously but it seems the CommandServiceImpl executes the CancelProcessInstanceCommand immediately (when my action, called out of the JobExecutor/Timer is still active)... i'm not sure how to solve this and haven't found a thread or solution in this forum yet that seem to fit my problem.
|
| thank you very much,
| volker
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059573#4059573
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059573
17Â years, 6Â months