[JBoss Web Services] - JBoss WS Dependencies with Maven ending up with truncated MANIFEST.MF
by Adam Williams
Adam Williams [https://community.jboss.org/people/ahw-dev] created the discussion
"JBoss WS Dependencies with Maven ending up with truncated MANIFEST.MF"
To view the discussion, visit: https://community.jboss.org/message/725136#725136
--------------------------------------------------------------
I am trying to consume a Web Service from an EJB and therefore am trying to use the JBoss CXF implementation Client classes.
Per this very nice article -
https://community.jboss.org/docs/DOC-16722 https://community.jboss.org/wiki/JBossWS-AS7FAQ
I have customized a MANIFEST.MF file to include the following dependencies:
org.jboss.ws.cxf.jbossws-cxf-client services export, org.apache.ws.security services export, org.apache.ws.xmlschema services export with the final DESIRED output of my MANIFEST.MF file being:
Manifest-Version: 1.0
Built-By: ahw001
Build-Jdk: 1.6.0_29
Created-By: Maven Integration for Eclipse
Dependencies: org.jboss.ws.cxf.jbossws-cxf-client services export, org.apache.ws.security services export, org.apache.ws.xmlschema services export
However Maven seems to have a column (field?) limitation on a key/value field of 70 characters so when I actually do the Maven deploy the output actually ends up like this:
Manifest-Version: 1.0
Built-By: ahw001
Build-Jdk: 1.6.0_29
Created-By: Maven Integration for Eclipse
Dependencies: org.jboss.ws.cxf.jbossws-cxf-client services export, or
g.apache.ws.security services export, org.apache.ws.xmlschema service
s export
Which obviously is not correctly parsable and does not end up with a working distribution. When I manually go in and edit the MANIFEST.MF file after the deployment to concatonate the entry everything works fine.
My question is, does anyone know a way around this issue with Maven? Or can I (should I) add the other dependencies to the org.jboss.ws.cxf.jbossws-cxf-client module.xml file? Will that break any JBoss WS upgrades?
Thanks in advance,
Adam
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725136#725136]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss AOP] - AOP for JBoss web service
by Franklin Webber
Franklin Webber [https://community.jboss.org/people/eutaxy] created the discussion
"AOP for JBoss web service"
To view the discussion, visit: https://community.jboss.org/message/725146#725146
--------------------------------------------------------------
I'm trying to use JBoss AOP to instrument an existing web service that runs in JBoss AS 5.1.
Unfortunately, I'm unable to get AOP to work within JBoss, despite having read a
substantial amount of documentation and done a substantial amount of fiddling around
with the "injboss" example from the AOP distribution. (In contrast, I have been able
to get AOP to work with standalone Java programs, outside JBoss.)
Can anyone tell me why the following steps fail to demonstrate compile-time AOP instrumentation?
(I've also tried one of the "injboss" examples for run-time weaving, which also
does not work, but I'm guessing the compile-time example will be simpler
by not involving the Aspect Manager or a Java Agent.)
-- unzip jboss-5.1.0.GA-jdk6.zip
-- unzip jboss-aop-2.1.8.GA.zip
-- upgrade JBoss using the instructions in jboss-50-install/ReadMe-AS5.txt
-- modify docs/aspect-framework/examples/injboss/build-jboss5.xml ,
setting jboss.dir , jboss.server.config , and jboss.classpath
-- run ant on build-jboss5.xml for the deploy-basic-ct-war target
-- run jboss
-- look at aopexample/index.jsp in a browser.
The result is ClassNotFoundException: org.jboss.injossaop.lib.SimpleInterceptor .
I note that this is similar to a problem described by poster Karen Greene
several years ago in https://community.jboss.org/message/446338#446338#446338 https://community.jboss.org/message/446338#446338 .
She says she resolved the problem but does not say how.
I tried resolving the problem by adding aopexamplelib.jar to the JBoss AS class-path.
The result is NoClassDefFoundError: org/jboss/aop/advice/Interceptor .
I then tried adding both aopexamplelib.jar and jboss-aop-single.jar from the AOP
distribution to the JBoss AS class-path. The result is
NoSuchMethodError: org.jboss.logging.util.LoggerPluginWriter.<init> .
I do not know how to resolve this, as I see the named class in jboss-aop-single.jar .
Got an explanation? Useful advice? Helpful insight?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725146#725146]
Start a new discussion in JBoss AOP at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - Remote lookup within JBPM Action Handler does not join existing transaction
by Alan Nisbet
Alan Nisbet [https://community.jboss.org/people/nizzy] created the discussion
"Remote lookup within JBPM Action Handler does not join existing transaction"
To view the discussion, visit: https://community.jboss.org/message/724374#724374
--------------------------------------------------------------
Hi All,
I'm seeing some unexpected behaviour in my application;
ENV
--
JBoss 4.2.3
JBPM 3.2.3
Java6
Windows7
The issue is manifesting itself in a StaleObjectException, when doing an RMI lookup of a remote session bean from within a JBPM Action Handler, the transaction created in call to the session bean does not join the existing transaction. I understand fully the cause of the exception, however I'm currently unaware of how to fix it.
I have configured JBPM to use JTATransactionFactory
<!-- JTA transaction properties (begin) -->
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="jta.UserTransaction">UserTransaction</property>
<!-- JTA transaction properties (end) -->
Any insight would be most welcome
Regards Alan.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724374#724374]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss Web Services] - Re: Consume a web service from another web service
by florentine
florentine [https://community.jboss.org/people/florentine] created the discussion
"Re: Consume a web service from another web service"
To view the discussion, visit: https://community.jboss.org/message/724833#724833
--------------------------------------------------------------
Thank you for you answer. I took a look at JNDI and it looks a lower level solution where you have to code more. I saw several examples on the internet on how to create a client for a web service and I can make them work also on my small piece of code above. The problem is that I can't make a web service calling another web service. It sounds to me a very basic functionality, but I was really able to find a complete example on how to do that. I tried to copy and paste the code of my client inside the HelloWorld.getHiWorld() method, but I keep getting a proxy error. How people normally make more webservices communicating between each other? any example from where I could get an idea?
This is my updated code with the client :
HelloWorldImpl.java
package hw1;
import hw2.HelloWorld2;
import java.net.MalformedURLException;
import java.net.URL;
import javax.jws.WebService;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
@WebService(serviceName="HelloWorldService", name="HelloWorld")
public class HelloWorldImpl implements HelloWorld {
@Override public String getHiWorld() {
URL url=null;
try {
url = new URL(" http://localhost:8080/HelloWorld2WS/HelloWorld2Service?wsdl http://localhost:8080/HelloWorld2WS/HelloWorld2Service?wsdl");
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
QName qname = new QName(" http://hw2/ http://hw2/", "HelloWorld2Service");
Service service = Service.create(url, qname);
HelloWorld2 port = service.getPort(HelloWorld2.class);
return "Hi World" + port.getHiWorld();
}
public HelloWorldImpl() {
}
}
HelloWorld2Impl.java
package hw2;
import javax.jws.WebService;
@WebService(serviceName="HelloWorld2Service", name="HelloWorld2")
public class HelloWorld2Impl implements HelloWorld2 {
@Override
public String getHiWorld() {
return " again!";
}
public HelloWorld2Impl (){}
}
HelloWorldClient.java
package client;
import hw1.HelloWorld;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
public class HelloWorldClient {
public static void main(String[] args) throws Exception {
URL url = new URL(" http://localhost:8080/HelloWorldWS/HelloWorldService?wsdl http://localhost:8080/HelloWorldWS/HelloWorldService?wsdl");
QName qname = new QName(" http://hw1/ http://hw1/", "HelloWorldService");
Service service = Service.create(url, qname);
HelloWorld eif = service.getPort(HelloWorld.class);
System.out.println(eif.getHiWorld());
}
}
Finally, this is the error my JBoss server is giving me:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: hw2/HelloWorld2
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:129)
at $Proxy19.getHiWorld(Unknown Source)
at client.HelloWorldClient.main(HelloWorldClient.java:25)
Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724833#724833]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - Process variables rules template relationship
by Hunor-Attila Kerekes
Hunor-Attila Kerekes [https://community.jboss.org/people/subbass00] created the discussion
"Process variables rules template relationship"
To view the discussion, visit: https://community.jboss.org/message/724835#724835
--------------------------------------------------------------
I am a little bit confused about the rules fact variables and process variables relationship. I have a process with variables: name:String, age:Integer, access:Boolean. I would like to verify with a business rule if the variable age is less than 18 then the access would be set to false. I created a model called User with these fields. The rule separately works fine, but I am inserting a User object in ksession. If I am using a process model like this:1.Human Task, 2 Business rule, 3.Human task, how can I set these values or what is the relation ship exactly between my process variables and rule template data?
Should I use the rule template as a variable in my process? If yes please let me know how it is possible.
Note: The fields: name, age are filled in runtime by a user.
Thank you in advance.
Kind regards, Hunor-Attila Kerekes
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724835#724835]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss Tools] - Upgrade from JBoss Tools 3.3.0 M5 to Beta 1 broke my Maven war modules in Eclipse
by Stevo Slavic
Stevo Slavic [https://community.jboss.org/people/sslavic] created the discussion
"Upgrade from JBoss Tools 3.3.0 M5 to Beta 1 broke my Maven war modules in Eclipse"
To view the discussion, visit: https://community.jboss.org/message/724260#724260
--------------------------------------------------------------
Hello JBoss Tools community,
After upgrading to JBoss Tools 3.3.0.v20120302-0221-H55-Beta1 for war modules following error marker started appearing on maven-war-plugin default execution declaration:
"Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-war-plugin:2.1.1:war (execution: default-war, phase: package)
- Project configurator "org.jboss.tools.maven.seam.configurator" is not available. To enable full functionality, install the project configurator and run Maven->Update
Project Configuration."
Updating project configuration doesn't help.
Wanted to revert back to M5 but that failed at first. I upgraded JBoss Tools together with JRebel plugin, and JRebel doesn't seem to leave old versions on their repo, neither does JBoss Tools on development repo, breaking eclipse configuration revert feature.
Luckly I had a recent copy of eclipse installation archive/bundle so I'm back at M5 again.
Apart from reverting to M5, does anyone have any other suggestions/workarounds/explanations on what's wrong with Beta1 and can I do something to fix it?
Kind regards,
Stevo.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724260#724260]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - jbpm process remote event signaling with data problem
by marmotadev
marmotadev [https://community.jboss.org/people/marmotadev] created the discussion
"jbpm process remote event signaling with data problem"
To view the discussion, visit: https://community.jboss.org/message/725011#725011
--------------------------------------------------------------
Hello,
I've spent some time trying to figure out how to communicate with remote processes, however I need an advice from more experienced devs, how to fulfill following requirements with jBPM 5:
There is OSGI container, let's call it A.
There is JBoss EE container (different JVM, possibly different machine). It contains setup identical to jbpm demo setup. Lets call it B.
In short: I want to be able to manage processes automatically by A (start, stop, signal), while jbpm engine resided either on A or B.
- I want to have functionality as in jbpm demo setup (that is - all UI consoles working ant integrated with Guvnor repository).
- I want to be able to see process definitions in jbpm in Guvnor repository console. (it is possible in default setup).
- I want to be able to see processes in jbpm console started in gwt console. (it is possible in default setup).
- I want to be able to see process instances in gwt console initiated (started) by some remote JVM's *with some data as initial context* (OSGI environment specifically). (Not possible with REST services - no way to specify initial data)
- I want to be able to *signal processes WITH DATA* from remote JVM's. Initiating party must be in OSGI container (Karaf) but outside of JBoss container (I cannot overcome this contraint, non-technical one). (Not possible with REST services - no way to specify signal data)
I do not care where actually is jbpm console, jbpm task service, drools and jbpm engines are really deployed, but I prefer to stay in JBoss because it's probably most tested deployment.
What are my options to acomplish this? I can think of:
a) extend gwt-console-server with additional REST services which can start/signal processes with data and continue using REST services.
b) Try to deploy jbpm console client and server on Karaf, hope to be able to attach to the same KnowledgeBase sessions as used by jbpm console (by OSGI wiring) - and manage them from there.
c) Maybe there's a way to make signals by loading statefull session and performing signals (but I guess I would simple restore process state and it would continue to run on invocation side with process running in parralel on original container)?
d) Maybe there's a way to force jbpm to publish process management (engine or session) to JNDI, and access sessions it from remote?
e) ....?
What are my options? What is the easiest option?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725011#725011]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months