db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "salinaale\@inwind\.it" <salina...@inwind.it>
Subject torque and websphere pool
Date Wed, 23 Jul 2003 13:17:26 GMT
Hi, 
i've configured the websphere pool so that it can be used with an Oracle DB.
When i try to use it with torque i get this error message: 

javax.naming.NoInitialContextException: Cannot instantiate class:
com.ibm.websphere.naming.WsnInitialContextFactory.  Root exception is
java.lang.ClassCastException: com.ibm.websphere.naming.WsnInitialContextFactory
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:659)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
        at javax.naming.InitialContext.init(InitialContext.java:226)
        at javax.naming.InitialContext.<init>(InitialContext.java:182)
        at
org.apache.torque.dsfactory.JndiDataSourceFactory.initJNDI(JndiDataSourceFactory.java:168)
        at
org.apache.torque.dsfactory.JndiDataSourceFactory.initialize(JndiDataSourceFactory.java:123)
        at org.apache.torque.Torque.initDataSourceFactories(Torque.java:323)
        at org.apache.torque.Torque.initialize(Torque.java:237)
        at org.apache.torque.Torque.init(Torque.java:406)
        at org.apache.torque.Torque.init(Torque.java:386)



this is an extract of my Torque.properties>

torque.database.default=ComunicazioniCSR
torque.database.ComunicazioniCSR.adapter=oracle

torque.dsfactory.ComunicazioniCSR.factory=org.apache.torque.dsfactory.JndiDataSourceFactory
torque.dsfactory.ComunicazioniCSR.jndi.path=java:comp/env/jdbc/test


Any suggestions?



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message