I am not familiar with the sample app you are working from.... let me check that I've guessed a couple things correctly...
- you are using geronimo 2.0-M6
- you are deploying an ear that contains a war and a rar
- the rar is providing the jms stuff the war needs

In this case you should remove
        <dep:dependency>
       <dep:groupId>org.apache.geronimo.samples</dep:groupId>
       <dep:artifactId>jms-resources</dep:artifactId>
       <dep:version>1.2</dep:version>
       <dep:type>rar</dep:type>
    </dep:dependency>
from geroniimo-web.xml since it is trying to refer to the rar that is packed in the same ear already.

You can also remove
        <dep:dependency>
           <dep:groupId>org.apache.geronimo.configs</dep:groupId>
           <dep:artifactId>activemq-broker</dep:artifactId>
           <dep:type>car</dep:type>
    </dep:dependency>
from geronimo-web.xml since that is already a dependency of the rar deployment.

It is certainly not required, but I find it simpler to manage a single plan than many plans, one in each javaee module, so I would put the geronimo-web.xml into the geronimo-application.xml

Hope this is relevant :-)

david jencks

On Jul 9, 2007, at 3:27 AM, Xiao-fei Song wrote:


Hi,

I just made an application by referencing the sample app at
http://cwiki.apache.org/GMOxDOC20/jms-and-mdb-sample- application.html. After
I deploy the ear I got:

    Error: Unable to distribute TennisLeague.ear: Unable to create
    configuration for deployment

        load of
org.apache.geronimo.samples/TennisLeague_TennisLeague-war.war/ 2.0-M6/car
    failed

        Error starting configuration gbean
org.apache.geronimo.samples/TennisLeague_TennisLeague-war.war/ 2.0-M6/car

        Unable to resolve dependency
    org.apache.geronimo.samples/jms-resources/1.2/rar

And my geronimo-web.xml looks as below:

<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1";
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";>
  <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
    <dep:moduleId>
      <dep:groupId>org.apache.geronimo.samples.order</dep:groupId>
      <dep:artifactId>TennisLeagueWeb</dep:artifactId>
      <dep:version>1.2</dep:version>
      <dep:type>car</dep:type>
    </dep:moduleId>
    <dep:dependencies>
        <dep:dependency>
           <dep:groupId>org.apache.geronimo.configs</dep:groupId>
           <dep:artifactId>activemq-broker</dep:artifactId>
           <dep:type>car</dep:type>
    </dep:dependency>
        <dep:dependency>
       <dep:groupId>org.apache.geronimo.samples</dep:groupId>
       <dep:artifactId>jms-resources</dep:artifactId>
       <dep:version>1.2</dep:version>
       <dep:type>rar</dep:type>
    </dep:dependency>
        </dep:dependencies>
    <dep:hidden-classes/>
    <dep:non-overridable-classes/>
  </dep:environment>
</web-app>

And my geronimo-application.xml is:

<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/ application-1.1">
  <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
    <dep:moduleId>
      <dep:groupId>org.apache.geronimo.samples</dep:groupId>
      <dep:artifactId>TennisLeague</dep:artifactId>
      <dep:version>2.0-M6</dep:version>
      <dep:type>ear</dep:type>
    </dep:moduleId>
    <dep:dependencies/>
    <dep:hidden-classes/>
    <dep:non-overridable-classes/>
  </dep:environment>
 <module>
       <connector>geronimo-activemq-ra-2.0-M6.rar</connector>
        <connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
            <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
                <dep:moduleId>
<dep:groupId>org.apache.geronimo.samples</ dep:groupId>
                    <dep:artifactId>jms-resources</dep:artifactId>
                    <dep:version>1.2</dep:version>
                    <dep:type>rar</dep:type>
                </dep:moduleId>
                <dep:dependencies>
                    <dep:dependency>

<dep:groupId>org.apache.geronimo.configs</dep:groupId>
<dep:artifactId>activemq-broker</ dep:artifactId>
                        <dep:type>car</dep:type>
                    </dep:dependency>
                </dep:dependencies>
            </dep:environment>
            <resourceadapter>
                <resourceadapter-instance>

<resourceadapter-name>jms-resources</resourceadapter-name>
                    <nam:workmanager
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2";>
<nam:gbean-link>DefaultWorkManager</ nam:gbean-link>
                    </nam:workmanager>
                </resourceadapter-instance>
                <outbound-resourceadapter>
                    <connection-definition>

<connectionfactory-interface>javax.jms.ConnectionFactory</ connectionfactory-interface>
                        <connectiondefinition-instance>
                            <name>CommonConnectionFactory</name>

<implemented-interface>javax.jms.QueueConnectionFactory</ implemented-interface>

<implemented-interface>javax.jms.TopicConnectionFactory</ implemented-interface>
                            <connectionmanager>
                                <xa-transaction>
                                    <transaction-caching/>
                                </xa-transaction>
                                <single-pool>
                                    <match-one/>
                                </single-pool>
                            </connectionmanager>
                        </connectiondefinition-instance>
                    </connection-definition>
                </outbound-resourceadapter>
            </resourceadapter>
            <adminobject>

<adminobject-interface>javax.jms.Queue</adminobject-interface>

<adminobject-class>org.apache.activemq.command.ActiveMQQueue</ adminobject-class>
                <adminobject-instance>

<message-destination-name>OrderQueue</message-destination-name>
                    <config-property-setting
name="PhysicalName">OrderQueue</config-property-setting>
                </adminobject-instance>
            </adminobject>
            <adminobject>

<adminobject-interface>javax.jms.Topic</adminobject-interface>

<adminobject-class>org.apache.activemq.command.ActiveMQTopic</ adminobject-class>
                <adminobject-instance>

<message-destination-name>OrderTopic</message-destination-name>
                    <config-property-setting
name="PhysicalName">OrderTopic</config-property-setting>
                </adminobject-instance>
            </adminobject>
        </connector>
    </module>
</application>


Can someone please let me know anything I need to do to get depedency
org.apache.geronimo.samples/jms-resources/1.2/rar resolved?

Regards,
Chris
--
View this message in context: http://www.nabble.com/Unable-to- resolve-dependency-tf4047631s134.html#a11497165 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Reply via email to