Re: [jboss-user] [JBoss Microcontainer] - jbossws-cxf and the spring libs in AS
by Alessio Soldano
Alessio Soldano [http://community.jboss.org/people/alessio.soldano%40jboss.com] replied to the discussion
"jbossws-cxf and the spring libs in AS"
To view the discussion, visit: http://community.jboss.org/message/550919#550919
--------------------------------------------------------------
Hi Ales,
> Ales Justin wrote:
>
> Thinking about it, specially since the only known / useful marker is @Endpoint annotation,
> why don't we simply say if users want to use this new cxf, they need to place either
> * jboss-classloading.xml with parent domain pointing to your WS domain
> * custom jboss-ws.xml file, which we recognize and hack the classloading metadata ourselves
this would be fine for the "advanced usecase" in which the spring based configuration is used, etc.
On the countrary, we can't ask users to add jboss-classloading.xml to a simple standard jaxws deployment (of course, the JavaEE certification testsuite would also fail for this) and without that the user deployment would not see CXF jars, which currently need to live together with the Spring ones in the isolated domain (see the last part of my first message in this thread).
> As I think it will be hard to get any proper transaprent magic working in this case.
I see... currently the direction that's been considered the most viable is to remove the Spring libs from the AS distribution ( https://jira.jboss.org/browse/JBAS-8131 https://jira.jboss.org/browse/JBAS-8131) and ask users to install them if they need / want to use the spring configuration.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550919#550919]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
Re: [jboss-user] [jBPM] - Multi-threaded process execution?
by HuiSheng Xu
HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"Multi-threaded process execution?"
To view the discussion, visit: http://community.jboss.org/message/550901#550901
--------------------------------------------------------------
Hi Chris,
Let jBPM 4 support real Multi-Thread will be a good research direction. But please notice some thing. That the IoC containter of jBPM 4 based on the TheadLocal, so if you create Multi-Thread in your custom activity, you maybe have to face some problems, e.g. you cannot get components directly from Environment any more. And the transaction interceptor should be rewrite for Multi-thread scenario, you have to find a way to notify the interceptor when all of executions have completed, and whether the current transation could commit or should rollback.
So the current implementation of jBPM 4 based on the single-thread scenario could simplify many problem and easy to achieve. if you really want to achieve a Multi-Thread solution, please consider about these.
Good Luck. :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550901#550901]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[JBoss Tools] - bookings example authenticator precedence conflict
by Lynn Ford
Lynn Ford [http://community.jboss.org/people/lynnf] created the discussion
"bookings example authenticator precedence conflict"
To view the discussion, visit: http://community.jboss.org/message/550886#550886
--------------------------------------------------------------
I need some help w/ the bookings example. I'm running into the same precedence issue whether I use the downloaded one or the one that comes w/ seam.
JBoss Tools 3.1, Eclipse 3.5.2
Any help would be appreciated. All the startup messages look fine except the deployment related the authenticator. I'm not sure how to resolve this. Excerpt below (full listing attached):
14:20:02,018 INFO [ServletContextListener] Welcome to Seam 2.2.1.CR1
14:20:03,159 INFO [Initialization] reading /WEB-INF/components.xml
14:20:03,205 INFO [Initialization] reading properties from: /seam.properties
14:20:03,205 INFO [Initialization] reading properties from: /jndi.properties
14:20:03,221 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
14:20:03,221 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
14:20:03,221 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.jms.topicConnection
14:20:03,221 INFO [Initialization] two components with same name, higher precedence wins: authenticator
14:20:03,221 ERROR [[/seam-booking]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener:
java.lang.IllegalStateException: Two components with the same name and precedence - component name: authenticator, component classes: org.jboss.seam.example.booking.AuthenticatorAction, org.domain.booking.session.Authenticatorat org.jboss.seam.init.Initialization.addComponentDescriptor(
Initialization.java:607)at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(
Initialization.java:957)at org.jboss.seam.init.Initialization.scanForComponents(
Initialization.java:897)at org.jboss.seam.init.Initialization.init(
Initialization.java:713)at org.jboss.seam.servlet.SeamListener.contextInitialized(
SeamListener.java:36)at org.apache.catalina.core.StandardContext.contextListenerStart(
StandardContext.java:3926)at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4447)at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(
TomcatDeployment.java:315)at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(
TomcatDeployment.java:145)at org.jboss.web.deployers.AbstractWarDeployment.start(
AbstractWarDeployment.java:462)at org.jboss.web.deployers.WebModule.startModule(
WebModule.java:116)at org.jboss.web.deployers.WebModule.start(
WebModule.java:95)at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(
Method.java:597)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:157)at org.jboss.mx.server.Invocation.dispatch(
Invocation.java:96)at org.jboss.mx.server.Invocation.invoke(
Invocation.java:88)at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:271)at org.jboss.mx.server.MBeanServerImpl.invoke(
MBeanServerImpl.java:670)at org.jboss.system.microcontainer.ServiceProxy.invoke(
ServiceProxy.java:206)at $Proxy41.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(
StartStopLifecycleAction.java:53)at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(
StartStopLifecycleAction.java:41)at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(
SimpleControllerContextAction.java:62)at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(
AccessControllerContextAction.java:71)at org.jboss.dependency.plugins.AbstractControllerContextActions.install(
AbstractControllerContextActions.java:51)at org.jboss.dependency.plugins.AbstractControllerContext.install(
AbstractControllerContext.java:378)at org.jboss.system.microcontainer.ServiceControllerContext.install(
ServiceControllerContext.java:301)at org.jboss.dependency.plugins.AbstractController.install(
AbstractController.java:2029)at org.jboss.dependency.plugins.AbstractController.incrementState(
AbstractController.java:1050)at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(
AbstractController.java:1289)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1213)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1107)at org.jboss.dependency.plugins.AbstractController.change(
AbstractController.java:918)at org.jboss.dependency.plugins.AbstractController.change(
AbstractController.java:633)at org.jboss.system.ServiceController.doChange(
ServiceController.java:671)at org.jboss.system.ServiceController.start(
ServiceController.java:443)at org.jboss.system.deployers.ServiceDeployer.start(
ServiceDeployer.java:189)at org.jboss.system.deployers.ServiceDeployer.deploy(
ServiceDeployer.java:102)at org.jboss.system.deployers.ServiceDeployer.deploy(
ServiceDeployer.java:49)at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(
AbstractSimpleRealDeployer.java:62)at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
AbstractRealDeployer.java:55)at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(
DeployerWrapper.java:179)at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(
DeployersImpl.java:1660)at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(
DeployersImpl.java:1378)at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(
DeployersImpl.java:1399)at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(
DeployersImpl.java:1431)at org.jboss.deployers.plugins.deployers.DeployersImpl.install(
DeployersImpl.java:1319)at org.jboss.dependency.plugins.AbstractControllerContext.install(
AbstractControllerContext.java:378)at org.jboss.dependency.plugins.AbstractController.install(
AbstractController.java:2029)at org.jboss.dependency.plugins.AbstractController.incrementState(
AbstractController.java:1050)at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(
AbstractController.java:1289)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1213)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1107)at org.jboss.dependency.plugins.AbstractController.change(
AbstractController.java:918)at org.jboss.dependency.plugins.AbstractController.change(
AbstractController.java:633)at org.jboss.deployers.plugins.deployers.DeployersImpl.process(
DeployersImpl.java:898)at org.jboss.deployers.plugins.main.MainDeployerImpl.process(
MainDeployerImpl.java:677)at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(
MainDeployerAdapter.java:117)at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(
ProfileDeployAction.java:70)at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(
AbstractProfileAction.java:53)at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(
AbstractProfileService.java:403)at org.jboss.dependency.plugins.AbstractControllerContext.install(
AbstractControllerContext.java:378)at org.jboss.dependency.plugins.AbstractController.install(
AbstractController.java:2029)at org.jboss.dependency.plugins.AbstractController.incrementState(
AbstractController.java:1050)at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(
AbstractController.java:1289)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1213)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1107)at org.jboss.dependency.plugins.AbstractController.install(
AbstractController.java:873)at org.jboss.dependency.plugins.AbstractController.install(
AbstractController.java:620)at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(
AbstractProfileService.java:308)at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
ProfileServiceBootstrap.java:259)at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
ProfileServiceBootstrap.java:100)at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(
AbstractServer.java:860)at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(
AbstractServer.java:441)at java.lang.Thread.run(
Thread.java:619)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550886#550886]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months