Hi Aaron
On 7/2/06, Aaron Mulder <[EMAIL PROTECTED]> wrote:
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.
I still I'm struggling to build my application using maven.I manually
copied the Geronimo V1.1 pluggin to Maven/plugins in my local which is
geronimo-deployment-1.1-SNAPSHOT.jar .Also I have copied
xdoclet-1.2.1.jar and
xdoclet-xdoclet-module-1.2.1.jar jars in to my maven/pluggin manually
But still it complains about those jars.
-----------------------------------------------------------------------------------------------------------------------------------
kanchi:/home/kanchana/workspace/AddressBook# maven
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
Tag library requested that is not present: 'geronimo:deploy' in plugin: 'null'
Tag library requested that is not present: 'maven' in plugin:
'maven-xdoclet-plugin-1.2.1'
Attempting to download xdoclet-1.2.1.jar.
WARNING: Failed to download xdoclet-1.2.1.jar.
Attempting to download xdoclet-xdoclet-module-1.2.1.jar.
WARNING: Failed to download xdoclet-xdoclet-module-1.2.1.jar.
BUILD FAILED
File...... /home/kanchana/workspace/AddressBook/maven.xml
Element... attainGoal
Line...... 26
Column.... 47
The build cannot continue because of the following unsatisfied dependencies:
xdoclet-1.2.1.jar
xdoclet-xdoclet-module-1.2.1.jar
Total time: 36 seconds
Finished at: Tue Jul 04 21:25:24 LKT 2006
---------------------------------------------------------------------------------------------------------------------------------
I know this can be problem of inaviliability maven default
repositories when i build on line.But I'm not sure what's the complain
about the "Tag library requested that is not present:
'geronimo:deploy' in plugin: 'null' " Dose this probably say some
thing about new pox.xml for geronimo v1.1?
I'm wokring on the deployment plan for Geronimo1.1 and writing some
completed sample to play out.Therefore I have come up this
geronimo-appilcation.xml as follows.Would you mind of comment on it?
<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:module>
<dep:groupId>src</dep:groupId>
<dep:artifactId>org/apache/geronimo/sample/AddressBook</dep:artifactId>
<!--<dep:version>1.1</dep:version>-->
</dep:module>
<dep:connector>tranql-connector-1.1.rar</dep:connector>
<dep:alt-dd>mysql-plan.xml</dep:alt-dd>
</dep:environment>
</application>
I installed the mysql pluggin using the Geronimo consol . When I try
to deploy the mysql-plan.xml it throws me an error
command used to deploy the plan>
java -jar deployer.jar deploy <app-home>/resources/ear/mysql-plan.xml
<<geronimo-home>/repository/tranql/tranql-connector/1.1/tranql-connector-1.1.rar
and the error:
--------------------------------------------------------------------------------------------------------------------------------------
Username: system
Password:
Error: Unable to distribute tranql-connector-1.1.rar: Unable to
create configuration for deployment
load of default/tranql-connector-1.1.rar/1152028105241/rar failed
Unable to resolve dependency
/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar//
--------------------------------------------------------------------------------------------------------------------------------------
Please kindly share any thoughts if you come across.
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
Thanks
Kanchana
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
>