You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by ivanrc <ir...@indra.es> on 2007/12/20 12:33:06 UTC

J2EE application client in geronimo 2.0.2

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.


Re: J2EE application client in geronimo 2.0.2

Posted by David Jencks <da...@yahoo.com>.
I fixed this in 2.1, rev 616532.

thanks
david jencks

On Jan 3, 2008, at 10:03 AM, David Jencks wrote:

> This is a bug.  Running an app client should not change config.xml  
> in any way.  I opened GERONIMO-3729 to track this.
>
> Does anyone have an idea how to automate testing a fix for this?
>
> thanks
> david jencks
>
> On Jan 3, 2008, at 12:06 AM, ivanrc wrote:
>
>>
>> I added this property to java command and run well thanks :). But  
>> I have
>> other problem.
>>
>> I have change the main class to a thread that every second say  
>> "CLIENT
>> RUNNING..."
>>
>> import java.util.logging.Logger;
>>
>> public class MainClient extends Thread{
>>
>> 	private static MainClient client;
>> 	private static final Logger logger =
>> Logger.getLogger(MainClient.class.getName());
>>
>> 	/**
>> 	 * @param args
>> 	 */
>> 	public static void main(String[] args) {
>> 		System.out.println("CLIENT STARTING...");
>> 		logger.info("CLIENT STARTING...");
>> 		//client = new MainClient();
>> 		//client.start();
>> 		Thread t = new MainClient();
>> 		t.run();
>> 	}
>>
>> 	public synchronized void run() {
>> 		while(true){
>> 			System.out.println("CLIENT RUNNING...");
>> 			logger.info("CLIENT RUNNING...");
>> 			try {
>> 				wait(1000);
>> 			} catch (InterruptedException e) {
>> 				System.out.println("error waiting");
>> 			}
>> 		}
>> 	}
>>
>> }
>>
>>
>>
>>
>> When I run the application client with the command...
>>
>> set ENDORSE_DIR=%GERONIMO_HOME%/lib/endorsed
>> java -jar -Djava.endorsed.dirs=%ENDORSE_DIR% %GERONIMO_HOME%/bin/ 
>> client.jar
>> JEE5/EXAMPLEClient/1.1/car
>>
>> ... the EXAMPLEClient module is added to
>> %GERONIMO_HOME%/var/config/config.xml:
>>
>> <module name="JEE5/EXAMPLEClient/1.1/car"/>
>>
>> If I stop the command while it is running, this module disappears  
>> from
>> config.xml. The problem is that if I stop geronimo while the  
>> application
>> client command is running, the module JEE5/EXAMPLEClient/1.1/car  
>> doesn´t
>> dissapear from config.xml, and when I execute the geronimo  
>> startup.bat,
>> geronimo try to run  the JEE5/EXAMPLEClient/1.1/car module because  
>> it is
>> into config.xml. I obtain this error when geronimo startup try to run
>> JEE5/EXAMPLEClient/1.1/car module:
>>
>> Module 34/34 JEE5/EXAMPLEClient/1.1/car
>> 08:
>> 53:46,035 INFO  [Log4jService]
>> ----------------------------------------------
>> 08:53:46,050 INFO  [Log4jService] Started Logging Service
>> 08:53:46,050 INFO  [Log4jService] Runtime Information:
>> 08:53:46,066 INFO  [Log4jService]   Install Directory =
>> D:\geronimo-tomcat6-jee5
>> -2.0.2
>> 08:53:46,066 INFO  [Log4jService]   JVM in use = Sun Microsystems  
>> Inc. Java
>> 1.5.
>> 0_07
>> 08:53:46,082 INFO  [Log4jService] Java Information:
>> 08:53:46,082 INFO  [Log4jService]   System property  
>> [java.runtime.name]  =
>> Java(
>> TM) 2 Runtime Environment, Standard Edition
>> 08:53:46,097 INFO  [Log4jService]   System property  
>> [java.runtime.version]
>> = 1.
>> 5.0_07-b03
>> 08:53:46,113 INFO  [Log4jService]   System property  
>> [os.name]             =
>> Wind
>> ows 2000
>> 08:53:46,113 INFO  [Log4jService]   System property  
>> [os.version]          =
>> 5.0
>> 08:53:46,113 INFO  [Log4jService]   System property  
>> [sun.os.patch.level]  =
>> Serv
>> ice Pack 4
>> 08:53:46,129 INFO  [Log4jService]   System property  
>> [os.arch]             =
>> x86
>> 08:53:46,129 INFO  [Log4jService]   System property  
>> [java.class.version]  =
>> 49.0
>>
>> 08:53:46,144 INFO  [Log4jService]   System property  
>> [locale]              =
>> es_E
>> S
>> 08:53:46,160 INFO  [Log4jService]   System property  
>> [unicode.encoding]    =
>> Unic
>> odeLittle
>> 08:53:46,160 INFO  [Log4jService]   System property  
>> [file.encoding]       =
>> Cp12
>> 52
>> 08:53:46,175 INFO  [Log4jService]   System property  
>> [java.vm.name]        =
>> Java
>>  HotSpot(TM) Client VM
>> 08:53:46,191 INFO  [Log4jService]   System property  
>> [java.vm.vendor]      =
>> Sun
>> Microsystems Inc.
>> 08:53:46,191 INFO  [Log4jService]   System property  
>> [java.vm.version]     =
>> 1.5.
>> 0_07-b03
>> 08:53:46,207 INFO  [Log4jService]   System property  
>> [java.vm.info]        =
>> mixe
>> d mode
>> 08:53:46,207 INFO  [Log4jService]   System property  
>> [java.home]           =
>> C:\A
>> rchivos de programa\Java\jdk1.5.0_07\jre
>> 08:53:46,222 INFO  [Log4jService]   System property  
>> [java.classpath]      =
>> null
>>
>> 08:53:46,238 INFO  [Log4jService]   System property  
>> [java.library.path]   =
>> C:\A
>> rchivos de
>> programa\Java\jdk1.5.0_07\jre\bin;.;C:\WINNT\system32;C:\WINNT;C:\WIN
>> NT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Orawin95;C:\Orawin95 
>> \Bin;D:\ARCHI
>> V~1\ULTRAE~1;D:\Archivos de
>> programa\Rational\ClearQuest;D:\dev\software\TIBCO\T
>> IBRV\BIN;C:\Archivos de programa\SecureCRT 3.0;D:\oracle\bin;C: 
>> \Archivos de
>> prog
>> rama\GNU\WinCvs 1.3\CVSNT;D:\Archivos de programa\MySQL\MySQL Server
>> 4.1\bin;D:\
>> TIBCO\TIBRV\BIN;D:\Dev-Cpp\bin;D:\workspace\JNItest\compile;D: 
>> \Archivos de
>> progr
>> ama\maven-2.0.6\bin;D:\ARCHIV~1\IDMCOM~1\ULTRAE~1;C:\Archivos de
>> programa\Java\j
>> dk1.5.0_07\bin;D:\OpenSSL\bin;C:\Archivos de programa\Microsoft SQL
>> Server\90\To
>> ols\binn\;D:\Archivos de
>> programa\apache-ant-1.7.0\bin;D:\db-derby-10.3.1.4-bin\
>> bin;C:\ORAWIN95\BIN;
>> 08:53:46,285 INFO  [Log4jService]   System property  
>> [java.endorsed.dirs]  =
>> D:\g
>> eronimo-tomcat6-jee5-2.0.2\lib\endorsed;C:\Archivos de
>> programa\Java\jdk1.5.0_07
>> \\jre\lib\endorsed
>> 08:53:46,300 INFO  [Log4jService]   System property  
>> [java.ext.dirs]       =
>> C:\A
>> rchivos de programa\Java\jdk1.5.0_07\jre\lib\ext
>> 08:53:46,316 INFO  [Log4jService]   System property  
>> [sun.boot.class.path] =
>> D:\g
>> eronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-rmi-spec-1.0- 
>> incubating-r557035.jar
>> ;D:\geronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-spec-corba-1.0- 
>> incubating-r557
>> 035.jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\rt.jar;C: 
>> \Archivos
>> de p
>> rograma\Java\jdk1.5.0_07\jre\lib\i18n.jar;C:\Archivos de
>> programa\Java\jdk1.5.0_
>> 07\jre\lib\sunrsasign.jar;C:\Archivos de
>> programa\Java\jdk1.5.0_07\jre\lib\jsse.
>> jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\jce.jar;C: 
>> \Archivos de
>> prog
>> rama\Java\jdk1.5.0_07\jre\lib\charsets.jar;C:\Archivos de
>> programa\Java\jdk1.5.0
>> _07\jre\classes
>> 08:53:46,347 INFO  [Log4jService]
>> ----------------------------------------------
>>
>> Server Startup failed
>>
>> org.apache.geronimo.kernel.config.LifecycleException: start of
>> JEE5/EXAMPLEClien
>> t/1.1/car failed
>>         at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
>> figuration(SimpleConfigurationManager.java:547)
>>         at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
>> ssByCGLIB$$ce77a924.invoke(<generated>)
>>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>>         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.kernel.config.EditableConfigurationManager$$Enhan
>> cerByCGLIB$$5fa60d27.startConfiguration(<generated>)
>>         at
>> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaem
>> on.java:156)
>>         at
>> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon
>> .java:78)
>>         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.daemon.DaemonCLI.main 
>> (DaemonCLI.java:30)
>> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
>> org.apache.
>> geronimo.kernel.GBeanAlreadyExistsException: GBean already  
>> registered:
>> geronimo:
>> name=geronimo,j2eeType=J2EEServer
>>         at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
>> nGBeans(ConfigurationUtil.java:436)
>>         at
>> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
>> rnelConfigurationManager.java:187)
>>         at
>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
>> figuration(SimpleConfigurationManager.java:530)
>>         ... 14 more
>> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException:  
>> GBean
>> already
>>  registered: geronimo:name=geronimo,j2eeType=J2EEServer
>>         at
>> org.apache.geronimo.kernel.basic.BasicRegistry.register(BasicRegistry
>> .java:88)
>>         at
>> org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.ja
>> va:355)
>>         at
>> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
>> nGBeans(ConfigurationUtil.java:433)
>>         ... 16 more
>> 08:53:48,191 INFO  [MailGBean] JavaMail session unbound from
>> ger:/MailSession
>>
>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/J2EE- 
>> application-client-in-geronimo-2.0.2-tp14434684s134p14593296.html
>> Sent from the Apache Geronimo - Dev mailing list archive at  
>> Nabble.com.
>>
>


Re: J2EE application client in geronimo 2.0.2

Posted by David Jencks <da...@yahoo.com>.
This is a bug.  Running an app client should not change config.xml in  
any way.  I opened GERONIMO-3729 to track this.

Does anyone have an idea how to automate testing a fix for this?

thanks
david jencks

On Jan 3, 2008, at 12:06 AM, ivanrc wrote:

>
> I added this property to java command and run well thanks :). But I  
> have
> other problem.
>
> I have change the main class to a thread that every second say "CLIENT
> RUNNING..."
>
> import java.util.logging.Logger;
>
> public class MainClient extends Thread{
>
> 	private static MainClient client;
> 	private static final Logger logger =
> Logger.getLogger(MainClient.class.getName());
>
> 	/**
> 	 * @param args
> 	 */
> 	public static void main(String[] args) {
> 		System.out.println("CLIENT STARTING...");
> 		logger.info("CLIENT STARTING...");
> 		//client = new MainClient();
> 		//client.start();
> 		Thread t = new MainClient();
> 		t.run();
> 	}
>
> 	public synchronized void run() {
> 		while(true){
> 			System.out.println("CLIENT RUNNING...");
> 			logger.info("CLIENT RUNNING...");
> 			try {
> 				wait(1000);
> 			} catch (InterruptedException e) {
> 				System.out.println("error waiting");
> 			}
> 		}
> 	}
>
> }
>
>
>
>
> When I run the application client with the command...
>
> set ENDORSE_DIR=%GERONIMO_HOME%/lib/endorsed
> java -jar -Djava.endorsed.dirs=%ENDORSE_DIR% %GERONIMO_HOME%/bin/ 
> client.jar
> JEE5/EXAMPLEClient/1.1/car
>
> ... the EXAMPLEClient module is added to
> %GERONIMO_HOME%/var/config/config.xml:
>
> <module name="JEE5/EXAMPLEClient/1.1/car"/>
>
> If I stop the command while it is running, this module disappears from
> config.xml. The problem is that if I stop geronimo while the  
> application
> client command is running, the module JEE5/EXAMPLEClient/1.1/car  
> doesn´t
> dissapear from config.xml, and when I execute the geronimo  
> startup.bat,
> geronimo try to run  the JEE5/EXAMPLEClient/1.1/car module because  
> it is
> into config.xml. I obtain this error when geronimo startup try to run
> JEE5/EXAMPLEClient/1.1/car module:
>
> Module 34/34 JEE5/EXAMPLEClient/1.1/car
> 08:
> 53:46,035 INFO  [Log4jService]
> ----------------------------------------------
> 08:53:46,050 INFO  [Log4jService] Started Logging Service
> 08:53:46,050 INFO  [Log4jService] Runtime Information:
> 08:53:46,066 INFO  [Log4jService]   Install Directory =
> D:\geronimo-tomcat6-jee5
> -2.0.2
> 08:53:46,066 INFO  [Log4jService]   JVM in use = Sun Microsystems  
> Inc. Java
> 1.5.
> 0_07
> 08:53:46,082 INFO  [Log4jService] Java Information:
> 08:53:46,082 INFO  [Log4jService]   System property  
> [java.runtime.name]  =
> Java(
> TM) 2 Runtime Environment, Standard Edition
> 08:53:46,097 INFO  [Log4jService]   System property  
> [java.runtime.version]
> = 1.
> 5.0_07-b03
> 08:53:46,113 INFO  [Log4jService]   System property  
> [os.name]             =
> Wind
> ows 2000
> 08:53:46,113 INFO  [Log4jService]   System property  
> [os.version]          =
> 5.0
> 08:53:46,113 INFO  [Log4jService]   System property  
> [sun.os.patch.level]  =
> Serv
> ice Pack 4
> 08:53:46,129 INFO  [Log4jService]   System property  
> [os.arch]             =
> x86
> 08:53:46,129 INFO  [Log4jService]   System property  
> [java.class.version]  =
> 49.0
>
> 08:53:46,144 INFO  [Log4jService]   System property  
> [locale]              =
> es_E
> S
> 08:53:46,160 INFO  [Log4jService]   System property  
> [unicode.encoding]    =
> Unic
> odeLittle
> 08:53:46,160 INFO  [Log4jService]   System property  
> [file.encoding]       =
> Cp12
> 52
> 08:53:46,175 INFO  [Log4jService]   System property  
> [java.vm.name]        =
> Java
>  HotSpot(TM) Client VM
> 08:53:46,191 INFO  [Log4jService]   System property  
> [java.vm.vendor]      =
> Sun
> Microsystems Inc.
> 08:53:46,191 INFO  [Log4jService]   System property  
> [java.vm.version]     =
> 1.5.
> 0_07-b03
> 08:53:46,207 INFO  [Log4jService]   System property  
> [java.vm.info]        =
> mixe
> d mode
> 08:53:46,207 INFO  [Log4jService]   System property  
> [java.home]           =
> C:\A
> rchivos de programa\Java\jdk1.5.0_07\jre
> 08:53:46,222 INFO  [Log4jService]   System property  
> [java.classpath]      =
> null
>
> 08:53:46,238 INFO  [Log4jService]   System property  
> [java.library.path]   =
> C:\A
> rchivos de
> programa\Java\jdk1.5.0_07\jre\bin;.;C:\WINNT\system32;C:\WINNT;C:\WIN
> NT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Orawin95;C:\Orawin95 
> \Bin;D:\ARCHI
> V~1\ULTRAE~1;D:\Archivos de
> programa\Rational\ClearQuest;D:\dev\software\TIBCO\T
> IBRV\BIN;C:\Archivos de programa\SecureCRT 3.0;D:\oracle\bin;C: 
> \Archivos de
> prog
> rama\GNU\WinCvs 1.3\CVSNT;D:\Archivos de programa\MySQL\MySQL Server
> 4.1\bin;D:\
> TIBCO\TIBRV\BIN;D:\Dev-Cpp\bin;D:\workspace\JNItest\compile;D: 
> \Archivos de
> progr
> ama\maven-2.0.6\bin;D:\ARCHIV~1\IDMCOM~1\ULTRAE~1;C:\Archivos de
> programa\Java\j
> dk1.5.0_07\bin;D:\OpenSSL\bin;C:\Archivos de programa\Microsoft SQL
> Server\90\To
> ols\binn\;D:\Archivos de
> programa\apache-ant-1.7.0\bin;D:\db-derby-10.3.1.4-bin\
> bin;C:\ORAWIN95\BIN;
> 08:53:46,285 INFO  [Log4jService]   System property  
> [java.endorsed.dirs]  =
> D:\g
> eronimo-tomcat6-jee5-2.0.2\lib\endorsed;C:\Archivos de
> programa\Java\jdk1.5.0_07
> \\jre\lib\endorsed
> 08:53:46,300 INFO  [Log4jService]   System property  
> [java.ext.dirs]       =
> C:\A
> rchivos de programa\Java\jdk1.5.0_07\jre\lib\ext
> 08:53:46,316 INFO  [Log4jService]   System property  
> [sun.boot.class.path] =
> D:\g
> eronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-rmi-spec-1.0- 
> incubating-r557035.jar
> ;D:\geronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-spec-corba-1.0- 
> incubating-r557
> 035.jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\rt.jar;C: 
> \Archivos
> de p
> rograma\Java\jdk1.5.0_07\jre\lib\i18n.jar;C:\Archivos de
> programa\Java\jdk1.5.0_
> 07\jre\lib\sunrsasign.jar;C:\Archivos de
> programa\Java\jdk1.5.0_07\jre\lib\jsse.
> jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\jce.jar;C: 
> \Archivos de
> prog
> rama\Java\jdk1.5.0_07\jre\lib\charsets.jar;C:\Archivos de
> programa\Java\jdk1.5.0
> _07\jre\classes
> 08:53:46,347 INFO  [Log4jService]
> ----------------------------------------------
>
> Server Startup failed
>
> org.apache.geronimo.kernel.config.LifecycleException: start of
> JEE5/EXAMPLEClien
> t/1.1/car failed
>         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
> figuration(SimpleConfigurationManager.java:547)
>         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
> ssByCGLIB$$ce77a924.invoke(<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         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.kernel.config.EditableConfigurationManager$$Enhan
> cerByCGLIB$$5fa60d27.startConfiguration(<generated>)
>         at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaem
> on.java:156)
>         at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon
> .java:78)
>         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.daemon.DaemonCLI.main 
> (DaemonCLI.java:30)
> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
> org.apache.
> geronimo.kernel.GBeanAlreadyExistsException: GBean already registered:
> geronimo:
> name=geronimo,j2eeType=J2EEServer
>         at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
> nGBeans(ConfigurationUtil.java:436)
>         at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
> rnelConfigurationManager.java:187)
>         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
> figuration(SimpleConfigurationManager.java:530)
>         ... 14 more
> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException:  
> GBean
> already
>  registered: geronimo:name=geronimo,j2eeType=J2EEServer
>         at
> org.apache.geronimo.kernel.basic.BasicRegistry.register(BasicRegistry
> .java:88)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.ja
> va:355)
>         at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
> nGBeans(ConfigurationUtil.java:433)
>         ... 16 more
> 08:53:48,191 INFO  [MailGBean] JavaMail session unbound from
> ger:/MailSession
>
>
>
> -- 
> View this message in context: http://www.nabble.com/J2EE- 
> application-client-in-geronimo-2.0.2-tp14434684s134p14593296.html
> Sent from the Apache Geronimo - Dev mailing list archive at  
> Nabble.com.
>


Re: J2EE application client in geronimo 2.0.2

Posted by ivanrc <ir...@indra.es>.
I added this property to java command and run well thanks :). But I have
other problem.

I have change the main class to a thread that every second say "CLIENT
RUNNING..."

import java.util.logging.Logger;

public class MainClient extends Thread{

	private static MainClient client;
	private static final Logger logger =
Logger.getLogger(MainClient.class.getName());

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("CLIENT STARTING...");
		logger.info("CLIENT STARTING...");
		//client = new MainClient();
		//client.start();
		Thread t = new MainClient();
		t.run();
	}

	public synchronized void run() {
		while(true){
			System.out.println("CLIENT RUNNING...");
			logger.info("CLIENT RUNNING...");
			try {
				wait(1000);
			} catch (InterruptedException e) {
				System.out.println("error waiting");
			}
		}
	}

}




When I run the application client with the command...

set ENDORSE_DIR=%GERONIMO_HOME%/lib/endorsed
java -jar -Djava.endorsed.dirs=%ENDORSE_DIR% %GERONIMO_HOME%/bin/client.jar
JEE5/EXAMPLEClient/1.1/car 

... the EXAMPLEClient module is added to
%GERONIMO_HOME%/var/config/config.xml:

<module name="JEE5/EXAMPLEClient/1.1/car"/>

If I stop the command while it is running, this module disappears from
config.xml. The problem is that if I stop geronimo while the application
client command is running, the module JEE5/EXAMPLEClient/1.1/car doesn´t
dissapear from config.xml, and when I execute the geronimo startup.bat,
geronimo try to run  the JEE5/EXAMPLEClient/1.1/car module because it is
into config.xml. I obtain this error when geronimo startup try to run
JEE5/EXAMPLEClient/1.1/car module:

Module 34/34 JEE5/EXAMPLEClient/1.1/car                                     
08:
53:46,035 INFO  [Log4jService]
----------------------------------------------
08:53:46,050 INFO  [Log4jService] Started Logging Service
08:53:46,050 INFO  [Log4jService] Runtime Information:
08:53:46,066 INFO  [Log4jService]   Install Directory =
D:\geronimo-tomcat6-jee5
-2.0.2
08:53:46,066 INFO  [Log4jService]   JVM in use = Sun Microsystems Inc. Java
1.5.
0_07
08:53:46,082 INFO  [Log4jService] Java Information:
08:53:46,082 INFO  [Log4jService]   System property [java.runtime.name]  =
Java(
TM) 2 Runtime Environment, Standard Edition
08:53:46,097 INFO  [Log4jService]   System property [java.runtime.version] 
= 1.
5.0_07-b03
08:53:46,113 INFO  [Log4jService]   System property [os.name]             =
Wind
ows 2000
08:53:46,113 INFO  [Log4jService]   System property [os.version]          =
5.0
08:53:46,113 INFO  [Log4jService]   System property [sun.os.patch.level]  =
Serv
ice Pack 4
08:53:46,129 INFO  [Log4jService]   System property [os.arch]             =
x86
08:53:46,129 INFO  [Log4jService]   System property [java.class.version]  =
49.0

08:53:46,144 INFO  [Log4jService]   System property [locale]              =
es_E
S
08:53:46,160 INFO  [Log4jService]   System property [unicode.encoding]    =
Unic
odeLittle
08:53:46,160 INFO  [Log4jService]   System property [file.encoding]       =
Cp12
52
08:53:46,175 INFO  [Log4jService]   System property [java.vm.name]        =
Java
 HotSpot(TM) Client VM
08:53:46,191 INFO  [Log4jService]   System property [java.vm.vendor]      =
Sun
Microsystems Inc.
08:53:46,191 INFO  [Log4jService]   System property [java.vm.version]     =
1.5.
0_07-b03
08:53:46,207 INFO  [Log4jService]   System property [java.vm.info]        =
mixe
d mode
08:53:46,207 INFO  [Log4jService]   System property [java.home]           =
C:\A
rchivos de programa\Java\jdk1.5.0_07\jre
08:53:46,222 INFO  [Log4jService]   System property [java.classpath]      =
null

08:53:46,238 INFO  [Log4jService]   System property [java.library.path]   =
C:\A
rchivos de
programa\Java\jdk1.5.0_07\jre\bin;.;C:\WINNT\system32;C:\WINNT;C:\WIN
NT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Orawin95;C:\Orawin95\Bin;D:\ARCHI
V~1\ULTRAE~1;D:\Archivos de
programa\Rational\ClearQuest;D:\dev\software\TIBCO\T
IBRV\BIN;C:\Archivos de programa\SecureCRT 3.0;D:\oracle\bin;C:\Archivos de
prog
rama\GNU\WinCvs 1.3\CVSNT;D:\Archivos de programa\MySQL\MySQL Server
4.1\bin;D:\
TIBCO\TIBRV\BIN;D:\Dev-Cpp\bin;D:\workspace\JNItest\compile;D:\Archivos de
progr
ama\maven-2.0.6\bin;D:\ARCHIV~1\IDMCOM~1\ULTRAE~1;C:\Archivos de
programa\Java\j
dk1.5.0_07\bin;D:\OpenSSL\bin;C:\Archivos de programa\Microsoft SQL
Server\90\To
ols\binn\;D:\Archivos de
programa\apache-ant-1.7.0\bin;D:\db-derby-10.3.1.4-bin\
bin;C:\ORAWIN95\BIN;
08:53:46,285 INFO  [Log4jService]   System property [java.endorsed.dirs]  =
D:\g
eronimo-tomcat6-jee5-2.0.2\lib\endorsed;C:\Archivos de
programa\Java\jdk1.5.0_07
\\jre\lib\endorsed
08:53:46,300 INFO  [Log4jService]   System property [java.ext.dirs]       =
C:\A
rchivos de programa\Java\jdk1.5.0_07\jre\lib\ext
08:53:46,316 INFO  [Log4jService]   System property [sun.boot.class.path] =
D:\g
eronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-rmi-spec-1.0-incubating-r557035.jar
;D:\geronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-spec-corba-1.0-incubating-r557
035.jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\rt.jar;C:\Archivos
de p
rograma\Java\jdk1.5.0_07\jre\lib\i18n.jar;C:\Archivos de
programa\Java\jdk1.5.0_
07\jre\lib\sunrsasign.jar;C:\Archivos de
programa\Java\jdk1.5.0_07\jre\lib\jsse.
jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\jce.jar;C:\Archivos de
prog
rama\Java\jdk1.5.0_07\jre\lib\charsets.jar;C:\Archivos de
programa\Java\jdk1.5.0
_07\jre\classes
08:53:46,347 INFO  [Log4jService]
----------------------------------------------

Server Startup failed

org.apache.geronimo.kernel.config.LifecycleException: start of
JEE5/EXAMPLEClien
t/1.1/car failed
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:547)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
ssByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        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.kernel.config.EditableConfigurationManager$$Enhan
cerByCGLIB$$5fa60d27.startConfiguration(<generated>)
        at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaem
on.java:156)
        at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon
.java:78)
        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.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
org.apache.
geronimo.kernel.GBeanAlreadyExistsException: GBean already registered:
geronimo:
name=geronimo,j2eeType=J2EEServer
        at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:436)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
rnelConfigurationManager.java:187)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:530)
        ... 14 more
Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean
already
 registered: geronimo:name=geronimo,j2eeType=J2EEServer
        at
org.apache.geronimo.kernel.basic.BasicRegistry.register(BasicRegistry
.java:88)
        at
org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.ja
va:355)
        at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:433)
        ... 16 more
08:53:48,191 INFO  [MailGBean] JavaMail session unbound from
ger:/MailSession



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


Re: J2EE application client in geronimo 2.0.2

Posted by Jarek Gawor <jg...@gmail.com>.
Try the following command:

java -Djava.endorsed.dirs="D:\geronimo-tomcat6-jee5-2.0.2\lib\endorsed"
-jar D:\geronimo-tomcat6-jee5-2.0.2/bin/client.jar
JEE5/EXAMPLEClient/1.1/car

You need to add the endorsed override directory property.

Jarek

On Jan 2, 2008 7:57 AM, ivanrc <ir...@indra.es> wrote:
>
> I have managed to deploy the application client into a clear Apache Geronimo
> 2.0.2.
>
> Before I had got a two instances of apache geronimo running into the same
> machine and I don´t know because with this configuration application client
> doesn´t run well.
>
>
> Now It run but when main method finish, Into console appears this exception
> (java.lang.NoClassDefFoundError:
> org/apache/yoko/orb/OB/UnsentMessage):
>
> This is the console´s prompt:
>
> D:\temp\ejb3\geronimo_client>java -jar
> D:\geronimo-tomcat6-jee5-2.0.2/bin/client
> .jar JEE5/EXAMPLEClient/1.1/car
> 13:48:47,671 INFO  [Log4jService]
> ----------------------------------------------
>
> 13:48:47,671 INFO  [Log4jService] Started Logging Service
> 13:48:47,671 INFO  [Log4jService] Runtime Information:
> 13:48:47,671 INFO  [Log4jService]   Install Directory =
> D:\geronimo-tomcat6-jee5
> -2.0.2
> 13:48:47,671 INFO  [Log4jService]   JVM in use = Sun Microsystems Inc. Java
> 1.6.
> 0_01
> 13:48:47,671 INFO  [Log4jService] Java Information:
> 13:48:47,671 INFO  [Log4jService]   System property [java.runtime.name]  =
> Java(
> TM) SE Runtime Environment
> 13:48:47,671 INFO  [Log4jService]   System property [java.runtime.version]
> = 1.
> 6.0_01-b06
> 13:48:47,671 INFO  [Log4jService]   System property [os.name]             =
> Wind
> ows 2000
> 13:48:47,671 INFO  [Log4jService]   System property [os.version]          =
> 5.0
> 13:48:47,687 INFO  [Log4jService]   System property [sun.os.patch.level]  =
> Serv
> ice Pack 4
> 13:48:47,687 INFO  [Log4jService]   System property [os.arch]             =
> x86
> 13:48:47,687 INFO  [Log4jService]   System property [java.class.version]  =
> 50.0
>
> 13:48:47,687 INFO  [Log4jService]   System property [locale]              =
> es_E
> S
> 13:48:47,687 INFO  [Log4jService]   System property [unicode.encoding]    =
> Unic
> odeLittle
> 13:48:47,687 INFO  [Log4jService]   System property [file.encoding]       =
> Cp12
> 52
> 13:48:47,687 INFO  [Log4jService]   System property [java.vm.name]        =
> Java
>  HotSpot(TM) Client VM
> 13:48:47,687 INFO  [Log4jService]   System property [java.vm.vendor]      =
> Sun
> Microsystems Inc.
> 13:48:47,687 INFO  [Log4jService]   System property [java.vm.version]     =
> 1.6.
> 0_01-b06
> 13:48:47,687 INFO  [Log4jService]   System property [java.vm.info]        =
> mixe
> d mode, sharing
> 13:48:47,687 INFO  [Log4jService]   System property [java.home]           =
> C:\A
> rchivos de programa\Java\jre1.6.0_01
> 13:48:47,687 INFO  [Log4jService]   System property [java.classpath]      =
> null
>
> 13:48:47,687 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;
> 13:48:47,718 INFO  [Log4jService]   System property [java.endorsed.dirs]  =
> C:\A
> rchivos de programa\Java\jre1.6.0_01\lib\endorsed
> 13:48:47,734 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
> 13:48:47,750 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
> 13:48:47,765 INFO  [Log4jService]
> ----------------------------------------------
>
> CLIENT RUNNING...
> 13:48:56,500 ERROR [GBeanInstance] Problem in doStop of
> org.apache.geronimo.conf
> igs/client-corba-yoko/2.0.2/car?ServiceModule=org.apache.geronimo.configs/client
> -corba-yoko/2.0.2/car,j2eeType=CORBABean,name=Server
> java.lang.NoSuchMethodError:
> org.omg.PortableInterceptor.IORInterceptor_3_0.adap
> ter_manager_state_changed(Ljava/lang/String;S)V
>         at
> org.apache.yoko.orb.OB.PIManager.adapterManagerStateChange(PIManager.
> java:532)
>         at
> org.apache.yoko.orb.OBPortableServer.POAManager_impl.deactivate(POAMa
> nager_impl.java:360)
>         at
> org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl._OB_deact
> ivate(POAManagerFactory_impl.java:342)
>         at
> org.apache.yoko.orb.OB.ORBControl.completeServerShutdown(ORBControl.j
> ava:100)
>         at
> org.apache.yoko.orb.OB.ORBControl.shutdownServer(ORBControl.java:427)
>
>         at
> org.apache.yoko.orb.OB.ORBControl.shutdownServerClient(ORBControl.jav
> a:455)
>         at org.apache.yoko.orb.OBCORBA.ORB_impl.destroy(ORB_impl.java:1390)
>         at org.apache.geronimo.corba.CORBABean.doStop(CORBABean.java:260)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBean
> Instance.java:1159)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(
> GBeanInstanceState.java:339)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstan
> ceState.java:188)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.ja
> va:561)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.ja
> va:423)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstan
> ceState.java:180)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.ja
> va:561)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.ja
> va:423)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstan
> ceState.java:180)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.ja
> va:561)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.ja
> va:423)
>         at
> org.apache.geronimo.kernel.config.KernelConfigurationManager$Shutdown
> Hook.run(KernelConfigurationManager.java:316)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks(Basi
> cKernel.java:668)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.shutdown(BasicKernel.jav
> a:645)
>         at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper$1.run(M
> ainConfigurationBootstrapper.java:76)
> Exception in thread "Yoko:Server:StarterThread"
> java.lang.NoClassDefFoundError:
> org/apache/yoko/orb/OB/UnsentMessage
>         at org.apache.yoko.orb.OB.MessageQueue.add(MessageQueue.java:45)
>         at
> org.apache.yoko.orb.OB.GIOPConnectionThreaded.gracefulShutdown(GIOPCo
> nnectionThreaded.java:261)
>         at
> org.apache.yoko.orb.OB.GIOPConnection.setState(GIOPConnection.java:14
> 80)
>         at
> org.apache.yoko.orb.OB.GIOPServerStarterThreaded.starterRun(GIOPServe
> rStarterThreaded.java:246)
>         at
> org.apache.yoko.orb.OB.GIOPServerStarterThreaded$StarterThread.run(GI
> OPServerStarterThreaded.java:34)
>
> D:\temp\ejb3\geronimo_client>pause
> Presione una tecla para continuar . . .
> --
> View this message in context: http://www.nabble.com/J2EE-application-client-in-geronimo-2.0.2-tp14434684s134p14577673.html
>
> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
>
>

Re: J2EE application client in geronimo 2.0.2

Posted by ivanrc <ir...@indra.es>.
I have managed to deploy the application client into a clear Apache Geronimo
2.0.2. 

Before I had got a two instances of apache geronimo running into the same
machine and I don´t know because with this configuration application client
doesn´t run well.


Now It run but when main method finish, Into console appears this exception
(java.lang.NoClassDefFoundError:
org/apache/yoko/orb/OB/UnsentMessage):

This is the console´s prompt:

D:\temp\ejb3\geronimo_client>java -jar
D:\geronimo-tomcat6-jee5-2.0.2/bin/client
.jar JEE5/EXAMPLEClient/1.1/car
13:48:47,671 INFO  [Log4jService]
----------------------------------------------

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

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

13:48:47,687 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;
13:48:47,718 INFO  [Log4jService]   System property [java.endorsed.dirs]  =
C:\A
rchivos de programa\Java\jre1.6.0_01\lib\endorsed
13:48:47,734 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
13:48:47,750 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
13:48:47,765 INFO  [Log4jService]
----------------------------------------------

CLIENT RUNNING...
13:48:56,500 ERROR [GBeanInstance] Problem in doStop of
org.apache.geronimo.conf
igs/client-corba-yoko/2.0.2/car?ServiceModule=org.apache.geronimo.configs/client
-corba-yoko/2.0.2/car,j2eeType=CORBABean,name=Server
java.lang.NoSuchMethodError:
org.omg.PortableInterceptor.IORInterceptor_3_0.adap
ter_manager_state_changed(Ljava/lang/String;S)V
        at
org.apache.yoko.orb.OB.PIManager.adapterManagerStateChange(PIManager.
java:532)
        at
org.apache.yoko.orb.OBPortableServer.POAManager_impl.deactivate(POAMa
nager_impl.java:360)
        at
org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl._OB_deact
ivate(POAManagerFactory_impl.java:342)
        at
org.apache.yoko.orb.OB.ORBControl.completeServerShutdown(ORBControl.j
ava:100)
        at
org.apache.yoko.orb.OB.ORBControl.shutdownServer(ORBControl.java:427)

        at
org.apache.yoko.orb.OB.ORBControl.shutdownServerClient(ORBControl.jav
a:455)
        at org.apache.yoko.orb.OBCORBA.ORB_impl.destroy(ORB_impl.java:1390)
        at org.apache.geronimo.corba.CORBABean.doStop(CORBABean.java:260)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBean
Instance.java:1159)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(
GBeanInstanceState.java:339)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstan
ceState.java:188)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.ja
va:561)
        at
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.ja
va:423)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstan
ceState.java:180)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.ja
va:561)
        at
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.ja
va:423)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstan
ceState.java:180)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.ja
va:561)
        at
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.ja
va:423)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager$Shutdown
Hook.run(KernelConfigurationManager.java:316)
        at
org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks(Basi
cKernel.java:668)
        at
org.apache.geronimo.kernel.basic.BasicKernel.shutdown(BasicKernel.jav
a:645)
        at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper$1.run(M
ainConfigurationBootstrapper.java:76)
Exception in thread "Yoko:Server:StarterThread"
java.lang.NoClassDefFoundError:
org/apache/yoko/orb/OB/UnsentMessage
        at org.apache.yoko.orb.OB.MessageQueue.add(MessageQueue.java:45)
        at
org.apache.yoko.orb.OB.GIOPConnectionThreaded.gracefulShutdown(GIOPCo
nnectionThreaded.java:261)
        at
org.apache.yoko.orb.OB.GIOPConnection.setState(GIOPConnection.java:14
80)
        at
org.apache.yoko.orb.OB.GIOPServerStarterThreaded.starterRun(GIOPServe
rStarterThreaded.java:246)
        at
org.apache.yoko.orb.OB.GIOPServerStarterThreaded$StarterThread.run(GI
OPServerStarterThreaded.java:34)

D:\temp\ejb3\geronimo_client>pause
Presione una tecla para continuar . . .
-- 
View this message in context: http://www.nabble.com/J2EE-application-client-in-geronimo-2.0.2-tp14434684s134p14577673.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.


Re: J2EE application client in geronimo 2.0.2

Posted by ivanrc <ir...@indra.es>.
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 <ir...@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 <ir...@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 <ir...@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.


Re: J2EE application client in geronimo 2.0.2

Posted by Jarek Gawor <jg...@gmail.com>.
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 <ir...@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 <ir...@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 <ir...@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.
>
>

Re: J2EE application client in geronimo 2.0.2

Posted by ivanrc <ir...@indra.es>.
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 <ir...@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 <ir...@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.


Re: J2EE application client in geronimo 2.0.2

Posted by Prasad Kashyap <go...@gmail.com>.
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 <ir...@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 <ir...@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.
>
>

Re: J2EE application client in geronimo 2.0.2

Posted by ivanrc <ir...@indra.es>.
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 <ir...@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.


Re: J2EE application client in geronimo 2.0.2

Posted by Prasad Kashyap <go...@gmail.com>.
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 <ir...@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.
>
>