geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject Re: J2EE application client in geronimo 2.0.2
Date Fri, 21 Dec 2007 17:47:15 GMT
The manifest file is missing the new line characters at the end of the
Main-Class attribute. Add a new empty line to your manifest file
(after main-class) attribute and this should be working.

Jarek

On Dec 21, 2007 1:54 AM, ivanrc <iriano@indra.es> wrote:
>
> I has tried with deploy.bat and it happen the same
>
> D:\temp\ejb3\geronimo_client>%GERONIMO_HOME%\bin\deploy deploy
> app_client.jar
> GERONIMO_OPTS=
> JAVA_OPTS=
> Using GERONIMO_BASE:   D:\geronimo-tomcat6-jee5-2.0.2
> Using GERONIMO_HOME:   D:\geronimo-tomcat6-jee5-2.0.2
> Using GERONIMO_TMPDIR: var\temp
> Using JRE_HOME:        C:\Archivos de programa\Java\jdk1.5.0_07\\jre
> Username: system
> Password: ******* http://www.nabble.com/file/p14451227/app_client.jar
> app_client.jar
>     Error: Unable to distribute app_client.jar: Cannot deploy the
>     requested application module because no deployer is able to handle
>     it.  This can happen if you have omitted the J2EE deployment
>     descriptor, disabled a deployer module, or if, for example, you are
>     trying to deploy an EJB module on a minimal Geronimo server that
>     does not have EJB support installed.
>
> (moduleFile=D:\geronimo-tomcat6-jee5-2.0.2\servers\node1\var\temp\geronimo-d
> eployer42380.tmpdir\app_client.jar)
>
> Can you try a little example in your geronimo 2.0.2?
>
>
>
> prasad wrote:
> >
> > My first guess is that the deploy tool could be broken. The client
> > jars in the webservices-testsuite are deployed with the help of
> > geronimo-maven-plugin:deploy-module.
> >
> > Just for kicks, can you please try using the deploy.bat ?
> >
> > Cheers
> > Prasad
> >
> > On Dec 20, 2007 11:24 AM, ivanrc <iriano@indra.es> wrote:
> >>
> >> I´m has created application client with that deployment descriptors
> >> (geronimo-application-client.xml and application-client.xml)   but when I
> >> deploy it, I obtain this error:
> >>
> >> D:\temp\ejb3\geronimo_client>java -jar
> >> D:\geronimo-tomcat6-jee5-2.0.2/bin/deploy
> >> er.jar --user system --password manager --host localhost --port 1099
> >> deploy
> >> app_
> >> client.jar
> >>     Error: Unable to distribute app_client.jar: Cannot deploy the
> >>     requested application module because no deployer is able to handle
> >>     it.  This can happen if you have omitted the J2EE deployment
> >>     descriptor, disabled a deployer module, or if, for example, you are
> >>     trying to deploy an EJB module on a minimal Geronimo server that
> >>     does not have EJB support installed.
> >>
> >> (moduleFile=D:\geronimo-tomcat6-jee5-2.0.2\servers\node1\var\temp\geronimo-d
> >> eployer42379.tmpdir\app_client.jar)
> >>
> >> D:\temp\ejb3\geronimo_client>pause
> >> Presione una tecla para continuar . . .
> >>
> >>
> >> Do you know what is the problem?
> >>
> >> My jar is named app_client.jar and it contains..
> >>
> >>  - client/MainClient.class that contains main static method
> >>
> >>  - META-INF/application-client.xml:
> >>
> >> <?xml version="1.0"?>
> >> <application-client xmlns="http://java.sun.com/xml/ns/j2ee"
> >>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >> http://java.sun.com/xml/ns/j2ee/applicationclient_1_4.xsd"
> >>     version="1.4">
> >>
> >>     <display-name>JAXB Client</display-name>
> >>
> >> </application-client>
> >>
> >> - META-INF/geronimo-application-client.xml:
> >>
> >> <?xml version="1.0"?>
> >> <application-client
> >>    xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-client-1.2"
> >>    xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> >>
> >>    <dep:client-environment>
> >>     <dep:moduleId>
> >>       <dep:groupId>JEE5</dep:groupId>
> >>       <dep:artifactId>JAXBClient</dep:artifactId>
> >>       <dep:version>1.1</dep:version>
> >>       <dep:type>car</dep:type>
> >>     </dep:moduleId>
> >>    </dep:client-environment>
> >>
> >>    <dep:server-environment>
> >>     <dep:moduleId>
> >>       <dep:groupId>JEE5</dep:groupId>
> >>       <dep:artifactId>JAXBClientServer</dep:artifactId>
> >>       <dep:version>1.1</dep:version>
> >>       <dep:type>car</dep:type>
> >>     </dep:moduleId>
> >>    </dep:server-environment>
> >>
> >> </application-client>
> >>
> >> - META-INF/MANIFEST.MF contains: Main-Class: client.MainClient
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> prasad wrote:
> >> >
> >> > Most of the tests in the webservices-testsuite have a client piece in
> >> > it. You will find simple examples of the plan there.
> >> >
> >> >
> >> http://svn.apache.org/repos/asf/geronimo/server/branches/2.0/testsuite/webservices-testsuite/
> >> >
> >> > Cheers
> >> > Prasad
> >> >
> >> > On Dec 20, 2007 6:33 AM, ivanrc <iriano@indra.es> wrote:
> >> >>
> >> >> Hello,
> >> >>
> >> >>  Can I deploy J2EE 5 application client in geronimo 2.0.2?. there is
> >> no
> >> >> way
> >> >> to do it work!. The previous versions of application-client.xml and
> >> >> geronimo-application-client.xml for geronimo 1.1 don´t work in
> >> geronimo
> >> >> 2.0.2.
> >> >>
> >> >>  Please write me down some examples of application-client.xml and
> >> >> geronimo-application-client.xml.
> >> >>
> >> >> Thanks.
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/J2EE-application-client-in-geronimo-2.0.2-tp14434684s134p14434684.html
> >> >> Sent from the Apache Geronimo - Dev mailing list archive at
> >> Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/J2EE-application-client-in-geronimo-2.0.2-tp14434684s134p14439820.html
> >>
> >> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/J2EE-application-client-in-geronimo-2.0.2-tp14434684s134p14451227.html
>
> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
>
>

Mime
View raw message