[JBoss Web Services] - Problem using xsd:import in WSDL (JBoss 7.2.0 Alpha1)
by Timo Hirt
Timo Hirt [https://community.jboss.org/people/timo.hirt] created the discussion
"Problem using xsd:import in WSDL (JBoss 7.2.0 Alpha1)"
To view the discussion, visit: https://community.jboss.org/message/758066#758066
--------------------------------------------------------------
Currently I attempt to define some common types to be used in multiple WSLDs into a xsd file WorkPackageServiceTypes.xsd as follows:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.com/Common/WorkPackageServiceTypes"
xmlns:tns="http://www.example.com/Common/WorkPackageServiceTypes"
elementFormDefault="qualified">
<complexType name="WorkPackageType">
<sequence>
<element name="Id" type="long"
maxOccurs="1" minOccurs="1">
</element>
<element name="StartDate" type="dateTime"
maxOccurs="1" minOccurs="1">
</element>
<element name="EndDate" type="dateTime"
maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
</schema>
I import this XSD into the WSDL of a service.
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/WorkPackageService/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="WorkPackageService" targetNamespace="http://www.example.org/WorkPackageService/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pref="http://www.example.com/Common/WorkPackageServiceTypes"
targetNamespace="http://www.example.org/WorkPackageService/">
<xsd:import schemaLocation="WorkPackageServiceTypes.xsd"
namespace="http://www.example.com/Common/WorkPackageServiceTypes"></xsd:import>
..
</wsdl:types>
</wsdl:definitions>
Both WSDL and XSD are located into the same folder (META-INF/wsdl/). wsconsume as well as the maven codegen plugin from the CXF project created all classes and stubs as expected. The web service is implemented as stateless session bean. If I deploy it to JBoss AS the following exception occurs during deployment.
15:38:03,890 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."Demo Project-0.0.1.ear"."webservices-ejb-layer-0.0.1.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Demo Project-0.0.1.ear"."webservices-ejb-layer-0.0.1.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "webservices-ejb-layer-0.0.1.jar" of deployment "Demo Project-0.0.1.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_27]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_27]
Caused by: java.lang.RuntimeException: Cannot publish wsdl to: D:\dev\jboss-as-7.2.0.Alpha1-SNAPSHOT\standalone\data\wsdl\Demo Project-0.0.1.ear\webservices-ejb-layer-0.0.1.jar\WorkPackageService.wsdl
at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:107)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.publishContractToFilesystem(EndpointImpl.java:133)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:75)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:246)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:525)
at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:119)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:129)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:68)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
... 5 more
Caused by: java.io.IOException: JBAS015526: Child 'META-INF/wsdl/wsdl/Demo%20Project-0.0.1.ear/webservices-ejb-layer-0.0.1.jar/WorkPackageServiceTypes.xsd' not found for VirtualFile: "/D:/dev/jboss-as-7.2.0.Alpha1-SNAPSHOT/bin/content/Demo Project-0.0.1.ear/webservices-ejb-layer-0.0.1.jar"
at org.jboss.as.webservices.util.VirtualFileAdaptor.findChild(VirtualFileAdaptor.java:62)
at org.jboss.ws.common.deployment.ResourceResolverImpl.resolve(ResourceResolverImpl.java:79)
at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:223)
at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:249)
at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:249)
at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:94)
... 14 more
Is this a bug or am I doing anything wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/758066#758066]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[jBPM] - Re: jBPM Timer usage
by saig0
saig0 [https://community.jboss.org/people/saig0] created the discussion
"Re: jBPM Timer usage"
To view the discussion, visit: https://community.jboss.org/message/758483#758483
--------------------------------------------------------------
The following code is the configuration of the time event in jBPM. The expression "0s###1s" include the delay (0s) and the period (1s) of the timer.
<timerEventDefinition>
<timeCycle xsi:type="tFormalExpression">0s###1s</timeCycle>
</timerEventDefinition>
You can configure a boundary timer events if it should terminate the attached process or not then it fire. Just set the attribute "cancelActivity" on boundary event. So you can use it to build a remember function with a not terminating boundary timer event. Note that a boundary event can only attached to a process and not to a single activity.
<boundaryEvent id="_5" name="Timeout" attachedToRef="_2" cancelActivity="false" >
<timerEventDefinition>
<timeDuration xsi:type="tFormalExpression">5s</timeDuration>
</timerEventDefinition>
</boundaryEvent>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/758483#758483]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[Performance Tuning] - JSF Could not find saved view state for token Messages
by Navin Maheshwari
Navin Maheshwari [https://community.jboss.org/people/navinpmjboss] created the discussion
"JSF Could not find saved view state for token Messages"
To view the discussion, visit: https://community.jboss.org/message/758463#758463
--------------------------------------------------------------
Hello,
I am getting following console messages while doing p*erformance testing on my jboss 7.0.2.final* version of application server. I am usning MyFaces trinidad JSF for my UI. While runing RPT script for performance testing of 100-200 users, I am getting following messages in my jboss server console. This is running continuosly in console. Please sugggest some solution.
Am I missing something in my faces configuration? My JSF Trinidad related jars are,
jsf-facelets-1.1.15.jar
jsf-impl.jar
trinidad-api-1.2.12.jar
trinidad-impl-1.2.12.jar
11:10:55,672 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-540) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=statusId]
11:10:55,672 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-540) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=actionTaken]
11:10:55,750 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-543) Could not find saved view state for token -sqkvatzwq
11:10:55,781 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-543) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=statusId]
11:10:55,781 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-543) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=actionTaken]
11:10:55,797 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-554) Could not find saved view state for token -sqkvatzwq
11:10:55,813 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-554) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=statusId]
11:10:55,828 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-554) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=actionTaken]
11:10:57,809 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-606) Could not find saved view state for token -sqkvatzwq
11:10:57,809 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-586) Could not find saved view state for token -sqkvatzwq
11:10:57,856 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-586) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=statusId]
11:10:57,856 WARNING [org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer] (http--10.74.97.77-8080-586) Could not find selected item matching value "" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=actionTaken]
11:10:57,887 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-572) Could not find saved view state for token -sqkvatzwq
11:10:58,480 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-592) Could not find saved view state for token -sqkvatzwq
11:11:03,192 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-587) Could not find saved view state for token -sqkvatzwq
11:11:03,254 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-601) Could not find saved view state for token -sqkvatzwq
11:11:03,270 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-550) Could not find saved view state for token -sqkvatzwq
11:11:03,285 SEVERE [org.apache.myfaces.trinidadinternal.application.StateManagerImpl] (http--10.74.97.77-8080-609) Could not find saved view state for token -sqkvatzwq
Thanks
Navin
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/758463#758463]
Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[jBPM] - Human Task and variables
by tmmaluleke
tmmaluleke [https://community.jboss.org/people/tmmaluleke] created the discussion
"Human Task and variables"
To view the discussion, visit: https://community.jboss.org/message/756749#756749
--------------------------------------------------------------
Hello,
I was trying to do a business process with variables but wahen i run it i got this error. I have attached my project please take a look at it mybe i made a mistake.
(null: 668, 15): cvc-id.1: There is no ID/IDREF binding for IDREF 'discription'.
Could not find variable scope for variable discription
when trying to execute Work Item Human Task
Continuing without setting parameter.
0 29/08 14:58:25,250[Thread-2] ERROR service.hornetq.HornetQTaskClientConnector.run - org.jbpm.process.workitem.wsht.BlockingAddTaskResponseHandler cannot be cast to org.jbpm.task.service.TaskClientHandler$GetTaskResponseHandler
Exception in thread "Thread-2" java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5445
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:134)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: org.jbpm.process.workitem.wsht.BlockingAddTaskResponseHandler cannot be cast to org.jbpm.task.service.TaskClientHandler$GetTaskResponseHandler
at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:75)
at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:120)
... 1 more
DOEOfficial execute taskSchool Evaluation(5: )
java.lang.IllegalStateException: The Marshaller Context Needs to be Provided
at org.jbpm.task.utils.ContentMarshallerHelper.marshalSingle(ContentMarshallerHelper.java:98)
at org.jbpm.task.utils.ContentMarshallerHelper.marshal(ContentMarshallerHelper.java:59)
at department.DepartmentOfEductaionProcess.main(DepartmentOfEductaionProcess.java:79)
9953 29/08 14:58:35,203[Thread-3] ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem - Wed Aug 29 14:58:35 WAT 2012: Error when creating task on task server for work item id 2. Error reported by task server: Task operation request timed out
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/756749#756749]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months