Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 23757 invoked from network); 29 Jan 2008 22:00:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2008 22:00:04 -0000 Received: (qmail 3785 invoked by uid 500); 29 Jan 2008 21:59:52 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 3731 invoked by uid 500); 29 Jan 2008 21:59:52 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 3720 invoked by uid 99); 29 Jan 2008 21:59:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2008 13:59:52 -0800 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=SPF_PASS,URIBL_BLACK,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.147.95.70] (HELO smtp107.plus.mail.sp1.yahoo.com) (69.147.95.70) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 29 Jan 2008 21:59:25 +0000 Received: (qmail 4878 invoked from network); 29 Jan 2008 21:59:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=dm9MxWfIp++Mec/cP0wmyou6UJe6NxnI7q8JrmqnLWxwzZHBkO1LoPbYTV/sC67J01GKRUjAzITAs8B51s4NbtK0ZouiyyTfBy2KQ9M71jXwl4OB0GmYQ/niKJP6csAO5AiBk0aYMTfmpBzQQNAK5W64UZEfCBawC4Bx5Oic+10= ; Received: from unknown (HELO ?192.168.1.104?) (david_jencks@67.102.173.8 with plain) by smtp107.plus.mail.sp1.yahoo.com with SMTP; 29 Jan 2008 21:59:31 -0000 X-YMail-OSG: kstd3.MVM1kgML2Ly2pSh4Ojs85WU77Eh_1vIJ6XxYI8P3mWEsMVIEyxb57c40JCGOoXwlTCj8OqiQNwTqjL3w0dukf21Q7CNyNoWuJHdL3gsWObLg-- X-Yahoo-Newman-Property: ymail-3 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <31FEE429-366B-4998-9049-EBB89E2A9315@yahoo.com> References: <14434684.post@talk.nabble.com> <14439820.post@talk.nabble.com> <14451227.post@talk.nabble.com> <5eb405c70712210947s5aa44341kabc062b6e82f84cc@mail.gmail.com> <14575164.post@talk.nabble.com> <14577673.post@talk.nabble.com> <5eb405c70801020719x2cf50027i494836d6e4f61a98@mail.gmail.com> <14593296.post@talk.nabble.com> <31FEE429-366B-4998-9049-EBB89E2A9315@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <0050AD2B-ADCD-4513-9798-F6E3EC8E4DBE@yahoo.com> Content-Transfer-Encoding: quoted-printable From: David Jencks Subject: Re: J2EE application client in geronimo 2.0.2 Date: Tue, 29 Jan 2008 13:59:40 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org 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 =20 > 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 =20 >> I have >> other problem. >> >> I have change the main class to a thread that every second say =20 >> "CLIENT >> RUNNING..." >> >> import java.util.logging.Logger; >> >> public class MainClient extends Thread{ >> >> private static MainClient client; >> private static final Logger logger =3D >> Logger.getLogger(MainClient.class.getName()); >> >> /** >> * @param args >> */ >> public static void main(String[] args) { >> System.out.println("CLIENT STARTING..."); >> logger.info("CLIENT STARTING..."); >> //client =3D new MainClient(); >> //client.start(); >> Thread t =3D 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=3D%GERONIMO_HOME%/lib/endorsed >> java -jar -Djava.endorsed.dirs=3D%ENDORSE_DIR% %GERONIMO_HOME%/bin/=20= >> client.jar >> JEE5/EXAMPLEClient/1.1/car >> >> ... the EXAMPLEClient module is added to >> %GERONIMO_HOME%/var/config/config.xml: >> >> >> >> If I stop the command while it is running, this module disappears =20 >> from >> config.xml. The problem is that if I stop geronimo while the =20 >> application >> client command is running, the module JEE5/EXAMPLEClient/1.1/car =20 >> doesn=B4t >> dissapear from config.xml, and when I execute the geronimo =20 >> startup.bat, >> geronimo try to run the JEE5/EXAMPLEClient/1.1/car module because =20= >> 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 =3D >> D:\geronimo-tomcat6-jee5 >> -2.0.2 >> 08:53:46,066 INFO [Log4jService] JVM in use =3D Sun Microsystems =20= >> Inc. Java >> 1.5. >> 0_07 >> 08:53:46,082 INFO [Log4jService] Java Information: >> 08:53:46,082 INFO [Log4jService] System property =20 >> [java.runtime.name] =3D >> Java( >> TM) 2 Runtime Environment, Standard Edition >> 08:53:46,097 INFO [Log4jService] System property =20 >> [java.runtime.version] >> =3D 1. >> 5.0_07-b03 >> 08:53:46,113 INFO [Log4jService] System property =20 >> [os.name] =3D >> Wind >> ows 2000 >> 08:53:46,113 INFO [Log4jService] System property =20 >> [os.version] =3D >> 5.0 >> 08:53:46,113 INFO [Log4jService] System property =20 >> [sun.os.patch.level] =3D >> Serv >> ice Pack 4 >> 08:53:46,129 INFO [Log4jService] System property =20 >> [os.arch] =3D >> x86 >> 08:53:46,129 INFO [Log4jService] System property =20 >> [java.class.version] =3D >> 49.0 >> >> 08:53:46,144 INFO [Log4jService] System property =20 >> [locale] =3D >> es_E >> S >> 08:53:46,160 INFO [Log4jService] System property =20 >> [unicode.encoding] =3D >> Unic >> odeLittle >> 08:53:46,160 INFO [Log4jService] System property =20 >> [file.encoding] =3D >> Cp12 >> 52 >> 08:53:46,175 INFO [Log4jService] System property =20 >> [java.vm.name] =3D >> Java >> HotSpot(TM) Client VM >> 08:53:46,191 INFO [Log4jService] System property =20 >> [java.vm.vendor] =3D >> Sun >> Microsystems Inc. >> 08:53:46,191 INFO [Log4jService] System property =20 >> [java.vm.version] =3D >> 1.5. >> 0_07-b03 >> 08:53:46,207 INFO [Log4jService] System property =20 >> [java.vm.info] =3D >> mixe >> d mode >> 08:53:46,207 INFO [Log4jService] System property =20 >> [java.home] =3D >> C:\A >> rchivos de programa\Java\jdk1.5.0_07\jre >> 08:53:46,222 INFO [Log4jService] System property =20 >> [java.classpath] =3D >> null >> >> 08:53:46,238 INFO [Log4jService] System property =20 >> [java.library.path] =3D >> 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=20= >> \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:=20 >> \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:=20 >> \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 =20 >> [java.endorsed.dirs] =3D >> 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 =20 >> [java.ext.dirs] =3D >> C:\A >> rchivos de programa\Java\jdk1.5.0_07\jre\lib\ext >> 08:53:46,316 INFO [Log4jService] System property =20 >> [sun.boot.class.path] =3D >> D:\g >> eronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-rmi-spec-1.0-=20 >> incubating-r557035.jar >> ;D:\geronimo-tomcat6-jee5-2.0.2\lib\endorsed\yoko-spec-corba-1.0-=20 >> incubating-r557 >> 035.jar;C:\Archivos de programa\Java\jdk1.5.0_07\jre\lib\rt.jar;C:=20 >> \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:=20 >> \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() >> 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() >> 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=20 >> (DaemonCLI.java:30) >> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: >> org.apache. >> geronimo.kernel.GBeanAlreadyExistsException: GBean already =20 >> registered: >> geronimo: >> name=3Dgeronimo,j2eeType=3DJ2EEServer >> 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: =20= >> GBean >> already >> registered: geronimo:name=3Dgeronimo,j2eeType=3DJ2EEServer >> 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 >> >> >> >> --=20 >> View this message in context: http://www.nabble.com/J2EE-=20 >> application-client-in-geronimo-2.0.2-tp14434684s134p14593296.html >> Sent from the Apache Geronimo - Dev mailing list archive at =20 >> Nabble.com. >> >