Hi

don't add geronimo-jms_1.1_spec-1.1.1.jar and javax.jms-api-2.0.jar.

That said your issue is surely more linked to your jdbc driver.

Which version do you use?


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-20 14:20 GMT+01:00 yjorozco <[email protected]>:
> I am trying to config tomee with the activemq.xml and it throws me the follow
> mistake:
>
> GRAVE: ActiveMQ failed to start broker
> java.lang.AbstractMethodError
>         at
> org.apache.commons.dbcp.DelegatingConnection.isValid(DelegatingConnection.java:626)
>         at
> org.apache.commons.dbcp.DelegatingConnection.isValid(DelegatingConnection.java:626)
>         at
> org.apache.commons.dbcp.DelegatingConnection.isValid(DelegatingConnection.java:626)
>         at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.checkpoint(JDBCPersistenceAdapter.java:668)
>         at
> org.apache.openejb.resource.activemq.ActiveMQ5Factory$1.run(ActiveMQ5Factory.java:184)
>
>
> this is my activemq configuration:
>
> <beans
>     xmlns="http://www.springframework.org/schema/beans";
>     xmlns:amq="http://activemq.apache.org/schema/core";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>   http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core-5.8.0.xsd";>
>
>
>   <bean
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>     <property name="location">
>
> <value>file:/home/emendez/Servidores/apache-tomee-plus-1.7.1/conf/activemq.properties</value>
>     </property>
>     <property name="properties">
>       <props>
>         <prop key="conf.db.host">${database-host}:${database-port}</prop>
>         <prop key="conf.db.un">${database-username}</prop>
>         <prop key="conf.db.pw">${database-password}</prop>
>         <prop key="data.dir">${data}</prop>
>       </props>
>     </property>
>   </bean>
>
>   <broker xmlns="http://activemq.apache.org/schema/core";
>           useJmx="true"
>           brokerName="spectrum"
>           useShutdownHook="false"
>           persistent="true"
>           start="false"
>           schedulerSupport="false"
>           enableStatistics="false"
>           offlineDurableSubscriberTimeout="259200000"
>           offlineDurableSubscriberTaskSchedule="3600000">
>
>     <persistenceAdapter>
>       <jdbcPersistenceAdapter createTablesOnStartup="false"
> dataSource="#postgresql-activemq-ds">
>         <adapter>
>           <postgresql-jdbc-adapter/>
>         </adapter>
>       </jdbcPersistenceAdapter>
>     </persistenceAdapter>
>
>
>
>
>     <transportConnectors>
>       <transportConnector name="vm"
> uri="vm://spectrum?waitForStart=30000&async=true"/>
>       <transportConnector name="nio" enableStatusMonitor="true"
> uri="nio://0.0.0.0:54545?soTimeout=60000&daemon=true&keepAlive=true&connectionTimeout=120000&wireFormat.tcpNoDelayEnabled=true&wireFormat.maxInactivityDuration=240000&wireFormat.maxInactivityDurationInitalDelay=120000"/>
>     </transportConnectors>
>
>   </broker>
>
>   <bean id="postgresql-activemq-ds"
> class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
>     <property name="driverClassName" value="org.postgresql.Driver"/>
>     <property name="url"
> value="jdbc:postgresql://${conf.db.host}/openejb_activemq"/>
>     <property name="username" value="${conf.db.un}"/>
>     <property name="password" value="${conf.db.pw}"/>
>     <property name="poolPreparedStatements" value="true"/>
>   </bean>
>
> </beans>
>
> other users had the same problem and added that libraries:
>
> geronimo-jms_1.1_spec-1.1.1.jar
> javax.jms-api-2.0.jar
> spring-beans-3.2.9.RELEASE.jar
> activemq-spring-5.8.0.jar
> spring-beans-3.2.9.RELEASE.jar
> spring-context-3.2.9.RELEASE.jar
> spring-core-3.2.9.RELEASE.jar
> spring-expression-4.0.2.RELEASE.jar
> spring-web-3.2.9.RELEASE.jar
>
> I have done anything but it still doesnt work....I dont know whats the
> problem....
>
> thanks for your help...
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/java-lang-AbstractMethodError-tp4673454.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to