[Installation, Configuration & DEPLOYMENT] - Facing problem while deploying servicemix jbi component in j
by puneetjain
Hi,
I am facing problem while deploying servicemix component with jboss.
Steps performed:
1. I have deployed jboss deployer upon jboss.
2. Copied the servicemix component in the deploy directory of servicemix.
3. I have got the bellow exceptions while starting the jboss server.
Exception Raised:
16:20:27,081 INFO [JBIDeployer] Init ServiceMix JBI Component: file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip
16:20:27,081 INFO [JBIDeployer] Init Watcher
16:20:27,081 INFO [JBIDeployer] Init LoaderRepository
16:20:28,509 INFO [JBIDeployer] ServiceMix deployer passing deployment to JBI container [file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip]
16:20:28,856 ERROR [MainDeployer] Could not create deployment: file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip
org.jboss.deployment.DeploymentException: ServiceMix deployer unable to deploy: org.jboss.deployment.DeploymentInfo@671f25db { url=file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip }
deployer: org.servicemix.jboss.deployment.JBIDeployer@1a847df
status: null
state: CREATE_DEPLOYER
watch: file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip
altDD: null
lastDeployed: 1202986228508
lastModified: 1202986227000
mbeans:
; - nested throwable: (javax.management.RuntimeErrorException)
at org.servicemix.jboss.deployment.JBIDeployer.create(JBIDeployer.java:115)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
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:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: javax.management.RuntimeErrorException
at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:178)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.servicemix.jboss.deployment.JBIDeployer.create(JBIDeployer.java:105)
... 21 more
Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.impl.xs.opti.DefaultDocument.getDomConfig()Lorg/w3c/dom/DOMConfiguration;" the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) of the current class, org/apache/xerces/impl/xs/opti/DefaultDocument, and the class loader (instance of ) for interface org/w3c/dom/Document have different Class objects for the type org/w3c/dom/DOMConfiguration used in the signature
at org.apache.xerces.impl.xs.opti.SchemaDOMParser.startDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:102)
at org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:80)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:238)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExternalArchive(AutoDeploymentService.java:201)
at org.servicemix.jboss.deployment.JBIService.installArchive(JBIService.java:116)
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:155)
... 26 more
16:20:27,081 INFO [JBIDeployer] Init ServiceMix JBI Component: file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip
16:20:27,081 INFO [JBIDeployer] Init Watcher
16:20:27,081 INFO [JBIDeployer] Init LoaderRepository
16:20:28,509 INFO [JBIDeployer] ServiceMix deployer passing deployment to JBI container [file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip]
16:20:28,856 ERROR [MainDeployer] Could not create deployment: file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip
org.jboss.deployment.DeploymentException: ServiceMix deployer unable to deploy: org.jboss.deployment.DeploymentInfo@671f25db { url=file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip }
deployer: org.servicemix.jboss.deployment.JBIDeployer@1a847df
status: null
state: CREATE_DEPLOYER
watch: file:/usr/oki_software/ServicemixTester/jboss/jboss-4.2.2.GA/server/default/deploy/servicemix-shared-3.2.1-installer.zip
altDD: null
lastDeployed: 1202986228508
lastModified: 1202986227000
mbeans:
; - nested throwable: (javax.management.RuntimeErrorException)
at org.servicemix.jboss.deployment.JBIDeployer.create(JBIDeployer.java:115)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
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:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
Please help me to resolve the problem. A early response will be highly appreciated as it is a bottleneck for my work.
Regards,
Puneet
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129370#4129370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129370
18 years, 2 months
[Messaging, JMS & JBossMQ] - Automatic topic creation & deletion through EJBSessionBean.
by sasimsit
Hi
I have big question like how to Automatic topic creation & deletion through EJBSessionBean, It can similer in Weblogic like
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, url);
ht.put(Context.SECURITY_PRINCIPAL, user1);
ht.put(Context.SECURITY_CREDENTIALS, pass1);
iniCtx=new InitialContext(ht);
JMSModuleHelper.deleteTopic(iniCtx,"Module",topicName);
and as well as
JMSModuleHelper.createTopic(iniCtx,"Module",jmsServer,topicName,topicName);
If possible in JBOSS server side. please provide API and small sample peases.
Best regards
P.Sasikumar
Ellaar ,Chennai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129369#4129369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129369
18 years, 2 months
[Microcontainer] - Re: ClassLoaderMetaData not propagating (yet?) to classloade
by gcompienne
Yes, I saw the code you refer to. But that's what got me puzzled:
I suspect you are refering to the fact that, if there is no ClassLoaderFactory, then it will automatically create one (as VFSTopLevelClassLoaderSystemDeployer is a decendant of AbstractClassLoaderDeployer).
But still, before the system gets there, a ClassLoaderFactory input should be present before this deployer can get selected (as it is a required input).
But now I am realizing that I have perhaps missed something: The "setAllInputs(true)".
When "setAllInputs(true)" is combined with a setInput, does it mean that the input becomes optional? (I wondered in an earlier post if the setAllInput simply override the inputs as being "all inputs" but I now suspect that is not the case and that it just change the inputs from a "required" state to an "optional" one). This would explain why VFSTopLevelClassLoaderSystemDeployer is called whilst the required input is not there... Is my understanding now correct?
What's also interesting and perhaps misleading is the fact that when inputs are reported on the log the "setAllInputs" status is probably not shown (it just shows the expected inputs, whatever they end up being required or optional).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129364#4129364
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129364
18 years, 2 months