geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivanrc <iri...@indra.es>
Subject Re: J2EE application client in geronimo 2.0.2
Date Wed, 02 Jan 2008 08:50:02 GMT

Hello,

 I have been on holidays. I managed to deploy the J2EE application client in
geronimo 2.0.2 that I attach (source and jar file: 
http://www.nabble.com/file/p14575164/geronimo_client.zip geronimo_client.zip
) after add  the black line at the end of the manifest file.

D:\temp\ejb3\geronimo_client>java -jar
D:\geronimo-tomcat6-jee5-2.0.2/bin/deploy
er.jar --user system --password manager deploy app_client.jar
    Completed with id JEE5/EXAMPLEClientServer/1.1/car
    Deployed JEE5/EXAMPLEClientServer/1.1/car to
   
repositories/repository_node1/1.0/car?ServiceModule=repositories/repository_
node1/1.0/car,j2eeType=ConfigurationStore,name=Local2

In applications-> AppClients in Apache geronimo web console now appear two
components (I have added a capture into the attach file):

 JEE5/EXAMPLEClient/1.1/car    	            stopped
 JEE5/EXAMPLEClientServer/1.1/car    	 running

Now I have this problem when try to running JEE5/EXAMPLEClient/1.1/car with
this command:

java -jar %GERONIMO_HOME%/bin/client.jar JEE5/EXAMPLEClient/1.1/car

I obtain this exception (NoSuchConfigException: JEE5/EXAMPLE
Client/1.1/car) by console:

D:\temp\ejb3\geronimo_client>java -jar
D:\geronimo-tomcat6-jee5-2.0.2/bin/client
.jar JEE5/EXAMPLEClient/1.1/car
09:17:49,921 INFO  [Log4jService]
----------------------------------------------

09:17:49,968 INFO  [Log4jService] Started Logging Service
09:17:49,984 INFO  [Log4jService] Runtime Information:
09:17:49,984 INFO  [Log4jService]   Install Directory =
D:\geronimo-tomcat6-jee5
-2.0.2
09:17:49,984 INFO  [Log4jService]   JVM in use = Sun Microsystems Inc. Java
1.6.
0_01
09:17:49,984 INFO  [Log4jService] Java Information:
09:17:49,984 INFO  [Log4jService]   System property [java.runtime.name]  =
Java(
TM) SE Runtime Environment
09:17:49,984 INFO  [Log4jService]   System property [java.runtime.version] 
= 1.
6.0_01-b06
09:17:49,984 INFO  [Log4jService]   System property [os.name]             =
Wind
ows 2000
09:17:49,984 INFO  [Log4jService]   System property [os.version]          =
5.0
09:17:50,000 INFO  [Log4jService]   System property [sun.os.patch.level]  =
Serv
ice Pack 4
09:17:50,000 INFO  [Log4jService]   System property [os.arch]             =
x86
09:17:50,000 INFO  [Log4jService]   System property [java.class.version]  =
50.0

09:17:50,000 INFO  [Log4jService]   System property [locale]              =
es_E
S
09:17:50,000 INFO  [Log4jService]   System property [unicode.encoding]    =
Unic
odeLittle
09:17:50,000 INFO  [Log4jService]   System property [file.encoding]       =
Cp12
52
09:17:50,000 INFO  [Log4jService]   System property [java.vm.name]        =
Java
 HotSpot(TM) Client VM
09:17:50,000 INFO  [Log4jService]   System property [java.vm.vendor]      =
Sun
Microsystems Inc.
09:17:50,000 INFO  [Log4jService]   System property [java.vm.version]     =
1.6.
0_01-b06
09:17:50,000 INFO  [Log4jService]   System property [java.vm.info]        =
mixe
d mode, sharing
09:17:50,000 INFO  [Log4jService]   System property [java.home]           =
C:\A
rchivos de programa\Java\jre1.6.0_01
09:17:50,000 INFO  [Log4jService]   System property [java.classpath]      =
null

09:17:50,000 INFO  [Log4jService]   System property [java.library.path]   =
C:\W
INNT\system32;.;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system
32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Orawin95;C:\Orawin95\Bin;D:\ARCHIV~1\ULTRA
E~1;D:\Archivos de
programa\Rational\ClearQuest;D:\dev\software\TIBCO\TIBRV\BIN;
C:\Archivos de programa\SecureCRT 3.0;D:\oracle\bin;C:\Archivos de
programa\GNU\
WinCvs 1.3\CVSNT;D:\Archivos de programa\MySQL\MySQL Server
4.1\bin;D:\TIBCO\TIB
RV\BIN;D:\Dev-Cpp\bin;D:\workspace\JNItest\compile;D:\Archivos de
programa\maven
-2.0.6\bin;D:\ARCHIV~1\IDMCOM~1\ULTRAE~1;C:\Archivos de
programa\Java\jdk1.5.0_0
7\bin;D:\OpenSSL\bin;C:\Archivos de programa\Microsoft SQL
Server\90\Tools\binn\
;D:\Archivos de
programa\apache-ant-1.7.0\bin;D:\db-derby-10.3.1.4-bin\bin;C:\OR
AWIN95\BIN;
09:17:50,031 INFO  [Log4jService]   System property [java.endorsed.dirs]  =
C:\A
rchivos de programa\Java\jre1.6.0_01\lib\endorsed
09:17:50,046 INFO  [Log4jService]   System property [java.ext.dirs]       =
C:\A
rchivos de programa\Java\jre1.6.0_01\lib\ext;C:\WINNT\Sun\Java\lib\ext
09:17:50,046 INFO  [Log4jService]   System property [sun.boot.class.path] =
C:\A
rchivos de programa\Java\jre1.6.0_01\lib\resources.jar;C:\Archivos de
programa\J
ava\jre1.6.0_01\lib\rt.jar;C:\Archivos de
programa\Java\jre1.6.0_01\lib\sunrsasi
gn.jar;C:\Archivos de programa\Java\jre1.6.0_01\lib\jsse.jar;C:\Archivos de
prog
rama\Java\jre1.6.0_01\lib\jce.jar;C:\Archivos de
programa\Java\jre1.6.0_01\lib\c
harsets.jar;C:\Archivos de programa\Java\jre1.6.0_01\classes
09:17:50,078 INFO  [Log4jService]
----------------------------------------------

org.apache.geronimo.kernel.config.LifecycleException: load of
JEE5/EXAMPLEClient
/1.1/car failed
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:274)
        at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
        at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:830)
        at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
7)
        at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
ionInvoker.java:35)
        at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
xyMethodInterceptor.java:96)
        at
org.apache.geronimo.system.main.CommandLine.loadConfigurations(Comman
dLine.java:187)
        at
org.apache.geronimo.system.main.CommandLine.invokeMainGBean(CommandLi
ne.java:98)
        at
org.apache.geronimo.system.main.ClientCommandLine.startClient(ClientC
ommandLine.java:77)
        at
org.apache.geronimo.system.main.ClientCommandLine.execute(ClientComma
ndLine.java:63)
        at
org.apache.geronimo.system.main.EmbeddedClientCommandLine.execute(Emb
eddedClientCommandLine.java:43)
        at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(Ma
inConfigurationBootstrapper.java:45)
        at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
        at org.apache.geronimo.cli.client.ClientCLI.main(ClientCLI.java:30)
Caused by: org.apache.geronimo.kernel.config.NoSuchConfigException:
JEE5/EXAMPLE
Client/1.1/car
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
igurationData(SimpleConfigurationManager.java:457)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
iguration(SimpleConfigurationManager.java:271)
        ... 14 more



How can I solve it?. Other question is if I can run a remote client ussing
client.jar setting host, port, user and passwd as we do with deploy command.
Thanks.








Jarek Gawor-2 wrote:
> 
> 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.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/J2EE-application-client-in-geronimo-2.0.2-tp14434684s134p14575164.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.


Mime
View raw message