You appear to have several problems:

1&2: No plans for Geronimo 1.1 should have a configId or parentId.  If
you're using an XML editor, it should tell you that these plans are
invalid -- be sure you've pointed your editor to the correct 1.1
schemas.  The configId and parentId (and a couple other things) are
replaced by a new environment element and its children.  This showed
up in both your plans.

3: The Maven error does not seem to be complaining about your plans,
it seems to be complaining that the Geronimo deployment plugin is not
installed.  You should make sure the latest Maven 1 Geronimo
deployment plugin is installed in your local Maven 1 repository.

Please write back if you need more detail.

Thanks,
   Aaron

On 7/1/06, Kanchana Welagedara <[EMAIL PROTECTED]> wrote:
Hi

I'm working on a simple sample J2EE application which contains
JSP,struts and ejb with mysql-plan.xml in Geronimo 1.1-jetty.I'm
trying to build the sample application using maven and I have attached
the maven.xml and build error bottom.


For the above application following are deployment plans I have used
with Geronimo V1.1

----------------------------------------------geronimo-application.xml-------------------------------------------------------
<application
       xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1";
configId="org/apache/geronimo/sample/AddressBook">
     <module>
     <connector>tranql-connector-1.1-SNAPSHOT.rar</connector>
     <alt-dd>mysql-plan.xml</alt-dd>
</module>
    </application>
---------------------------------------------------------------------------------------------------------------------------------------------
To Come up with the above geronimo-application.xml development plan i
refered the schema/ geronimo-application.xsd for GeronimoV1.1 But
there  I saw "atl-dd" definition mentioned as TODO.how  the Geeronimo
V1.1 development plan for EAR ( geronimo-application.xml)  different
from the one I came up or how I can improve this?
Can we use the configid in the top as I used?(In xml editor this is a
welformed and valid xml)

and the openejb.xml
------------------------------------------------
<?xml version="1.0"?>
<openejb-jar
    xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1";
    configId="org/apache/geronimo/sample/AddressBook/AddressbookEJB"
    parentId="MysqlDatabase">
    <cmp-connection-factory>
                <resource-link>MysqlDataSource</resource-link>
    </cmp-connection-factory>
    <enterprise-beans>
        <entity>
            <ejb-name>AddressBookkEntry</ejb-name>
            <jndi-name>AddressBookEntry</jndi-name>
            
<local-jndi-name>java:comp/env/ejb/AddressBookEntryLocal</local-jndi-name>
            <table-name>addressbook</table-name>
            <cmp-field-mapping>
                <cmp-field-name>name</cmp-field-name>
                <table-column>name</table-column>
            </cmp-field-mapping>
            <cmp-field-mapping>
                <cmp-field-name>address</cmp-field-name>
                <table-column>addressbook</table-column>
            </cmp-field-mapping>
        </entity>

                <session>
                        <ejb-name>AddressBookSession</ejb-name>
                        
<jndi-name>org.apache.geronimo.sample.AddressBook.ejb/AddressBookSessionBean/Home</jndi-name>
                        
<local-jndi-name>java:comp/env/ejb/AddressBookSessionLocal</local-jndi-name>
                </session>
    </enterprise-beans>
</openejb-jar>

-----------------------------------------------------------------------------------------------------------------------------------------
Here in my ebj classes i have used xdoclets heavily.And EGen has
generated most of the code for me.How the deployment plan of Geronimo
V1.1 for  JAR containing EJBs(openejb.xml) differ from the Geronimo
V1.0.Can we use the same deployment plan we used in Geronimo V1.0 by
updating the openejb-jar version
(xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1";)


Here is the maven.xml
----------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project default="deploy"
    xmlns:j="jelly:core"
    xmlns:u="jelly:util"
    xmlns:ant="jelly:ant"
        xmlns:deploy="geronimo:deploy"
        >

    <goal name="default" prereqs="ear"/>
    <goal name="build" prereqs="default"/>

    <goal name="rebuild" prereqs="clean,build"/>

    <goal name="ejb" prereqs="java:compile">
        <ant:jar destfile="target/${pom.artifactId}-ejb.jar">
            <fileset dir="target/classes">
                <exclude name="**/*Servlet.class"/>
                <exclude name="**/*Client.class"/>
            </fileset>
            <fileset dir="resources/ejb"/>
                        <fileset dir="target/xdoclet/ejb"/>
        </ant:jar>
    </goal>

    <preGoal name="java:compile">
        <attainGoal name="xdoclet:ejbdoclet"/>
    </preGoal>

    <preGoal name="war:init">
        <attainGoal name="xdoclet:webdoclet"/>
    </preGoal>

    <goal name="ear" prereqs="ejb,war:war">
        <ant:jar destfile="target/${pom.artifactId}.ear">
            <fileset dir="target">
                <include name="${pom.artifactId}-ejb.jar"/>
                <include name="${pom.artifactId}-client.jar"/>
                <include name="${pom.artifactId}.war"/>
            </fileset>
            <fileset dir="resources/ear"/>
        </ant:jar>
    </goal>

        <goal name="deploy" prereqs="ear,stop,start">
        </goal>

        <goal name="start">
        <deploy:distribute
            uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
            username="system"
            password="manager"
            home="${basedir}"
            module="target/${pom.artifactId}.ear"
            />
        <deploy:start
            uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
            username="system"
            password="manager"
            id="org/apache/geronimo/sample/AddressBook"/>
    </goal>

        <goal name="stop">
        <deploy:stop
            uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
            username="system"
            password="manager"
            id="org/apache/geronimo/sample/AddressBook"/>
        <ant:echo>undeploy</ant:echo>
        <deploy:undeploy
            uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
            username="system"
            password="manager"
            id="org/apache/geronimo/sample/AddressBook"/>
    </goal>

    <goal name="site">
            <ant:mkdir dir="target/docs"/>
    </goal>
</project>

When I run the maven build it complains about the "Tag library
requested that is not present: 'geronimo:deploy' in plugin: 'null' "

I really appreciate if somebody can share ideas regarding this
deployment plans in Geronimo V1.1

Thanks
Kanchana

Reply via email to