Ha, I'm not using the <resource-ref /> element in the web.xml. I rely
on Resource Injection and Annotation's attributes;-)
PETR
On 8/21/07, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org> wrote:
> thanks for your help.
>
> the solution is a bit another, as i managed to find out:
>
> there was a misconfigured resource in web.xml:
> <resource-ref>
> <description>Test ss</description>
> <res-ref-name>jdbc/show</res-ref-name>
> <res-type>org.apache.commons.dbcp.datasources.PerUserPoolDataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
> that raised an exception:
>
> [#|2007-08-21T12:37:13.115+0400|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_Threa
> dID=35;_ThreadName=Timer-6;_RequestID=f46c7728-dec4-4ad8-8774-060732bb68f5;|WEB0123: WebModule [/show] failed to deploy and has been disabled
> java.lang.IllegalArgumentException: [org.apache.commons.dbcp.datasources.PerUserPoolDataSource] is n
> ot an allowed property value type at com.sun.enterprise.deployment.ResourceReferenceDescriptor.checkType(ResourceReferenceDesc
> riptor.java:492) at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:530)
> at com.sun.enterprise.web.WebModuleContextConfig.configureResource(WebModuleContextConfig.ja
> va:220) at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:
> 161)
>
> and all following resouces (even correctly configured) failed to initialize. i think, it could be a bug in glassfish
> [Message sent by forum member 'dimm' (dimm)]
>
> http://forums.java.net/jive/thread.jspa?messageID=231754
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
--
Petr Hadraba
graphic artist and software designer
http://hadrabap.googlepages.com/
hadrabap AT bluetone DOT cz