You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by rjangra <rj...@yahoo.com> on 2007/03/27 12:57:38 UTC

Sending message from a StandAlone java class

I am trying to send a message from my stand alone java class, to a binding
component in Servicemix, using RemoteServiceMixClient. I am using
"remote.xml" and the code given in
"org.apache.servicemix.client.RemoteServiceMixClientTest.java". However,
when I run the code I am getting the following error message. Not able to
figure out why I am getting error message regarding unresolved compilation
problem. Is it possible that some of my jars are conflicting with each
other. Sending the classpath entries as well.
***********************************************
NFO: ActiveMQ JMS Message Broker (localhost,
ID:PNE-HJN-116460-4788-1174992464365-0:0) stopped
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in class path resource
[org/apache/servicemix/client/remote.xml]: Invocation of init method failed;
nested exception is java.lang.Error: Unresolved compilation problems: 
	The import javax.management cannot be resolved
	ObjectName cannot be resolved to a type
	ObjectName cannot be resolved to a type

Caused by: java.lang.Error: Unresolved compilation problems: 
	The import javax.management cannot be resolved
	ObjectName cannot be resolved to a type
	ObjectName cannot be resolved to a type

	at
javax.jbi.management.InstallationServiceMBean.<clinit>(InstallationServiceMBean.java:19)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at
org.apache.servicemix.jbi.framework.InstallationService.getServiceMBean(InstallationService.java:258)
	at
org.apache.servicemix.jbi.management.BaseSystemService.init(BaseSystemService.java:52)
	at
org.apache.servicemix.jbi.framework.InstallationService.init(InstallationService.java:251)
	at
org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:557)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
	at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
	at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
	at
org.apache.servicemix.client.DummyServicemixClient.main(DummyServicemixClient.java:25)
***********************************************

CLASSPATH
**************************
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src/java"/>
	<classpathentry kind="src" path="src/test/resources"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="var"
path="M2_REPO/xml-resolver/xml-resolver/1.1/xml-resolver-1.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/backport-util-concurrent/backport-util-concurrent/2.1/backport-util-concurrent-2.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/wsdl4j/wsdl4j/1.5.2/wsdl4j-1.5.2.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.0.1/geronimo-jms_1.1_spec-1.0.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
	<classpathentry kind="var"
path="M2_REPO/incubator-activemq/activemq-core/4.0.2/activemq-core-4.0.2.jar"/>
	<classpathentry kind="var"
path="M2_REPO/incubator-activemq/activeio-core/3.0-beta4/activeio-core-3.0-beta4.jar"/>
	<classpathentry kind="var"
path="M2_REPO/incubator-activemq/activemq-ra/4.0.2/activemq-ra-4.0.2.jar"/>
	<classpathentry kind="var"
path="M2_REPO/activemq/jmdns/1.0-RC2/jmdns-1.0-RC2.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-j2ee-management_1.0_spec/1.0.1/geronimo-j2ee-management_1.0_spec-1.0.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-j2ee-connector_1.5_spec/1.0.1/geronimo-j2ee-connector_1.5_spec-1.0.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/xstream/xstream/1.1.2/xstream-1.1.2.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/jencks/jencks/1.3/jencks-1.3.jar"/>
	<classpathentry kind="var"
path="M2_REPO/geronimo/geronimo-core/1.1/geronimo-core-1.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar"/>
	<classpathentry kind="var"
path="M2_REPO/geronimo/geronimo-transaction/1.1/geronimo-transaction-1.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/geronimo/geronimo-connector/1.1/geronimo-connector-1.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/geronimo/geronimo-system/1.1/geronimo-system-1.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1/geronimo-jta_1.0.1B_spec-1.0.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-j2ee-jacc_1.0_spec/1.0.1/geronimo-j2ee-jacc_1.0_spec-1.0.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/geronimo/geronimo-j2ee/1.1/geronimo-j2ee-1.1.jar"/>
	<classpathentry kind="var"
path="M2_REPO/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/xbean/xbean-spring/2.8/xbean-spring-2.8.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/springframework/spring/2.0/spring-2.0.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/servicemix/servicemix-jbi/3.0.1-incubating/servicemix-jbi-3.0.1-incubating.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/servicemix/servicemix-core/3.0.1-incubating/servicemix-core-3.0.1-incubating.jar"/>
	<classpathentry kind="var"
path="M2_REPO/org/apache/servicemix/servicemix-services/3.0.1-incubating/servicemix-services-3.0.1-incubating.jar"/>
	<classpathentry kind="output" path="bin"/>
</classpath>

-- 
View this message in context: http://www.nabble.com/Sending-message-from-a-StandAlone-java-class-tf3472362s12049.html#a9690169
Sent from the ServiceMix - User mailing list archive at Nabble.com.