[JBoss Portal] - HelloWorldIPC example not working with JBoss-Portal 2.6.4
by elihusmails
I downloaded and tried out the HelloWorldIPC portlet example. I am using version 2.6.4 bundled with JBoss 4.4.2.GA on Windows XP.
Is there any documentation and/or a working example for getting this working?
Here is a snippet of the stack trace:
16:20:21,410 ERROR [PortalPermissionCollection] Permission check against the repository failed
org.hibernate.HibernateException: Unable to locate current JTA transaction
at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:252)
at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getPermission(AbstractPortalObjectContainer.java:166)
at org.jboss.portal.core.model.portal.PortalObjectPermission.implies(PortalObjectPermission.java:227)
at org.jboss.portal.security.PortalPermissionCollection.implies(PortalPermissionCollection.java:96)
at org.jboss.portal.security.impl.jacc.Permissions.implies(Permissions.java:93)
..................
16:20:21,535 ERROR [STDERR] java.lang.NullPointerException
16:20:21,535 ERROR [STDERR] at org.jboss.portlet.JBossRenderResponse.createRenderURL(JBossRenderResponse.java:71)
16:20:21,535 ERROR [STDERR] at org.jboss.portlet.hello.HelloWorldPortletA.doView(Unknown Source)
16:20:21,535 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:257)
16:20:21,535 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:244)
16:20:21,535 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:390)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146642#4146642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146642
18 years
[JBoss jBPM] - Can't create a process instance when processDefinition is nu
by Milochanzy
Hi,
I have a sub-process invoked by a main process. I am using Eclipse for running the application. What I have done is started the jBPM server and deployed the main and sub processes using the 'deployment' tab of the processdefinition.xml. I am creating the instance of the main process. It runs to the point where the next node is a process-state whose sub-process is defined. I am getting following error:
anonymous wrote :
|
| org.jbpm.JbpmException: can't create a process instance when processDefinition is null
| at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:128)
| at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:92)
| at org.jbpm.graph.exe.Token.createSubProcessInstance(Token.java:624)
| at org.jbpm.graph.node.ProcessState.execute(ProcessState.java:164)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
| at org.jbpm.graph.node.Decision.execute(Decision.java:152)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.graph.def.Node.leave(Node.java:358)
| at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:120)
|
Code for invokation: (Not exact code but sumarrizes all I have done)
|
|
| String temp = content of main processdefinition.xml;
| ProcessDefinition main = ProcessDefinition.parseXmlString(temp);
| ProcessInstance processInstance = new ProcessInstance(main);
| while(processInstance.hasEnded() == false) {
| processInstance.signal();
| }
|
This is urgent for me.
Thanks in anticipation,
Milan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146636#4146636
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146636
18 years
[JBoss jBPM] - Can't create a process instance when processDefinition is nu
by Milochanzy
Hi,
I have a sub-process invoked by a main process. I am using Eclipse for running the application. What I have done is started the jBPM server and deployed the main and sub processes using the 'deployment' tab of the processdefinition.xml. I am creating the instance of the main process. It runs to the point where the next node is a process-state whose sub-process is defined. I am getting following error:
anonymous wrote :
| org.jbpm.JbpmException: can't create a process instance when processDefinition is null
| at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:128)
| at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:92)
| at org.jbpm.graph.exe.Token.createSubProcessInstance(Token.java:624)
| at org.jbpm.graph.node.ProcessState.execute(ProcessState.java:164)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
| at org.jbpm.graph.node.Decision.execute(Decision.java:152)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.graph.def.Node.leave(Node.java:358)
| at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:120)
|
Following are the code parts:
main process: ( not the exact code, but sumarizes all I have done)
| String temp = content of main processdefinition.xml;
| ProcessDefinition main = ProcessDefinition.parseXmlString(temp);
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
| while(processInstance.hasEnded() == false) {
| processInstance.signal();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146632#4146632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146632
18 years
[Messaging, JMS & JBossMQ] - Deploying legacy (EJB2.x) MDB on JBoss 4.2 gives error
by whafrog
As there seems to be a basic incompatibility with version 4.2.0 connecting to a message queue hosted on legacy version 3.0.3 (issue posted on the JNDI board), I thought I'd just move the legacy app containing the message bean to version 4.2.0. In theory I should just be able to take the .jar file containing the message bean and deploy it. No special configuration required as the legacy app uses "queue/testQueue".
After fixing an ejb-jar.xml issue that 3.0.3 didn't have a problem with, I now get this error on 4.2.0:
13:57:43,375 WARN [verifier] EJB spec violation:
| Bean : AutoCreditMessageBean
| Section: 15.7.2
| Warning: A message driven bean must implement, directly or indirectly, the message listener class
But it does:
public class AutoCreditMessageBean implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener
| {
| ...
| }
And the deployment descriptor specifies it.
ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
|
| <ejb-jar>
| <enterprise-beans>
| <message-driven>
|
| <ejb-name>AutoCreditMessageBean</ejb-name>
| <ejb-class>org.myorg.AutoCreditMessageBean</ejb-class>
|
| <transaction-type>Container</transaction-type>
| <message-selector>messageType = 'request'</message-selector>
| <messaging-type>javax.jms.MessageListener</messaging-type>
|
| <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
|
| <message-driven-destination>
| <destination-type>javax.jms.Queue</destination-type>
| </message-driven-destination>
|
| </message-driven>
|
| </enterprise-beans>
|
| <assembly-descriptor>
| </assembly-descriptor>
|
| </ejb-jar>
jboss.xml:
<?xml version="1.0" encoding="UTF-8"?>
|
| <jboss>
|
| <secure>false</secure>
|
| <container-configurations />
|
| <resource-managers />
|
| <enterprise-beans>
|
| <message-driven>
| <ejb-name>AutoCreditMessageBean</ejb-name>
| <destination-jndi-name>queue/testQueue</destination-jndi-name>
| </message-driven>
|
| </enterprise-beans>
| </jboss>
Any thoughts? Or do I have to rewrite this to EJB3?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146620#4146620
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146620
18 years