-
1. Re: Datasource not reached from web bean
juhalindfors Jul 2, 2003 3:47 PM (in response to malian)Do you declare the <resource-ref> for the lookup name in web.xml and map that to the correct JNDI name in your jboss-web.xml?
-
2. Re: Datasource not reached from web bean
malian Jul 2, 2003 4:30 PM (in response to malian)Yes, I defined resource-ref in my web.xml like this:
<resource-ref>
resource for db connection pooling for solid db
<res-ref-name>jdbc/solidJDBC</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and my jboss-web.xml looks like this:
<resource-ref>
<res-ref-name>jdbc/solidJDBC</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:jdbc/solidJDBC</jndi-name>
</resource-ref>
I would appreciate your help very much! BTW, now I am getting this error:
org.jboss.util.NestedSQLException: Apparently wrong driver class specified for URL: class: solid.jdbc.SolidDriver, url: jdbc:solid://155.55.5.55:1555/user/pass; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: solid.jdbc.SolidDriver, url: jdbc:solid://155.55.5.55:1555/user/pass)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106)
at netrio.smc.util.DataConnectionBean.getSolidConnection(Unknown Source)
thank you for replying!
Malia -
3. Re: Datasource not reached from web bean
arabin Sep 12, 2003 11:37 AM (in response to malian)Have you solved the problem?
How can I connect using the file solid-ds.xml? Can you explain me in details?
Is the file solid-service.xml required?
I just thought I need solid-service.xml to connect. Isn't it true?
For instance, when I connected to postgres, I user the file postgres-service.xml
Also, the reference http://sourceforge.net/project/shownotes.php?release_id=111113 says I should have solid-service.xml already, starting 3.2.0RC4
I have 3.2.2RC3, and I do not see the file solid-service.xml there.
Any ideas? -
4. Re: Datasource not reached from web bean
neerajvyas Sep 25, 2003 5:19 AM (in response to malian)Try out with following
In Datasource XML file
<jndi-name>solidJDBC</jndi-name>
In your bean code:
DataSource solidDS = (DataSource) envCtx.lookup("java:/solidJDBC");