David Jencks wrote:
What happens if you change both this and the moduleId in the rar plan to type car?
      <dep:dependency>
        <dep:groupId>coderesearch-jdbc</dep:groupId>
        <dep:artifactId>ei-service-default</dep:artifactId>
        <dep:version>2.3</dep:version>
        <dep:type>rar</dep:type>
      </dep:dependency>

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:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1";
  xmlns:naming="http://geronimo.apache.org/xml/ns/naming";>

<dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
    <dep:moduleId>
      <dep:groupId>coderesearch</dep:groupId>
      <dep:artifactId>ei-service</dep:artifactId>
      <dep:version>2.3</dep:version>
      <dep:type>war</dep:type>
    </dep:moduleId>

    <dep:dependencies>
      <dep:dependency>
        <dep:groupId>coderesearch</dep:groupId>
        <dep:artifactId>ei-service</dep:artifactId>
        <dep:version>2.3</dep:version>
        <dep:type>car</dep:type>
      </dep:dependency>

      <dep:dependency>
        <dep:groupId>coderesearch-jdbc</dep:groupId>
        <dep:artifactId>ei-service-default</dep:artifactId>
        <dep:version>2.3</dep:version>
        <dep:type>rar</dep:type>
      </dep:dependency>

      <dep:dependency>
        <dep:groupId>commons-email</dep:groupId>
        <dep:artifactId>commons-email</dep:artifactId>
        <dep:version>1.0</dep:version>
        <dep:type>jar</dep:type>
      </dep:dependency>

      <dep:dependency>
        <dep:groupId>commons-codec</dep:groupId>
        <dep:artifactId>commons-codec</dep:artifactId>
        <dep:version>1.3</dep:version>
        <dep:type>jar</dep:type>
      </dep:dependency>

      <dep:dependency>
        <dep:groupId>commons-httpclient</dep:groupId>
        <dep:artifactId>commons-httpclient</dep:artifactId>
        <dep:version>3.0</dep:version>
        <dep:type>jar</dep:type>
      </dep:dependency>

      <dep:dependency>
        <dep:groupId>commons-fileupload</dep:groupId>
        <dep:artifactId>commons-fileupload</dep:artifactId>
        <dep:version>1.0</dep:version>
        <dep:type>jar</dep:type>
      </dep:dependency>
    </dep:dependencies>

    <dep:hidden-classes/>
    <dep:non-overridable-classes/>

  </dep:environment>

  <context-root>/CODERESEARCH.client/ei-service</context-root>

  <naming:resource-ref>
    <naming:ref-name>jdbc/default</naming:ref-name>
    <naming:resource-link>jdbc/default</naming:resource-link>
  </naming:resource-ref>

</web-app>



and the web.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
         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">

  <servlet>
    <display-name>MainServlet</display-name>
    <servlet-name>MainServlet</servlet-name>
<servlet-class>com.coderesearch.abp.found.srv.MainServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>MainServlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

  <env-entry>
    <env-entry-name>server/ServerType</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>Geronimo/Jetty</env-entry-value>
  </env-entry>

  <resource-ref>
    <res-ref-name>jdbc/default</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
  </resource-ref>

</web-app>


and the db deploy plan:

<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1";>
<dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
        <dep:moduleId>
            <dep:groupId>coderesearch-jdbc</dep:groupId>
            <dep:artifactId>ei-service-default</dep:artifactId>
            <dep:version>2.3</dep:version>
            <dep:type>rar</dep:type>
        </dep:moduleId>
        <dep:dependencies>
            <dep:dependency>
                <dep:groupId>postgresql</dep:groupId>
                <dep:artifactId>postgresql</dep:artifactId>
                <dep:version>8.1.jdbc3</dep:version>
                <dep:type>jar</dep:type>
            </dep:dependency>
        </dep:dependencies>
    </dep:environment>

    <resourceadapter>
        <outbound-resourceadapter>
            <connection-definition>
<connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
                <connectiondefinition-instance>
                    <name>jdbc/default</name>
<config-property-setting name="UserName">admin</config-property-setting> <config-property-setting name="Password">master</config-property-setting> <config-property-setting name="Driver">org.postgresql.Driver</config-property-setting> <config-property-setting name="ConnectionURL">jdbc:postgresql://localhost:5432/eiservice</config-property-setting> <config-property-setting name="CommitBeforeAutocommit">true</config-property-setting>
                    <connectionmanager>
                        <local-transaction/>
                        <single-pool>
                            <max-size>10</max-size>
                            <min-size>5</min-size>
<blocking-timeout-milliseconds>60000</blocking-timeout-milliseconds>
<idle-timeout-minutes>60</idle-timeout-minutes>
                            <match-one/>
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
            </connection-definition>
        </outbound-resourceadapter>
    </resourceadapter>
</connector>


Reply via email to