Hi,

I am facing problem to run the basic example shipped with the servicemix
package.

Environment:
========

Servicemix version: 3.2.1
Java : 1.5
Operation system: Windows XP

Steps Performed:
===========
1. Build the basic example using below command:

    mvn clean install

2. Execute the below command to run the example:
    mvn jbi:embeddedServicemix

Exception Raised:
===========


D:\OKISoft\apache-servicemix-3.2.1\examples\basic>mvn jbi:embeddedServicemix
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building ServiceMix :: Samples :: Basic
[INFO]    task-segment: [jbi:embeddedServicemix]
[INFO]
----------------------------------------------------------------------------
[INFO] Preparing jbi:embeddedServicemix
[INFO] [build:copy {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://svn.apache.org/repos/asf/servicemix/m2-repo/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://repository.codehaus.org/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [jbi:embeddedServicemix]
2008-02-05 23:50:50,011 [main           ] INFO 
ileSystemXmlApplicationContext - Refreshing
[EMAIL PROTECTED]:
display name
[EMAIL PROTECTED];
startup date [Tue Feb 05 23:50:50 IST 2008]; root of context hierarchy
2008-02-05 23:50:50,167 [main           ] INFO  XBeanXmlBeanDefinitionReader  
- Loading XML bean definitions from URL
[file:/D:/OKISoft/apache-servicemix-3.2.1/examples/basic/src/main/resources/servicemix.xml]
2008-02-05 23:50:51,214 [main           ] INFO 
ileSystemXmlApplicationContext - Bean factory for application context
[EMAIL PROTECTED]:
[EMAIL PROTECTED]
2008-02-05 23:50:51,230 [main           ] INFO  DefaultListableBeanFactory    
- Pre-instantiating singletons in
[EMAIL PROTECTED]:
defining beans
[jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
root of factory hierarchy
2008-02-05 23:50:51,308 [main           ] WARN  EndpointRegistry              
- Disabled endpoint processor
'org.apache.servicemix.jbi.framework.support.WSDL2Processor':
java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
2008-02-05 23:50:51,683 [main           ] INFO  BrokerService                 
- ActiveMQ 4.1.1 JMS Message Broker (localhost) is starting
2008-02-05 23:50:51,683 [main           ] INFO  BrokerService                 
- For help or more information please see:
http://incubator.apache.org/activemq/
2008-02-05 23:50:51,839 [JMX connector  ] INFO  ManagementContext             
- JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
2008-02-05 23:50:52,042 [main           ] INFO  TransportServerThreadSupport  
- Listening for connections at: tcp://wipro-acd766ed6:61616
2008-02-05 23:50:52,058 [main           ] INFO  TransportConnector            
- Connector tcp://localhost:61616 Started
2008-02-05 23:50:52,058 [main           ] INFO  BrokerService                 
- ActiveMQ JMS Message Broker (localhost,
ID:wipro-acd766ed6-3201-1202235651823-0:0) started
2008-02-05 23:50:52,120 [main           ] INFO  JBIContainer                  
- ServiceMix 3.2.1 JBI Container (ServiceMix) is starting
2008-02-05 23:50:52,120 [main           ] INFO  JBIContainer                  
- For help or more informations please see:
http://incubator.apache.org/servicemix/
2008-02-05 23:50:52,136 [main           ] WARN  ManagementContext             
- Failed to start rmi registry: internal error: ObjID already in use
2008-02-05 23:50:52,167 [main           ] WARN  ManagementContext             
- Failed to start jmx connector: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException:
jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi]
2008-02-05 23:50:52,323 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: #SubscriptionManager#
2008-02-05 23:50:52,355 [main           ] INFO  DeploymentService             
- Restoring service assemblies
2008-02-05 23:50:52,386 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: inputSender
2008-02-05 23:50:52,402 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: timer
2008-02-05 23:50:52,480 [main           ] INFO  SimpleThreadPool              
- Job execution threads will use class loader of thread: main
2008-02-05 23:50:52,542 [main           ] INFO  QuartzScheduler               
- Quartz Scheduler v.1.5.2 created.
2008-02-05 23:50:52,542 [main           ] INFO  RAMJobStore                   
- RAMJobStore initialized.
2008-02-05 23:50:52,542 [main           ] INFO  StdSchedulerFactory           
- Quartz scheduler 'DefaultQuartzScheduler' initialized from default
resource file in Quartz package: 'quartz.properties'
2008-02-05 23:50:52,542 [main           ] INFO  StdSchedulerFactory           
- Quartz scheduler version: 1.5.2
2008-02-05 23:50:52,558 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: inputReceiver
2008-02-05 23:50:52,558 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: outputSender
2008-02-05 23:50:52,573 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: jmsTrace
2008-02-05 23:50:52,573 [main           ] INFO  ComponentMBeanImpl            
- Initializing component: trace
2008-02-05 23:50:52,573 [main           ] WARN  ClientFactory                 
- Cound not start ClientFactory: javax.naming.NoInitialContextException:
Need to specify class name in environment or system property, or as an
applet parameter, or in an application resource file: 
java.naming.factory.initial
2008-02-05 23:50:52,995 [main           ] INFO  QuartzScheduler               
- Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2008-02-05 23:50:53,105 [main           ] INFO  JBIContainer                  
- ServiceMix JBI Container (ServiceMix) started
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Tue Feb 05 23:50:53 IST 2008
[INFO] Final Memory: 19M/35M
[INFO]
------------------------------------------------------------------------
2008-02-05 23:50:53,448 [MQ ShutdownHook] INFO  BrokerService                 
- ActiveMQ Message Broker (localhost,
ID:wipro-acd766ed6-3201-1202235651823-0:0) is shutting down
2008-02-05 23:50:53,448 [ix ShutdownHook] INFO 
ileSystemXmlApplicationContext - Closing
[EMAIL PROTECTED]:
display name
[EMAIL PROTECTED];
startup date [Tue Feb 05 23:50:50 IST 2008]; root of context hierarchy
2008-02-05 23:50:53,448 [ix ShutdownHook] INFO  DefaultListableBeanFactory    
- Destroying singletons in
[EMAIL PROTECTED]:
defining beans
[jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
root of factory hierarchy
2008-02-05 23:50:53,448 [ix ShutdownHook] INFO  JBIContainer                  
- Shutting down ServiceMix JBI Container (ServiceMix) stopped
2008-02-05 23:50:53,511 [ix ShutdownHook] INFO  JBIContainer                  
- Deactivating component #SubscriptionManager#
2008-02-05 23:50:53,620 [pool-1-thread-3] ERROR JcaConsumerProcessor          
- Error while handling jms message
java.lang.NullPointerException
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue.enqueue(SedaQueue.java:128)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.enqueuePacket(SedaFlow.java:182)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doSend(SedaFlow.java:162)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.send(AbstractFlow.java:123)
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:283)
        at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:830)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:395)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:470)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:442)
        at
org.apache.servicemix.common.EndpointDeliveryChannel.sendSync(EndpointDeliveryChannel.java:95)
        at
org.apache.servicemix.jms.jca.JcaConsumerProcessor.onMessage(JcaConsumerProcessor.java:112)
        at org.jencks.XAEndpoint.onMessage(XAEndpoint.java:129)
        at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:121)
        at
org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:61)
        at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:696)
        at
org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:165)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290)
        at
org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-02-05 23:50:53,620 [pool-1-thread-3] INFO  ServerSessionImpl:0           
- Endpoint failed to process message. Reason: java.lang.RuntimeException:
Endpoint after delivery notification failure
2008-02-05 23:50:57,058 [127.0.0.1:61616] WARN  ActiveMQConnection            
- Async exception with no exception listener: java.io.EOFException
java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:358)
        at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:267)
        at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
        at java.lang.Thread.run(Thread.java:595)
2008-02-05 23:50:57,058 [MQ ShutdownHook] INFO  TransportConnector            
- Connector tcp://localhost:61616 Stopped
2008-02-05 23:50:57,073 [MQ ShutdownHook] INFO  BrokerService                 
- ActiveMQ JMS Message Broker (localhost,
ID:wipro-acd766ed6-3201-1202235651823-0:0) stopped
2008-02-05 23:51:08,511 [ix ShutdownHook] INFO  QuartzScheduler               
- Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
2008-02-05 23:51:08,511 [ix ShutdownHook] INFO  QuartzScheduler               
- Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
2008-02-05 23:51:08,511 [ix ShutdownHook] INFO  QuartzScheduler               
- Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
2008-02-05 23:51:08,511 [ix ShutdownHook] INFO  QuartzScheduler               
- Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
2008-02-05 23:51:08,511 [ix ShutdownHook] INFO  ConnectorServerFactoryBean    
- Stopping JMX connector server:
[EMAIL PROTECTED]
2008-02-05 23:51:08,511 [ix ShutdownHook] INFO  JBIContainer                  
- ServiceMix JBI Container (ServiceMix) stopped



Please help me to resolve my problem.

Regards,
Puneet
-- 
View this message in context: 
http://www.nabble.com/Facing-Problem-in-running-example-basic-i.e.-embbeded-Servicemix-tp15296484s12049p15296484.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to