Quantcast

[servicemix-user] running Basic example and getting error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[servicemix-user] running Basic example and getting error

Jingwei Zhang
I am new to ServiceMix. I just downloaded and installed it on my PC. I am trying to run Basic example using all default configurations. When I typed:
 
servicemix servicemix.xml
 
I got:
 

D:\servicemix-1.1\examples\basic>servicemix servicemix.xml
ServiceMix ESB: 1.1

Loading ServiceMix from file: servicemix.xml
[INFO] XmlBeanDefinitionReader - -Loading XML bean definitions from file [D:\servicemix-1.1\examples\basic\servicemix.xml]
[INFO] CollectionFactory - -JDK 1.4+ collections available
[INFO] CollectionFactory - -Commons Collections 3.x available
[INFO] FileSystemXmlApplicationContext - -Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=8918249]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jencks,broker,transactionManager,jmsFactory,jbi]; root of BeanFactory hierarchy
[INFO] FileSystemXmlApplicationContext - -5 beans defined in application context [ org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=8918249]
[INFO] FileSystemXmlApplicationContext - -Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1cbfe9d ]
[INFO] FileSystemXmlApplicationContext - -Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@bb7759 ]
[INFO] DefaultListableBeanFactory - -Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jencks,broker,transactionManager,jmsFactory,jbi]; root of BeanFactory hierarchy]
[INFO] DefaultListableBeanFactory - -Creating shared instance of singleton bean 'jencks'
[INFO] DefaultListableBeanFactory - -Creating shared instance of singleton bean 'broker'
[INFO] SpringBrokerContainerFactory - -Loading ActiveMQ broker from configuration: class path resource [ activemq.xml]
[INFO] ActiveMQBeanDefinitionReader - -Loading XML bean definitions from class path resource [activemq.xml]
[INFO] ActiveMQBeanFactory - -Creating shared instance of singleton bean 'broker'
[INFO] ActiveMQBeanFactory - -Creating shared instance of singleton bean 'memoryManager'
[INFO] ActiveMQBeanFactory - -Creating shared instance of singleton bean 'derby-ds'
[INFO] ActiveMQBeanFactory - -Creating shared instance of singleton bean 'mysql-ds'
[INFO] BrokerContainerImpl - -ActiveMQ 3.2 JMS Message Broker (ID:w2tz0xwt02-2345-1131465057724-0:0) is starting
[INFO] BrokerContainerImpl - -For help or more information please see: http://www.logicblaze.com
[INFO] DefaultListableBeanFactory - -Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [jencks,broker,transactionManager,jmsFactory,jbi]; root of BeanFactory hierarchy}
Caught: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jencks.factory.BootstrapContextFactoryBean ': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in file [D:\servicemix-1.1\examples\basic\servicemix.xml ]: Initialization of bean failed; nested exception is javax.jms.JMSException: Failed to create transaction: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to create database 'derbydb', see the next exception for details.)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jencks.factory.BootstrapContextFactoryBean': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException : Error creating bean with name 'broker' defined in file [D:\servicemix-1.1\examples\basic\servicemix.xml]: Initialization of bean failed; nested exception is javax.jms.JMSException: Failed to create transaction: org.apache.commons.dbcp.SQLNestedException : Cannot create PoolableConnectionFactory (Failed to create database 'derbydb', see the next exception for details.)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in file [D:\servicemix- 1.1\examples\basic\servicemix.xml]: Initialization of bean failed; nested exception is javax.jms.JMSException: Failed to create transaction: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to create database 'derbydb', see the next exception for details.)
javax.jms.JMSException: Failed to create transaction: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to create database 'derbydb', see the next exception for details.)
        at org.activemq.util.JMSExceptionHelper.newJMSException(JMSExceptionHelper.java:49)
        at org.activemq.store.jdbc.JDBCPersistenceAdapter.beginTransaction(JDBCPersistenceAdapter.java:130)
        at org.activemq.store.jdbc.JDBCPersistenceAdapter.start (JDBCPersistenceAdapter.java:175)
        at org.activemq.store.journal.JournalPersistenceAdapter.start(JournalPersistenceAdapter.java:176)
        at org.activemq.store.cache.CachePersistenceAdapter.start(CachePersistenceAdapter.java :81)
        at org.activemq.broker.impl.DefaultBroker.start(DefaultBroker.java:165)
        at org.activemq.broker.impl.BrokerContainerImpl.start(BrokerContainerImpl.java:159)
        at org.activemq.spring.BrokerFactoryBean.afterPropertiesSet (BrokerFactoryBean.java:53)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:966)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:358)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:331)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.isBeanTypeMatch (DefaultListableBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:145)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType (DefaultListableBeanFactory.java:200)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:194)
        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType (AbstractApplicationContext.java:589)
        at org.jencks.factory.WorkManagerFactoryBean.getTransactionContextManager(WorkManagerFactoryBean.java:86)
        at org.jencks.factory.WorkManagerFactoryBean.createWorkManager (WorkManagerFactoryBean.java:175)
        at org.jencks.factory.WorkManagerFactoryBean.getWorkManager(WorkManagerFactoryBean.java:78)
        at org.jencks.factory.BootstrapContextFactoryBean.getWorkManager(BootstrapContextFactoryBean.java :78)
        at org.jencks.factory.BootstrapContextFactoryBean.getObject(BootstrapContextFactoryBean.java:52)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForSharedInstance(AbstractBeanFactory.java :763)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:96)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:920)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:731)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:340)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:277)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
        at org.springframework.context.support.FileSystemXmlApplicationContext .<init>(FileSystemXmlApplicationContext.java:82)
        at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:67)
        at org.springframework.context.support.FileSystemXmlApplicationContext .<init>(FileSystemXmlApplicationContext.java:58)
        at org.servicemix.Main.main(Main.java:56)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to create database 'derbydb', see the next exception for details.)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:859)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:544)
        at org.activemq.store.jdbc.JDBCPersistenceAdapter.beginTransaction (JDBCPersistenceAdapter.java:125)
        ... 35 more
Caused by: SQL Exception: Failed to create database 'derbydb', see the next exception for details.
        at org.apache.derby.impl.jdbc.Util.newEmbedSQLException (Util.java)
        at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java)
        at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException (EmbedConnection.java)
        at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java)
        at org.apache.derby.impl.jdbc.EmbedConnection20.<init>(EmbedConnection20.java)
        at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java)
        at org.apache.derby.jdbc.Driver30.getNewEmbedConnection (Driver30.java)
        at org.apache.derby.jdbc.Driver169.connect(Driver169.java)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject (PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:881)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java :855)
        ... 37 more
D:\servicemix-1.1\examples\basic>

 

What was wrong?

Thanks for the help.

J

Loading...