[JBoss Web Services] - Generate a service that faithfully reflects original WSDL?
by Scale It
Scale It [http://community.jboss.org/people/meselfe] created the discussion
"Generate a service that faithfully reflects original WSDL?"
To view the discussion, visit: http://community.jboss.org/message/585976#585976
--------------------------------------------------------------
I have a WSDL that serves as a contract with a vendor. I need to generate service clients and a service impl for testing that faithfully reflects the service of the vendor.
When I generate a java SEI using wsconsume and create a java impl of the SEI and deploy to jboss then the WSDL generated by jboss does not reflect the original WSDL used as input for wsconsume. The targetnamespace and service name has been changed to match the java package name and class name of the impl class instead of matching the names in the original WSDL. This causes clients generated from the original WSDL to fail because they can't find the names they are looking for.
The service java impl that I created references the autogenerated java SEI both by subclassing the SEI and through annotation @javax.jws.WebService(endpointInterface="...autogenerate SEI")
Looking into jsr 181 (sec 4.1.1) I noticed that the @Webservice(targetNamepspace="..") annotation maps to different parts of the WSDL depending on whether the annotation is present on the java SEI or the java impl class. If the annotation is only present in the SEI then its mapped to wsdl:porttype. In the opriginal WSDL the targetnamespace was used for wsdl:service.
So how do I generate a test service that reflects the original WSDL?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585976#585976]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[JBoss Tools] - endorsed libs not recognized
by nimo stephan
nimo stephan [http://community.jboss.org/people/nimo22] created the discussion
"endorsed libs not recognized"
To view the discussion, visit: http://community.jboss.org/message/585395#585395
--------------------------------------------------------------
Didnt jboss tools set up the appropriate classpath for the endorsed libs of jboss 6, when using Jboss 6.1 Snapshot?
I clicked the "Open Launch Configuration" of jboss tools server gui, which shows that the right path is set in vm-args:
-Djava.endorsed.dirs="D:/jboss-6.1.0-SNAPSHOT/lib/endorsed"
I also included the lib/endorsed to my classpath as it seems that jboss tools have not done it after creating a new server-config:
<classpathentry kind="lib" path="D:/jboss-6.1.0-SNAPSHOT/lib/endorsed"/>
But after all, eclipse gui does not recognize it:
For example, when having this in my source code:
@Resource(lookup=",,")
private DataSource ds;
eclipse complains that it cannot find the "lookup"-property of @Resource (because it looks in the false lib..j6se instead of jee).
Normally, it should look within the endorsed libs of the jboss-path to find the appropriate activation.jar.
So my question, does jboss tools treats such things automatically or do I have to install the plugin, described here:
http://community.jboss.org/message/577979#577979 http://community.jboss.org/message/577979
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585395#585395]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[JBoss Web Services] - Re: JBoss 6 Web Service with JAXB generated Classes wsdl problem
by Alessio Soldano
Alessio Soldano [http://community.jboss.org/people/alessio.soldano%40jboss.com] created the discussion
"Re: JBoss 6 Web Service with JAXB generated Classes wsdl problem"
To view the discussion, visit: http://community.jboss.org/message/586132#586132
--------------------------------------------------------------
Can you check if the wsdl of the published endpoint on AS 6 differs from the one of the same service on AS 5 ?
JBoss AS 5 and 6 come with different default WS stack (6 having JBossWS-CXF), so you might see minor changes in the published wsdl when doing code-first development. While it would be interesting to understand if this is a bug in the way the imported schema is handled in the wsdl, or if it's a consequence of how the namespaces are defined in the jaxb annotated classes, please keep in mind that you can develop starting from a given wsdl you want your services to have (wsconsume tool on the wsdl, then implement the generated service endpoint interface).
Regarding the libs to be used, take a look at the wsrunclient scripts in AS 6 bin folder to have an idea of everything you might need. In your java.endorsed.dirs env variable you should include only the libs that are in lib/endorsed on the AS version you're using. That influences the JAXB/JAXWS api version used when running with JDK6.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586132#586132]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - Deployment error on redeploy
by Jaber C. Mourad
Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the discussion
"Deployment error on redeploy"
To view the discussion, visit: http://community.jboss.org/message/586123#586123
--------------------------------------------------------------
Hi,
I'm trying to redeploy some processes definitions (jbpm4.4). the documentation is not clear about that the code is hidden by calling
I'm deploying process definition like that :
NewDeployment deployment = repositoryService.createDeployment();
for (Resource resource : resources) {
logger.debug("deploying {}", resource.getFilename());
deployment.addResourceFromInputStream(resource.getFilename(), resource.getInputStream());
Resource imageResource = resourceHelper.getResource(resource.getURL().toString().replace(".jpdl.xml", ".png"));
logger.trace("image file {}", imageResource.getURL().getPath());
if (imageResource.exists()) {
deployment.addResourceFromInputStream(imageResource.getFilename(),
imageResource.getInputStream());
}
}
try {
String deploymentId = deployment.deploy();
logger.info("jbpm deployement done for deployementID {}", deploymentId);
} catch (JbpmException e) {
logger.warn("processes not deployed", e);
}
It works well for the first deployment...
But of next deployement, it failed with an hibernate NoUniqueResultException :
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:868)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:859)
at org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:93)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:67)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedUniqueResult(AbstractQuery.java:77)
at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.uniqueResult(ProcessDefinitionQueryImpl.java:161)
at org.jbpm.pvm.internal.repository.ProcessDeployer.checkId(ProcessDeployer.java:163)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:94)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:62)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:49)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:90)
...
How to redeploy some already deployed processes ?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586123#586123]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - When does Session.startProcess() return?
by Brian Wallis
Brian Wallis [http://community.jboss.org/people/bwallis42] created the discussion
"When does Session.startProcess() return?"
To view the discussion, visit: http://community.jboss.org/message/585359#585359
--------------------------------------------------------------
I'm launching a new workflow calling StatefulKnowledgeSession.startProcess() and am wondering about the threading model. When will this return
1) if the first node in the workflow is a rules node and will have to wait for a fact to be inserted into the session
2) if the first node in the workflow is WorkItem node of my own coding, ie: is my code executed by the same thread that called startProcess()
3) if the first node in the workflow is a HumanTask node.
The reason I ask is that I don't know if I need to create a new thread before calling startProcess() or not. And if I do need a thread, how would this be recreated when I want to resume all the workflow sessions after a shutdown? If you can point me at some documentation about the threading and transaction model for jBPM5 I would be very grateful.
thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585359#585359]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months