[JBoss Web Services] - duplicate class definition bug occured(JBossAS6.0.0.Final - WS Deployment)
by Sarang Anajwala
Sarang Anajwala [http://community.jboss.org/people/saranganajwala] created the discussion
"duplicate class definition bug occured(JBossAS6.0.0.Final - WS Deployment)"
To view the discussion, visit: http://community.jboss.org/message/593476#593476
--------------------------------------------------------------
All my jars/wars seem to be getting deployed twice.
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6904426{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/MyAppDataMiningService.jar/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6904426{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/MyAppDataMiningService.jar/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11462767{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/UserImportanceCalculation.jar/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11462767{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/UserImportanceCalculation.jar/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11211505{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/CUWebService.war/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11211505{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/CUWebService.war/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@14034274{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/MyAppPMWebServices.war/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@14034274{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/MyAppPMWebServices.war/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23743730{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/DocumentWebService.war/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23743730{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/DocumentWebService.war/}
16:41:36,166 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@2430684{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/EventsWebService.war/}
16:41:36,181 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@2430684{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/EventsWebService.war/}
16:41:36,181 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30283084{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/PeopleWebService.war/}
16:41:36,181 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30283084{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/PeopleWebService.war/}
16:41:36,181 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@30330449{vfs:///C:/MyApp/jboss-6.0.0.Final/server/default/deploy/MyAppApplicationEAR.ear/UserActivityWebService.war/}
.........
.........
.........
Getting following warning while booting the server.
16:42:02,042 INFO [ReflectionServiceFactoryBean] Creating Service { http://service.cuwebservice.dawn.company.com/ http://service.cuwebservice.dawn.company.com/}CUServiceImplService from class com.company.dawn.cuwebservice.service.CUServiceImpl
16:42:02,448 WARNING [Injector] duplicate class definition bug occured? Please report this : com/company/dawn/cuwebservice/message/GetCUsRequestMsg$JaxbAccessorM_getContextInfo_setContextInfo_[Lcom_company_ce_ws_message_ContextInfo;: java.lang.ClassFormatError: Illegal class name "com/company/dawn/cuwebservice/message/GetCUsRequestMsg$JaxbAccessorM_getContextInfo_setContextInfo_[Lcom_company_ce_ws_message_ContextInfo;" in class file com/company/dawn/cuwebservice/message/GetCUsRequestMsg$JaxbAccessorM_getContextInfo_setContextInfo_[Lcom_company_ce_ws_message_ContextInfo;
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/593476#593476]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[JBoss Messaging] - message stuck in clustered queue
by Tan Pauline
Tan Pauline [http://community.jboss.org/people/schipperde] created the discussion
"message stuck in clustered queue"
To view the discussion, visit: http://community.jboss.org/message/592355#592355
--------------------------------------------------------------
Hi, I'm using JBoss AS 5.1 with messaging 1.4.3 to do clustering. My setup is 2 JBoss nodes (A & B) with 2 standalone applications pointing to the nodes separately. The problem is sometimes the nodes will have 1 consumer each, and the messages can be received correctly, but sometimes both consumers will camp at node A or B only, and messages sent to the other node will not be consumed. I ran the distributed-queue example and it works fine though.
I have configured my setup as below:
*connection-factories-service.xml*
<mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
name="jboss.messaging.connectionfactory:service=ClusteredConnectionFactory"
xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
*
*
<attribute name="SupportsFailover">true</attribute>
<attribute name="SupportsLoadBalancing">true</attribute>
<attribute name="DisableRemotingChecks">true</attribute>
<attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory</attribute>
*messaging-service.xml*
<attribute name="ClusterPullConnectionFactoryName">jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory</attribute>
*mysql-persistence-service.xml*
<attribute name="Clustered">true</attribute>
<attribute name="FailoverOnNodeLeave">true</attribute>
*my-destinations-service.xml*
<attribute name="Clustered">true</attribute>
Another problem is when the 2 consumers are at node A and the message is stuck at node B, after shutting down node B (either through ctrl-c or closing the window), the message does not failover to node A, even though on the console it says
[ INFO][org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.info():296] JBoss Messaging is failing over for failed node 1. If there are many messages to reload this may take some time...
[ INFO][org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.info():296] JBoss Messaging failover completed
Appreciate if anyone can help to answer my question. Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592355#592355]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[jBPM] - java.lang.reflect.InvocationTargetException
by Odelya Holiday
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"java.lang.reflect.InvocationTargetException"
To view the discussion, visit: http://community.jboss.org/message/593383#593383
--------------------------------------------------------------
Hi!
I made changes so my bitronix will only work with Spring and not with tomcat the application server.
However, now when I am using:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.drools.persistence.jpa");
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
I get for the last call for building statefulknowledge I get:
Caused by: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:109)
I tried for a long time to debug it with drools source but cannot figure out what could cause it!
I see in bitronix log that it created connection data pooling.
What wen wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/593383#593383]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[JBoss Web Services] - Re: Bug: injecting WebServiceContext at AroundInvoke
by Peer Bech Hansen
Peer Bech Hansen [http://community.jboss.org/people/bech] created the discussion
"Re: Bug: injecting WebServiceContext at AroundInvoke"
To view the discussion, visit: http://community.jboss.org/message/588800#588800
--------------------------------------------------------------
Hi Florian
I think I have the same problem using JBoss 5.1.0.GA.
Did you find a solution. If not we ought to report is as a bug.
public class WebserviceLogInterceptor {
@Resource
private WebServiceContext wsc;
@AroundInvoke
public Object logCall(InvocationContext context) throws Exception {
try {
return context.proceed();
} catch (Exception e) {
throw e;
}
}
}
org.jboss.deployers.spi.DeploymentException: Error deploying Project-1.0-SNAPSHOT.jar: Exception while processing container metadata for EJB: DemoService in unit: Project-1.0-SNAPSHOT.jar
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: Exception while processing container metadata for EJB: DemoService in unit: Project-1.0-SNAPSHOT.jar
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:549)
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
... 29 more
Caused by: java.lang.ArrayStoreException: org.jboss.injection.WebServiceContextPropertyInjector
at java.util.AbstractCollection.toArray(AbstractCollection.java:171)
at org.jboss.ejb3.interceptor.InterceptorInjector.(InterceptorInjector.java:42)
at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:610)
at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:418)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:527)
... 30 more
18:01:38,527 WARN http://community.jboss.org/message/588800#588800 Re: Bug: injecting WebServiceContext at AroundInvoke Failed to process changes
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588800#588800]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month