geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanchana Welagedara" <kancha...@gmail.com>
Subject Deploying MDB on GeronimoV1.1
Date Fri, 21 Jul 2006 14:46:30 GMT
Hi

I'm trying to deploy a MDB with Geronimov1.1.Folloing are the deployment
descriptors I used.

--------------------------------------------------------------
ejb-jar.xml------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
    <enterprise-beans>
        <session>
            <display-name>
                Goods Stateless Session Bean Local Interfaces
            </display-name>
            <ejb-name>GoodsEJB</ejb-name>
            <local-home>
                org.apache.geronimo.sample.product.ejb.GoodsHomeLocal
            </local-home>
            <local>
                org.apache.geronimo.sample.product.ejb.GoodsLocal
            </local>
            <ejb-class>
                org.apache.geronimo.sample.product.ejb.GoodBean
            </ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
        </session>
<message-driven>
            <display-name>Goods MDB</display-name>
            <ejb-name>GoodsMDB</ejb-name>
            <ejb-class>org.apache.geronimo.sample.product.msg.GoodsMDB
</ejb-class>
            <messaging-type>javax.jms.MessageListener</messaging-type>
            <transaction-type>Container</transaction-type>
            <activation-config>
                <activation-config-property>

<activation-config-property-name>destination</activation-config-property-name>

<activation-config-property-value>SendReceiveQueue</activation-config-property-value>
                </activation-config-property>
                <activation-config-property>

<activation-config-property-name>destinationType</activation-config-property-name>
                    <activation-config-property-value>javax.jms.Queue
</activation-config-property-value>
                </activation-config-property>
            </activation-config>
            <ejb-ref>
            <ejb-ref-name>ejb/GoodsHomeLocal</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <home>org.apache.geronimo.sample.product.ejb.GoodsLocalHome
</home>
            <remote>org.apache.geronimo.sample.product.ejb.Goods</remote>
            </ejb-ref>
        </message-driven>

     </enterprise-beans>
</ejb-jar>
----------------------------------------------------------------------------------end
of ejb-jar.xml------------------------------------------------------

for this ejb-jar.xml the eclipse complains "The content of element type
"message-driven" must match
"(description?,display-name?,small-icon?,large-icon?,ejb-name,ejb-class,transaction-type,message-selector?,acknowledge-mode?,message-driven-destination?,env-entry*,ejb-ref*,ejb-local-ref*,security-identity?,resource-ref*,resource-env-ref*)".
ejb-jar.xml    Products/build/classes    line 31    July 20, 2006 1:15:52
    1462"


------------------------------------------------------------------------------
openejb.jar-----------------------------------------------------------------

<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
  <dep:environment xmlns:dep="
http://geronimo.apache.org/xml/ns/deployment-1.1">
    <dep:moduleId>
      <dep:groupId>org.apache.geronimo.sample.product</dep:groupId>
      <dep:artifactId>ejb</dep:artifactId>
      <!--<dep:version>1-default</dep:version>-->
      <!--<dep:type>car</dep:type>-->
    </dep:moduleId>
    <dep:dependencies>
      <dep:dependency>
        <dep:groupId>org.apache.geronimo.specs.geronimo-jms_1.1_spec
</dep:groupId>
        <dep:artifactId>1.0</dep:artifactId>

      </dep:dependency>
    </dep:dependencies>
    <dep:hidden-classes/>
    <dep:non-overridable-classes/>
  </dep:environment>
  <enterprise-beans>
    <message-driven>
      <ejb-name>GoodsMDB</ejb-name>
      <resource-adapter>
        <resource-link>ActiveMQ RA</resource-link>
      </resource-adapter>
    </message-driven>
  </enterprise-beans>
</openejb-jar>
------------------------------------------------------End of
openejb.xml-------------------------------------------------------------------------------
I deployed the created on Geronimo console and I got the following error....


Unable to create configuration for deployment
org.apache.geronimo.common.DeploymentException: Unable to create
configuration for deployment
	at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:116)
	at org.apache.geronimo.deployment.DeploymentContext.<init>(DeploymentContext.java:96)
	at org.apache.geronimo.deployment.DeploymentContext.<init>(DeploymentContext.java:78)
	at org.apache.geronimo.j2ee.deployment.EARContext.<init>(EARContext.java:70)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:446)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$e3d095d4.buildConfiguration(<generated>)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
	at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106)
	at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
	at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.geronimo.kernel.config.LifecycleException: load
of org.apache.geronimo.sample.product/ejb/1153492888730/jar failed
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:279)
	at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:266)
	at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111)
	at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:113)
	... 24 more
Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException:
Unable to resolve dependency
org.apache.geronimo.specs.geronimo-jms_1.1_spec./1.0//
	at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:119)
	at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:98)
	at org.apache.geronimo.kernel.repository.DefaultArtifactResolver$$FastClassByCGLIB$$e847b746.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.kernel.repository.ArtifactResolver$$EnhancerByCGLIB$$8e854b59.resolveInClassLoader(<generated>)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:451)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:410)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:276)
	... 28 more

can any one help me on this please?

Regards
Kanchana

Mime
View raw message