我需要從Mule訂閱JBOSS 5.1主題。 這是我正在使用的配置。騾與JBOSS 5.1主題
<jms:connector name="jMSConnector" jndiInitialFactory="org.jnp.interfaces.NamingContextFactory" connectionFactoryJndiName="/ClusteredConnectionFactory" jndiProviderUrl="jnp://localhost:1099"
jndiDestinations="true" forceJndiDestinations="true" specification="1.1" doc:name="JMS"/>
<flow name="testFlow1" doc:name="testFlow1">
<jms:inbound-endpoint doc:name="JMS" connector-ref="jMSConnector" topic="jms/topic/testtopic"/>
<logger message="#[message.payload]" level="INFO" doc:name="Logger"/>
</flow>
我已經包括以下類路徑罐子: concurrent.jar 的jboss-AOP-client.jar中 的jboss-共core.jar添加 的jboss-測井spi.jar 的jboss-mdr.jar JBoss的消息傳遞-client.jar中 的jboss-remoting.jar JNP-client.jar中 trove.jar
我得到當我試圖運行應用程序下面的錯誤。有人能告訴我應該使用的確切的依賴關係罐嗎?
java.lang.NoSuchMethodError: org.jboss.logging.Logger.getLoggerPlugin()Lorg/jboss/logging/LoggerPlugin;
at org.jboss.aop.util.logging.AOPLogger.<init>(AOPLogger.java:63)
at org.jboss.aop.util.logging.AOPLogger.getLogger(AOPLogger.java:44)
at org.jboss.aop.AspectManager.<clinit>(AspectManager.java:109)
at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.<clinit>(ClientClusteredConnectionFactoryDelegate.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1057)
at java.lang.reflect.Field.getFieldAccessor(Field.java:1038)
at java.lang.reflect.Field.getLong(Field.java:591)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1663)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:72)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:480)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:602)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.rmi.MarshalledObject.get(MarshalledObject.java:159)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:769)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at org.mule.transport.jms.jndi.SimpleJndiNameResolver.lookup(SimpleJndiNameResolver.java:31)
at org.mule.transport.jms.JmsConnector.createConnectionFactory(JmsConnector.java:282)
at org.mule.transport.jms.JmsConnector.createConnection(JmsConnector.java:404)
at org.mule.transport.jms.JmsConnector.doConnect(JmsConnector.java:515)
at org.mule.transport.AbstractConnector$5.doWork(AbstractConnector.java:1556)
at org.mule.retry.policies.AbstractPolicyTemplate.execute(AbstractPolicyTemplate.java:67)
at org.mule.transport.AbstractConnector.connect(AbstractConnector.java:1616)
at org.mule.transport.jms.JmsConnector.connect(JmsConnector.java:458)
at org.mule.transport.AbstractConnector.start(AbstractConnector.java:428)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:225)
at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(RegistryLifecycleManager.java:276)
at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(RegistryLifecycleManager.java:155)
at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(RegistryLifecycleManager.java:126)
at org.mule.registry.AbstractRegistryBroker.fireLifecycle(AbstractRegistryBroker.java:80)
at org.mule.registry.MuleRegistryHelper.fireLifecycle(MuleRegistryHelper.java:120)
at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:94)
at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(MuleContextLifecycleManager.java:90)
at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(MuleContextLifecycleManager.java:72)
at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(MuleContextLifecycleManager.java:64)
at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:255)
at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:147)
at org.mule.module.launcher.application.ApplicationWrapper.start(ApplicationWrapper.java:107)
at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:48)
at org.mule.tooling.server.application.ApplicationDeployer.run(ApplicationDeployer.java:58)
at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:91)
你好瑞恩。謝謝(你的)信息。難道這就是我回購交易應使用: \t \t \t JBoss的 \t \t \t JBoss的 \t \t \t http://repository.jboss.com/ \t \t 我收到拒絕訪問的錯誤,當我使用該回購網址。 –
以下是錯誤:無法收集org.jboss.jbossas上的依賴關係:jboss-as-client:pom:5.1.0.GA - > org.jboss.aop:jboss-aop:jar:client:2.1.1。 GA:無法讀取org.jboss.aop的工件描述符:jboss-aop:jar:client:2.1.1.GA:無法傳輸工件org.jboss.aop:jboss-aop:pom:2.1.1.GA/to repository.jboss.org(http://repository.jboss.org/maven2):拒絕訪問:http://repository.jboss.org/maven2/org/jboss/aop/jboss-aop/2.1.1 .GA/jboss-aop-2.1.1.GA.pom,ReasonPhrase:禁止。 –
因工作回購信息更新了答案,因爲Jboss回購已被棄用。看到這裏爲什麼:http://stackoverflow.com/questions/6106754/jboss-as-client-5-1-0-ga-repository-missing –