users@glassfish.java.net

Re: V2 -> AS 8.2: jdbc resource NameNotFoundException

From: Rocio G. Hermoso <rocio.hermoso_at_lcc.uma.es>
Date: Mon, 31 Mar 2008 11:15:11 +0200

Hi!!
i'm working with OpenPortal Portlet container working on Glassfish.
I've made a resource in my domain2 on glassfish and my ping rules!
but in my portlet application doesn't exist "sun-web.xml" and
"sun-resources.xml" and i can't use my resource in my portlet.
any idea?
i did the same like you but doesn't work!
Thanks for all,
Rocio

El lun, 17-03-2008 a las 11:48 -0800, glassfish_at_javadesktop.org
escribió:

> I fixed the problem by doing the following:
>
> 1. changing my web.xml from:
> [i]...
> <resource-ref>
> <res-ref-name>jdbc/oracle</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> <res-sharing-scope>Shareable</res-sharing-scope>
> </resource-ref>
> ...[/i]
> to:
> [i]...
>
> <resource-ref>
> <res-ref-name>java:comp/env/jdbc/oracle</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> <res-sharing-scope>Shareable</res-sharing-scope>
> </resource-ref>
> ...[/i]
>
> 2. Changing jndi.name property in my app from java:comp/env/jdbc/oracle to jdbc/oracle.
>
>
> I don't know why these names worked in Sun Application Server 9.1 but needed to be swapped in 8.2. For some reason the opposite names worked.
>
> -Matt
> [Message sent by forum member 'phife757' (phife757)]
>
> http://forums.java.net/jive/thread.jspa?messageID=264457
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

-- 
Rocío G. Hermoso
rocio.hermoso_at_lcc.uma.es
Dpto. LCC, Facultad de Informática
Universidad de Málaga
Despacho 3.3.11
tfn:952-13-7141