[Beginner's Corner] - experimenting with JBoss 7 quickstart helloworld tutorial
by mperdikeas
mperdikeas [https://community.jboss.org/people/mperdikeas] created the discussion
"experimenting with JBoss 7 quickstart helloworld tutorial"
To view the discussion, visit: https://community.jboss.org/message/742795#742795
--------------------------------------------------------------
I am coming from a Tomcat / JSF background so I did a little experimentation with the quickstart helloworld tutorial.
Specifically I was curious as to the need for the beans.xml file which basically defines namespaces.
Since the first helloworld example does not include any xhtml I thought the file is not needed and so I removed it.
Not surprisingly I received an error when I tried to access the deployed application:
java.lang.NullPointerException
org.jboss.as.quickstarts.helloworld.HelloWorldServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
What I cannot fathom is how not defining XML namespaces which are not used results in a NullPointerException error.
If anybody can shed some light this will help me improve my mental model and perhaps be able to decipher similarly cryptic messages in the future.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742795#742795]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - Getting a "A RuleFlowProcess cannot have more than one start node!"
by Jett Gamboa
Jett Gamboa [https://community.jboss.org/people/jett] created the discussion
"Getting a "A RuleFlowProcess cannot have more than one start node!""
To view the discussion, visit: https://community.jboss.org/message/742762#742762
--------------------------------------------------------------
We currently have a process that I am attempting to load into a KnowledgeBuilder. The process has 3 embedded subprocesses, each one having a start node. The main process has one start node and another message start node. When loading into KnowledgeBuilder, I am getting the following exception:
java.lang.IllegalArgumentException: A RuleFlowProcess cannot have more than one start node!
at org.jbpm.ruleflow.core.RuleFlowProcess$WorkflowProcessNodeContainer.validateAddNode(RuleFlowProcess.java:81)
at org.jbpm.workflow.core.impl.NodeContainerImpl.addNode(NodeContainerImpl.java:42)
at org.jbpm.workflow.core.impl.WorkflowProcessImpl.addNode(WorkflowProcessImpl.java:63)
at org.jbpm.bpmn2.xml.AbstractNodeHandler.end(AbstractNodeHandler.java:110)
A little Googling led me to this issue in JIRA: https://issues.jboss.org/browse/JBPM-3586 https://issues.jboss.org/browse/JBPM-3586
I tried loading the multiple-incomes.bpmn attached in the JIRA issue and I am getting the same error. The resolution does say that it is implemented as of June 6, 2012 and should make it's way to JBPM 5.4 with a note: "support for multiple start events with restriction that only one can be with no event definition". I attempted to use the snapshot build (5.4.0-SNAPSHOT) by adding the following to my pom.xml
<repositories>
<repository>
<id>repository.jboss.org</id>
<name>JBoss Repository - Snapshots</name>
<url> http://snapshots.jboss.org/maven2 http://snapshots.jboss.org/maven2</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
I am however getting the same error when I load the file. Has anyone experienced a similar issue or at least can provide information on how to get a version that has the fix for this?
Thanks in advance the help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742762#742762]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months