[JBoss Messaging] - Re: Exception by getting a reference to the ConnectionFactor
by vvd
were you able to resolve the error received below, I also getting similar error.
java.lang.RuntimeException: Failed to config client side AOP
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:251)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:108)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:103)
at com.sterlingcommerce.woodstock.services.jms.JmsQueueAdapterServerImpl.createConnection(JmsQueueAdapterServerImpl.java:66)
at com.sterlingcommerce.woodstock.services.jms.AbstractServerImpl.openSession(AbstractServerImpl.java:212)
at com.sterlingcommerce.woodstock.services.jms.AbstractServerImpl.startupAdapter(AbstractServerImpl.java:181)
at com.sterlingcommerce.woodstock.services.jms.JmsQueueAdapterServerImpl.startupAdapter(JmsQueueAdapterServerImpl.java:55)
at com.sterlingcommerce.woodstock.services.IAdapterImpl.startAdapter(IAdapterImpl.java:168)
at com.sterlingcommerce.woodstock.services.controller.StartAdapterThread.run(StartAdapterThread.java:69)
at java.lang.Thread.run(Thread.java:567)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995928#3995928
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995928
19 years, 4 months
[JBoss Seam] - pageflow step description problem
by spambob
The EL in the pageflow description list isn't working!
I use the latest CVS version and my page is configured like this:
<page name="edit" view-id="/editUsecase.xhtml" redirect="true" no-conversation-view-id="/home.xhtml">
| <description>Edit Usecase: #{usecase.name}</description>
| <transition name="cancel" to="home">
| <action expression="#{usecasesBean.cancel}"/>
| </transition>
| <transition name="save" to="home">
| <action expression="#{usecasesBean.save}"/>
| </transition>
| </page>
The conversation switcher is used like this:
<h:form id="conversationForm">
| <h:selectOneMenu value="#{switcher.conversationIdOrOutcome}">
| <f:selectItems value="#{switcher.selectItems}" />
| </h:selectOneMenu>
| <h:commandButton action="#{switcher.select}" value="Switch" />
| </h:form>
The output (in the conversation switcher) list is:
anonymous wrote : Edit Usecase: #{usecase.name}
Because this worked before: is this a bug or was something changed? If the later: how should one put the page description in jpdl.xml files now?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995925#3995925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995925
19 years, 4 months
[JBoss Seam] - best practice question: SMPC, @OneToOne and <h:selectOneMenu
by hstang
I am encountering PersistenceException in designing a web form that results from using Seam-managed persistence context(SMPC) + @OneToOne and <h:selectOneMenu>. I am trying to use the entity as a pure JSF backing bean. The problem is modifying the department's ID, which is still managed by SMPC.
Does anyone know a clever design/solution to use @OneToOne + <h:selectOneMenu> ? The examples in Seam1.1GA do not appear to have this use case covered. The relevant codes are posted below. Thanks.
| Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1166713106023/32, BranchQual=null:1166713106023, localId=0:32], status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.HibernateException: identifier of an instance of Department was altered from 1 to 2)
|
Employee.java
--
| @Name("employee")
| @Entity
| public class Employee {
|
| @Id
| @GeneratedValue
| private Long id;
|
| @OneToOne
| @JoinColumn(name = "departmentId")
| private Department department;
|
| // getters and setters
| }
Department.java
--
@Name("department")
| @Entity
| public class Department {
|
| @Id
| @GeneratedValue
| private Long id;
|
| private String name;
|
| // getters and setters
| }
UserView.java
--
@Name("userView")
| public class UserView {
| @In
| private EntityManager em;
|
| @Factory("departmentList")
| public List<SelectItem> initDepartmentList() {
| // use em; to return an instance of List<SelectItem>
| }
| }
|
user.xhtml
--
anonymous wrote :
| <h:selectOneMenu id="user.department" value="#{employee.department.id}">
| <f:convertNumber/>
| <f:selectItems value="#{departmentList}"/>
| </h:selectOneMenu>
| <h:commandButton value="Update" action="update"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995922#3995922
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995922
19 years, 4 months