Hi, You can have a look at the samples available with G documentation. http://cwiki.apache.org/GMOxDOC20/sample-applications.html- G 2.0.x http://cwiki.apache.org/GMOxDOC21/sample-applications.html- G 2.1
Thanks Ashish On Wed, Mar 26, 2008 at 6:24 PM, newbie-gero <[EMAIL PROTECTED]> wrote: > > Hi, > Thanks for the reply. > I have read the documentation. I think i require the > geronimo-application.xml to replace my existing application.xml file. > However in the documentation, the writing of geronimo-application.xml is > not > available. > > Where can i get an example of this file? > > Thanks > > > manucet wrote: > > > > Hi, > > I believe that your application.xml does not conform to the > > schema. The error message you get is exactly that i.e. you cannot have > > a resource-ref element inside the application.xml > > The documentation for Geronimo is at the URL > > http://geronimo.apache.org/documentation.html. I advise you to read it > > first .It has examples on many types of j2ee/jee applications. You may > > need to create geronimo specific deployment plans too in addition to > > correcting your application.xml > > > > Regards > > Manu > > > > On Tue, Mar 25, 2008 at 3:12 PM, newbie-gero <[EMAIL PROTECTED]> > wrote: > >> > >> Hi lists, > >> I have deploy my EJB on Geronimo but it gives out errors. My program > has > >> been tested on other application server and it is working fine. > >> > >> I have upload my codes here > >> http://www.nabble.com/file/p16272291/MusicApp.ear MusicApp.ear > >> > >> This is the error it displays: > >> Error: Unable to distribute MusicApp.ear: Could not parse > >> application.xml > >> > >> Invalid deployment descriptor: errors: > >> > >> error: cvc-complex-type.2.4a: Expected element > >> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' instead of > >> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' here in element > >> [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee > >> > >> > >> Descriptor: > >> > >> <application xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > >> http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> xmlns="http://java.sun.com/xml/ns/javaee"> > >> > >> <description>Application description</description> > >> > >> <display-name>MusicDAOApp</display-name> > >> > >> <resource-ref> > >> > >> <res-ref-name>jdbc/MusicDB</res-ref-name> > >> > >> <jndi-name>java:/jdbc/MusicDB</jndi-name> > >> > >> </resource-ref> > >> > >> <module> > >> > >> <web> > >> > >> <web-uri>war-ic.war</web-uri> > >> > >> <context-root>music</context-root> > >> > >> </web> > >> > >> </module> > >> > >> <module> > >> > >> <ejb>ejb-jar-ic.jar</ejb> > >> > >> </module> > >> > >> <!--<module> > >> > >> <java>app-client-ic.jar</java> > >> > >> </module>--> > >> > >> </application> > >> > >> Thanks > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16272291.html > >> Sent from the Apache Geronimo - Users mailing list archive at > >> Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16300799.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >
