You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Jim R. <jr...@er...> - 2003-12-12 14:30:55
|
Leif, What's strange is the DCOM _client_ work fine. We have an =20 implementation of both the client and the server side of OPC. Both use =20 DLLs. The client is fine, the server fails. Jim On 2003.12.11 20:47, Leif Mortenson wrote: > Philip, > Have you made any progress with your DCOM issue? There was a post =20 > today on a related issue that may be at the root of your problems. He =20 > noticed that DCOM was expecting the JVM to be the one specified by =20 > JAVA_HOME, but the JVM launched by the Wrapper was not the same due =20 > to the value of the wrapper.java.command property. >=20 > Go take a look at the issue and let me know the status of your =20 > problem. =20 > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D820216&gro= up_id=3D39428&atid=3D425187 >=20 > Cheers, > Leif >=20 > Philip Kubat wrote: >=20 >> Ok, here is my guess on what is going on. DCOM/COM interfaces exists =20 >> in a MTA (multi thread apartment) and maintains is own reference =20 >> counter to threads using it, as stated my Microsoft. When I the java =20 >> app in ran within wrapper the jni calls are started in new threads. =20 >> I can view this via the Microsoft debugger. When the first call =20 >> finishes that thread ends, (prior to me next jni call) and it kills =20 >> the last and only reference in the MTA. Thus when the other JNI =20 >> calls go to use this interface it now longer exists. >>=20 >> So the question is why do the jni calls get place in new threads. =20 >> This is not the results when the app is not ran within wrapper. IE =20 >> =E2=80=9Cjava myAppClass=E2=80=9D >>=20 >> Thanks >>=20 >> Phil >> >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for =20 > IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys =20 > admin. > Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user --=20 Jim Redman (505) 662 5156 x85 http://www.ergotech.com |
|
From: Leif M. <le...@ta...> - 2003-12-12 03:48:06
|
Philip, Have you made any progress with your DCOM issue? There was a post today on a related issue that may be at the root of your problems. He noticed that DCOM was expecting the JVM to be the one specified by JAVA_HOME, but the JVM launched by the Wrapper was not the same due to the value of the wrapper.java.command property. Go take a look at the issue and let me know the status of your problem. http://sourceforge.net/tracker/index.php?func=detail&aid=820216&group_id=39428&atid=425187 Cheers, Leif Philip Kubat wrote: > Ok, here is my guess on what is going on. DCOM/COM interfaces exists > in a MTA (multi thread apartment) and maintains is own reference > counter to threads using it, as stated my Microsoft. When I the java > app in ran within wrapper the jni calls are started in new threads. I > can view this via the Microsoft debugger. When the first call finishes > that thread ends, (prior to me next jni call) and it kills the last > and only reference in the MTA. Thus when the other JNI calls go to use > this interface it now longer exists. > > So the question is why do the jni calls get place in new threads. This > is not the results when the app is not ran within wrapper. IE “java > myAppClass” > > Thanks > > Phil > |
|
From: Robert D. <rdi...@tr...> - 2003-12-12 00:46:48
|
Let me start off by stating that the Wrapper is really great. Unfortunately, we have an intermittent problem under Solaris. Sometimes, a few days or weeks after continuous running, the JVM seems to just exit and the wrapper does not restart the JVM. In fact, the wrapper thinks it is not getting any CPU (this is even after the JVM exists). So, there are two odd things here: (a) the JVM mysteriously exits and (b) the wrapper does not restart it. We have not seen this under Windows. We are doing a DEBUG run to see if we can get more information, but just thought I'd send this out to see if anyone had any initial thoughts. Here's an example of the log: INFO | jvm 1 | 2003/12/10 14:08:22 | [connection Thread-2,id=3D5,uses=3D232]: Connection has exceeded idle lease!=20 The above is a normal log message from our system. Then it just silently stopped running. The wrapper was still running and we heard nothing until we shut it down to restart here: STATUS | wrapper | 2003/12/11 13:59:11 | Shutting down. INFO | jvm 1 | 2003/12/11 13:59:11 | Wrapper Manager: The Wrapper code did not ping the JVM for 30 seconds. Quit and let the Wrapper resynch. INFO | jvm 1 | 2003/12/11 13:59:11 | Stopping service Tomcat-Standalone INFO | wrapper | 2003/12/11 13:59:11 | Wrapper Process has not received any CPU time for 85640 seconds. Extending timeouts. STATUS | wrapper | 2003/12/11 13:59:11 | <-- Wrapper Stopped DEBUG=20 Odd that the wrapper said it didn't get any CPU time for 85640 second (the time that the system was down) since the JVM process (nor anything else) was running. Thoughts? R. |
|
From: Vladan O. <vl...@ns...> - 2003-12-11 18:38:39
|
Leif, You will be right, life is much easier when using the WrapperStartStopApp methods of = integration with the Wrapper. I use this and all works fine. Thanks a lot for your suggestion. Regards Vladan Obradovic |
|
From: Anthony B. <ant...@ho...> - 2003-12-11 00:08:48
|
Hello all, I am testing out the wrapper and have found a perculiar problem. I read through the other posts on this sort of problem and did not find something to provide guidance. I am getting this error periodically. It is happening every 3-4 times out of 5 runs. The code where the wrapper is determining there are no more non-daemon threads is trying to connect to content manager through the 8.2 IBM API. I am using the DKDatastoreICM object for the connection. The call to DKDatastoreICM.connect() is blocking (while trying to connect). It is during this block where the wrapper is incorrectly determining that there are no daemon threads running. I have created a stop gap solution, but would like a better one. Just before calling connect(), I am spawning a new thread that sleeps for 60 seconds and then dies. Since I have done this, the wrapper has not shutdown because of non-daemon threads and my CM connection has always succeeded. I have run it 10+ times. I choose to implement the WrapperListener interface. I have not installed it as a service yet. It is still being run on the console. It run fine when not being started by the wrapper. I can post whatever else is necessary to provide extra details. Thanks a lot for any help. --Anthony Beaty ant...@ho... _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com |
|
From: Vladan O. <vl...@ns...> - 2003-12-10 16:27:49
|
Leif=20
I wrote new Main.java class and implemented the WrapperListener =
interface as described in integration method 3.
Add the wrapper.debug=3Dtrue property to my conf file and try again.
=20
In log file got next messages:
DEBUG | wrapper | 2003/12/09 17:16:22 | Service command: =
C:\JOnAS-3.3-Tomcat\wrapper\bin\Wrapper.exe -s =
C:\JOnAS-3.3-Tomcat\wrapper\wrapper_jonas.conf
STATUS | wrapper | 2003/12/09 17:16:22 | JOnAS Server installed.
STATUS | wrapper | 2003/12/09 17:16:28 | Starting the JOnAS Server =
service...
STATUS | wrapper | 2003/12/09 17:16:28 | --> Wrapper Started as Service
DEBUG | wrapperp | 2003/12/09 17:16:28 | server listening on port =
15012.
STATUS | wrapper | 2003/12/09 17:16:29 | Launching a JVM...
DEBUG | wrapper | 2003/12/09 17:16:29 | command: =
"D:\j2sdk1.4.1_01\bin\java" -Dinstall.root=3DC:\JOnAS-3.3-Tomcat =
-Djonas.base=3DC:\JOnAS-3.3-Tomcat =
-Djava.security.policy=3DC:\JOnAS-3.3-Tomcat\conf\java.policy =
-Djonas.classpath=3D -Djonas.default.classloader=3Dtrue =
-Djavax.rmi.CORBA.PortableRemoteObjectClass=3Dorg.objectweb.carol.rmi.mul=
ti.MultiPRODelegate =
-Djava.naming.factory.initial=3Dorg.objectweb.carol.jndi.spi.MultiOrbInit=
ialContextFactory =
-Djava.security.auth.login.config=3DC:\JOnAS-3.3-Tomcat\conf\jaas.config =
-Djava.rmi.server.RMIClassLoaderSpi=3Dorg.objectweb.jonas.server.RemoteCl=
assLoaderSpi -Xms16m -Xmx64m =
-Djava.library.path=3D"C:/JOnAS-3.3-Tomcat/wrapper/lib" -classpath =
"C:/JOnAS-3.3-Tomcat/wrapper/classes/;C:/JOnAS-3.3-Tomcat/lib/common/ow_j=
onas_bootstrap.jar;C:/JOnAS-3.3-Tomcat/conf/;C:/JOnAS-3.3-Tomcat/wrapper/=
lib/wrapper.jar;C:/JOnAS-3.3-Tomcat/wrapper/lib/wrappertest.jar;D:/j2sdk1=
.4.1_01/lib/comm.jar;D:/j2sdk1.4.1_01/lib/dt.jar;D:/j2sdk1.4.1_01/lib/htm=
lconverter.jar;D:/j2sdk1.4.1_01/lib/tools.jar" =
-Dwrapper.key=3D"No2M5eZdKYDYx0Rz" -Dwrapper.port=3D15012 =
-Dwrapper.debug=3D"TRUE" -Dwrapper.service=3D"TRUE" =
-Dwrapper.cpu.timeout=3D"10" -Dwrapper.jvmid=3D1 Main
DEBUG | wrapper | 2003/12/09 17:16:29 | Java Virtual Machine started =
(PID=3D1604)
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: JVM #1
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: Registering =
shutdown hook
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: Using wrapper
INFO | jvm 1 | 2003/12/09 17:16:29 | Calling native initialization =
method.
INFO | jvm 1 | 2003/12/09 17:16:29 | Initializing WrapperManager =
native library.
INFO | jvm 1 | 2003/12/09 17:16:29 | Java Executable: =
D:\j2sdk1.4.1_01\bin\java.exe
INFO | jvm 1 | 2003/12/09 17:16:29 | Java Version : 1.4.1_01-b01 =
Java HotSpot(TM) Client VM
INFO | jvm 1 | 2003/12/09 17:16:29 | Java VM Vendor : Sun =
Microsystems Inc.
INFO | jvm 1 | 2003/12/09 17:16:29 |=20
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper (Version 3.0.5)
INFO | jvm 1 | 2003/12/09 17:16:29 |=20
INFO | jvm 1 | 2003/12/09 17:16:29 | Open socket to wrapper...
INFO | jvm 1 | 2003/12/09 17:16:29 | Opened Socket
INFO | jvm 1 | 2003/12/09 17:16:29 | Send a packet KEY : =
No2M5eZdKYDYx0Rz
INFO | jvm 1 | 2003/12/09 17:16:29 | =
handleSocket(Socket[addr=3D/127.0.0.1,port=3D15012,localport=3D1197])
DEBUG | wrapperp | 2003/12/09 17:16:29 | accepted a socket from =
127.0.0.1 on port 1197
DEBUG | wrapperp | 2003/12/09 17:16:29 | read a packet KEY : =
No2M5eZdKYDYx0Rz
DEBUG | wrapper | 2003/12/09 17:16:29 | Got key from JVM: =
No2M5eZdKYDYx0Rz
DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet LOW_LOG_LEVEL : =
1
DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet PING_TIMEOUT : =
40
DEBUG | wrapper | 2003/12/09 17:16:29 | Start Application.
DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet START : start
INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet =
LOW_LOG_LEVEL : 1
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: LowLogLevel =
from Wrapper is 1
INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet PING_TIMEOUT =
: 40
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: PingTimeout =
from Wrapper is 40000
INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet START : =
start
INFO | jvm 1 | 2003/12/09 17:16:30 | calling listener.start()
INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,353 : =
TraceCarol.infoCarol : Name service for jrmp is started on port 1099
INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,433 : =
ServiceManager.startRegistry : registry service started
INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,764 : =
ServiceManager.startJmx : jmx service started
INFO | jvm 1 | 2003/12/09 17:16:32 | 2003-12-09 17:16:31,964 : =
ServiceManager.startServices : jtm service started
INFO | jvm 1 | 2003/12/09 17:16:32 | 2003-12-09 17:16:31,964 : =
ServiceManager.startServices : dbm service started
INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,006 : =
ServiceManager.startServices : security service started
INFO | wrapper | 2003/12/09 17:16:33 | Waiting to start...
INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,787 : =
JmsAdminForJoram.startMOM : starting MOM on host localhost, port 16010
INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,817 : =
JmsAdminForJoram.start : starting JmsAdmin with host localhost, port =
16010
INFO | jvm 1 | 2003/12/09 17:16:34 | 2003-12-09 17:16:34,057 : =
JmsAdminForJoram.start : starting Jms Monitoring with host localhost, =
port 16010
INFO | jvm 1 | 2003/12/09 17:16:34 | 2003-12-09 17:16:34,568 : =
ServiceManager.startServices : jms service started
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,019 : =
ResourceServiceImpl.createResourceAdapter : =
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcCP.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,079 : =
ResourceServiceImpl.createResourceAdapter : =
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcDM.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,289 : =
ResourceServiceImpl.createResourceAdapter : =
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcDS.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,369 : =
ResourceServiceImpl.createResourceAdapter : =
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcXA.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,369 : =
ServiceManager.startServices : resource service started
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,389 : =
ServiceManager.startServices : ejb service started
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,419 : =
Registry.loadRegistry : Loading registry information
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,419 : =
Registry.getRegistry : Creating new Registry instance
INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:35,770 : =
Registry.loadRegistry : Loading registry information
INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:36,461 : =
Http11Protocol.init : Initializing Coyote HTTP/1.1 on port 8080
INFO | jvm 1 | 2003/12/09 17:16:36 | Starting service Tomcat-JOnAS
INFO | jvm 1 | 2003/12/09 17:16:36 | Apache Tomcat/4.1.27
INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:36,731 : =
Http11Protocol.start : Starting Coyote HTTP/1.1 on port 8080
INFO | jvm 1 | 2003/12/09 17:16:37 | 2003-12-09 17:16:37,612 : =
AbsJWebContainerServiceImpl.registerWar : War =
/C:/JOnAS-3.3-Tomcat/webapps/autoload/ctxroot.war available at the =
context /.
INFO | wrapper | 2003/12/09 17:16:38 | Waiting to start...
INFO | jvm 1 | 2003/12/09 17:16:41 | 2003-12-09 17:16:41,358 : =
AbsJWebContainerServiceImpl.registerWar : War =
/C:/JOnAS-3.3-Tomcat/webapps/autoload/jonasAdmin.war available at the =
context /jonasAdmin.
INFO | wrapper | 2003/12/09 17:16:43 | Waiting to start...
INFO | jvm 1 | 2003/12/09 17:16:44 | 2003-12-09 17:16:44,512 : =
PropertyMessageResources.<init> : Initializing, =
config=3D'org.apache.struts.util.LocalStrings', returnNull=3Dtrue
INFO | jvm 1 | 2003/12/09 17:16:44 | 2003-12-09 17:16:44,512 : =
PropertyMessageResources.<init> : Initializing, =
config=3D'org.apache.struts.action.ActionResources', returnNull=3Dtrue
INFO | jvm 1 | 2003/12/09 17:16:45 | 2003-12-09 17:16:45,093 : =
PropertyMessageResources.<init> : Initializing, =
config=3D'org.apache.webapp.admin.ApplicationResources', =
returnNull=3Dtrue
INFO | jvm 1 | 2003/12/09 17:16:45 | 2003-12-09 17:16:45,814 : =
AbsJWebContainerServiceImpl.registerWar : War =
/C:/JOnAS-3.3-Tomcat/webapps/autoload/tomcat-admin.war available at the =
context /tomcat-admin.
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:45,974 : =
AbsJWebContainerServiceImpl.registerWar : War =
/C:/JOnAS-3.3-Tomcat/webapps/autoload/tomcat-docs.war available at the =
context /tomcat-docs.
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:45,974 : =
ServiceManager.startServices : web service started
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,575 : =
JContainer.addBean : EarOp available
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,976 : =
AbsJWebContainerServiceImpl.registerWar : War =
/C:/JOnAS-3.3-Tomcat/apps/jonas/earsample_2003.09.26-17.17.52/earsample.w=
ar available at the context /earsample.
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,986 : =
EarServiceImpl.deployEar : Ear =
file:/C:/JOnAS-3.3-Tomcat/apps/autoload/earsample.ear available.
INFO | jvm 1 | 2003/12/09 17:16:47 | 2003-12-09 17:16:47,006 : =
ServiceManager.startServices : ear service started
INFO | jvm 1 | 2003/12/09 17:16:47 | The JOnAS Server 'jonas' =
version 3.3 is ready
INFO | jvm 1 | 2003/12/09 17:16:47 | 2003-12-09 17:16:47,006 : =
Server.start : Jonas server jonas started on rmi/jrmp
INFO | wrapper | 2003/12/09 17:16:48 | Waiting to start...
INFO | wrapper | 2003/12/09 17:16:53 | Waiting to start...
INFO | wrapper | 2003/12/09 17:16:58 | Waiting to start...
INFO | wrapper | 2003/12/09 17:17:03 | Waiting to start...
INFO | wrapper | 2003/12/09 17:17:08 | Waiting to start...
ERROR | wrapper | 2003/12/09 17:17:10 | Startup failed: Timed out =
waiting for signal from JVM.
ERROR | wrapper | 2003/12/09 17:17:10 | Java Virtual Machine did not =
exit on request, terminated
DEBUG | wrapper | 2003/12/09 17:17:10 | JVM was only running for 41 =
seconds leading to a failed restart count of 1.
FATAL | wrapper | 2003/12/09 17:17:10 | There were 1 failed launches =
in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2003/12/09 17:17:10 | There may be a configuration =
problem: please check the logs.
STATUS | wrapper | 2003/12/09 17:17:11 | <-- Wrapper Stopped
ERROR | wrapper | 2003/12/09 17:17:12 | The JOnAS Server service was =
launched, but failed to start.
=20
***************************************************************
Main.java
***************************************************************
import org.tanukisoftware.wrapper.WrapperManager;
import org.tanukisoftware.wrapper.WrapperListener;
import org.objectweb.jonas.server.Bootstrap; =20
=20
public class Main implements WrapperListener
{
private Bootstrap m_app;
private Main()
{
}
public Integer start( String[] args )
{
String myargs[] =3D {"org.objectweb.jonas.server.Server"};
m_app =3D new Bootstrap();
m_app.main( myargs );
return null;
}
public int stop( int exitCode )
{
String myargs[] =3D {"org.objectweb.jonas.adm.JonasAdmin","-s"};
m_app.main( myargs );
return exitCode;
}
public void controlEvent( int event )
{
if (WrapperManager.isControlledByNativeWrapper()) {
} else {
if ((event =3D=3D WrapperManager.WRAPPER_CTRL_C_EVENT) ||
(event =3D=3D WrapperManager.WRAPPER_CTRL_CLOSE_EVENT) =
||
(event =3D=3D =
WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT)){
WrapperManager.stop(0);
}
}
}
=20
public static void main( String[] args )
{
WrapperManager.start( new Main(), args );
}
}
*************************************************************************=
***
> Also, they are not a problem, but what is the point of all the=20
>variable declarations
>using set.xxx at the top of your conf file?=20
Some other class when server is started used this enviroment variables.
Regards
Vladan Obradovic
|
|
From:
<el...@mi...> - 2003-12-10 15:12:07
|
Hi.. How do I un-scribe to the mailing list? -----Original Message----- From: Leif Mortenson [mailto:le...@ta...] Sent: Wednesday, December 10, 2003 4:50 PM To: wra...@li... Subject: Re: [Wrapper-user] Security errors with the wrapper and Jini Jos, This looks like a problem with your policy file. I cover this very briefly on the following page: http://wrapper.tanukisoftware.org/doc/english/faq.html Try specifying the wrapper's jar file explicitly as follows: // Give Wrapper classes full permissions grant codeBase "file:../lib/wrapper.jar" { permission java.security.AllPermission; }; That has worked for me in the past with RMI. As I said in that thread you mentioned. Placing the wrapper.jar into the Java ext directory ill work because the jar will be views as one of the JVM's own privileged jars. But doing that is not advised. For a number of reasons, it is best to do everything possible to avoid changing the contents of the JVM's directory. It will lead to all kind of problems when other programs are run using that JVM, and it makes installing the app on other machines that much more complicated. Post back with results. Cheers, Leif Jos Martin wrote: > I'm trying to use the java service wrapper to automatically start a > number of jini services on both NT and Linux. I've successfully > managed to get the java class server configured, but I've run into > some problems with jrmp-phoenix which is the replacement for RMID. > > I'm using the WrapperSimpleApp starter and am receiving a > java.lang.IllegalAccessException error when the wrapper tries to > invoke the main method of phoenix. > > This error appears very similar to one posted to this group on > 2003-10-27 23:16 by Alan Parry thought the suggestion of incorrect jar > placement in that post doesn't apply here (I think). > > To reduce the problem to use of WrapperSimpleApp I've executed the > following > > java ^ > -cp lib\wrapper.jar;lib\start.jar;lib\phoenix.jar ^ > -Djava.security.manager= ^ > -Djava.security.policy=config\jsk-all.policy ^ > org.tanukisoftware.wrapper.WrapperSimpleApp ^ > com.sun.jini.start.ServiceStarter ^ > config\start-jarserver.config > > from a directory that contains lib and config. The jsk-all.policy file > contains > > grant { > permission java.security.AllPermission; > }; > > And this sucessfully fires off the java class server > > However > > java ^ > -cp lib\wrapper.jar;lib\start.jar;lib\phoenix.jar ^ > -Djava.security.manager= ^ > -Djava.security.policy=config\jsk-all.policy ^ > -Dwrapper.debug="TRUE" ^ > org.tanukisoftware.wrapper.WrapperSimpleApp ^ > com.sun.jini.phoenix.Activation ^ > config\jrmp-phoenix.config > > which ought to do much the same with phoenix produces > > Wrapper Manager: JVM #1 > Wrapper Manager: Registering shutdown hook > Wrapper Manager: Not using wrapper. (key not specified) > Calling native initialization method. > Initializing WrapperManager native library. > Java Executable: F:\Adml\matlab\sys\java\jre\win32\jre1.4.2\bin\java.exe > Java Version : 1.4.2-b28 Java HotSpot(TM) Client VM > Java VM Vendor : Sun Microsystems Inc. > > Wrapper (Version 3.0.5) > > calling listener.start() > WrapperSimpleApp: start(args) > WrapperSimpleApp: invoking main method > > WrapperSimpleApp: Encountered an error running main: > java.lang.IllegalAccessException: Class > org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of > class com.sun.jini.phoenix.Activatio > n with modifiers "public static" > java.lang.IllegalAccessException: Class > org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of > class com.sun.jini.phoenix.Activation with modifiers "public static" > at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:108) > > at java.lang.Thread.run(Unknown Source) > WrapperSimpleApp: start(args) end. Main Completed=true, exitCode=1 > Send a packet STOP : 1 > Thread, main, handling the shutdown process. > Send a packet STOPPED : 0 > calling System.exit(1) > > I wonder if anyone has experience of what policy settings might have > gone wrong here? > > Many Thanks > > Jos > > _________________________________________________________________ > Tired of 56k? Get a FREE BT Broadband connection > http://www.msn.co.uk/specials/btbroadband > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user This mail was scanned and found secure The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the sender immediately through the technological support center,email:he...@mi... and do not disclose the contents to any one or make copies. |
|
From: Leif M. <le...@ta...> - 2003-12-10 14:49:54
|
Jos, This looks like a problem with your policy file. I cover this very briefly on the following page: http://wrapper.tanukisoftware.org/doc/english/faq.html Try specifying the wrapper's jar file explicitly as follows: // Give Wrapper classes full permissions grant codeBase "file:../lib/wrapper.jar" { permission java.security.AllPermission; }; That has worked for me in the past with RMI. As I said in that thread you mentioned. Placing the wrapper.jar into the Java ext directory ill work because the jar will be views as one of the JVM's own privileged jars. But doing that is not advised. For a number of reasons, it is best to do everything possible to avoid changing the contents of the JVM's directory. It will lead to all kind of problems when other programs are run using that JVM, and it makes installing the app on other machines that much more complicated. Post back with results. Cheers, Leif Jos Martin wrote: > I'm trying to use the java service wrapper to automatically start a > number of jini services on both NT and Linux. I've successfully > managed to get the java class server configured, but I've run into > some problems with jrmp-phoenix which is the replacement for RMID. > > I'm using the WrapperSimpleApp starter and am receiving a > java.lang.IllegalAccessException error when the wrapper tries to > invoke the main method of phoenix. > > This error appears very similar to one posted to this group on > 2003-10-27 23:16 by Alan Parry thought the suggestion of incorrect jar > placement in that post doesn't apply here (I think). > > To reduce the problem to use of WrapperSimpleApp I've executed the > following > > java ^ > -cp lib\wrapper.jar;lib\start.jar;lib\phoenix.jar ^ > -Djava.security.manager= ^ > -Djava.security.policy=config\jsk-all.policy ^ > org.tanukisoftware.wrapper.WrapperSimpleApp ^ > com.sun.jini.start.ServiceStarter ^ > config\start-jarserver.config > > from a directory that contains lib and config. The jsk-all.policy file > contains > > grant { > permission java.security.AllPermission; > }; > > And this sucessfully fires off the java class server > > However > > java ^ > -cp lib\wrapper.jar;lib\start.jar;lib\phoenix.jar ^ > -Djava.security.manager= ^ > -Djava.security.policy=config\jsk-all.policy ^ > -Dwrapper.debug="TRUE" ^ > org.tanukisoftware.wrapper.WrapperSimpleApp ^ > com.sun.jini.phoenix.Activation ^ > config\jrmp-phoenix.config > > which ought to do much the same with phoenix produces > > Wrapper Manager: JVM #1 > Wrapper Manager: Registering shutdown hook > Wrapper Manager: Not using wrapper. (key not specified) > Calling native initialization method. > Initializing WrapperManager native library. > Java Executable: F:\Adml\matlab\sys\java\jre\win32\jre1.4.2\bin\java.exe > Java Version : 1.4.2-b28 Java HotSpot(TM) Client VM > Java VM Vendor : Sun Microsystems Inc. > > Wrapper (Version 3.0.5) > > calling listener.start() > WrapperSimpleApp: start(args) > WrapperSimpleApp: invoking main method > > WrapperSimpleApp: Encountered an error running main: > java.lang.IllegalAccessException: Class > org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of > class com.sun.jini.phoenix.Activatio > n with modifiers "public static" > java.lang.IllegalAccessException: Class > org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of > class com.sun.jini.phoenix.Activation with modifiers "public static" > at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:108) > > at java.lang.Thread.run(Unknown Source) > WrapperSimpleApp: start(args) end. Main Completed=true, exitCode=1 > Send a packet STOP : 1 > Thread, main, handling the shutdown process. > Send a packet STOPPED : 0 > calling System.exit(1) > > I wonder if anyone has experience of what policy settings might have > gone wrong here? > > Many Thanks > > Jos > > _________________________________________________________________ > Tired of 56k? Get a FREE BT Broadband connection > http://www.msn.co.uk/specials/btbroadband > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2003-12-10 14:41:19
|
Vladan,
Ok, that told me what I needed to know, The start method of the
WrapperListener
is never returning. If you read the Java docs, you will see that the
Wrapper requires
that this method returns. This makes it possible for your application
to control when
the application is considered to have fully started. At some point, you
will need to spawn
a new thread if your main never returns.
I am not sure why your application is working when running as a
console but not
as a service. Does your Bootstrap class work differently in that case?
Are you sure that you really need to be implementing the
WrapperListener yourself?
Unless you really really need it, you will find that life is much easier
when using either the
WrapperSimpleApp or WrapperStartStopApp methods of integration with the
Wrapper. Since methods 1 and 2 have been created, I very rarely find
it necessary
to use method 3 any more. You will not have to worry about whether or
not your
main method returns when using either of these methods. It is all taken
care of for you.
Cheers,
Leif
Vladan Obradovic wrote:
>Leif
>
>I wrote new Main.java class and implemented the WrapperListener interface
>as described in integration method 3.
>
>Add the wrapper.debug=true property to my conf file and try again.
>
>
>
>In log file got next messages:
>
>
>
>DEBUG | wrapper | 2003/12/09 17:16:22 | Service command:
>C:\JOnAS-3.3-Tomcat\wrapper\bin\Wrapper.exe -s
>C:\JOnAS-3.3-Tomcat\wrapper\wrapper_jonas.conf
>STATUS | wrapper | 2003/12/09 17:16:22 | JOnAS Server installed.
>STATUS | wrapper | 2003/12/09 17:16:28 | Starting the JOnAS Server
>service...
>STATUS | wrapper | 2003/12/09 17:16:28 | --> Wrapper Started as Service
>DEBUG | wrapperp | 2003/12/09 17:16:28 | server listening on port 15012.
>STATUS | wrapper | 2003/12/09 17:16:29 | Launching a JVM...
>DEBUG | wrapper | 2003/12/09 17:16:29 | command:
>"D:\j2sdk1.4.1_01\bin\java" -Dinstall.root=C:\JOnAS-3.3-Tomcat -Djonas.base=
>C:\JOnAS-3.3-Tomcat -Djava.security.policy=C:\JOnAS-3.3-Tomcat\conf\java.pol
>icy -Djonas.classpath= -Djonas.default.classloader=true -Djavax.rmi.CORBA.Po
>rtableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate -Djav
>a.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContext
>Factory -Djava.security.auth.login.config=C:\JOnAS-3.3-Tomcat\conf\jaas.conf
>ig -Djava.rmi.server.RMIClassLoaderSpi=org.objectweb.jonas.server.RemoteClas
>sLoaderSpi -Xms16m -Xmx64m -Djava.library.path="C:/JOnAS-3.3-Tomcat/wrapper/
>lib" -classpath
>"C:/JOnAS-3.3-Tomcat/wrapper/classes/;C:/JOnAS-3.3-Tomcat/lib/common/ow_jona
>s_bootstrap.jar;C:/JOnAS-3.3-Tomcat/conf/;C:/JOnAS-3.3-Tomcat/wrapper/lib/wr
>apper.jar;C:/JOnAS-3.3-Tomcat/wrapper/lib/wrappertest.jar;D:/j2sdk1.4.1_01/l
>ib/comm.jar;D:/j2sdk1.4.1_01/lib/dt.jar;D:/j2sdk1.4.1_01/lib/htmlconverter.j
>ar;D:/j2sdk1.4.1_01/lib/tools.jar" -Dwrapper.key="No2M5eZdKYDYx0Rz" -Dwrappe
>r.port=15012 -Dwrapper.debug="TRUE" -Dwrapper.service="TRUE" -Dwrapper.cpu.t
>imeout="10" -Dwrapper.jvmid=1 Main
>DEBUG | wrapper | 2003/12/09 17:16:29 | Java Virtual Machine started
>(PID=1604)
>INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: JVM #1
>INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: Registering
>shutdown hook
>INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: Using wrapper
>INFO | jvm 1 | 2003/12/09 17:16:29 | Calling native initialization
>method.
>INFO | jvm 1 | 2003/12/09 17:16:29 | Initializing WrapperManager native
>library.
>INFO | jvm 1 | 2003/12/09 17:16:29 | Java Executable:
>D:\j2sdk1.4.1_01\bin\java.exe
>INFO | jvm 1 | 2003/12/09 17:16:29 | Java Version : 1.4.1_01-b01 Java
>HotSpot(TM) Client VM
>INFO | jvm 1 | 2003/12/09 17:16:29 | Java VM Vendor : Sun Microsystems
>Inc.
>INFO | jvm 1 | 2003/12/09 17:16:29 |
>INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper (Version 3.0.5)
>INFO | jvm 1 | 2003/12/09 17:16:29 |
>INFO | jvm 1 | 2003/12/09 17:16:29 | Open socket to wrapper...
>INFO | jvm 1 | 2003/12/09 17:16:29 | Opened Socket
>INFO | jvm 1 | 2003/12/09 17:16:29 | Send a packet KEY :
>No2M5eZdKYDYx0Rz
>INFO | jvm 1 | 2003/12/09 17:16:29 |
>handleSocket(Socket[addr=/127.0.0.1,port=15012,localport=1197])
>DEBUG | wrapperp | 2003/12/09 17:16:29 | accepted a socket from 127.0.0.1
>on port 1197
>DEBUG | wrapperp | 2003/12/09 17:16:29 | read a packet KEY :
>No2M5eZdKYDYx0Rz
>DEBUG | wrapper | 2003/12/09 17:16:29 | Got key from JVM: No2M5eZdKYDYx0Rz
>DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet LOW_LOG_LEVEL : 1
>DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet PING_TIMEOUT : 40
>DEBUG | wrapper | 2003/12/09 17:16:29 | Start Application.
>DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet START : start
>INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet LOW_LOG_LEVEL :
>1
>INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: LowLogLevel from
>Wrapper is 1
>INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet PING_TIMEOUT :
>40
>INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: PingTimeout from
>Wrapper is 40000
>INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet START : start
>INFO | jvm 1 | 2003/12/09 17:16:30 | calling listener.start()
>INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,353 :
>TraceCarol.infoCarol : Name service for jrmp is started on port 1099
>INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,433 :
>ServiceManager.startRegistry : registry service started
>INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,764 :
>ServiceManager.startJmx : jmx service started
>INFO | jvm 1 | 2003/12/09 17:16:32 | 2003-12-09 17:16:31,964 :
>ServiceManager.startServices : jtm service started
>INFO | jvm 1 | 2003/12/09 17:16:32 | 2003-12-09 17:16:31,964 :
>ServiceManager.startServices : dbm service started
>INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,006 :
>ServiceManager.startServices : security service started
>INFO | wrapper | 2003/12/09 17:16:33 | Waiting to start...
>INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,787 :
>JmsAdminForJoram.startMOM : starting MOM on host localhost, port 16010
>INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,817 :
>JmsAdminForJoram.start : starting JmsAdmin with host localhost, port 16010
>INFO | jvm 1 | 2003/12/09 17:16:34 | 2003-12-09 17:16:34,057 :
>JmsAdminForJoram.start : starting Jms Monitoring with host localhost, port
>16010
>INFO | jvm 1 | 2003/12/09 17:16:34 | 2003-12-09 17:16:34,568 :
>ServiceManager.startServices : jms service started
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,019 :
>ResourceServiceImpl.createResourceAdapter :
>C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcCP.rar available
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,079 :
>ResourceServiceImpl.createResourceAdapter :
>C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcDM.rar available
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,289 :
>ResourceServiceImpl.createResourceAdapter :
>C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcDS.rar available
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,369 :
>ResourceServiceImpl.createResourceAdapter :
>C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcXA.rar available
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,369 :
>ServiceManager.startServices : resource service started
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,389 :
>ServiceManager.startServices : ejb service started
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,419 :
>Registry.loadRegistry : Loading registry information
>INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,419 :
>Registry.getRegistry : Creating new Registry instance
>INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:35,770 :
>Registry.loadRegistry : Loading registry information
>INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:36,461 :
>Http11Protocol.init : Initializing Coyote HTTP/1.1 on port 8080
>INFO | jvm 1 | 2003/12/09 17:16:36 | Starting service Tomcat-JOnAS
>INFO | jvm 1 | 2003/12/09 17:16:36 | Apache Tomcat/4.1.27
>INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:36,731 :
>Http11Protocol.start : Starting Coyote HTTP/1.1 on port 8080
>INFO | jvm 1 | 2003/12/09 17:16:37 | 2003-12-09 17:16:37,612 :
>AbsJWebContainerServiceImpl.registerWar : War
>/C:/JOnAS-3.3-Tomcat/webapps/autoload/ctxroot.war available at the context
>/.
>INFO | wrapper | 2003/12/09 17:16:38 | Waiting to start...
>INFO | jvm 1 | 2003/12/09 17:16:41 | 2003-12-09 17:16:41,358 :
>AbsJWebContainerServiceImpl.registerWar : War
>/C:/JOnAS-3.3-Tomcat/webapps/autoload/jonasAdmin.war available at the
>context /jonasAdmin.
>INFO | wrapper | 2003/12/09 17:16:43 | Waiting to start...
>INFO | jvm 1 | 2003/12/09 17:16:44 | 2003-12-09 17:16:44,512 :
>PropertyMessageResources.<init> : Initializing,
>config='org.apache.struts.util.LocalStrings', returnNull=true
>INFO | jvm 1 | 2003/12/09 17:16:44 | 2003-12-09 17:16:44,512 :
>PropertyMessageResources.<init> : Initializing,
>config='org.apache.struts.action.ActionResources', returnNull=true
>INFO | jvm 1 | 2003/12/09 17:16:45 | 2003-12-09 17:16:45,093 :
>PropertyMessageResources.<init> : Initializing,
>config='org.apache.webapp.admin.ApplicationResources', returnNull=true
>INFO | jvm 1 | 2003/12/09 17:16:45 | 2003-12-09 17:16:45,814 :
>AbsJWebContainerServiceImpl.registerWar : War
>/C:/JOnAS-3.3-Tomcat/webapps/autoload/tomcat-admin.war available at the
>context /tomcat-admin.
>INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:45,974 :
>AbsJWebContainerServiceImpl.registerWar : War
>/C:/JOnAS-3.3-Tomcat/webapps/autoload/tomcat-docs.war available at the
>context /tomcat-docs.
>INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:45,974 :
>ServiceManager.startServices : web service started
>INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,575 :
>JContainer.addBean : EarOp available
>INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,976 :
>AbsJWebContainerServiceImpl.registerWar : War
>/C:/JOnAS-3.3-Tomcat/apps/jonas/earsample_2003.09.26-17.17.52/earsample.war
>available at the context /earsample.
>INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,986 :
>EarServiceImpl.deployEar : Ear
>file:/C:/JOnAS-3.3-Tomcat/apps/autoload/earsample.ear available.
>INFO | jvm 1 | 2003/12/09 17:16:47 | 2003-12-09 17:16:47,006 :
>ServiceManager.startServices : ear service started
>INFO | jvm 1 | 2003/12/09 17:16:47 | The JOnAS Server 'jonas' version
>3.3 is ready
>INFO | jvm 1 | 2003/12/09 17:16:47 | 2003-12-09 17:16:47,006 :
>Server.start : Jonas server jonas started on rmi/jrmp
>INFO | wrapper | 2003/12/09 17:16:48 | Waiting to start...
>INFO | wrapper | 2003/12/09 17:16:53 | Waiting to start...
>INFO | wrapper | 2003/12/09 17:16:58 | Waiting to start...
>INFO | wrapper | 2003/12/09 17:17:03 | Waiting to start...
>INFO | wrapper | 2003/12/09 17:17:08 | Waiting to start...
>ERROR | wrapper | 2003/12/09 17:17:10 | Startup failed: Timed out waiting
>for signal from JVM.
>ERROR | wrapper | 2003/12/09 17:17:10 | Java Virtual Machine did not exit
>on request, terminated
>DEBUG | wrapper | 2003/12/09 17:17:10 | JVM was only running for 41
>seconds leading to a failed restart count of 1.
>FATAL | wrapper | 2003/12/09 17:17:10 | There were 1 failed launches in a
>row, each lasting less than 300 seconds. Giving up.
>FATAL | wrapper | 2003/12/09 17:17:10 | There may be a configuration
>problem: please check the logs.
>STATUS | wrapper | 2003/12/09 17:17:11 | <-- Wrapper Stopped
>ERROR | wrapper | 2003/12/09 17:17:12 | The JOnAS Server service was
>launched, but failed to start.
>
>
>
>File Main.java is show below:
>
>***************************************************************
>
>Main.java
>
>***************************************************************
>
>import org.tanukisoftware.wrapper.WrapperManager;
>import org.tanukisoftware.wrapper.WrapperListener;
>import org.objectweb.jonas.server.Bootstrap;
>
>public class Main implements WrapperListener
>{
> private Bootstrap m_app;
>
> private Main()
> {
> }
>
> public Integer start( String[] args )
> {
>
>
>
> String myargs[] = {"org.objectweb.jonas.server.Server"};
> m_app = new Bootstrap();
> m_app.main( myargs );
>
> return null;
> }
>
> public int stop( int exitCode )
> {
>
> String myargs[] = {"org.objectweb.jonas.adm.JonasAdmin","-s"};
> m_app.main( myargs );
> return exitCode;
> }
> public void controlEvent( int event )
> {
> if (WrapperManager.isControlledByNativeWrapper()) {
>
> } else {
> if ((event == WrapperManager.WRAPPER_CTRL_C_EVENT) ||
> (event == WrapperManager.WRAPPER_CTRL_CLOSE_EVENT) ||
> (event == WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT)){
> WrapperManager.stop(0);
> }
> }
> }
>
> public static void main( String[] args )
> {
> WrapperManager.start( new Main(), args );
> }
>}
>****************************************************************************
>
>
>
>Do you have any suggestion about this ?
>
>
>
>It's work fine as wrapper console application.
>
>
>
>
>
>> Also, they are not a problem, but what is the point of all the
>>variable declarations
>>using set.xxx at the top of your conf file?
>>
>>
>
>
>
>Some other class when server is started used this enviroment variables.
>
>
>
>Regards
>Vladan Obradovic
>
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IBM Linux Tutorials.
>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
>Free Linux Tutorials. Learn everything from the bash shell to sys admin.
>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|
|
From: Pauwels S. <Ste...@si...> - 2003-12-10 09:48:40
|
Hello, For my project I need to find out some export codes. Can someone please answer me following questions ? - What is the amount (in percentage) of US parts (programmed in the US, merging of US-Software, ...) in this software? - Is there encryption included in the software? What is the key length (in bit) of the encryption? Kind regards, Stefan Pauwels |
|
From: Vladan O. <vl...@eu...> - 2003-12-09 16:44:13
|
Leif
I wrote new Main.java class and implemented the WrapperListener interface
as described in integration method 3.
Add the wrapper.debug=true property to my conf file and try again.
In log file got next messages:
DEBUG | wrapper | 2003/12/09 17:16:22 | Service command:
C:\JOnAS-3.3-Tomcat\wrapper\bin\Wrapper.exe -s
C:\JOnAS-3.3-Tomcat\wrapper\wrapper_jonas.conf
STATUS | wrapper | 2003/12/09 17:16:22 | JOnAS Server installed.
STATUS | wrapper | 2003/12/09 17:16:28 | Starting the JOnAS Server
service...
STATUS | wrapper | 2003/12/09 17:16:28 | --> Wrapper Started as Service
DEBUG | wrapperp | 2003/12/09 17:16:28 | server listening on port 15012.
STATUS | wrapper | 2003/12/09 17:16:29 | Launching a JVM...
DEBUG | wrapper | 2003/12/09 17:16:29 | command:
"D:\j2sdk1.4.1_01\bin\java" -Dinstall.root=C:\JOnAS-3.3-Tomcat -Djonas.base=
C:\JOnAS-3.3-Tomcat -Djava.security.policy=C:\JOnAS-3.3-Tomcat\conf\java.pol
icy -Djonas.classpath= -Djonas.default.classloader=true -Djavax.rmi.CORBA.Po
rtableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate -Djav
a.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContext
Factory -Djava.security.auth.login.config=C:\JOnAS-3.3-Tomcat\conf\jaas.conf
ig -Djava.rmi.server.RMIClassLoaderSpi=org.objectweb.jonas.server.RemoteClas
sLoaderSpi -Xms16m -Xmx64m -Djava.library.path="C:/JOnAS-3.3-Tomcat/wrapper/
lib" -classpath
"C:/JOnAS-3.3-Tomcat/wrapper/classes/;C:/JOnAS-3.3-Tomcat/lib/common/ow_jona
s_bootstrap.jar;C:/JOnAS-3.3-Tomcat/conf/;C:/JOnAS-3.3-Tomcat/wrapper/lib/wr
apper.jar;C:/JOnAS-3.3-Tomcat/wrapper/lib/wrappertest.jar;D:/j2sdk1.4.1_01/l
ib/comm.jar;D:/j2sdk1.4.1_01/lib/dt.jar;D:/j2sdk1.4.1_01/lib/htmlconverter.j
ar;D:/j2sdk1.4.1_01/lib/tools.jar" -Dwrapper.key="No2M5eZdKYDYx0Rz" -Dwrappe
r.port=15012 -Dwrapper.debug="TRUE" -Dwrapper.service="TRUE" -Dwrapper.cpu.t
imeout="10" -Dwrapper.jvmid=1 Main
DEBUG | wrapper | 2003/12/09 17:16:29 | Java Virtual Machine started
(PID=1604)
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: JVM #1
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: Registering
shutdown hook
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: Using wrapper
INFO | jvm 1 | 2003/12/09 17:16:29 | Calling native initialization
method.
INFO | jvm 1 | 2003/12/09 17:16:29 | Initializing WrapperManager native
library.
INFO | jvm 1 | 2003/12/09 17:16:29 | Java Executable:
D:\j2sdk1.4.1_01\bin\java.exe
INFO | jvm 1 | 2003/12/09 17:16:29 | Java Version : 1.4.1_01-b01 Java
HotSpot(TM) Client VM
INFO | jvm 1 | 2003/12/09 17:16:29 | Java VM Vendor : Sun Microsystems
Inc.
INFO | jvm 1 | 2003/12/09 17:16:29 |
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper (Version 3.0.5)
INFO | jvm 1 | 2003/12/09 17:16:29 |
INFO | jvm 1 | 2003/12/09 17:16:29 | Open socket to wrapper...
INFO | jvm 1 | 2003/12/09 17:16:29 | Opened Socket
INFO | jvm 1 | 2003/12/09 17:16:29 | Send a packet KEY :
No2M5eZdKYDYx0Rz
INFO | jvm 1 | 2003/12/09 17:16:29 |
handleSocket(Socket[addr=/127.0.0.1,port=15012,localport=1197])
DEBUG | wrapperp | 2003/12/09 17:16:29 | accepted a socket from 127.0.0.1
on port 1197
DEBUG | wrapperp | 2003/12/09 17:16:29 | read a packet KEY :
No2M5eZdKYDYx0Rz
DEBUG | wrapper | 2003/12/09 17:16:29 | Got key from JVM: No2M5eZdKYDYx0Rz
DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet LOW_LOG_LEVEL : 1
DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet PING_TIMEOUT : 40
DEBUG | wrapper | 2003/12/09 17:16:29 | Start Application.
DEBUG | wrapperp | 2003/12/09 17:16:29 | send a packet START : start
INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet LOW_LOG_LEVEL :
1
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: LowLogLevel from
Wrapper is 1
INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet PING_TIMEOUT :
40
INFO | jvm 1 | 2003/12/09 17:16:29 | Wrapper Manager: PingTimeout from
Wrapper is 40000
INFO | jvm 1 | 2003/12/09 17:16:29 | Received a packet START : start
INFO | jvm 1 | 2003/12/09 17:16:30 | calling listener.start()
INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,353 :
TraceCarol.infoCarol : Name service for jrmp is started on port 1099
INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,433 :
ServiceManager.startRegistry : registry service started
INFO | jvm 1 | 2003/12/09 17:16:31 | 2003-12-09 17:16:31,764 :
ServiceManager.startJmx : jmx service started
INFO | jvm 1 | 2003/12/09 17:16:32 | 2003-12-09 17:16:31,964 :
ServiceManager.startServices : jtm service started
INFO | jvm 1 | 2003/12/09 17:16:32 | 2003-12-09 17:16:31,964 :
ServiceManager.startServices : dbm service started
INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,006 :
ServiceManager.startServices : security service started
INFO | wrapper | 2003/12/09 17:16:33 | Waiting to start...
INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,787 :
JmsAdminForJoram.startMOM : starting MOM on host localhost, port 16010
INFO | jvm 1 | 2003/12/09 17:16:33 | 2003-12-09 17:16:33,817 :
JmsAdminForJoram.start : starting JmsAdmin with host localhost, port 16010
INFO | jvm 1 | 2003/12/09 17:16:34 | 2003-12-09 17:16:34,057 :
JmsAdminForJoram.start : starting Jms Monitoring with host localhost, port
16010
INFO | jvm 1 | 2003/12/09 17:16:34 | 2003-12-09 17:16:34,568 :
ServiceManager.startServices : jms service started
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,019 :
ResourceServiceImpl.createResourceAdapter :
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcCP.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,079 :
ResourceServiceImpl.createResourceAdapter :
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcDM.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,289 :
ResourceServiceImpl.createResourceAdapter :
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcDS.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,369 :
ResourceServiceImpl.createResourceAdapter :
C:\JOnAS-3.3-Tomcat\rars\autoload\JOnAS_jdbcXA.rar available
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,369 :
ServiceManager.startServices : resource service started
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,389 :
ServiceManager.startServices : ejb service started
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,419 :
Registry.loadRegistry : Loading registry information
INFO | jvm 1 | 2003/12/09 17:16:35 | 2003-12-09 17:16:35,419 :
Registry.getRegistry : Creating new Registry instance
INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:35,770 :
Registry.loadRegistry : Loading registry information
INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:36,461 :
Http11Protocol.init : Initializing Coyote HTTP/1.1 on port 8080
INFO | jvm 1 | 2003/12/09 17:16:36 | Starting service Tomcat-JOnAS
INFO | jvm 1 | 2003/12/09 17:16:36 | Apache Tomcat/4.1.27
INFO | jvm 1 | 2003/12/09 17:16:36 | 2003-12-09 17:16:36,731 :
Http11Protocol.start : Starting Coyote HTTP/1.1 on port 8080
INFO | jvm 1 | 2003/12/09 17:16:37 | 2003-12-09 17:16:37,612 :
AbsJWebContainerServiceImpl.registerWar : War
/C:/JOnAS-3.3-Tomcat/webapps/autoload/ctxroot.war available at the context
/.
INFO | wrapper | 2003/12/09 17:16:38 | Waiting to start...
INFO | jvm 1 | 2003/12/09 17:16:41 | 2003-12-09 17:16:41,358 :
AbsJWebContainerServiceImpl.registerWar : War
/C:/JOnAS-3.3-Tomcat/webapps/autoload/jonasAdmin.war available at the
context /jonasAdmin.
INFO | wrapper | 2003/12/09 17:16:43 | Waiting to start...
INFO | jvm 1 | 2003/12/09 17:16:44 | 2003-12-09 17:16:44,512 :
PropertyMessageResources.<init> : Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
INFO | jvm 1 | 2003/12/09 17:16:44 | 2003-12-09 17:16:44,512 :
PropertyMessageResources.<init> : Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
INFO | jvm 1 | 2003/12/09 17:16:45 | 2003-12-09 17:16:45,093 :
PropertyMessageResources.<init> : Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
INFO | jvm 1 | 2003/12/09 17:16:45 | 2003-12-09 17:16:45,814 :
AbsJWebContainerServiceImpl.registerWar : War
/C:/JOnAS-3.3-Tomcat/webapps/autoload/tomcat-admin.war available at the
context /tomcat-admin.
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:45,974 :
AbsJWebContainerServiceImpl.registerWar : War
/C:/JOnAS-3.3-Tomcat/webapps/autoload/tomcat-docs.war available at the
context /tomcat-docs.
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:45,974 :
ServiceManager.startServices : web service started
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,575 :
JContainer.addBean : EarOp available
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,976 :
AbsJWebContainerServiceImpl.registerWar : War
/C:/JOnAS-3.3-Tomcat/apps/jonas/earsample_2003.09.26-17.17.52/earsample.war
available at the context /earsample.
INFO | jvm 1 | 2003/12/09 17:16:46 | 2003-12-09 17:16:46,986 :
EarServiceImpl.deployEar : Ear
file:/C:/JOnAS-3.3-Tomcat/apps/autoload/earsample.ear available.
INFO | jvm 1 | 2003/12/09 17:16:47 | 2003-12-09 17:16:47,006 :
ServiceManager.startServices : ear service started
INFO | jvm 1 | 2003/12/09 17:16:47 | The JOnAS Server 'jonas' version
3.3 is ready
INFO | jvm 1 | 2003/12/09 17:16:47 | 2003-12-09 17:16:47,006 :
Server.start : Jonas server jonas started on rmi/jrmp
INFO | wrapper | 2003/12/09 17:16:48 | Waiting to start...
INFO | wrapper | 2003/12/09 17:16:53 | Waiting to start...
INFO | wrapper | 2003/12/09 17:16:58 | Waiting to start...
INFO | wrapper | 2003/12/09 17:17:03 | Waiting to start...
INFO | wrapper | 2003/12/09 17:17:08 | Waiting to start...
ERROR | wrapper | 2003/12/09 17:17:10 | Startup failed: Timed out waiting
for signal from JVM.
ERROR | wrapper | 2003/12/09 17:17:10 | Java Virtual Machine did not exit
on request, terminated
DEBUG | wrapper | 2003/12/09 17:17:10 | JVM was only running for 41
seconds leading to a failed restart count of 1.
FATAL | wrapper | 2003/12/09 17:17:10 | There were 1 failed launches in a
row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2003/12/09 17:17:10 | There may be a configuration
problem: please check the logs.
STATUS | wrapper | 2003/12/09 17:17:11 | <-- Wrapper Stopped
ERROR | wrapper | 2003/12/09 17:17:12 | The JOnAS Server service was
launched, but failed to start.
File Main.java is show below:
***************************************************************
Main.java
***************************************************************
import org.tanukisoftware.wrapper.WrapperManager;
import org.tanukisoftware.wrapper.WrapperListener;
import org.objectweb.jonas.server.Bootstrap;
public class Main implements WrapperListener
{
private Bootstrap m_app;
private Main()
{
}
public Integer start( String[] args )
{
String myargs[] = {"org.objectweb.jonas.server.Server"};
m_app = new Bootstrap();
m_app.main( myargs );
return null;
}
public int stop( int exitCode )
{
String myargs[] = {"org.objectweb.jonas.adm.JonasAdmin","-s"};
m_app.main( myargs );
return exitCode;
}
public void controlEvent( int event )
{
if (WrapperManager.isControlledByNativeWrapper()) {
} else {
if ((event == WrapperManager.WRAPPER_CTRL_C_EVENT) ||
(event == WrapperManager.WRAPPER_CTRL_CLOSE_EVENT) ||
(event == WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT)){
WrapperManager.stop(0);
}
}
}
public static void main( String[] args )
{
WrapperManager.start( new Main(), args );
}
}
****************************************************************************
Do you have any suggestion about this ?
It's work fine as wrapper console application.
> Also, they are not a problem, but what is the point of all the
>variable declarations
>using set.xxx at the top of your conf file?
Some other class when server is started used this enviroment variables.
Regards
Vladan Obradovic
|
|
From: Jacques B. <jac...@gm...> - 2003-12-09 13:26:41
|
Leif. >Of course simply restarting the JVM using the JVM would be the easiest. True, but does that have to be done manually, or by an external app like the wrapper only, or can I request the JVM to restart itself from within my app? The app must run completely unattended and also update itself unattended. Thanx for your other tips. java.net.URLClassLoader is what I used for my bootstrap class already. Jacques ----- Original Message ----- From: "Leif Mortenson" <le...@ta...> To: <wra...@li...> Sent: Tuesday, December 09, 2003 2:58 PM Subject: Re: [Wrapper-user] Restart VM : Jacques, : Of course simply restarting the JVM using the JVM would be the : easiest :-) But what : you asking is possible. I can't walk you through all of the steps. But : the basic idea is to : create a new class loader which loads your application. The class : loader works just like : any other object. When all of its references are gone it can be garbage : collected along : with any classes that it loaded. : : You would then repeat the process for your new invocation. : : Applications like Tomcat do this to make it possible to reload JSP : pages when : they have been modified. : : The difference between Tomcat and your application is that with : Tomcat, it is relatively : easy to know when it is safe to GC a particular classloader. All : threads that call into that : code and all references are controlled by Tomcat. : : Your application will most likely be launching several threads and : maybe even using : something like swing. Even you remove all reverence to the class : loader yourself, it : will not be Gced if even a single thread someplace is still referencing : any class or object : that was loaded with that class loader. : : Also remember that if you load class A in two different class : loaders they will not be : the same class even though they have the same name. Ie you can not : cast an instance : of one to the other. The only way to reference an object in another : class loader is by : using a class that was loaded from the same place. This will be true : with most of the : core java classes. : : If you feeling brave, a good place to start would be with the : java.net.URLClassLoader. : I have written applications that make use of multiple classloaders. : They can be quite : useful if really needed, but you will be surprised by all the little : issues that will come up. : : Cheers and Good luck. : Leif : : Jacques Bosch wrote: : : >Hi there Leif. : >I have managed to come right with writing a bootstrap class that first : >copies the update if there is one and then starts up the main app. It works : >beautifully. Thanx for the suggestion. : >This is probably the wrong place to be asking, but do you know if it is : >possible to unload the main app again without terminating the VM. I.e.The : >bootstrap class must still be loaded. : >What happens now, when using the wrapper: The app downloads the new jar, : >puts it in Updates folder, and signals for the wrapper to restart the VM. : >Wrapper restarts the VM starting with the bootstrap class, that then copies : >the update and starts up the app. : >But now I would love to have the same functionality even when the wrapper : >isn't used. I.e. The app, that was loaded with the bootstrap, downloads the : >new jar, and then some how indicates to the bootstrat that there is an : >update. The bootstrap unloads the app, removing the VM's lock on the file, : >copies the update, and starts the app up once more. : > : >Do you know if this is possible? : > : >Thanx for your help. : >Jacques : > : > : >----- Original Message ----- : >From: "Leif Mortenson" <le...@ta...> : >To: <wra...@li...> : >Sent: Monday, December 01, 2003 3:07 PM : >Subject: Re: [Wrapper-user] Restart VM : > : > : >: Jacques, : >: In that case, you may have to play with class loaders. You will : >: have a bootstrap : >: class whose job is to look in a upgrade directory when it first starts. : >: If there are any new : >: jars, they are moved into the current jars dir. The bootstrap class : >: then actually calls the : >: real main method of your application. : >: : >: I don't think the jars will be locked until after they are actually : >: accessed. So as long as : >: your bootstrap class is in its own stable and independent jar then this : >: should work. If not : >: then you will have to have your bootstrap class create a new class : >: loader, which in turn : >: builds up a classpath and so on. Classloaders can be a bit of a pain, : >: so hopefully the first : >: option will work. : >: : >: Be sure to post back with the results. : >: : >: Cheers, : >: Leif : >: : >: Jacques Bosch wrote: : >: : >: >Leif. The app is deployed with the Sun JVM and it also locks the jars. So : >my : >: >problem is that I cannot replace the old jar file with the new one while : >the : >: >VM is still running. : >: > : >: > : >: : >: : >: : >: : >: ------------------------------------------------------- : >: This SF.net email is sponsored by: SF.net Giveback Program. : >: Does SourceForge.net help you be more productive? Does it : >: help you create better code? SHARE THE LOVE, and help us help : >: YOU! Click Here: http://sourceforge.net/donate/ : >: _______________________________________________ : >: Wrapper-user mailing list : >: Wra...@li... : >: https://lists.sourceforge.net/lists/listinfo/wrapper-user : >: : >: : >: : > : > : > : >------------------------------------------------------- : >This SF.net email is sponsored by: IBM Linux Tutorials. : >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's : >Free Linux Tutorials. Learn everything from the bash shell to sys admin. : >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click : >_______________________________________________ : >Wrapper-user mailing list : >Wra...@li... : >https://lists.sourceforge.net/lists/listinfo/wrapper-user : > : > : > : : : : : ------------------------------------------------------- : This SF.net email is sponsored by: IBM Linux Tutorials. : Become an expert in LINUX or just sharpen your skills. Sign up for IBM's : Free Linux Tutorials. Learn everything from the bash shell to sys admin. : Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click : _______________________________________________ : Wrapper-user mailing list : Wra...@li... : https://lists.sourceforge.net/lists/listinfo/wrapper-user : : : |
|
From: Leif M. <le...@ta...> - 2003-12-09 13:11:31
|
Pauwels, Actually, this program was 99% written in Japan. With a little help from Europe. I am from the US however if that counts, just haven't lived there in 8 years. There is no encryption so you should be fine. Cheers, Leif Pauwels Stefan wrote: >Hello, > >For my project I need to find out some export codes. > >Can someone please answer me following questions ? >- What is the amount (in percentage) of US parts (programmed in the US, >merging of US-Software, ...) in this software? > >- Is there encryption included in the software? What is the key length (in >bit) of the encryption? > >Kind regards, > >Stefan Pauwels > > |
|
From: Leif M. <le...@ta...> - 2003-12-09 13:09:05
|
Vladan,
Can you add the wrapper.debug=true property to your conf file and
try again. This
will kick out the information I will need to be able to understand what
is happening.
From your log though, it does not look like your application is
initializing the
WrapperManager class. Does your Bootstrap class implement the
WrapperListener
interface as described in integration method 3? If you had not said
that it worked
under console mode, I would tell you to go read the integration
documentation.
http://wrapper.tanukisoftware.org/doc/english/integrate.html
Also, they are not a problem, but what is the point of all the
variable declarations
using set.xxx at the top of your conf file? You do not appear to be
referencing them
anyplace.
Cheers,
Leif
Vladan Obradovic wrote:
> I try to start JOnAS Server as Windows system service.
>
> When start JOnAS Server in wrapper console (options -c) all work fine.
>
> If try start this as NT system service, but after some time got next
> messages in log file:
>
>
>
> INFO | jvm 2 | 2003/12/09 00:21:24 | 2003-12-09 00:21:24,895 :
> ServiceManager.startServices : ear service started
>
> INFO | jvm 2 | 2003/12/09 00:21:24 | The JOnAS Server 'jonas'
> version 3.3 is ready
>
> INFO | jvm 2 | 2003/12/09 00:21:24 | 2003-12-09 00:21:24,895 :
> Server.start : Jonas server jonas started on rmi/jrmp
>
> INFO | wrapper | 2003/12/09 00:21:26 | Waiting to start...
>
> INFO | wrapper | 2003/12/09 00:21:31 | Waiting to start...
>
> INFO | wrapper | 2003/12/09 00:21:36 | Waiting to start...
>
> INFO | wrapper | 2003/12/09 00:21:41 | Waiting to start...
>
> ERROR | wrapper | 2003/12/09 00:21:45 | Startup failed: Timed out
> waiting for signal from JVM.
>
> ERROR | wrapper | 2003/12/09 00:21:45 | Java Virtual Machine did not
> exit on request, terminated
>
> FATAL | wrapper | 2003/12/09 00:21:45 | There were 2 failed launches
> in a row, each lasting less than 300 seconds. Giving up.
>
> FATAL | wrapper | 2003/12/09 00:21:45 | There may be a
> configuration problem: please check the logs.
>
> STATUS | wrapper | 2003/12/09 00:21:46 | <-- Wrapper Stopped
>
>
>
> My configuration file for starting wrapper is show below:
>
>
>
> #********************************************************************
>
> # Wrapper parameters
>
> #********************************************************************
>
> # Java Application
>
> wrapper.java.command=D:/j2sdk1.4.1_01/bin/java
>
> # Java Main class
>
> wrapper.java.mainclass=org.objectweb.jonas.server.Bootstrap
>
>
>
> set.IDB_CLASSES_1=c:\idb\idb.jar
>
> set.IDB_CLASSES_2=c:\idb\idbexmpl.jar
>
> set.IDB_HOME=c:\idb
>
> set.INTERBASE_CLASSES=c:\interclient\interclient.jar
>
> set.JAVA=D:\j2sdk1.4.1_01\bin\java
>
> set.JAVAC=D:\j2sdk1.4.1_01\bin\javac
>
> set.JONAS_BASE=C:\JOnAS-3.3-Tomcat
>
> set.JONAS_LIB=C:\JOnAS-3.3-Tomcat\lib
>
> set.MCKOI_CLASSES=c:\mckoi\mkjdbc.jar
>
> set.MODE=start
>
> set.MYSQL_CLASSES=c:\mysql\mm.mysql-2.0.14\mm.mysql-2.0.14-bin.jar
>
> set.ORACLE_CLASSES=c:\oracle\lib\classes12.zip
>
> set.POSTGRE_CLASSES=c:\pgsql\jdbc7.0-1.2.jar
>
> set.WHERE=background
>
>
>
> # Java Classpath (include wrapper.jar) Add class path elements as
>
> $ needed starting from 1
>
> #wrapper.java.classpath.1=C:/JOnAS-3.3-Tomcat/
>
> wrapper.java.classpath.1=C:/JOnAS-3.3-Tomcat/lib/common/ow_jonas_bootstrap.jar
>
> wrapper.java.classpath.2=C:/JOnAS-3.3-Tomcat/conf/
>
> wrapper.java.classpath.3=C:/JOnAS-3.3-Tomcat/wrapper/lib/*.jar
>
> wrapper.java.classpath.4=D:/j2sdk1.4.1_01/lib/*.jar
>
>
>
> # Java Library Path (location of wrapper.lib)
>
> wrapper.java.library.path.1=C:/JOnAS-3.3-Tomcat/wrapper/lib
>
>
>
> # Java Additional Parameters
>
> wrapper.java.additional.1=-Dinstall.root=C:\JOnAS-3.3-Tomcat
>
> wrapper.java.additional.2=-Djonas.base=C:\JOnAS-3.3-Tomcat
>
> wrapper.java.additional.3=-Djava.security.policy=C:\JOnAS-3.3-Tomcat\conf\java.policy
>
>
> wrapper.java.additional.4=-Djonas.classpath=
>
> wrapper.java.additional.5=-Djonas.default.classloader=true
>
> wrapper.java.additional.6=-Djavax.rmi.CORBA.PortableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate
>
>
> wrapper.java.additional.7=-Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory
>
>
> wrapper.java.additional.8=-Djava.security.auth.login.config=C:\JOnAS-3.3-Tomcat\conf\jaas.config
>
>
> wrapper.java.additional.9=-Djava.rmi.server.RMIClassLoaderSpi=org.objectweb.jonas.server.RemoteClassLoaderSpi
>
>
>
>
> # Initial Java Heap Size (in MB)
>
> wrapper.java.initmemory=16
>
>
>
> # Maximum Java Heap Size (in MB)
>
> wrapper.java.maxmemory=64
>
>
>
> # Application parameters. Add parameters as needed starting from 1
>
> wrapper.app.parameter.1="org.objectweb.jonas.server.Server"
>
> wrapper.app.parameter.1.stripquotes=TRUE
>
>
>
> *...*
>
>
>
> Thanks in advance for any suggestion about this.
>
>
>
> Regards
>
> Vladan Obradovic
>
>
>
|
|
From: Leif M. <le...@ta...> - 2003-12-09 12:58:24
|
Jacques,
Of course simply restarting the JVM using the JVM would be the
easiest :-) But what
you asking is possible. I can't walk you through all of the steps. But
the basic idea is to
create a new class loader which loads your application. The class
loader works just like
any other object. When all of its references are gone it can be garbage
collected along
with any classes that it loaded.
You would then repeat the process for your new invocation.
Applications like Tomcat do this to make it possible to reload JSP
pages when
they have been modified.
The difference between Tomcat and your application is that with
Tomcat, it is relatively
easy to know when it is safe to GC a particular classloader. All
threads that call into that
code and all references are controlled by Tomcat.
Your application will most likely be launching several threads and
maybe even using
something like swing. Even you remove all reverence to the class
loader yourself, it
will not be Gced if even a single thread someplace is still referencing
any class or object
that was loaded with that class loader.
Also remember that if you load class A in two different class
loaders they will not be
the same class even though they have the same name. Ie you can not
cast an instance
of one to the other. The only way to reference an object in another
class loader is by
using a class that was loaded from the same place. This will be true
with most of the
core java classes.
If you feeling brave, a good place to start would be with the
java.net.URLClassLoader.
I have written applications that make use of multiple classloaders.
They can be quite
useful if really needed, but you will be surprised by all the little
issues that will come up.
Cheers and Good luck.
Leif
Jacques Bosch wrote:
>Hi there Leif.
>I have managed to come right with writing a bootstrap class that first
>copies the update if there is one and then starts up the main app. It works
>beautifully. Thanx for the suggestion.
>This is probably the wrong place to be asking, but do you know if it is
>possible to unload the main app again without terminating the VM. I.e.The
>bootstrap class must still be loaded.
>What happens now, when using the wrapper: The app downloads the new jar,
>puts it in Updates folder, and signals for the wrapper to restart the VM.
>Wrapper restarts the VM starting with the bootstrap class, that then copies
>the update and starts up the app.
>But now I would love to have the same functionality even when the wrapper
>isn't used. I.e. The app, that was loaded with the bootstrap, downloads the
>new jar, and then some how indicates to the bootstrat that there is an
>update. The bootstrap unloads the app, removing the VM's lock on the file,
>copies the update, and starts the app up once more.
>
>Do you know if this is possible?
>
>Thanx for your help.
>Jacques
>
>
>----- Original Message -----
>From: "Leif Mortenson" <le...@ta...>
>To: <wra...@li...>
>Sent: Monday, December 01, 2003 3:07 PM
>Subject: Re: [Wrapper-user] Restart VM
>
>
>: Jacques,
>: In that case, you may have to play with class loaders. You will
>: have a bootstrap
>: class whose job is to look in a upgrade directory when it first starts.
>: If there are any new
>: jars, they are moved into the current jars dir. The bootstrap class
>: then actually calls the
>: real main method of your application.
>:
>: I don't think the jars will be locked until after they are actually
>: accessed. So as long as
>: your bootstrap class is in its own stable and independent jar then this
>: should work. If not
>: then you will have to have your bootstrap class create a new class
>: loader, which in turn
>: builds up a classpath and so on. Classloaders can be a bit of a pain,
>: so hopefully the first
>: option will work.
>:
>: Be sure to post back with the results.
>:
>: Cheers,
>: Leif
>:
>: Jacques Bosch wrote:
>:
>: >Leif. The app is deployed with the Sun JVM and it also locks the jars. So
>my
>: >problem is that I cannot replace the old jar file with the new one while
>the
>: >VM is still running.
>: >
>: >
>:
>:
>:
>:
>: -------------------------------------------------------
>: This SF.net email is sponsored by: SF.net Giveback Program.
>: Does SourceForge.net help you be more productive? Does it
>: help you create better code? SHARE THE LOVE, and help us help
>: YOU! Click Here: http://sourceforge.net/donate/
>: _______________________________________________
>: Wrapper-user mailing list
>: Wra...@li...
>: https://lists.sourceforge.net/lists/listinfo/wrapper-user
>:
>:
>:
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IBM Linux Tutorials.
>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
>Free Linux Tutorials. Learn everything from the bash shell to sys admin.
>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|
|
From: Vladan O. <vl...@ns...> - 2003-12-09 11:37:18
|
I try to start JOnAS Server as Windows system service. When start JOnAS Server in wrapper console (options -c) all work fine. If try start this as NT system service, but after some time got next = messages in log file: =20 INFO | jvm 2 | 2003/12/09 00:21:24 | 2003-12-09 00:21:24,895 : = ServiceManager.startServices : ear service started INFO | jvm 2 | 2003/12/09 00:21:24 | The JOnAS Server 'jonas' = version 3.3 is ready INFO | jvm 2 | 2003/12/09 00:21:24 | 2003-12-09 00:21:24,895 : = Server.start : Jonas server jonas started on rmi/jrmp INFO | wrapper | 2003/12/09 00:21:26 | Waiting to start... INFO | wrapper | 2003/12/09 00:21:31 | Waiting to start... INFO | wrapper | 2003/12/09 00:21:36 | Waiting to start... INFO | wrapper | 2003/12/09 00:21:41 | Waiting to start... ERROR | wrapper | 2003/12/09 00:21:45 | Startup failed: Timed out = waiting for signal from JVM. ERROR | wrapper | 2003/12/09 00:21:45 | Java Virtual Machine did not = exit on request, terminated FATAL | wrapper | 2003/12/09 00:21:45 | There were 2 failed launches = in a row, each lasting less than 300 seconds. Giving up. FATAL | wrapper | 2003/12/09 00:21:45 | There may be a configuration = problem: please check the logs. STATUS | wrapper | 2003/12/09 00:21:46 | <-- Wrapper Stopped =20 My configuration file for starting wrapper is show below: =20 #******************************************************************** # Wrapper parameters #********************************************************************=20 # Java Application wrapper.java.command=3DD:/j2sdk1.4.1_01/bin/java # Java Main class wrapper.java.mainclass=3Dorg.objectweb.jonas.server.Bootstrap =20 set.IDB_CLASSES_1=3Dc:\idb\idb.jar set.IDB_CLASSES_2=3Dc:\idb\idbexmpl.jar set.IDB_HOME=3Dc:\idb set.INTERBASE_CLASSES=3Dc:\interclient\interclient.jar set.JAVA=3DD:\j2sdk1.4.1_01\bin\java set.JAVAC=3DD:\j2sdk1.4.1_01\bin\javac set.JONAS_BASE=3DC:\JOnAS-3.3-Tomcat set.JONAS_LIB=3DC:\JOnAS-3.3-Tomcat\lib set.MCKOI_CLASSES=3Dc:\mckoi\mkjdbc.jar set.MODE=3Dstart set.MYSQL_CLASSES=3Dc:\mysql\mm.mysql-2.0.14\mm.mysql-2.0.14-bin.jar set.ORACLE_CLASSES=3Dc:\oracle\lib\classes12.zip set.POSTGRE_CLASSES=3Dc:\pgsql\jdbc7.0-1.2.jar set.WHERE=3Dbackground =20 # Java Classpath (include wrapper.jar) Add class path elements as $ needed starting from 1 #wrapper.java.classpath.1=3DC:/JOnAS-3.3-Tomcat/ wrapper.java.classpath.1=3DC:/JOnAS-3.3-Tomcat/lib/common/ow_jonas_bootst= rap.jar wrapper.java.classpath.2=3DC:/JOnAS-3.3-Tomcat/conf/ wrapper.java.classpath.3=3DC:/JOnAS-3.3-Tomcat/wrapper/lib/*.jar wrapper.java.classpath.4=3DD:/j2sdk1.4.1_01/lib/*.jar =20 # Java Library Path (location of wrapper.lib) wrapper.java.library.path.1=3DC:/JOnAS-3.3-Tomcat/wrapper/lib =20 # Java Additional Parameters wrapper.java.additional.1=3D-Dinstall.root=3DC:\JOnAS-3.3-Tomcat=20 wrapper.java.additional.2=3D-Djonas.base=3DC:\JOnAS-3.3-Tomcat=20 wrapper.java.additional.3=3D-Djava.security.policy=3DC:\JOnAS-3.3-Tomcat\= conf\java.policy=20 wrapper.java.additional.4=3D-Djonas.classpath=3D=20 wrapper.java.additional.5=3D-Djonas.default.classloader=3Dtrue=20 wrapper.java.additional.6=3D-Djavax.rmi.CORBA.PortableRemoteObjectClass=3D= org.objectweb.carol.rmi.multi.MultiPRODelegate=20 wrapper.java.additional.7=3D-Djava.naming.factory.initial=3Dorg.objectweb= .carol.jndi.spi.MultiOrbInitialContextFactory =20 wrapper.java.additional.8=3D-Djava.security.auth.login.config=3DC:\JOnAS-= 3.3-Tomcat\conf\jaas.config=20 wrapper.java.additional.9=3D-Djava.rmi.server.RMIClassLoaderSpi=3Dorg.obj= ectweb.jonas.server.RemoteClassLoaderSpi=20 =20 # Initial Java Heap Size (in MB) wrapper.java.initmemory=3D16 =20 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=3D64 =20 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=3D"org.objectweb.jonas.server.Server" wrapper.app.parameter.1.stripquotes=3DTRUE =20 ... =20 Thanks in advance for any suggestion about this. =20 Regards Vladan Obradovic =20 |
|
From: Pauwels S. <Ste...@si...> - 2003-12-09 09:45:04
|
Hello, For my project I need to find out some export codes. Can someone please answer me following questions ? - What is the amount (in percentage) of US parts (programmed in the US, merging of US-Software, ...) in this software? - Is there encryption included in the software? What is the key length (in bit) of the encryption? Kind regards, Stefan Pauwels |
|
From: Ramachandra, A. <Ram...@Sy...> - 2003-12-09 08:57:25
|
Oh i'm sorry. I think i replied to the wrong message. I meant to reply to my mail below: > I have a program which runs in the wrapper as a service. > The program launches an excel exe. > It seems to be running fine in console mode but not in service mode > > Does anyone have an idea why this could be happenning? Has anyone seen > this before? > -Thanks > -Arun > The problem i debugged was happenning because the service was not running under a user with proper permissions -Thanks -Arun -----Original Message----- From: Sal Ingrilli [mailto:sal...@sy...] Sent: Tuesday, December 09, 2003 2:06 PM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel could you please give us more details? why would a permission problem make the wrong program start as a service? -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Ramachandra, Arun Sent: Monday, December 08, 2003 11:37 PM To: 'wra...@li...' Subject: RE: [Wrapper-user] Wrapper and Excel This does not happen anymore. It was a permissions problem. -----Original Message----- From: Sal Ingrilli [ mailto:sal...@sy... <mailto:sal...@sy...> ] Sent: Tuesday, December 09, 2003 6:15 AM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel i would install tightvnc & allow leif to get in & take a look. but i can't imagine how this could possibly be a wrapper issue. maybe java.exe on your box (at least when runnning as a service) is the same as excel.exe! this happens every time & not just sporadically, right? -----Original Message----- From: wra...@li... [ mailto:wra...@li... <mailto:wra...@li...> ]On Behalf Of Russell Rice Sent: Monday, December 08, 2003 3:17 PM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel It's not crazy - it really happens - I've had it happen. Quoting Sal Ingrilli <sal...@sy...>: > Wrapper and Excelyou could have setup the service for recovery, and you have > it setup to run excel if the service fails. see control panel | > administrative tools | services | your service | properties | recovery. > > i suggest you follow the wrapper manual instructions verbatim to setup the > wrapper & try it on a brand new box. > > do you realize how crazy what you're reporting sounds? > -----Original Message----- > From: wra...@li... > [ mailto:wra...@li... <mailto:wra...@li...> ]On Behalf Of Ramachandra, > Arun > Sent: Saturday, December 06, 2003 3:04 AM > To: 'wra...@li...' > Subject: [Wrapper-user] Wrapper and Excel > > > I have a program which runs in the wrapper as a service. > The program launches an excel exe. > It seems to be running fine in console mode but not in service mode > > Does anyone have an idea why this could be happenning? Has anyone seen > this before? > -Thanks > -Arun > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278 <http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click> &alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user <https://lists.sourceforge.net/lists/listinfo/wrapper-user> ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278 <http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click> &alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user <https://lists.sourceforge.net/lists/listinfo/wrapper-user> |
|
From: Sal I. <sal...@sy...> - 2003-12-09 08:35:48
|
RE: [Wrapper-user] Wrapper and Excelcould you please give us more details? why would a permission problem make the wrong program start as a service? -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Ramachandra, Arun Sent: Monday, December 08, 2003 11:37 PM To: 'wra...@li...' Subject: RE: [Wrapper-user] Wrapper and Excel This does not happen anymore. It was a permissions problem. -----Original Message----- From: Sal Ingrilli [mailto:sal...@sy...] Sent: Tuesday, December 09, 2003 6:15 AM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel i would install tightvnc & allow leif to get in & take a look. but i can't imagine how this could possibly be a wrapper issue. maybe java.exe on your box (at least when runnning as a service) is the same as excel.exe! this happens every time & not just sporadically, right? -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Russell Rice Sent: Monday, December 08, 2003 3:17 PM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel It's not crazy - it really happens - I've had it happen. Quoting Sal Ingrilli <sal...@sy...>: > Wrapper and Excelyou could have setup the service for recovery, and you have > it setup to run excel if the service fails. see control panel | > administrative tools | services | your service | properties | recovery. > > i suggest you follow the wrapper manual instructions verbatim to setup the > wrapper & try it on a brand new box. > > do you realize how crazy what you're reporting sounds? > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Ramachandra, > Arun > Sent: Saturday, December 06, 2003 3:04 AM > To: 'wra...@li...' > Subject: [Wrapper-user] Wrapper and Excel > > > I have a program which runs in the wrapper as a service. > The program launches an excel exe. > It seems to be running fine in console mode but not in service mode > > Does anyone have an idea why this could be happenning? Has anyone seen > this before? > -Thanks > -Arun > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Ramachandra, A. <Ram...@Sy...> - 2003-12-09 07:36:45
|
This does not happen anymore. It was a permissions problem. -----Original Message----- From: Sal Ingrilli [mailto:sal...@sy...] Sent: Tuesday, December 09, 2003 6:15 AM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel i would install tightvnc & allow leif to get in & take a look. but i can't imagine how this could possibly be a wrapper issue. maybe java.exe on your box (at least when runnning as a service) is the same as excel.exe! this happens every time & not just sporadically, right? -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Russell Rice Sent: Monday, December 08, 2003 3:17 PM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel It's not crazy - it really happens - I've had it happen. Quoting Sal Ingrilli <sal...@sy...>: > Wrapper and Excelyou could have setup the service for recovery, and you have > it setup to run excel if the service fails. see control panel | > administrative tools | services | your service | properties | recovery. > > i suggest you follow the wrapper manual instructions verbatim to setup the > wrapper & try it on a brand new box. > > do you realize how crazy what you're reporting sounds? > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Ramachandra, > Arun > Sent: Saturday, December 06, 2003 3:04 AM > To: 'wra...@li...' > Subject: [Wrapper-user] Wrapper and Excel > > > I have a program which runs in the wrapper as a service. > The program launches an excel exe. > It seems to be running fine in console mode but not in service mode > > Does anyone have an idea why this could be happenning? Has anyone seen > this before? > -Thanks > -Arun > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Jacques B. <jac...@gm...> - 2003-12-09 07:07:24
|
Hi there Leif. I have managed to come right with writing a bootstrap class that first copies the update if there is one and then starts up the main app. It works beautifully. Thanx for the suggestion. This is probably the wrong place to be asking, but do you know if it is possible to unload the main app again without terminating the VM. I.e.The bootstrap class must still be loaded. What happens now, when using the wrapper: The app downloads the new jar, puts it in Updates folder, and signals for the wrapper to restart the VM. Wrapper restarts the VM starting with the bootstrap class, that then copies the update and starts up the app. But now I would love to have the same functionality even when the wrapper isn't used. I.e. The app, that was loaded with the bootstrap, downloads the new jar, and then some how indicates to the bootstrat that there is an update. The bootstrap unloads the app, removing the VM's lock on the file, copies the update, and starts the app up once more. Do you know if this is possible? Thanx for your help. Jacques ----- Original Message ----- From: "Leif Mortenson" <le...@ta...> To: <wra...@li...> Sent: Monday, December 01, 2003 3:07 PM Subject: Re: [Wrapper-user] Restart VM : Jacques, : In that case, you may have to play with class loaders. You will : have a bootstrap : class whose job is to look in a upgrade directory when it first starts. : If there are any new : jars, they are moved into the current jars dir. The bootstrap class : then actually calls the : real main method of your application. : : I don't think the jars will be locked until after they are actually : accessed. So as long as : your bootstrap class is in its own stable and independent jar then this : should work. If not : then you will have to have your bootstrap class create a new class : loader, which in turn : builds up a classpath and so on. Classloaders can be a bit of a pain, : so hopefully the first : option will work. : : Be sure to post back with the results. : : Cheers, : Leif : : Jacques Bosch wrote: : : >Leif. The app is deployed with the Sun JVM and it also locks the jars. So my : >problem is that I cannot replace the old jar file with the new one while the : >VM is still running. : > : > : : : : : ------------------------------------------------------- : This SF.net email is sponsored by: SF.net Giveback Program. : Does SourceForge.net help you be more productive? Does it : help you create better code? SHARE THE LOVE, and help us help : YOU! Click Here: http://sourceforge.net/donate/ : _______________________________________________ : Wrapper-user mailing list : Wra...@li... : https://lists.sourceforge.net/lists/listinfo/wrapper-user : : : |
|
From: Sal I. <sal...@sy...> - 2003-12-09 00:45:08
|
i would install tightvnc & allow leif to get in & take a look. but i can't imagine how this could possibly be a wrapper issue. maybe java.exe on your box (at least when runnning as a service) is the same as excel.exe! this happens every time & not just sporadically, right? -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Russell Rice Sent: Monday, December 08, 2003 3:17 PM To: wra...@li... Subject: RE: [Wrapper-user] Wrapper and Excel It's not crazy - it really happens - I've had it happen. Quoting Sal Ingrilli <sal...@sy...>: > Wrapper and Excelyou could have setup the service for recovery, and you have > it setup to run excel if the service fails. see control panel | > administrative tools | services | your service | properties | recovery. > > i suggest you follow the wrapper manual instructions verbatim to setup the > wrapper & try it on a brand new box. > > do you realize how crazy what you're reporting sounds? > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Ramachandra, > Arun > Sent: Saturday, December 06, 2003 3:04 AM > To: 'wra...@li...' > Subject: [Wrapper-user] Wrapper and Excel > > > I have a program which runs in the wrapper as a service. > The program launches an excel exe. > It seems to be running fine in console mode but not in service mode > > Does anyone have an idea why this could be happenning? Has anyone seen > this before? > -Thanks > -Arun > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Russell R. <rr...@mo...> - 2003-12-08 23:17:17
|
It's not crazy - it really happens - I've had it happen. Quoting Sal Ingrilli <sal...@sy...>: > Wrapper and Excelyou could have setup the service for recovery, and you have > it setup to run excel if the service fails. see control panel | > administrative tools | services | your service | properties | recovery. > > i suggest you follow the wrapper manual instructions verbatim to setup the > wrapper & try it on a brand new box. > > do you realize how crazy what you're reporting sounds? > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...]On Behalf Of Ramachandra, > Arun > Sent: Saturday, December 06, 2003 3:04 AM > To: 'wra...@li...' > Subject: [Wrapper-user] Wrapper and Excel > > > I have a program which runs in the wrapper as a service. > The program launches an excel exe. > It seems to be running fine in console mode but not in service mode > > Does anyone have an idea why this could be happenning? Has anyone seen > this before? > -Thanks > -Arun > |
|
From: Sal I. <sal...@sy...> - 2003-12-08 17:17:15
|
Wrapper and Excelyou could have setup the service for recovery, and you have it setup to run excel if the service fails. see control panel | administrative tools | services | your service | properties | recovery. i suggest you follow the wrapper manual instructions verbatim to setup the wrapper & try it on a brand new box. do you realize how crazy what you're reporting sounds? -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Ramachandra, Arun Sent: Saturday, December 06, 2003 3:04 AM To: 'wra...@li...' Subject: [Wrapper-user] Wrapper and Excel I have a program which runs in the wrapper as a service. The program launches an excel exe. It seems to be running fine in console mode but not in service mode Does anyone have an idea why this could be happenning? Has anyone seen this before? -Thanks -Arun |
|
From: Russell R. <rr...@mo...> - 2003-12-08 13:30:32
|
1: The options are in the Services options through the control panel. 2: Yes, Excel will be a process - it's just hung up waiting for user input the first time it gets run (by SYSTEM) Quoting "Ramachandra, Arun" <Ram...@Sy...>: > 1:> Where do these options come? in wrapper.conf? > 2:> Actually i can see Excel.exe as a process in the task manager but the > xla which is called upon by the program does not seem to be doing anything. > Is this some security setting?(the macro security is already low) > > -Thanks > -Arun > > > -----Original Message----- > From: Russell Rice [mailto:rr...@mo...] > Sent: Saturday, December 06, 2003 7:42 PM > To: wra...@li...; Ramachandra, Arun > Cc: 'wra...@li...' > Subject: Re: [Wrapper-user] Wrapper and Excel > > > Actually, I have seen this type of thing before. > > The problem I experienced interlies in the fact Excel has the annoying > Office > Assistant. When it starts up for the first time for each user on the > machine, > the Office Assistant is asking something like "do you want information on > this > version of Excel?" > > My solution for this was one of the following: > 1) Check the option "Allow service to interact with desktop" - run what > ends > up calling Excel, then click there > 2) Change the user it logs in as away from SYSTEM to your own > username/password. > > Hope this helps. > > Quoting "Ramachandra, Arun" <Ram...@Sy...>: > > > I have a program which runs in the wrapper as a service. > > The program launches an excel exe. > > It seems to be running fine in console mode but not in service mode > > > > Does anyone have an idea why this could be happenning? Has anyone seen > this > > before? > > -Thanks > > -Arun > > > > |