[JBoss jBPM] - Cannog get BPM-BPEL on jBoss AS 5.0
by IlyaVolkov
I've tried to deploy jBPM-BPEL on jBoss AS 5.0.
Doing all, what I did in 4.2.3.GA, but unsuccessull.
Instruction is here: http://docs.jboss.com/jbpm/bpel/v1.1/userguide/getstarted.html#getstarted...
After ant deploy.ear I've got this error:
15:48:57,307 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 1m:15s:455ms
| 15:50:02,043 WARN [HDScanner] Scan failed
| org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jbpm-bpel.ear)
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:853)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:267)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.RuntimeException: Error determining structure: jbpm-bpel.ear
| at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
| at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
| at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
| at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
| at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
| ... 14 more
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee}application is not bound as a global element.
|
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
| at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
| ... 18 more
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}application is not bound as a global element.
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:667)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
| at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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:199)
| ... 21 more
Have anyone already solved this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196227#4196227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196227
17 years, 3 months
[JBoss jBPM] - Wierd Problem in Hibernate session
by bentins
I have to following code:
| protected TaskInstance locateTask(ContextInstance ctx, JbpmContext jbpmContext) throws ApplicationException {
| String searchValue = (String) ctx.getVariable(contextKey);
| if (searchValue == null || searchValue.trim().equals(""))
| return null;
| String query = String.format("select t.ID_ TASK_ID from JBPM_TASKINSTANCE t , JBPM_VARIABLEINSTANCE vi "
| + "where vi.STRINGVALUE_ = '%s' and vi.TOKEN_ = t.TOKEN_ and (t.ISOPEN_ = 1 or t.ISSUSPENDED_ = 1)"
| + " and t.END_ is null and t.NAME_ ", new Object[] {searchValue});
|
| String inString;
| if (!notInTaskType) {
| inString = String.format("in ( %s )", new Object[] {taskName});
| }
| else {
| // we're looking for tasks which are not of types given
| inString = String.format("not in ( %s )", new Object[] {taskName});
| }
|
| query += inString;
|
| SQLQuery sqlQuery = jbpmContext.getSession().createSQLQuery(query).addScalar("TASK_ID", Hibernate.LONG);
| List result = sqlQuery.list();
| // Collection<DbaseFieldList> result = JDBCHelper.getInstance().runSelectStatement(query,
| // (Connection) ctx.getTransientVariable(FlowVariables.CONNECTION));
| if (result == null || result.isEmpty()) {
| return null;
| }
| // always take the first one found! usually there should be only one task in existence
| // long taskId = Long.parseLong(result.iterator().next().get("ID_").getValueAsString());
| Long taskId = (Long) result.get(0);
| if (logger.isLoggable(Level.FINEST))
| logger.finest("Found a Task with ID: " + taskId);
| TaskInstance task;
| try {
| task = TaskManager.loadInstance(taskId, jbpmContext);
| if (logger.isLoggable(Level.FINEST))
| logger.finest(task.toString());
| }
| catch (ApplicationException ae) {
| // the task is either being opened by a user of is being finished by a user.
| Long userId = (Long) ctx.getTransientVariable(FlowVariables.USER_ID);
| if (userId != null) {
| String folderId = (String) ctx.getVariable(FlowVariables.FOLDER_ID);
| String text = ServerSideResources.translate("Msg38") + " " + folderId;
| Set<String> users = new HashSet<String>();
| users.add(userId.toString());
| MessageManager.getInstance().sendMessageToUsers(users, text);
| }
| return null;
| }
| return task;
| }
|
| public static EmiTaskInstance loadInstance(long taskId, JbpmContext ctx) throws ApplicationException {
| EmiTaskMgmntSession mgmtSession = (EmiTaskMgmntSession) ctx.getTaskMgmtSession();
| try {
| return (EmiTaskInstance) mgmtSession.loadTaskInstance(taskId);
| }
| catch (JbpmException e) {
| throw new ApplicationException("ALREADY_ASSIGNED", e.getMessage());
| }
| }
|
|
In one process I call a subprocess. Before the subprocess is called I run an action which closes a Task (Hence Task A). At the beginning of the subprocess I run an action which runs the locateTask from above to locate open tasks that have a certain value. The select I run using the open hibernate session returns finding Task A although Task A is closed i.e has an end date, and is not marked as open or suspended. More over, on the next couple of lines of code I load the task with the id the select returned and try to resume it, this fails on exception that says I can't resume a task that has been closed. How can the select find this task if it closed?
I'm running a Jbpm 3.2 in a clustered environment, which means I'm using an XA DataSource and XA transactions. A Transaction is opened before I begin and the commit is only after The subprocess has reached a blocking state.
The only thing I can think of is that for some reason the connection used for the query is not the connection used for loading and closing the task. I also want to mention that the same exact code does not fail in a non clusterd environment.
I'll be happy to read any thoughts on this matter that can point me to a direction....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196209#4196209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196209
17 years, 3 months
[JBoss jBPM] - jboss jbpm bpel not able to access jboss Axis container's we
by LakshmiPrasad
Hi all/ alex
i have deployed one web service in axis1.4 container which is in jboss. using jbpm's BPEL i want to access that web service. i started my jboss server like run -b <ip adress>. when i tried to access from bpel it is coming below error message..
<error message="Call invocation failed with code [Server] because of: The service is not in an appropiate state for the requested operation; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: The service is not in an appropiate state for the requested operation; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jbpm.bpel.tutorial.hello.HelloTest.testSayHello_dii(HelloTest.java:57)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| Caused by: javax.xml.rpc.soap.SOAPFaultException: The service is not in an appropiate state for the requested operation
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
please help to solve the issue..
thanx in advance...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196155#4196155
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196155
17 years, 3 months