[JBoss Web Services] - Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header
by Joseph Hwang
Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion
"Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header"
To view the discussion, visit: http://community.jboss.org/message/599033#599033
--------------------------------------------------------------
I made JBossWS code and deloyed it. Deployment was successful.
In JbossWS environment, I generated SampleClient.java.
package com.aaa.ws.clientsample;
import com.aaa.ws.*;
public class ClientSample {
public static void main(String[] args) {
System.out.println("***********************");
System.out.println("Create Web Service Client...");
WSHelloWorldService service1 = new WSHelloWorldService();
System.out.println("Create Web Service...");
WSHelloWorld port1 = service1.getWSHelloWorldPort();
System.out.println("Call Web Service Operation..."); *// No Exception occurs until this line*
System.out.println("Server said: " + port1.sayHello("aaa")); *// Exception Occurs *
System.out.println("***********************");
System.out.println("Call Over!");
}
}
Exception is
***********************
Create Web Service Client...
Create Web Service...
Call Web Service Operation...
*Exception in thread "main" javax.xml.ws.WebServiceException : No Content-type in the header!*
....
Did I miss any process? Pls give me some advice.!!
Best Regard!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599033#599033]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - TaskClient (Parameter mapping - Result mapping)
by Leandro René Giménez
Leandro René Giménez [http://community.jboss.org/people/lgimenez] created the discussion
"TaskClient (Parameter mapping - Result mapping)"
To view the discussion, visit: http://community.jboss.org/message/597672#597672
--------------------------------------------------------------
Hi! I'm new in jBPM5 and i have a problem with human tasks...
I need to know how to map between process variables and task parameters...
I get parameter mapping data with the next code:
+BlockingGetContentResponseHandler getContentResponseHandler = new BlockingGetContentResponseHandler();+
+taskClient.getContent(contentId, getContentResponseHandler);+
+ByteArrayInputStream bis = new ByteArrayInputStream(getContentResponseHandler.getContent().getContent());+
+Object data = null;+
+try {+
+ ObjectInputStream in = new ObjectInputStream(bis);+
+ data = in.readObject();+
+ System.out.println("====> User Task Data " + data);+
+ in.close();+
+ } catch (IOException e) {+
+ System.out.println("Error: " + e.getMessage());+
+ e.printStackTrace();+
+ return;+
+ } catch (ClassNotFoundException e) {+
+ System.out.println("Error: " + e.getMessage());+
+ e.printStackTrace();+
+ return;+
+ }+
In this code, data is always String type... Is it possible to transfer complex data types? How can I do it?
How to get parameter values from parameter mapping and set result mapping?
Regards
Leandro
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597672#597672]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - JBPM 4.4 timer will not fire
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"JBPM 4.4 timer will not fire"
To view the discussion, visit: http://community.jboss.org/message/593582#593582
--------------------------------------------------------------
I found and verified that the jbpm.cfg.xml file imports the resource="jbpm.jobexecutor.cfg.xml" resource. I am however still not seeing my timer kick off. I am using this inside a group comprised mostly of custom nodes. At what point do I write this up as a bug? I am running this inside Eclipse as a junit test. Am I missing something? In my junit test I verify that I am at the WaitForMessageActivity node and then have the thread sleep for 30 seconds. I am expecting the trigger to fire. Is this a flawed expectation? Any help would be appreciated.
<process key="TH" name="TH" version="1" xmlns="http://jbpm.org/4.4/jpdl">
<start name="start">
<transition name="to LaunchTHForm"
to="LaunchTHForm"/>
</start>
<java name="LaunchTHForm" class="mil.army.sc4.bpm.THthread.THSupport" method="launchTHForm">
<transition name="to SendTHGroup" to="SendTHGroup"/>
</java>
<group name="SendTHGroup">
<start>
<transition name="to WaitForTH" to="WaitForTH"/>
</start>
<custom name="WaitForTH" class="###.####.###.bpm.WaitForMessageActivity">
<transition name="to DidUserSendTH" to="DidUserSendTH"/>
</custom>
<decision name="DidUserSendTH">
<transition name="TH Sent" to="SendTHDone">
<condition expr="#{className=="THObject"}"/>
</transition>
<transition name="Keep waiting" to="WaitForTH"/>
</decision>
<end name="SendTHDone" />
<transition name="toLaunchEntityDataForm" to="LaunchEntityDataForm"/>
<!-- Nothing happens when I try this transition with embeded timer -->
<transition name="timeout1" to="NotifyUserOfTimeout">
<timer duedate="20 seconds" />
</transition>
<!-- This approach does not work either.
<timer name="timeout1" duedate="20 seconds" transition="NotifyUserOfTimeout"/>
-->
</group>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/593582#593582]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - jBPM 5 User Forms
by Juris De
Juris De [http://community.jboss.org/people/juris.de] created the discussion
"jBPM 5 User Forms"
To view the discussion, visit: http://community.jboss.org/message/598830#598830
--------------------------------------------------------------
Hello!
I am trying to understand the best possible method for working with User Forms in jBPM 5.
1. What is the best way to edit user forms (*.ftl files) in a graphical environment (something like Intalio does)?
I have managed to open them in Eclipse as html files. Are there better options?
2. Is there an automatic (user-oriented) way of linking together user form fields with corresponding User Task variables?
Currently it looks to me that all the variables' mappings with form fields (and variables in the ftl form) must be written manually in the code. Is it so or are there any better ways to automate it?
3. How to open, edit and deploy user forms (*.ftl files) in the jBMP engine (on the server) in a user-friendly manner?
So far I have discovered that in order to have your form running for the particular user task I need to do the following steps:
1) create a process;
2) create a user task, enter all necessary variables and parameters.
3) enter TaskName parameter (the name of the form that must be opened; e.g. UserTask1)
4) create HTML form with special syntax for dynamic contents and input fields so that they map to the task variables.
5) Name the HTML form file: <TaskName value>.ftl (e.g. UserTask1.ftl)
6) Add the form to
${install.home}/jboss-{version}.GA/server/default/jbpm-gwt-console-server.war -> /deploy/WEB-INF/lib/jbpm-gwt-form-5.1-SNAPSHOT.jar
7) Make a PNG file of the diagram, name it <processName>.png and add it to
${install.home}/jboss-{version}.GA/server/default/jbpm-gwt-console-server.war -> /WEB-INF/lib/jbpm-gwt-graph-5.1-SNAPSHOT.jar
3.1. Is the process correct (at least it works)?
3.2. Am I right that by default no user form is created in the jBPM project in Eclipse when I create a User Task?
3.3. Is there a solution, how to create a User Form automatically after a User Task is created?
3.4. Is there a solution for deploying a user form automatically on the server?
I think that the process is being installed automatically when I run the application in Eclipse but I have no idea regarding the forms.
Thank you in advance and sorry if some of the questions have been raised before; still I have not been able to find the right answers so far.
In case there are good resources describing these topics, I'll be happy to receive the links!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598830#598830]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JBoss Web Services] - Deployment exception when injecting WebServiceContext
by Nicolas Bielza
Nicolas Bielza [http://community.jboss.org/people/nicolas.bielza] created the discussion
"Deployment exception when injecting WebServiceContext"
To view the discussion, visit: http://community.jboss.org/message/596378#596378
--------------------------------------------------------------
Hello All,
Using: JBoss AS 6.0.0.Final and JBoss-WS Metro 3.3.1.GA
I'm trying to use the WebServiceContext to access the client SSL certificate that was used during SSL handshake.
My endpoint looks like this:
@WebService(serviceName = "purchaseorderprocessin3", portName = "SalesOrderProcessingOrderingOutPort", endpointInterface = "com.alligacom.bydesign.SalesOrderProcessingOrderingOut", targetNamespace = "http://sap.com/xi/AP/CRM/Global", wsdlLocation = "WEB-INF/wsdl/SalesOrderProcessingOrderingOutWrapper.wsdl")
public class SalesOrderProcessingOrderingOutImpl implements
SalesOrderProcessingOrderingOut {
@Resource WebServiceContext webServiceContext;
public void confirmSalesOrder(
PurchaseOrderConfirmationMessage purchaseOrderConfirmation) {
if(purchaseOrderConfirmation == null) {
throw new IllegalArgumentException("purchaseOrderConfirmation is required");
}
...
When trying to deploy the service I get the following exception:
16:32:37,386 WARN [org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect] Unable to resolve SPI for type: class com.sun.xml.ws.api.pipe.TubelineAssemblerFactory
16:32:37,391 WARN [org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect] Unable to resolve SPI for type: class com.sun.xml.ws.assembler.ServerPipelineHook
16:32:37,402 INFO [org.jboss.wsf.framework.management.DefaultEndpointRegistry] remove: jboss.ws:context=sap/bc/srt/scs/srmap,endpoint=SalesOrderProcessingOrderingOut
16:32:37,403 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfs:///E:/ChuckNorris/JBoss/jboss-6.0.0.Final/server/default/deploy/POAck.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Failed to create web module
at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:487) [:6.0.0.Final]
at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:122) [:6.0.0.Final]
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
Caused by: org.jboss.deployers.spi.DeploymentException: Error creating web module vfs:///E:/ChuckNorris/JBoss/jboss-6.0.0.Final/server/default/deploy/POAck.war
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:812) [:6.0.0.Final]
at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:483) [:6.0.0.Final]
... 41 more
Caused by: java.lang.NullPointerException
at org.jboss.web.deployers.AbstractWarDeployer.createInjectorBMD(AbstractWarDeployer.java:928) [:6.0.0.Final]
at org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:769) [:6.0.0.Final]
... 42 more
When I omit the WebServiceContext injection, the service works just fine.
Is there another way to access the WebServiceContext ?
Thanks,
Nicolas.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/596378#596378]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months