[JBoss Web Services] - CXF client AS7 classloader
by Michele Balistreri
Michele Balistreri [http://community.jboss.org/people/michele.balistreri] created the discussion
"CXF client AS7 classloader"
To view the discussion, visit: http://community.jboss.org/message/615796#615796
--------------------------------------------------------------
Hello, I have an EJB which uses the @WebServiceRef annotation to lookup a webservice client (subclass of Service). I have already read the FAQ, and added "<module name="org.jboss.ws.cxf.jbossws-cxf-client" services="export" />" to the dependencies of the subdeployment containing the EJB in the jboss-deployment-structure.xml. I have tried also services="import" but this makes no difference.
During deployment on JBoss AS 7, configured with standalone-preview.xml, I get the following error:
Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
*Caused by: java.lang.NoClassDefFoundError: org/jboss/wsf/stack/cxf/client/serviceref/CXFServiceObjectFactoryJAXWS*
at org.jboss.as.webservices.deployers.WebServiceRefAnnotationParsingProcessor$WebServiceRefValueSource.getValue(WebServiceRefAnnotationParsingProcessor.java:256)
at org.jboss.as.naming.ValueManagedReferenceFactory$1.getInstance(ValueManagedReferenceFactory.java:63)
at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:64)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.as.ee.component.ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor.processInvocation(SessionInvocationContextInterceptor.java:67)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:151)
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:76)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:110)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:123)
at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
The same application, of course, works fine on JBoss AS 6
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615796#615796]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - Human Task Assignment handler
by Mohamed Alzaiady
Mohamed Alzaiady [http://community.jboss.org/people/mzaiady] created the discussion
"Human Task Assignment handler"
To view the discussion, visit: http://community.jboss.org/message/637342#637342
--------------------------------------------------------------
Hi...
I'm evaluating JBPM 5 , to be used with human task Management., we have some complex task assignment requirement, like assign task based on work load or use Round Robin, escalate tasks, assign task for review only, ....
How i can a accomplish such requirements, Is there is any way to impelment a task Assignment handler??
I did think of overwrite the WSHumanTaskHandler, but i will have to recode the most of it, plus the new one will applay on all tasks in the process.
Any Ideas???
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637342#637342]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss AS Documentation] - JBoss AS 7 security problem
by mateo01
mateo01 [http://community.jboss.org/people/mateo01] created the discussion
"JBoss AS 7 security problem"
To view the discussion, visit: http://community.jboss.org/message/637264#637264
--------------------------------------------------------------
Hi everyone!
I use Jboss As 7 for my new application which contans some EJB components connected with one main EJB marked as Webservice (JAX-WS). I am connecting to this service from standalone test application and everythink woks fine. But I wanted to implement authentication and authorization so head of my web-service implementor class look like this:
@Stateless
@SchemaValidation(enabled = true)
@WebService(wsdlLocation = "/META-INF/wsdl/invoiceservice.wsdl")
@SecurityDomain("jboss-domain")
@DeclareRoles({"moderator"})
@RolesAllowed({})
public class InvoiceServiceImpl implements Invoiceservice {
@Override
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@DenyAll
public CreateDocumentRS createDocument(CreateDocumentRQ payload) throws BusinessException {
.....some code
}
}
I have also configured security domain in standalone.xml - it looks like this:
security-domain name="jboss-domain" cache-type="default">
<authentication>
<login-module code="UsersRoles" flag="required">
<module-option name="usersProperties" value="ejb3users.properties"/>
<module-option name="rolesProperties" value="ejb3roles.properties"/>
<module-option name="unauthenticatedIdentity" value="nobody"/>
</login-module>
</authentication>
</security-domain>
files ejb3users.properties and ejb3roles.properties are stored in same directory as standalone.xml
and now when I'm trying to connect to webservice with my standalone application (without setting username and password) everythink works, every method which should be denied executes without any exception.
Could you guys advice me what am I doing wrong? Maybe it is something more what should I configure?
Thanks in advance for any thoughts!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637264#637264]
Start a new discussion in JBoss AS Documentation at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Messaging] - LeasePinger java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling
by Ankit Goel
Ankit Goel [http://community.jboss.org/people/ankgoel] created the discussion
"LeasePinger java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling"
To view the discussion, visit: http://community.jboss.org/message/637228#637228
--------------------------------------------------------------
We have the following configuration -
JBoss version is 4.2.3 GA
JBoss messaging: 1.4.5 GA
Remoting version: 2.2.3
We are trying to consume JBoss JMS topic messages from Oracle iAS 10.1.3.5 using 3rd party configurations.
We included the JBoss jars into Oracle iAS library. And we get the following exception -
LeasePinger[a002u-e1x66y-gv3zkvyb-1-gv3zm6rv-f:SocketClientInvoker[79de1d, bisocket://WM9.chlcore.com:4657](a002u-e1x66y-gv3zkvyb-1-gv3zm6qx-e)] failed to ping to server
java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.IOException: EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Segment
at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:131)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.handleOtherException(MicroSocketClientInvoker.java:812)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:725)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:458)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:143)
at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.java:375)
at org.jboss.remoting.LeasePinger.addClient(LeasePinger.java:177)
at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:518)
at org.jboss.remoting.Client.setupClientLease(Client.java:1923)
at org.jboss.remoting.Client.connect(Client.java:1803)
at org.jboss.remoting.Client.connect(Client.java:655)
at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:374)
We also notice following logs on JBoss server -
08:59:00,226 WARN [Lease] Lease[61c6408d:a002u-x00g4y-gv4x0i5y-1-gv4yjc6m-im:a0
02u-x00g4y-gv4x0i5y-1-gv4yjc7u-in] Tried to terminate lease for session id a002u
-x00g4y-gv4x0i5y-1-gv4yjc6m-ik, but no collection of clients have been set.
08:59:04,641 WARN [Lease] Lease[5d1af4ba:a002u-x00g4y-gv4x0i5y-1-gv4yjfm5-iq:a0
02u-x00g4y-gv4x0i5y-1-gv4yjfmc-ir] Tried to terminate lease for session id a002u
-x00g4y-gv4x0i5y-1-gv4yjfm5-io, but no collection of clients have been set.
08:59:30,665 WARN [Lease] Lease[2a2b1ca9:a002u-x00g4y-gv4x0i5y-1-gv4yjzox-iu:a0
02u-x00g4y-gv4x0i5y-1-gv4yjzpf-iv] Tried to terminate lease for session id a002u
-x00g4y-gv4x0i5y-1-gv4yjzox-is, but no collection of clients have been set.
09:00:01,091 WARN [Lease] Lease[585515e7:a002u-x00g4y-gv4x0i5y-1-gv4ykmvg-iy:a0
02u-x00g4y-gv4x0i5y-1-gv4ykmvo-iz] Tried to terminate lease for session id a002u
-x00g4y-gv4x0i5y-1-gv4ykmvg-iw, but no collection of clients have been set.
09:00:31,122 WARN [Lease] Lease[3b372c26:a002u-x00g4y-gv4x0i5y-1-gv4ylacx-j2:a0
02u-x00g4y-gv4x0i5y-1-gv4ylad2-j3] Tried to terminate lease for session id a002u
-x00g4y-gv4x0i5y-1-gv4ylacx-j0, but no collection of clients have been set.
09:01:01,143 WARN [Lease] Lease[338d9133:a002u-x00g4y-gv4x0i5y-1-gv4ylxj1-j6:a0
02u-x00g4y-gv4x0i5y-1-gv4ylxj6-j7] Tried to terminate lease for session id a002u
-x00g4y-gv4x0i5y-1-gv4ylxj1-j4, but no collection of clients have been set.
These logs come due to connection trials from SOA server only. If we stop SOA server, these messages do not come on JBoss logs. Looks to be an issue while reading message from the Jboss JMS topic.
Is it an issue with JBoss jars not being compatible ?
Do we have standars set of JBoss messaging jars to be used for Oracle iAS 10g.
Thanks,
Ankit
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637228#637228]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[Beginner's Corner] - Proper version of JBoss AS, Java, EJB3/2 for Oracle 10g
by Dante Bell
Dante Bell [http://community.jboss.org/people/dantepasquale] created the discussion
"Proper version of JBoss AS, Java, EJB3/2 for Oracle 10g"
To view the discussion, visit: http://community.jboss.org/message/637087#637087
--------------------------------------------------------------
Hi, I'm tasked with moving an app written for Jboss 2 from an old server to a new server. The app connects to an Oracle 10g RDBMS running on the same server as JBoss. I've installed and configured the following.
OS: Oracle Linux 5u2 64
JBoss: 4.2.3 GA
EJB3: 1.0.19
Java: 1.5
Oracle RDBMS: 10g r2
Is this the proper configuration?
Should I be using new versions?
My reason for asking is that when researching this configuration, the limiting factor is the classes12.jar file to connect to 10g. I read that it only works with Java 1.4 and 1.5. I'm not a developer, but I'm thinking that the newer versions of odjbc would require code changes, which we are trying to avoid unless this doesn't work.
Thanks, Danté
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637087#637087]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years