I would not have expected that -- I would have thought that putting the dependency in the WAR would work. Can you create a Jira with the XML files you tried for the WAR dependency (application.xml, geronimo-application.xml, web.xml, and geronimo-web.xml) and include the error and mention that it works if you move the dependency to the EAR level? Thanks, Aaron On 6/14/06, Mario Rübsam wrote: > When I put the db connector dependency setting into the > geronimo-application.xml instead of the geronimo-web.xml > then the web app will be deployed without the error. > > Is the geronimo-application.xml the correct place for > the db connector dependency when the web app is deployed > as an EAR? Is it also mandatory to put all the other dependency > settings in the geronimo-application.xml when deploying as EAR? > > Thanks, > Mario > > > > Mario Rübsam wrote: > > Ok, something I not mentioned before is, that I deploy the web application > > packaged in an EAR. > > > > here the geronimo-application.xml: > > > > > > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0" > > configId="coderesearch/ei-service/2.3/car" > > parentId="geronimo/j2ee-server/1.0/car"> > > > > > > client.war > > META-INF/geronimo-web.xml > > > > > > > > > > and the application.xml: > > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" > > version="1.4"> > > > > ei-Service > > > > > > > > client.war > > /ei-service > > > > > > > > > > > > client.war > > / > > > > > > > > > > > > Are there any differences in deploying between WAR and EAR in combination > > with the database pools? > > > > Thanks, > > Mario > > > > > > > > > > Mario Rübsam wrote: > >> Aaron Mulder wrote: > >>> I think we ought to try to figure this out for 1.1. > >>> > >>> Mario, are you sure the data source is deploying correctly? Do you > >>> see it listed as started in the "J2EE Connectors" screen of the > >>> console? > >> > >> Aaron, > >> > >> yes I'm sure, the datasource is available and the J2EE connector > >> is available for stop/uninstall. > >> > >> Thanks, > >> Mario > >> > >> > >>> > >>> Thanks, > >>> Aaron > >>> > >>> On 6/12/06, Mario Rübsam wrote: > >>>> Any new ideas about the problem? > >>>> > >>>> Thanks, > >>>> Mario > >>>> > >>>> > >>>> Mario Rübsam wrote: > >>>> > David Jencks wrote: > >>>> >> What happens if you change both this and the moduleId in the rar > >>>> plan > >>>> >> to type car? > >>>> >>> > >>>> >>> coderesearch-jdbc > >>>> >>> ei-service-default > >>>> >>> 2.3 > >>>> >>> rar > >>>> >>> > >>>> > > >>>> > changed it to "car" but still no luck, I used the "rar" because > >>>> the console > >>>> > wizard uses "rar" too > >>>> > > >>>> >> It should work the way you have it.... but we might have some > >>>> >> hardcoded assumptions about car left. > >>>> > > >>>> > I get the same error message when I remove the dependency. I tried > >>>> > it also with or without the version and type. Always the same > >>>> message. > >>>> > The db pool is deployed without problems I also checked the > >>>> repository > >>>> > structure for the db rar/car. > >>>> > > >>>> > Thanks, > >>>> > Mario > >>>> > > >>>> > > >>>> >> should have type car > >>>> >> On Jun 12, 2006, at 4:11 AM, Mario Rübsam wrote: > >>>> >> > >>>> >>> Hi, > >>>> >>> > >>>> >>> with the current release candidate I still have problems > >>>> >>> linking to the deployed datasource. My dependencies should > >>>> >>> match the examples from the web console but still no > >>>> >>> luck when deploying. > >>>> >>> > >>>> >>> Using JRE_HOME: d:\opt\sdk\j2sdk-1.4.2 > >>>> >>> Error: Unable to distribute eiservice.ear: Unable to resolve > >>>> >>> resource reference 'jdbc/default' (Could not find resource > >>>> >>> 'jdbc/default'. Perhaps it has not yet been configured, or > >>>> your > >>>> >>> application does not have a dependency declared for that > >>>> resource > >>>> >>> module?) > >>>> >>> > >>>> >>> What I'm doing wrong in with 1.1? It worked all fine in 1.0 > >>>> >>> > >>>> >>> Thanks, > >>>> >>> Mario > >>>> >>> > >>>> >>> > >>>> >>> here the geronimo-web.xml: > >>>> >>> > >>>> >>> > >>>> >>> >>>> >>> xmlns:naming="http://geronimo.apache.org/xml/ns/naming"> > >>>> >>> > >>>> >>> >>>> >>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> > >>>> >>> > >>>> >>> coderesearch > >>>> >>> ei-service > >>>> >>> 2.3 > >>>> >>> war > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> coderesearch > >>>> >>> ei-service > >>>> >>> 2.3 > >>>> >>> car > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> coderesearch-jdbc > >>>> >>> ei-service-default > >>>> >>> 2.3 > >>>> >>> rar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> commons-email > >>>> >>> commons-email > >>>> >>> 1.0 > >>>> >>> jar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> commons-codec > >>>> >>> commons-codec > >>>> >>> 1.3 > >>>> >>> jar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> commons-httpclient > >>>> >>> commons-httpclient > >>>> >>> 3.0 > >>>> >>> jar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> commons-fileupload > >>>> >>> commons-fileupload > >>>> >>> 1.0 > >>>> >>> jar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> /CODERESEARCH.client/ei-service > >>>> >>> > >>>> >>> > >>>> >>> jdbc/default > >>>> >>> jdbc/default > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> and the web.xml: > >>>> >>> > >>>> >>> > >>>> >>> >>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >>>> >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >>>> >>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > >>>> >>> version="2.4"> > >>>> >>> > >>>> >>> > >>>> >>> MainServlet > >>>> >>> MainServlet > >>>> >>> > >>>> >>> > >>>> com.coderesearch.abp.found.srv.MainServlet > >>>> > >>>> >>> > >>>> >>> 1 > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> MainServlet > >>>> >>> /* > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> server/ServerType > >>>> >>> java.lang.String > >>>> >>> Geronimo/Jetty > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> jdbc/default > >>>> >>> javax.sql.DataSource > >>>> >>> Container > >>>> >>> Shareable > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> and the db deploy plan: > >>>> >>> > >>>> >>> > >>>> >>> >>>> xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1"> > >>>> >>> >>>> >>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> > >>>> >>> > >>>> >>> coderesearch-jdbc > >>>> >>> ei-service-default > >>>> >>> 2.3 > >>>> >>> rar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> postgresql > >>>> >>> postgresql > >>>> >>> 8.1.jdbc3 > >>>> >>> jar > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> javax.sql.DataSource > >>>> > >>>> >>> > >>>> >>> > >>>> >>> jdbc/default > >>>> >>> >>>> >>> name="UserName">admin > >>>> >>> >>>> >>> name="Password">master > >>>> >>> >>>> >>> name="Driver">org.postgresql.Driver > >>>> >>> >>>> >>> > >>>> name="ConnectionURL">jdbc:postgresql://localhost:5432/eiservice > >>>> > >>>> >>> > >>>> >>> >>>> >>> name="CommitBeforeAutocommit">true > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> 10 > >>>> >>> 5 > >>>> >>> > >>>> 60000 > >>>> >>> > >>>> >>> 60 > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >> > >>>> >> > >>>> > > >>>> > >>> > >> > > >