activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ubaid <ubaid.has...@aajtech.com>
Subject SQL Server Error - Cannot load JDBC driver class
Date Wed, 18 Oct 2017 08:37:43 GMT
Following are my configurations for SQL server:
<persistenceAdapter>
             <jdbcPersistenceAdapter dataDirectory="${activemq.data}/sql"
dataSource="#mssql-ds"/></persistenceAdapter>

<bean id="mssql-ds" class="org.apache.commons.dbcp2.BasicDataSource"
destroy-method="close">
		<property name="driverClassName">
        <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
    </property>
    <property name="url">
       
<value>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb</value>
    </property>
    <property name="username">
        <value>sa</value>
    </property>
    <property name="password">
        <value>pass@word1</value>
    </property>
    <property name="poolPreparedStatements">
        <value>true</value>
    </property>
</bean> 


I have placed the sqljdbc4-3.0.jar file in lib/optional folder, nothing else
I did than pasting this code and jar file in the specific folder, but I got
the folowing error:


 Could not get JDBC connection: Cannot load JDBC driver class
'com.microsoft.jdbc.sqlserver.SQLServerDriver'
jvm 1    | java.sql.SQLException: Cannot load JDBC driver class
'com.microsoft.jdbc.sqlserver.SQLServerDriver'
jvm 1    |      at
org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2139)[commons-dbcp2-2.1.1.jar:2.1.1]
jvm 1    |      at
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)[commons-dbcp2-2.1.1.jar:2.1.1]
jvm 1    |      at
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)[commons-dbcp2-2.1.1.jar:2.1.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.TransactionContext.lockAndWrapped(TransactionContext.java:70)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:63)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:454)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:437)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:386)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.init(JDBCPersistenceAdapter.java:299)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.LockableServiceSupport.preStart(LockableServiceSupport.java:89)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)[activemq-client-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:687)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:671)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:635)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
jvm 1    |      at java.lang.Thread.run(Unknown Source)[:1.8.0_144]
jvm 1    |  INFO | No IOExceptionHandler registered, ignoring IO exception
jvm 1    | java.io.IOException: Cannot load JDBC driver class
'com.microsoft.jdbc.sqlserver.SQLServerDriver'
jvm 1    |      at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:46)[activemq-client-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.TransactionContext.lockAndWrapped(TransactionContext.java:88)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:63)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:454)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:437)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:386)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.init(JDBCPersistenceAdapter.java:299)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.LockableServiceSupport.preStart(LockableServiceSupport.java:89)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)[activemq-client-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:687)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:671)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:635)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
jvm 1    |      at java.lang.Thread.run(Unknown Source)[:1.8.0_144]
jvm 1    | ERROR | Failed to start Apache ActiveMQ (localhost, null)
jvm 1    | java.io.IOException: Cannot load JDBC driver class
'com.microsoft.jdbc.sqlserver.SQLServerDriver'
jvm 1    |      at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:46)[activemq-client-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.TransactionContext.lockAndWrapped(TransactionContext.java:88)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:63)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:454)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:437)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:386)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.init(JDBCPersistenceAdapter.java:299)[activemq-jdbc-store-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.LockableServiceSupport.preStart(LockableServiceSupport.java:89)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)[activemq-client-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:687)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:671)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:635)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
jvm 1    |      at java.lang.Thread.run(Unknown Source)[:1.8.0_144]
jvm 1    |  INFO | Apache ActiveMQ 5.15.1 (localhost, null) is shutting down
jvm 1    |  INFO | Connector openwire stopped
jvm 1    |  INFO | Connector amqp stopped
jvm 1    |  INFO | Connector stomp stopped
jvm 1    |  INFO | Connector mqtt stopped
jvm 1    |  INFO | Connector ws stopped
jvm 1    |  INFO |
PListStore:[C:\Users\ubaid.hassan\Desktop\apache-activemq-5.15.1\bin\win64\..\..\data\localhost\tmp_storage]
stopped
jvm 1    |  INFO | Apache ActiveMQ 5.15.1 (localhost, null) uptime 0.190
seconds
jvm 1    |  INFO | Apache ActiveMQ 5.15.1 (localhost, null) is shutdown
jvm 1    |  INFO | Closing
org.apache.activemq.xbean.XBeanBrokerFactory$1@3ca3667: startup date [Wed
Oct 18 13:30:11 PKT 2017]; root of context hierarchy
jvm 1    |  WARN | Exception thrown from LifecycleProcessor on context close
jvm 1    | java.lang.IllegalStateException: LifecycleProcessor not
initialized - call 'refresh' before invoking lifecycle methods via the
context: org.apache.activemq.xbean.XBeanBrokerFactory$1@3ca3667: startup
date [Wed Oct 18 13:30:11 PKT 2017]; root of context hierarchy
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:427)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:999)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:958)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.stop(BrokerService.java:903)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:642)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-4.2.jar:4.2]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.15.1.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.15.1]
jvm 1    |      at
org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.15.1]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.8.0_144]
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown
Source)[:1.8.0_144]
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
jvm 1    |      at java.lang.Thread.run(Unknown Source)[:1.8.0_144]
jvm 1    |  WARN | Exception encountered during context initialization -
cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [activemq.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Cannot load JDBC driver class
'com.microsoft.jdbc.sqlserver.SQLServerDriver'
jvm 1    | ERROR: java.lang.RuntimeException: Failed to execute start task.
Reason: java.lang.IllegalStateException: BeanFactory not initialized or
already closed - call 'refresh' before accessing beans via the
ApplicationContext
jvm 1    | java.lang.RuntimeException: Failed to execute start task. Reason:
java.lang.IllegalStateException: BeanFactory not initialized or already
closed - call 'refresh' before accessing beans via the ApplicationContext
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)
jvm 1    |      at org.apache.activemq.console.Main.main(Main.java:115)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | Caused by: java.lang.IllegalStateException: BeanFactory not
initialized or already closed - call 'refresh' before accessing beans via
the ApplicationContext
jvm 1    |      at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1030)
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
jvm 1    |      ... 16 more
jvm 1    | ERROR: java.lang.IllegalStateException: BeanFactory not
initialized or already closed - call 'refresh' before accessing beans via
the ApplicationContext
jvm 1    | java.lang.IllegalStateException: BeanFactory not initialized or
already closed - call 'refresh' before accessing beans via the
ApplicationContext
jvm 1    |      at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1030)
jvm 1    |      at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
jvm 1    |      at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
jvm 1    |      at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
jvm 1    |      at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
jvm 1    |      at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
jvm 1    |      at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
jvm 1    |      at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at
org.apache.activemq.console.Main.runTaskClass(Main.java:262)
jvm 1    |      at org.apache.activemq.console.Main.main(Main.java:115)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
wrapper  | <-- Wrapper Stopped




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Mime
View raw message