users@glassfish.java.net

Re: problem with jdbc resource injection

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Aug 2007 01:46:25 PDT

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