Thanks for your response. My CLASSPATH was incorrect. Now It's OK. Bye
>>> [EMAIL PROTECTED] 11/02/02 16:34:06 >>> Sylvie, com.ibm.websphere.naming.WsnInitialContextFactory is IBM WebSphere's implementation of Sun's javax.naming.InitialContext interface which is used by the underlying code as a bootstrap context to lookup the DataSource you've just configured per below configuration. Now, I have not followed this thread so far, but if you are really using Castor from within an applet, you will have to modify your CLASSPATH to include all of the JAR files required to run your code. Please consult your WebSphere manuals to get an idea what needs to be included, but you definitely need to have IBM's WsnInitialContextFactory on your classpath. Thanks Werner Sylvie RAMON wrote: > All was ok last week, and now i have a problem when I want to acces database with >castor. > > When I run my code like a simple applet, it's ok. > But when I run it with Internet explorer, i have the next exception : > > org.exolab.castor.jdo.DatabaseNotFoundException: Nested error: >javax.naming.NoInitialContextException: Cannot instantiate class: >com.ibm.websphere.naming.WsnInitialContextFactory [Root exception is >java.lang.ClassCastException: com.ibm.websphere.naming.WsnInitialContextFactory] > > What Append, I don't know where can i found this snInitialContextFactory. > > Someone have an idea ?? > Thanks > > >>> [EMAIL PROTECTED] 11/02/02 10:18:39 >>> > Ok, i try it and it's ok. > It didn't work because the datasource was incorrect. > > Thanks to everybody for your help > Sylvie. > > >>> [EMAIL PROTECTED] 01/02/02 12:55:21 >>> > Why not use the JNDI name of the datasource in your app server? > > For example, in JBoss I have defined a datasource called SQLServerPool > as below. > > <!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD > Version 1.0//EN" > "http://castor.exolab.org/jdo-conf.dtd"> > <database name="cookietime" engine="sql-server" > > <jndi name="java:/SQLServerPool" /> > <mapping href="../catalina/mapping_cookietime.xml" /> > </database> > > Hope this helps, > > Patrick > > Sylvie RAMON wrote: > > >Hi, > > > >I want to use datasource, i think the jdo-conf.dtd is incorrect for this. > >In the sample, we can see > ><database name="..." engine="oracle" > > ><data-source class-name="oracle.jdbc.pool.OracleConnectionCacheImpl"> > ><params URL="jdbc:oracle:thin:@localhost:1521:TEST" user="SYSTEM" >password="manager"/> > ></data-source> > >... > ></database> > > > >but in the jdo-conf.dtd, the element "params" doesn't exist ?? > > > >Do i have to use element "param" ?? > >Is url necessary with datasource ? > > > >Someone could help me ?? > > > >Thanks > > > >----------------------------------------------------------- > >If you wish to unsubscribe from this mailing, send mail to > >[EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
