Hi: Thanks for trying to help out. Let me clarify a couple of points.

The main thing is that my problem is very specifically with the transaction
manager factory; I have successfully set up other dhcp connection pools
(non-transactional).

>>With the failure to initialize, I moved
>>all needed jars into CATALINA_BASE/bin, after first trying
>> CATALINA_BASE/lib. 
...
>I think you should keep the JAR files in the lib folder and not the bin
folder. 

As originally stated, I've tried placing the putting the jars in that
folder, with no difference.

>>I have configured everything just as in Tomcat 5.5, but there
>> seems to be a change in the classloading structure
... 
>I would try to connect directly without using JNDI first, to make sure
>a direct connection works. 

Because these connections are configured in 5.5 exactly as here (in 6), I
know the connection is correct.

>>This is what's configured as a global resource in server.xml
...
>Where have you placed the above <Resource /> tag ? 

As stated, I the tag is a global resource and the resourceLink referecing it
is in the default context.xml context.

>In addition to the configuration checks I've mentioned in my previous
>post, also check that you've configured the web.xml correctly. 

Considering that the main error I've listed is a ClassNotFoundDef, I
question whether my web.xml configuration could change that, though I will
certainly give it a try. Actually: the rest of my Oracle connections work
without any references in web.xml; my understanding from the documentation
was this was optional. You need either the web.xml reference OR a context
reference.

Thanks so much for trying to help, though. Any further suggestions would be
welcome.

Thanks,
Teresa



> I've been trying to use Tomcat 6 (with Java 6) on FC6, but I cannot seem
> to get the third-party transaction manager integrated as in previous
> versions. I have configured everything just as in Tomcat 5.5, but there
> seems to be a change in the classloading structure, which simply
> prevents the classes from loading.
>  
> Originally, I had the all the necessary Objectweb (JOTM is my
> transaction manager) in a directory outside of the CATALINA_BASE but had
> appended them to the beginning of the classpath in setclasspath.sh,
> which is how it currently works. With the failure to initialize, I moved
> all needed jars into CATALINA_BASE/bin, after first trying
> CATALINA_BASE/lib. My suspicion is that there's a class that is needed
> by the Objectweb DataSourceFactory that was previously included but is
> no longer found, due to a change in the classloading architecture; but,
> that's almost purely theoretical.
>  
> This is the error from catalina.out:
>  
> WARNING: Failed to register in JMX: javax.naming.NamingException: Could
> not create resource factory instance [Root exception is
> java.lang.NoClassDefFoundError: Could not initialize class
> org.objectweb.jndi.DataSourceFactory]
>  
> This is what's configured as a global resource in server.xml:
> <Resource name="AdminCop"
>                     min="1"
>                     max="1"
>                     auth="Container"
>                     type="javax.sql.DataSource"
>                     factory="org.objectweb.jndi.DataSourceFactory"
>                    driverClassName="oracle.jdbc.driver.OracleDriver"
>                     username="xxx"
>                     password="xxx"
>                     url="jdbc:oracle:thin:@localhost:xxxx:XXX" />
>  
> I have, of course, read the appropriate JNDI How-To, but, as I say, I
> have configured all resources, properties, paths, etc, exactly the same
> as in Tomcat 5.5 with no luck. Any help would be greatly appreciated.
>  
> Thanks!
>  
> -- Teresa
> 
-- 
View this message in context: 
http://www.nabble.com/transaction-manager-cannot-load-in-Tomcat-6-tf3774696.html#a10720221
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to