[jBPM Users] - Re: Process definition xml
by gleenders
Ronald thanks a lot. You helped me out here.
The following does the trick:
| ExecutionService executionService = PE.getExecutionService();
| RepositoryService repositoryService = PE.getRepositoryService();
| //Find the process instance.
| ProcessInstance processInstance = executionService.findProcessInstanceById(processInstanceById);
| String processDefinitionId = processInstance.getProcessDefinitionId();
| //Find the processDefinition.
| ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(processDefinitionId).uniqueResult();
| //long deploymentId = Long.parseLong(processDefinition.getDeploymentId());
| //DeploymentImpl deployment = (DeploymentImpl)repositoryService.createDeploymentQuery().deploymentDbid(deploymentId).uniqueResult();
| InputStream in = repositoryService.getResourceAsStream(processDefinition.getDeploymentId(), "xmlstring.jpdl.xml");
| if (in != null){
| return in.toString();
| } else {
| return null;
| }
but this created a new problem, currently the second parameter (xmlstring.jpdl.xml) is hard-code. I can't find a way to query this resource name. Can you help me out?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252541#4252541
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252541
14 years, 7 months
[JBoss Portal Users] - JBoss 5.1.0.GA
by tony.herstell@gmail.com
Installed Server and only added mysql-connector-java-5.1.6-bin.jar to lib directories in each server.
AMD Athelon 64 X2 Dual 4200+ 2.42GHz 4GB of Ram.
XP64 Pro + SP2
Launching from inside MyEclipse
Using "all":
Simple Seam .EAR exploded deployment (hot-synch of an EAR).
deploy works (but takes a long while to run up): 1min 40sec
> 20:15:27,546 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27980747{vfsfile:/C:/jboss-5.1.0.GA/server/all/deploy/RisingStars.ear/}
Using "default":
Simple Seam .EAR exploded deployment (hot-synch of an EAR).
deploy works (takes ok time to run up): 11sec
Trouble is does not find the deployment! so going to same URL as "all" gives nothing...
Using "standard" with nothing deployed does not even run up!!!
| 20:25:22,625 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.1.0.GA/server/standard/conf/bootstrap.xml
| Failed to boot JBoss:
| java.lang.RuntimeException: Error unmarshalling file:/C:/jboss-5.1.0.GA/server/standard/conf/bootstrap.xml
| at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:60)
| at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/jboss-5.1.0.GA/server/standard/conf/bootstrap.xml
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:119)
| at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:53)
| ... 5 more
| Caused by: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\server\standard\conf\bootstrap.xml
| at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)
| at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:112)
| at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
| at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
| ... 7 more
| 20:25:22,765 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
| 20:25:22,828 INFO [ServerImpl] Shutdown complete
| Shutdown complete
| Halting VM
|
jdk = jdk1.6.0_15
VM Args: -Xms128m -Xmx512m -XX:MaxPermSize=256m
Launch in debug mode.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252540#4252540
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252540
14 years, 7 months
[JBoss Portal Users] - Seam Portal Caused by: java.lang.NoSuchMethodError: org.ajax
by santoshkotakonda
Hi,
I have been trying to run the Seam Portal Application with the examples given in the (JBoss_Portal_Tools_Reference_Guide) of the version jboss-portal-2.7.2.
The Combination that I have tried are the following:
1. jboss-portal-2.7.2
2. JBossPortletBridge-2.0.0.ALPHA
3. richfaces-ui-3.3.1.GA
4. jboss-seam-2.2.0.CR1
But, I am getting the following exception:
21:41:38,565 ERROR [DefaultPageControlPolicy] Rendering portlet window produced an error
Caused by: javax.servlet.ServletException
Caused by: java.lang.NoSuchMethodError: org.ajax4jsf.context.ViewResources.getHeadEvents()[Lorg/w3c/dom/Node;
I was stuck up with this issue and searched it in various forums (Jboss community)
but i could not find any thread suggesting the solution other than the combination of Seam, Richfaces, PortalBridge, Jboss Portal Server.
Can any one help me out regarding this issue.
Regards,
Santosh
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252537#4252537
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252537
14 years, 7 months
Creating custom JNDI and accessing it from a EJB
by vamsi
Hi All,
I created Custom JNDI in Web environment, How to create a Custom JNDI
in EJB Module.
In web environment we define Resource reference in under <Context> tag or in
web.xml.
How to configure in EJB Module?
Any references links or documents would be helpful.
Thanks & Regards,
M.S.S. Vamsi Krishna | Senior Software Engineer
Value Momentum Software Services Pvt. Ltd.
vamsi.mandava(a)valuemomentum.biz
<mailto:mandava_vamsikrishna@persistent.co.in> | Cell: +91-9959 861234
http://www.valuemomentum.com
14 years, 7 months