You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Paul French <pa...@frenchiesystems.com> on 2006/07/29 13:25:05 UTC

required Jencks jars

As far as I can tell I've added all the jars required. However on startup 

.......could not instantiate class
[org.jencks.factory.BootstrapContextFactoryBean]

java.lang.NoClassDefFoundError:
org/apache/geronimo/transaction/manager/TransactionLog

I cannot locate this Class in any of the jars. Which one is it in? 

I am using the incubator-activemq-4.0.1 release. I am not running inside a
J2EE container so I have grabbed what I think is the appropiate Geronimo
jars. Currently I am using the following libraries

jencks-1.2.jar
activemq-ra-4.0.1.jar
geronimo-j2ee-connector_1.5_spec-1.0.jar
incubator-activemq-4.0.1.jar

+ the usual others for spring etc

What is missing?
-- 
View this message in context: http://www.nabble.com/required-Jencks-jars-tf2019914.html#a5553637
Sent from the ActiveMQ - User forum at Nabble.com.


Re: required Jencks jars

Posted by Eugene Prokopiev <pr...@stc.donpac.ru>.
Can you create minimal standalone application which use Jencks to 
perform some actions (send and recieve message, or perform JDBC 
operation, for example) in one transaction?

I tried to read http://www.jencks.org/ and see test cases but I can't 
understand how to do it :(

-- 
Thanks,
Eugene Prokopiev


Re: required Jencks jars

Posted by Paul French <pa...@frenchiesystems.com>.
Got it working by using the following JARS (you may need others if you use
other features that I do not)

Downloaded Geronimo distribution 1.0 (not 1.1) to obtain some dependencies
required (basically Geronimo's implementation of a JCA container/connectors)

Below is for Jencks1.2.jar using activeMQ4.0.1 as the JMS provider and using
the activeMQ resource adaptor to hook the 2 together

jencks1.2.jar (from Jencks web-site)
incubator-activemq-4.0.1.jar (from activeMQ distribution)
activemq-ra-4.0.1.jar (from activeMQ distribution hidden inside a RAR file)
geronimo-1.0\repository\geronimo\jars\geronimo-connector-1.0.jar
geronimo-1.0\repository\geronimo\jars\geronimo-transaction-1.0.jar
geronimo-1.0\repository\org.apache.geronimo.specs\jars\geronimo-j2ee-connector_1.5_spec-1.0.jar
geronimo-1.0\repository\org.apache.geronimo.specs\jars\geronimo-jta_1.0.1B_spec-1.0.jar
geronimo-1.0\repository\concurrent\jars\concurrent-1.3.4.jar

I use Spring 1.2.5

-- 
View this message in context: http://www.nabble.com/required-Jencks-jars-tf2019914.html#a5562595
Sent from the ActiveMQ - User forum at Nabble.com.


Re: required Jencks jars

Posted by Paul French <pa...@frenchiesystems.com>.
I've downloaded the full geronimo distribution and have found a few jars that
seem to do the trick. However I still have problems. Currently the jars I
have so I can use Jencks with ActiveMQ are:

incubator-activemq-4.0.1.jar
jencks-1.2.jar
activemq-ra-4.0.1.jar
geronimo-connector-1.1.jar
geronimo-transaction-1.1.jar
geronimo-j2ee-connector_1.5_spec-1.0.1.jar
geronimo-jta_1.0.1B_spec-1.0.1.jar
+ Spring etc

However I now get on startup the error given below.

java.lang.NoSuchMethodError:
org.apache.geronimo.transaction.manager.TransactionManagerImpl.<init>(ILorg/apache/geronimo/transaction/manager/TransactionLog;Ljava/util/Collection;)V
	at
org.jencks.factory.WorkManagerFactoryBean.getTransactionManager(WorkManagerFactoryBean.java:122)
	at
org.jencks.factory.WorkManagerFactoryBean.createTransactionContextManager(WorkManagerFactoryBean.java:172)
	at
org.jencks.factory.WorkManagerFactoryBean.getTransactionContextManager(WorkManagerFactoryBean.java:95)
	at
org.jencks.factory.WorkManagerFactoryBean.createWorkManager(WorkManagerFactoryBean.java:176)
	at
org.jencks.factory.WorkManagerFactoryBean.getWorkManager(WorkManagerFactoryBean.java:79)
	at
org.jencks.factory.BootstrapContextFactoryBean.getWorkManager(BootstrapContextFactoryBean.java:79)
	at
org.jencks.factory.BootstrapContextFactoryBean.getObject(BootstrapContextFactoryBean.java:53)
	at 
etc............


I thought I would look at the lingo distrribution to see what geronimo
dependencies it uses but the download links for lingo1.2.zip do not work.

I'm getting frustrated since on the home page on the jencks website under
the Requirements section it says:

If you are already using Spring, to be able to use Jencks you just need the
following jars on your classpath

jencks-all.jar 

You may need to add some J2EE jars too. You may wish to add a compelete
J2EE.jar (such as the geronimo-spec-j2ee.jar). If you are inside Tomcat, it
doesn't like j2ee.jar on the classpath, so use the individual jars from
Geronimo - e.g. geronimo-spec-j2ee-connector-*.jar for the JCA APIs


Now the download of Jencks only gives you jencks-1.2.jar and not
jencks-all.jar. I assume jencks-all.jar would give you the geronimo
implemention of the JCA connectors. I've tried to get the correct jars
myself but I suspect the versions are incorrect.

Please help since I can't afford to waste so much time just trying to get
the correct software. Being a newbie with this software is hard
work............:@(
-- 
View this message in context: http://www.nabble.com/required-Jencks-jars-tf2019914.html#a5561568
Sent from the ActiveMQ - User forum at Nabble.com.