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.