[JBoss Messaging] - problems connecting to a Queue
by jeuk
Hi,
I've got a weird problem with Messaging, I'm trying to connect to the queue from a standalone application and I'm getting "Failed to download and/or install client side AOP stack" which I cant seem to find the explanation of.
The description of the queue is:
The code I'm
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.mq.server.jmx.Queue"
| name="jboss.mq.destination:service=Queue,name=TNB-Queue">
| <attribute name="JNDIName">queue/tnb/inbound</attribute>
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| </mbean>
| </server>
|
the Code I'm using to connect is:
| public boolean setUpJMS(String server)
| {
| Properties props = new Properties();
| props.setProperty( "java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory" );
| props.setProperty( "java.naming.provider.url", server );
| props.setProperty( "java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces" );
| System.out.println("Got Props, connecting to " + server);
| try
| {
| InitialContext ic = new InitialContext(props);
| System.out.println("Got IC");
|
| connectionFactory = (ConnectionFactory)ic.lookup("ConnectionFactory");
| String sQueueName = "queue/tnb/inbound";
| queue = (Destination)ic.lookup(sQueueName);
| System.out.println("Got queue: " + sQueueName + " aka: " + queue.toString());
|
| connection = connectionFactory.createConnection();
| System.out.println("Got connection");
|
| connection.setExceptionListener(new ExceptionListenerImpl());
| System.out.println("setExceptionListener");
|
| session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
| System.out.println("Got session");
|
| producer = session.createProducer(queue);
| System.out.println("Got producer");
|
| return true;
| }
| catch(Throwable t)
| {
| System.out.println(t.getMessage());
| return false;
| }
| }
|
when running the app I get the following:
| Server: 192.168.2.230 argsLen = 1
| Starting:192.168.2.230 v0.1
| Got Props, connecting to 192.168.2.230
| Got IC
| Got queue: queue/tnb/inbound aka: JBossQueue[TNB-Queue]
| log4j:WARN No appenders could be found for logger (org.jboss.remoting.transport.socket.MicroSocketClientInvoker).
| log4j:WARN Please initialize the log4j system properly.
| Failed to download and/or install client side AOP stack
|
and the second strange thing is that when I run the same code from the same machine JBoss is on (Red Hat Fedora 8), I get
| Server: 192.168.2.230 argsLen = 1
| Starting:192.168.2.230 v0.1
| Got Props, connecting to 192.168.2.230
| Got IC
| null
|
Any help would be really appreciated.
Cheers
Johan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137145#4137145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137145
18 years, 1 month
[JBossWS] - Re: Call a web service
by rodosa
Hello!
Now I'm executing from Eclipse, because I'm building an .ear that contains a dinamic web project where the web service is inside. But I got the following error:
| Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
| at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:55)
| at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
| at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
| at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
| at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
| at $Proxy25.hola(Unknown Source)
| at client.JbpmWSClient.main(JbpmWSClient.java:95)
|
|
If I generate the jar and executing it with wsrunclient the following exception it's thrown (the library jboss-common-client.jar is in my path):
| Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedException
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
| at java.lang.Class.getConstructor0(Class.java:2699)
| at java.lang.Class.newInstance0(Class.java:326)
| at java.lang.Class.newInstance(Class.java:308)
| at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:36)
| at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:95)
| at javax.xml.ws.spi.Provider.provider(Provider.java:76)
| at javax.xml.ws.Service.<init>(Service.java:57)
| at client.JbpmServiceService.<init>(JbpmServiceService.java:42)
| at client.JbpmWSClient.main(JbpmWSClient.java:79)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137129#4137129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137129
18 years, 1 month
[JBoss Portal] - Re: Lookup error
by kmekme
Hi,
I'm using jboss portal 2.6.4 and jboss AS 4.2.2.GA
The JBoss AS and portal is running on a machine with redhat OS.
I've changed the default ports in $JBOSS_HOME/my_configuration/deploy/jboss-web.deployer :
| <Connector port="9090" address="${jboss.bind.address}"
| maxThreads="250" maxHttpHeaderSize="8192"
| emptySessionPath="true" protocol="HTTP/1.1"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true" />
|
| <!-- Define an AJP 1.3 Connector on port 8009 -->
| <Connector port="8999" address="${jboss.bind.address}" protocol="AJP/1.3"
| emptySessionPath="true" enableLookups="false" redirectPort="8443" />
|
|
When I first launch JBoss AS, I've got no errors.
Then when I try to reach the portal I deployed in $JBOSS_HOME/my_configuration/deploy (not the default one), I've got this error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137125#4137125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137125
18 years, 1 month
[EJB 3.0] - Re: [JBoss 5.0.0.Beta4] JBossXBException: Failed to parse so
by mathiasarens3
I am sorry but it doesn't seem to help. Now I get the following error:
anonymous wrote :
| 16:42:51,243 WARN [CollectionPropertyHandler] ClassInfo.getDeclaredConstructor(null) didn't work for org.jboss.metadata.ejb.spec.InterceptorClassesMetaData, found the default ctor in ClassInfo.getDeclaredConstructors()
| 16:42:52,664 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/applications/jboss-5.0.0.Beta4/server/default/deploy/core-ear-0.3-SNAPSHOT.ear state=Not Installed mode=Manual requiredState=Parse
| org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/applications/jboss-5.0.0.Beta4/server/default/deploy/core-ear-0.3-SNAPSHOT.ear/core-riskengine-0.3-SNAPSHOT.jar
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
| at org.jboss.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:105)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: QName {http://www.jboss.com/xml/ns/javaee}resource-ref error adding org.jboss.metadata.javaee.spec.ResourceReferenceMetaData@15b5219 to collection org.jboss.metadata.javaee.spec.ResourceReferencesMetaData@6b258d
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:153)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:120)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:223)
| ... 22 more
| Caused by: java.lang.RuntimeException: QName {http://www.jboss.com/xml/ns/javaee}resource-ref error adding org.jboss.metadata.javaee.spec.ResourceReferenceMetaData@15b5219 to collection org.jboss.metadata.javaee.spec.ResourceReferencesMetaData@6b258d
| at org.jboss.xb.builder.runtime.CollectionPropertyHandler.handle(CollectionPropertyHandler.java:154)
| at org.jboss.xb.builder.runtime.AbstractPropertyHandler.doHandle(AbstractPropertyHandler.java:98)
| at org.jboss.xb.builder.runtime.BeanHandler.setParent(BeanHandler.java:197)
| at org.jboss.xb.binding.group.ValueListHandler$FACTORY$1.newInstance(ValueListHandler.java:401)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParticle(SundayContentHandler.java:853)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:221)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:379)
| at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
| at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:189)
| ... 26 more
| Caused by: java.lang.IllegalArgumentException: No resource ref name
| at org.jboss.metadata.javaee.support.AbstractMappedMetaData.add(AbstractMappedMetaData.java:119)
| at org.jboss.metadata.javaee.support.AbstractMappedMetaData.add(AbstractMappedMetaData.java:37)
| at org.jboss.xb.builder.runtime.CollectionPropertyHandler.handle(CollectionPropertyHandler.java:150)
| ... 43 more
I reinstalled JBoss-5.0.0.Beta4 again to make sure that I have a clean installation. I also ran JBoss with different JDKs (5u13 and 6u5). But I get always the same error. I also tried JBoss 5.0.0.Beta3 but I got the same error with JDK5u13.
Is there a way to disable xml validation?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137117#4137117
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137117
18 years, 1 month