You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by "salinaale@inwind.it" <sa...@inwind.it> on 2003/08/18 14:58:57 UTC

Problem with torque and websphere

Sorry if this is the second time i post this message, but i need to solve this problem.....

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)


I create a simple jsp that i use to test the connection pool... in other webapp it's run ok...
now.... maybe some library of torque are not compatible with websphere 4.0 lib's???


Someone are using torque with websphere???

Thanks!


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