[JBoss Web Services] - JBoss EJB unable invoke webservices by using their class implementation
by Douglas Oviche
Douglas Oviche [http://community.jboss.org/people/douglasoviche] created the discussion
"JBoss EJB unable invoke webservices by using their class implementation"
To view the discussion, visit: http://community.jboss.org/message/570095#570095
--------------------------------------------------------------
Hi there guys,
I am a JEE Architect in Rome Italy and I was engaged to design, architect and deploy a distributed enterprise system based on EJB, JPA and Webservices.
The webservice architecture is based on CXF WS and the entire system must be must be deployed on jboss-5.1.0.GA.
I've used Maven to generate my webservices and they have been created properly by using "wsdl2java".
All webservice endpoints are deployed on different providers machines so that if one wants to make use of these services
that one has to implement its own package by using the WSDLs made available by these different providers.
So, as I mentioned already we've decide to generate the whole services by using "wsdl2java" in our pom.xml configuration and pointing at
the WSDL files location. Every single service has been created perfectly.
We've also been able to deploy the whole WS package onto apache-tomcat-6.0.18 to test services endpoints, everything is pretty working.
Then, we have created a package of EJB3 where they are just SessionFacade components and each of these ejb provides its own public service(Method)
and within their public services they use the webservice implementation obtained from the maven generation process.
All these enterprise beans have been deployed and made available, they are properly invoked by servlets that we are using as test
to simultate the real clients making request onto the jboss platform to request for these services.
The whole picture is:
1- Webservices CXF package have been created and deployed on tomcat.
(Spring configuration has displayed the correct webservice creation on tomcat web server)
2- Enterprise Java Beans have been deployed on jboss-5.1.0.GA
(They are supposed to invoked webservices implementation by using the generated class representing the webservice implementation
@javax.jws.WebService)
3- A testing servlet(Invokes ejb on jboss as)
The problem we are facing now is that when servlets invoke a specific enterprise javabeans from apache-tomcat-6.0.18 to jboss-5.1.0.GA
we get the following error:
com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/plain Supported ones are: [text/xml]
Honestly, I would see a better design, deploying these webservices(CXF) on jboss to cut off one of the artifacts or partipants
in terms of number of servers making part of the whole design.
My view is:
1- WebService(CXF) package to be deployed on Jboss.
2- Enterprise Java Beans which use the webserives implementations to provide these services onto our clients.
3- Servlets to provide testing units in order to mock and simulate future clients requests and traffic.
This is it!! this is how I see things in a proper design solution
We sadly stuck on this and it's frustating the way things are turning.
We do really appreciate any kind of help by any one of you to tackle this problem.
Sincerely
Douglas
Hi there guys,
I am a JEE Architect in Rome Italy and I was engaged to design, architect and deploy a distributed enterprise system based on EJB, JPA and Webservices.
The webservice architecture is based on CXF WS and the entire system must be must be deployed on jboss-5.1.0.GA.
I've used Maven to generate my webservices and they have been created properly by using "wsdl2java".
All webservice endpoints are deployed on different providers machines so that if one wants to make use of these services
that one has to implement its own package by using the WSDLs made available by these different providers.
So, as I mentioned already we've decide to generate the whole services by using "wsdl2java" in our pom.xml configuration and pointing at
the WSDL files location. Every single service has been created perfectly.
We've also been able to deploy the whole WS package onto apache-tomcat-6.0.18 to test services endpoints, everything is pretty working.
Then, we have created a package of EJB3 where they are just SessionFacade components and each of these ejb provides its own public service(Method)
and within their public services they use the webservice implementation obtained from the maven generation process.
All these enterprise beans have been deployed and made available, they are properly invoked by servlets that we are using as test
to simultate the real clients making request onto the jboss platform to request for these services.
The whole picture is:
1- Webservices CXF package have been created and deployed on tomcat.
(Spring configuration has displayed the correct webservice creation on tomcat web server)
2- Enterprise Java Beans have been deployed on jboss-5.1.0.GA
(They are supposed to invoked webservices implementation by using the generated class representing the webservice implementation
@javax.jws.WebService)
3- A testing servlet(Invokes ejb on jboss as)
The problem we are facing now is that when servlets invoke a specific enterprise javabeans from apache-tomcat-6.0.18 to jboss-5.1.0.GA
we get the following error:
*com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/plain Supported ones are: [text/xml]*
Honestly, I would see a better design, deploying these webservices(CXF) on jboss to cut off one of the artifacts or partipants
in terms of number of servers making part of the whole design.
My view is:
1- WebService(CXF) package to be deployed on Jboss.
2- Enterprise Java Beans which use the webserives implementations to provide these services onto our clients.
3- Servlets to provide testing units in order to mock and simulate future clients requests and traffic.
This is it!! this is how I see things in a proper design solution
We sadly stuck on this and it's frustating the way things are turning.
We do really appreciate any kind of help by any one of you to tackle this problem.
Sincerely
Douglas
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570095#570095]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - jbpm4.4 timer triggering problem
by parvathy j a
parvathy j a [http://community.jboss.org/people/parvathy] created the discussion
"jbpm4.4 timer triggering problem"
To view the discussion, visit: http://community.jboss.org/message/570072#570072
--------------------------------------------------------------
hi,
I have a jpdl file with two timer in it...but only one timer is being fired..the second timer is not working..
<?xml version="1.0" encoding="UTF-8"?>
<process name="TaskNotification" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">
<start g="20,20,48,48">
<transition name="to_review" to="review"></transition>
</start>
<task name="review" assignee="#{order.owner}">
<transition name="to_secondTask" to="secondTask">
<timer duedate="2 minutes"/>
</transition>
</task>
<task name="secondTask"
g="96,16,127,52">
<timer duedate="2 minutes">
<event-listener class="com.sis.crm.sca.launch.task.ActionJava" />
</timer>
<transition to="wait"/>
</task>
<state name="wait" g="255,16,88,52"/>
</process>
i have imported <import resource="jbpm.jobexecutor.cfg.xml" /> this in my jbpm.cfg.xml file...
the first timer inside the transition is working fine and itz going to the second task node..but the timer inside the second task is not firing...so is the eventlistener in it...could anyone tell me the possible reason for this...
Thanking you
Parvathy J A
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570072#570072]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[Javassist] - Using personnal type : no such class
by Jérémie Salvucci
Jérémie Salvucci [http://community.jboss.org/people/vanished_man] created the discussion
"Using personnal type : no such class"
To view the discussion, visit: http://community.jboss.org/message/569925#569925
--------------------------------------------------------------
Hello all,
I'm trying to use javassist to create a new class at the execution.
I have a class named TranslatorConstructor and this one should create a class Translator. This class is composed of a field. This field is of IBinaryOutputFile type (personnal one). So when I get ClassPool thanks to ClassPool.getDefault, I do pool.importPackage with my own package "tools.IBinaryOutputFile". The problem is that doesn't work... Even if I use a class BinaryOutputFile and not an interface...
I'm using eclipse and I configure my project with javassist as an external jar. I'm wondering if it was a good idea because I don't know how javassist does to find my class...
public TranslatorConstructor (String className) {
ClassPool pool = ClassPool.getDefault();
pool.importPackage("tools.interfaces.IBinaryOutputFile");
pool.importPackage("tools.BinaryOutputFile");
clazz = pool.makeClass(className);
}
public void init () throws CannotCompileException {
String fieldName = "private IBinaryOuputFile binaryFile;";
CtField field = CtField.make(fieldName, clazz);
clazz.addField(field);
When I create the field, an exception occured...
clazz is a class field a TranslatorConstructor affected in the constructor with makeClass.
If anyone has an idea about why it doesn't work, it would be great.
Thank you !
--
VanishedMan
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569925#569925]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months