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: Leif M. <le...@ta...> - 2003-12-01 11:59:14
|
Jacques,
It is not possible to hide the console when the Wrapper is running
as a console
application. Stay tuned however, because I am already planning on
making this
possible in a future version. Monitor the following feature request so
you know
when it gets added.
http://sourceforge.net/tracker/?func=detail&aid=851223&group_id=39428&atid=425190
Cheers,
Leif
Jacques Bosch wrote:
>Also, is it possible to hide the console when not running as an NT service?
>
>Jacques
>
>
|
|
From: Leif M. <le...@ta...> - 2003-12-01 11:57:00
|
Jacques,
You should be able to download the new jars and place them in the
correct directory.
That should be doable without the Wrapper. (You may have problems with
the IBM JVM?
because it locks the files? This is from memory, so it may be wrong :-/)
Anyway, once you have the new jar files in place, all you need to do
is trigger the
Wrapper to restart the JVM. You could do that using a filter as you
specified or
you could simply call WrapperManager.restart(). I would suggest the
later as it does
not require anything in the wrapper.conf file.
Cheers,
Leif
Jacques Bosch wrote:
>Hi there Leif.
>
>I want to know another thing.
>
>I have a java app that runs unattended and that needs to do a self update to
>the latest version completely independently, without any user intervention.
>The app periodically checks for a new version, and if it finds it, downloads
>the new jar file. But the thing is that the app obviously can't update
>itself.
>I want to know if it is possible to use the wrapper in some way to copy the
>new jar over the old one before starting up the VM again.
>So in that way I would be able to write an "New Update Available..." message
>to the console and catch that with a wrapper filter trigger to restart the
>VM.
>
>Any thoughts or suggestions on how to do this?
>
>Thanx, Jacques
>
>
|
|
From: Jacques B. <jac...@gm...> - 2003-12-01 08:54:14
|
Hi there Leif. I want to know another thing. I have a java app that runs unattended and that needs to do a self update to the latest version completely independently, without any user intervention. The app periodically checks for a new version, and if it finds it, downloads the new jar file. But the thing is that the app obviously can't update itself. I want to know if it is possible to use the wrapper in some way to copy the new jar over the old one before starting up the VM again. So in that way I would be able to write an "New Update Available..." message to the console and catch that with a wrapper filter trigger to restart the VM. Any thoughts or suggestions on how to do this? Thanx, Jacques |
|
From: Jacques B. <jac...@gm...> - 2003-12-01 08:39:11
|
Also, is it possible to hide the console when not running as an NT service? Jacques |
|
From: Jacques B. <jac...@gm...> - 2003-12-01 08:19:58
|
Hi there. What is the environment variable to add the win/system32 folder to the wrapper.java.library.path? Where can I get a list of the environment variables. Couldn't find it in the docs. Thanx much. Jacques |
|
From: Leif M. <le...@ta...> - 2003-11-29 17:48:33
|
Andreas, >I'm currently in a situation where I need to add more parameters the the service's command line when installing my application via the wrapper on >Windows. >The only way to do this at the moment is to add them manually via the registry (or via an installer tool) which isn't very customer friendly. >I would suggest a new configuration property like wrapper.ntservice.parameters that could be appended to the command line quite easily. > > Actually, this should already work with the Wrapper. Just as can be done when launching the wrapper as a service app, you can also specify additional parameters when installing the Wrapper as an NT service. The Wrapper will record any and all parameters in the registry so they will be used when the Wrapper is launched as a service. Simply modify the install script or run from the command line as follows: Wrapper.exe -i ../wrapper.conf wrapper.debug=true wrapper.etc=etc The NT service manager will then launch the Wrapper using the following command stored in the registry: Wrapper.exe -s ../wrapper.conf wrapper.debug=true wrapper.etc=etc (The -s is an internal command used to tell the Wrapper that it is being run as a service) Cheers, Leif >P.S.: I tried to post this to the user list but our email servers seem to have some problems with the address. > > The SF mail servers can be a bit fickle at times. I sometimes can bounced myself. |
|
From: Leif M. <le...@ta...> - 2003-11-29 17:30:54
|
whack er wrote: > I got this now. I was able to use the setting on the wrapper.conf to > display the GUI on Windows XP and yet hide the console. > > Any chances of hiding the console when not running as a service on > Windows XP ? The wrapper currently runs as a console application so it requires a console when not running as a service. I like the idea of being able to get rid of this console for certain applications. I added a feature request and well try to get this implemented in a future release. Most likely this will require a second wrapper executable, maybe WrapperW.exe. Feel free to monitor the feature request so you will know when any progress is made on this. http://sourceforge.net/tracker/index.php?func=detail&aid=851223&group_id=39428&atid=425190 Cheers, Leif |
|
From: Leif M. <le...@ta...> - 2003-11-29 06:42:26
|
Elhanan,
I am planning to add the ability to set any user directory for the
Wrapper in a future
version. But for now, it is not possible to set the user dir to any
location other than the
location of the Wrapper.exe file. If you really need the user
directory to be in the root
directory, then the only way to do this is to actually place the
Wrapper.exe in the root.
This should work. You will have to modify the startup scripts and any
other related
paths in the wrapper.conf file. It will work however.
Cheers,
Leif
אלחנן מעיין wrote:
> So is there a possibility to use the wrapper from the root instead of
> sub dir bin?
>
> -----Original Message-----
> From: Leif Mortenson [mailto:le...@ta...]
> Sent: Tuesday, November 25, 2003 4:56 PM
> To: Wrapper User List
> Cc: אלחנן מעיין
> Subject: Re: [Wrapper-user] configuring Wrapper to run to java classes
> to run as one service. ..
>
> Elhanan,
> Is this a program that you have written or is it something that you
> are simply trying to
> get integrated with the wrapper. You sent me a lot. I tried looking it
> all over, but may
> have missed something. It sounds like your only remaining problems are
> path related.
>
> One thing that you need to know about how the Wrapper currently
> works is that it
> always sets the current user.dir of the JVM to be the location of the
> Wrapper.exe file.
> All paths are then relative to this location. So if you create a file:
> new File( "tmp/0" )
> then this File object will represent a file called "0", located in a
> directory, "tmp", which
> is located in the current user directory, which is the location of the
> Wrapper.exe file.
> If you really want to accessing the tmp directory in the root, then
> you need to do the
> following: new File( "/tmp/0" )
> This tells Java to start and the root directory, ignoring the current
> user directory.
>
> It is possible to override the default user.dir when the JVM is
> launched by explicitly
> setting the user.dir property as a system property. This can be done
> using the following
> parameter in your wrapper.conf file.
> wrapper.java.additional.1=-Duser.dir=/
>
> The above sets the user dir to the root directory. Note that this
> WILL BREAK all
> relative path handling by the Wrapper and you will need to start
> specifying fully
> qualified paths in your wrapper.conf file. I don't normally suggest
> this, because path
> problems tend to quickly multiply.
>
> If you have access to the source of the compass application, I would
> suggest trying
> to figure out another way to correct those path issues from within the
> application.
> It seems like you should have been having similar problems when running
> from a batch
> file. Did that batch file include and cds or anything to change the
> current directory to
> the root?
>
> Cheers,
> Leif
>
> P.S. Please post to the list rather than to me directly. It helps other
> to learn by making
> your questions and my answers searchable.
>
|
|
From: Leif M. <le...@ta...> - 2003-11-29 06:39:27
|
Zaitsau Stanislau wrote: >I've got the next trouble with Java Service Wrapper: >I need to install it so it starts on reboot at different linux distr's. >There is no problem with creating link in /etc/init.d, but but the trouble is in setting runlevel >on debian it: update-rc.d myapp start 20 2 3 4 5 . stop 20 0 1 6 . >on redhat something like: chkconfig --level 345 services_name >etc. > >Could I do it with xinet.d or not? > > There is nothing in the Wrapper to prevent you from using other tools to manage the startup. I personally don't have access to every possible platform however. As it says in the documentation, I would be happy to add additional documentation describing how to configure starup using these tools if users with access to them would explain the process and them hep verify the docs before I publish them. If any other users have knowledge of xinet.d, please post a followup. Cheers, Leif |
|
From: Leif M. <le...@ta...> - 2003-11-29 06:34:42
|
Fredrik,
The problem is that your system's "Event Log" is full. This is not
the wrapper.log file. If
you go into the admin section of the control panel, you will an
EventViewer. If you load this
up, you will find that is full of messages from the Wrapper. If you
clean that out then the
warning will go away.
This was caused because you specified the following in your
wrapper.conf file:
wrapper.syslog.loglevel=INFO
There is nothing wrong with this technically, but if your
application prints a lot of output
to the console, then each individual line of output will result in an
Event Log entry. This
is most likely what filled up your event log so quickly. I would
suggest setting this to a
log level of STATUS or higher. If you do not specifically need the
event log entries then
I would suggest setting this value to NONE.
Cheers,
Leif
fre...@st... wrote:
>Hi
>My application have been running fine for a couple of months. Yesterday I
>stopped the service, removed some debug printouts, ran in console to see that
>nothing was broken, then restarted the service.
>
>The problem is that I now get "Unable to write to the EventLog..." each time the
>service is started, but output from my app still gets written into the log file.
>
>My wrapper.log is currently <3kB, so it is not full, and I only have one of max
>3 files. The machine is a w2k host in a corporation net. Can there be a problem
>that I started it in console as me once, and then as SYSTEM? I tried to remove
>the log file so that wrapper had to create it running as SYSTEM, but that did
>not help. All files reside on local disc (c:).
>
>Any ideas?
>
>Regards
>Fredrik
>
>
>Below is an extract from wrapper.log
>-------------------------------------------------------------------------
>STATUS | wrapper | 2003/11/27 18:28:56 | --> Wrapper Started as Service
>ERROR | wrapper | 2003/11/27 18:28:56 | Unable to write to the EventLog due
>to: The event log file is full. (0x5de)
>ERROR | wrapper | 2003/11/27 18:28:56 | Internally setting wrapper.syslog.
>loglevel=NONE to prevent further messages.
>STATUS | wrapper | 2003/11/27 18:28:57 | Launching a JVM...
>INFO | jvm 1 | 2003/11/27 18:28:57 | Wrapper (Version 3.0.5)
>INFO | jvm 1 | 2003/11/27 18:28:57 |
>INFO | jvm 1 | 2003/11/27 18:28:58 | Java Virtual Machine Properties:
>INFO | jvm 1 | 2003/11/27 18:28:58 | java.version=1.4.2_02
>INFO | jvm 1 | 2003/11/27 18:28:58 | java.vendor=Sun Microsystems Inc.
>INFO | jvm 1 | 2003/11/27 18:28:58 | java.vm.version=1.4.2_02-b03
>INFO | jvm 1 | 2003/11/27 18:28:58 | java.vm.vendor=Sun Microsystems Inc.
>INFO | jvm 1 | 2003/11/27 18:28:58 | java.vm.name=Java HotSpot(TM) Server
>VM
>INFO | jvm 1 | 2003/11/27 18:28:58 | os.name=Windows 2000
>INFO | jvm 1 | 2003/11/27 18:28:58 | os.arch=x86
>INFO | jvm 1 | 2003/11/27 18:28:58 | os.version=5.0
>INFO | jvm 1 | 2003/11/27 18:28:58 | user.name=SYSTEM
>
>Below is an extract from my wrapper.conf:
>------------------------------------------------------------------------------
>wrapper.logfile=../logs/wrapper.log
>wrapper.logfile.format=LPTM
>wrapper.logfile.loglevel=INFO
>wrapper.logfile.maxsize=5000000
>wrapper.logfile.maxfiles=3
>wrapper.syslog.loglevel=INFO
>
|
|
From: Zaitsau S. <SZ...@be...> - 2003-11-28 09:40:52
|
Hi Folks! I've got the next trouble with Java Service Wrapper: I need to install it so it starts on reboot at different linux distr's. There is no problem with creating link in /etc/init.d, but but the = trouble is in setting runlevel on debian it: update-rc.d myapp start 20 2 3 4 5 . stop 20 0 1 6 . on redhat something like: chkconfig --level 345 services_name etc. Could I do it with xinet.d or not? Please advice. |
|
From: <fre...@st...> - 2003-11-28 09:04:34
|
Hi My application have been running fine for a couple of months. Yesterday I stopped the service, removed some debug printouts, ran in console to see that nothing was broken, then restarted the service. The problem is that I now get "Unable to write to the EventLog..." each time the service is started, but output from my app still gets written into the log file. My wrapper.log is currently <3kB, so it is not full, and I only have one of max 3 files. The machine is a w2k host in a corporation net. Can there be a problem that I started it in console as me once, and then as SYSTEM? I tried to remove the log file so that wrapper had to create it running as SYSTEM, but that did not help. All files reside on local disc (c:). Any ideas? Regards Fredrik Below is an extract from wrapper.log ------------------------------------------------------------------------- STATUS | wrapper | 2003/11/27 18:28:56 | --> Wrapper Started as Service ERROR | wrapper | 2003/11/27 18:28:56 | Unable to write to the EventLog due to: The event log file is full. (0x5de) ERROR | wrapper | 2003/11/27 18:28:56 | Internally setting wrapper.syslog. loglevel=NONE to prevent further messages. STATUS | wrapper | 2003/11/27 18:28:57 | Launching a JVM... INFO | jvm 1 | 2003/11/27 18:28:57 | Wrapper (Version 3.0.5) INFO | jvm 1 | 2003/11/27 18:28:57 | INFO | jvm 1 | 2003/11/27 18:28:58 | Java Virtual Machine Properties: INFO | jvm 1 | 2003/11/27 18:28:58 | java.version=1.4.2_02 INFO | jvm 1 | 2003/11/27 18:28:58 | java.vendor=Sun Microsystems Inc. INFO | jvm 1 | 2003/11/27 18:28:58 | java.vm.version=1.4.2_02-b03 INFO | jvm 1 | 2003/11/27 18:28:58 | java.vm.vendor=Sun Microsystems Inc. INFO | jvm 1 | 2003/11/27 18:28:58 | java.vm.name=Java HotSpot(TM) Server VM INFO | jvm 1 | 2003/11/27 18:28:58 | os.name=Windows 2000 INFO | jvm 1 | 2003/11/27 18:28:58 | os.arch=x86 INFO | jvm 1 | 2003/11/27 18:28:58 | os.version=5.0 INFO | jvm 1 | 2003/11/27 18:28:58 | user.name=SYSTEM Below is an extract from my wrapper.conf: ------------------------------------------------------------------------------ wrapper.logfile=../logs/wrapper.log wrapper.logfile.format=LPTM wrapper.logfile.loglevel=INFO wrapper.logfile.maxsize=5000000 wrapper.logfile.maxfiles=3 wrapper.syslog.loglevel=INFO |
|
From: whack er <wha...@ya...> - 2003-11-27 18:06:31
|
The Wrapper works fine on XP as a service and with a GUI. May be you should look at the service settings on the wrapper.conf file carefully and also read the documentation on this. TIA. Marcelo Borges Ribeiro <ma...@da...> wrote: I tried wrapper.ntservice.hide-console=false, removed and reinstalled the service. But it stills not showing nothing (I´m using java 1.3.1_05), but the strange thing is that it works well in windows 2000 even without wrapper.ntservice.hide-console=false. I think I will wait for next version I am not in such a hurry to see this works in windows xp. Thanks for your time. Marcelo. Original message: Hi, I tried my service from JNT to Java Wrapper in Windows 2000 and It runs very well, but when I put it in Windows XP the option "Interact with desktop" does not show any effect when running as a service. Is this a known bug or I need to do somenthing different to see this working in Windows XP ? MARCELO Borges Ribeiro From: Leif Mortenson <leif@ta...> Re: service in windows xp 2003-11-21 02:10 Marcelo, Please give me a little more information. What are you expecting the application to do? Version 3.0.5 and earlier versions of the Wrapper are capable of displaying a Swing or AWT GUI. The GUI will be displayed correctly if you are using a 1.4.x version of Java. Earlier versions have a problem which requires that the wrapper.ntservice.hide-console property be set to false in addition to the wrapper.ntservice.interactive property being set to true. Please make sure you have read over the following two pages: http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-interactive.html http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-hide-console.html In order for the service related properties to take effect, you must reinstall the Wrapper as a service after making any changes. Version 3.0.5 does not allow you to display the console while running as a service. This will be possible in the next release and is currently available in CVS if you need it sooner. Cheers, Leif Marcelo Borges Ribeiro wrote: > Hi, I tried my service from JNT to Java Wrapper in Windows 2000 and It > runs very well, but when I put it in Windows XP the option "Interact > with desktop" does not show any effect when running as a service. Is > this a known bug or I need to do somenthing different to see this > working in Windows XP ? > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003 > ATTACHMENT part 2 image/gif name=msg.gif --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard |
|
From: whack er <wha...@ya...> - 2003-11-27 18:04:49
|
I got this now. I was able to use the setting on the wrapper.conf to display the GUI on Windows XP and yet hide the console. Any chances of hiding the console when not running as a service on Windows XP ? TIA Leif Thanks for the clarifications, here is another doubt When I run the TestWrapper as a Windows service the swing GUI is not displayed. Can I understand that when the Wrapper runs as a service there is no desktop interaction. Is this as designed or is this how it should be ? TIA Leif Mortenson <le...@ta...> wrote: whack er wrote: > Greetings > > I have experimented with the wrapper test program on Windows XP and > have the following doubt: > > 1.I beleive that the console window would not be displayed if I run as > a service on the Windows platform. In all released versions of the Wrapper, it is not possible to display the java console when running as an NT service. It sounds like this is what you want, so this is a good thing. I have already added the ability to optionally display the console even when running as an interactive service. This will be in the next release. > 2.If run on LINUX, I beleive that the console window would be displayed. Yes and no. The shell script that is used to launch the wrapper on UNIX systems allows a great amount of control over how it is launched. The script behaves like a standard init script, in that it takes a single command which tells the script what to do. The first command 'console', will launch the Wrapper in the shell from which the script is executed. The user will be able to see all of the console output and be able to stop the application by pressing CTRL-C. The second command is 'start'. This sounds like what you want. This will launch the wrapper in the background as a daemon process. It will stay running even if the shell is closed and the user will not be able to see the console output. Depending on how you have configured the wrapper's logging, the console output may still be written to the wrapper.log file. > 3.Since I am evaluating the use of the wrapper, I would not like to > display the console to end users and leave them guessing. As described in 1 and 2. You should be able to hide the console on both Windows and Linux platforms. > 4.If I run a normal Java application using javaw then there is no > console displayed, can I do the same on Windows and Linux using the > wrapper ? See above. > 5.Are there any optionsto run on the system tray or KDE task bar ? Not currently. The Wrapper does not interact directly with the Window Manager on Unix or Windows platforms. This is on my list of things that I would eventually like to support however. Cheers, Leif ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Free Pop-Up Blocker - Get it now --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard |
|
From:
<el...@mi...> - 2003-11-27 08:39:03
|
So is there a possibility to use the wrapper from the root instead of =
sub
dir bin?
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]=20
Sent: Tuesday, November 25, 2003 4:56 PM
To: Wrapper User List
Cc: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: Re: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Elhanan,
Is this a program that you have written or is it something that you =
are simply trying to
get integrated with the wrapper. You sent me a lot. I tried looking =
it=20
all over, but may
have missed something. It sounds like your only remaining problems are =
path related.
One thing that you need to know about how the Wrapper currently=20
works is that it
always sets the current user.dir of the JVM to be the location of the=20
Wrapper.exe file.
All paths are then relative to this location. So if you create a =
file:=20
new File( "tmp/0" )
then this File object will represent a file called "0", located in a=20
directory, "tmp", which
is located in the current user directory, which is the location of the=20
Wrapper.exe file.
If you really want to accessing the tmp directory in the root, then =
you need to do the
following: new File( "/tmp/0" )
This tells Java to start and the root directory, ignoring the current=20
user directory.
It is possible to override the default user.dir when the JVM is=20
launched by explicitly
setting the user.dir property as a system property. This can be done=20
using the following
parameter in your wrapper.conf file.
wrapper.java.additional.1=3D-Duser.dir=3D/
The above sets the user dir to the root directory. Note that this=20
WILL BREAK all
relative path handling by the Wrapper and you will need to start=20
specifying fully
qualified paths in your wrapper.conf file. I don't normally suggest=20
this, because path
problems tend to quickly multiply.
If you have access to the source of the compass application, I =
would=20
suggest trying
to figure out another way to correct those path issues from within the=20
application.
It seems like you should have been having similar problems when running =
from a batch
file. Did that batch file include and cds or anything to change the=20
current directory to
the root?
Cheers,
Leif
P.S. Please post to the list rather than to me directly. It helps =
other=20
to learn by making
your questions and my answers searchable.
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF wrote:
> We have progress
> By changing the login account on both services and starting them I =
did=20
> get the lacombi.trc file however when I used the calling sample=20
> something went wrong in the server as u will see in the log of =
server.log
>
> I suspect (and leif I'm asking u that as well) that services whatever =
> their account may be, cannot access resources servers and since all =
of=20
> our oracle dll our on a network that could be a problem.
>
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 2:04 PM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes=20
> to run as one service. ..
>
> yes
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
>
>
>
>
> =E0=EC=E7=F0=EF=20
> =EE=F2=E9=E9=EF
>
>
> <elhanan@migdal-g To: =20
> "'com...@ge...'"=20
> <com...@ge...> =20
>
> roup.co.il> =20
> cc:
>
>
> Subject: RE:=20
> [Wrapper-user] configuring Wrapper to run to java classes to =
=20
>
> 25.11.2003 12:48 run as =
one=20
> service. .. =20
>
>
>
>
>
>
>
>
>
>
>
>
> Did u get the other files before?
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 1:47 PM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes to
> run as one service. ..
>
> Hi Elhanan,
> Sorry ... no files attached ...
>
> kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
>
> <elhanan@migdal-g To:
> "'com...@ge...'" <com...@ge...>
>
> roup.co.il> cc:
>
> Subject: RE:=20
> [Wrapper-user]
> configuring Wrapper to run to java classes to
>
> 25.11.2003 12:38 run as one=20
> service. ..
>
>
>
>
>
>
>
> Extract the following zip files in their directories (meaning
> compasscli.zip into c:\compasscli\ and compassrv.zip into =
c:\compassrv)
>
> It assumes u have c:\compass library
> Then in the bin directory use
> InstallCompassServer-NT.bat
> And
> InstallCAS-NT.bat
>
> Then inorder to run it in normal mode use
> startCompassserver.bat
> and
> startCAS.bat
>
> inorder to test the call run starttestloc.bat from c:\compasscli\
>
> u should get the file name 0 in tmp directory INSIDE the bin =
directory if
> all goes well. If it does try starting the services Compass Server =
and
> CompassCAS in the services tab.
>
> Change the oracle connection string INSIDE the bin directory in the
> profile.aes to your own.
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 1:22 PM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes to
> run as one service. ..
>
> Hello Elhanan,
> It is me, Marcus to answer ...
>
> We are very happy to hear that some of the problems (libsybdb.dll)=20
> could be
> resolved. At the moment cas.cfg is locked. What about creating a copy =
> in a
> different directory? But we will have a closer look.
>
> From the information given we can't say anything why the COMPASS =
server
> won't start. It would be a great help for us to be able to run the=20
> COMPASS
> server (at Cologne) the same way as you run it. Can you provide us =
with
> anything that allows the COMPASS server to run as a service (e.g. =
Wrapper
> code, start-routines ...)? From the logs we can't see how the COMPASS
> server is called by a client. Can you provide us with the calls?
>
> Kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
>
> <elhanan@migdal-g To:
> "'com...@ge...'" <com...@ge...>, 'Leif =
Mortenson'
>
> roup.co.il> =
<le...@ta...>
>
> cc: =F2=E5=E3=E3 =
=F8=E6=F0=E9=F7
> <to...@mi...>
>
> 25.11.2003 09:14 Subject: RE:=20
> [Wrapper-user]
> configuring Wrapper to run to java classes to
>
> run as one service. =
..
>
>
>
>
>
> Once again I'm uniting my answer to both because the problem was in =
both
> areas.
>
> lucas (your answer is just below this answer)
> once u told me that dll was in fact a DLL for Sybase I guess that =
once
> again compass tried to read from the directory the wrapper was=20
> launched (a
> sub directory with in compasssrv which launches the jvm), and when it
> didn=92t' find it there, it reverted to towards default values =
(sysbase)=20
> when
> I copied profile.aes to the bin directory and this lacombi said =
ora73.dll
> was missing, as leif wrote all paths to other dll's must be declared, =
> so I
> added that path to oracle library in the wrapper config files, and =
that
> solved that problem BUT then It screamed it couldn't write the report =
> file
> to the directory (tmp) so off course I created that directory as well =
in
> the bin, and this time everything worked, that is compass server =
answered
> me.
>
> The problem why I had to launch 2 jvm sepratly is because =
compasserver
> class completely locks cas.cfg, with no regards to the wrapper, if I=20
> try to
> create compassserer class and CAS class in my own little java class, =
cas
> class won't be able to read the cas.cfg file becosue compassserver =
class
> locks it. If u have anything to solve it I'd be happy to hear it.
>
> Leif
> As u can see I have a problem here with the wrapper because I keep =
having
> to replicate the root directory's files into the bin directory where =
the
> wrapper is (copying the application config files, creating =
directories,
>
> etc..) I have to find way to either fool the compass into thinking =
it is
> laucned from root directory, or config the wrapper to launch from the =
> root
> directory (i.e change the install/uninstall batch files, and the run=20
> batch
>
> files)
>
> Lucas and leif
>
> Now I'm faced with another problem, I said the application worked, =
but it
> only worked with run batch files, if tried using it via services =
applet,
> nothing seems to work, although in the services applet I press start =
and
> they simply started, but when I tried calling the java server with =
the
> api's I got some reply but it simply hung there , it did manage to =
see=20
> the
> servers (otherwise it would have crashd and exited) I'm sending lucas
> log.txt,server.log and server0.log files bugt although profile.aes =
had a
> log setting I couldn't find the lacombi.trc file anywhere
>
> Lucas: the wrapperCAS.conf and wrapperserver.conf files also contain =
the
> screen output from the servers (as there was no screen when I started =
the
>
> services)
>
> Another issue I'm concerned about is the ORDER the services are =
started,
> compassserver services must be started first because it waits and =
listens
> on port 4712 then cas services is started and they both communicate =
with
> each other, I don't how windows handles this wait in between (to be=20
> safe I
> stopped both services, started the first one, waited, and then =
started=20
> the
> second one).
>
> Elhanan,
> After reading through all of this, the final problem is that the
> executable lacombi.exe binary can not locate a required dll file. I =
am
> not really clear how that relates to the Wrapper? Is that =
application
> being launched by one of your 2 JVMs?
>
> If the DLL is required as a JNI native library by one of the=20
> classes in
> your Java application then you must include the location of the DLL =
on=20
> your
> java library path. When you run Java without the wrapper, it uses a=20
> default
> library path that includes the windows directory and user directory. =
=20
> When
> running with the Wrapper, you must set this manually in the =
wrapper.conf
> file.
>
> Since you can not locate this file anyplace, not sure if that is =
your
> problem however.
>
> Other than that, it sounds like your 2 JVMs are starting up=20
> correctly.
> Could you please set the wrapper.debug=3Dtrue property in both of =
your
> wrapper.conf files. Then reply with the 2 wrapper.conf files and
> wrapper.log files as attachments. Please only include the log output =
> for a
> SINGLE JVM invocation.
>
> I may be able to spot something to help you out.
>
> Cheers,
> Leif
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Monday, November 24, 2003 10:31 AM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes to
> run as one service. ..
>
> Hello Elhanan,
> I'm answering the topic of requiring the "libsybdb.dll" by =
lacombi.exe.
> This is simply that COMPASS was told to access a Sybase database and=20
> it is
> not able to locate the library needed for this. As far as I know you =
are
> using Oracle. COMPASS is told by "profile.aes" which database to =
connect.
> Could you please check if all entries are right in this file?
>
> I'm not with you when you describe the process of starting two =
servers.
> Which problem shall be solved with this design ?
>
> Kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
>
> <elhanan@migdal-g To:
> "'wra...@li...'"
> <wra...@li...>,
>
> roup.co.il> =20
> "'com...@gc...'"
> <com...@gc...>
>
> cc: =F2=E5=E3=E3 =
=F8=E6=F0=E9=F7
> <to...@mi...>
>
> 23.11.2003 18:59 Subject: RE:=20
> [Wrapper-user]
> configuring Wrapper to run to java classes to run
>
> as one service. ..
>
>
>
>
> I'm sending this to both of u since I don't know exactly where the=20
> problem
> exists
>
> First I discovered I cannot launch the 2 class (compasserver,cas) in =
code
> from the same jvm because compassserver locks cas.cfg
>
> I know this because after remarking the first class (comapsserver) =
and
> telling the batch file to raise the original class and then my class =
with
> my code, only then it worked, by trying your code as u wrote it, the =
2nd
> class keeps saying that it could find the CASListenport on line 4=20
> (which is
> in cas.cfg, which it couldn't read I guess)
>
> So I was left with the 2nd alternative:
>
> After creating to adtional directories (confCAS,confSERVER) and =
modifying
> and creating 2 install files, 2 run files, and 2 uninstall files (by=20
> simply
> chaning each files conf directory to my own directories) I was able =
to
> install the services.
>
> After changing the conf files according I was left the following=20
> problems.
> The classes won't run unless they will have server.cfg and cas.cfg in =
the
> directory where wrapper.exe exists. Even though i specified the the =
root
> directory in wrapper.java.class parameters
>
> Originally thought both files were in the same directory as the =
original
> batch file. This is not a major problem because after copying both =
files
> into Directories it seemed to work. Also comass also demanded the=20
> directory
> lacid (also located in the root directory of the application) will be
> copied to the directory of batch files
>
> Now the real problem started when I tried accessing compass with java
> client api sample... suddenly windows alerted the lacombi.exe needed =
the
> file libsybdb.dll and couldn't find it. The strange thing is that I=20
> REALLY
> couldn't find it, now in my entire c drive and not in the network=20
> directory
> which contains the oracle.dll
>
> Also I've checked lacombi with dependency walker an it really doesn't
> reference this dll.
>
> Running compass normally does not raise this error. I have no idea=20
> what is
> this dll for.
>
> -----Original Message-----
> From: Leif Mortenson [mailto:le...@ta...]
> Sent: Friday, November 21, 2003 12:20 PM
> To: wra...@li...
> Subject: Re: [Wrapper-user] configuring Wrapper to run to java =
classes to
> run as one service. ..
>
> Elhanan,
> Just like Java, the Wrapper only allows you to specify a single =
class
> when it it launches the JVM. In your application, you are launching =
the
> two classes in two different JVM instances.
>
> There are a couple ways to do you may want to be doing.
>
> 1) Launch two copies of the Wrapper. This can easily be done by =
creating
> two different wrapper.conf files. Either install them in different
> locations or take care that the log and any pid files are named =
uniquely
> and things should work great. If you are running under NT you can =
even
> setup a dependency on the other server using the
> wrapper.ntservice.dependency.<n> properties.
>
> 2) Depending on how your applications work. You may also be able to=20
> simply
> run both of your applications from within the same JVM. To do this=20
> create
> a simple class that does the following:
>
> public static main(String[] args)
> {
> Thread t1 =3D new Thread()
> {
> public void run()
> {
> CR.Compass.Server.CompassServer.main( new String[] {} );
> }
> };
> t1.start();
>
> Thread t2 =3D new Thread()
> {
> public void run()
> {
> CR.Compass.Server.CAS.CAS.main( new String[] { "0" } );
> }
> };
> t2.start();
> }
>
> I didn't compile the above, but it should work. Just specify =
this=20
> new
> class as the first wrapper.app.parameter and then specify
> org.tanukisoftware.wrapper.WrapperSimpleApp
>
> as the wrapper.java.mainclass. It should work.
>
> If you found the support or the product useful, drop by the =
following
> as well. http://wrapper.tanukisoftware.org/doc/english/donate.html
>
> Let me know if you have any other questions.
>
> Cheers,
> Leif
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF wrote:
>
> > Hi=85
> >
> > i have the following batch file to run a java server:
> >
> >
> >
> > start java -cp lib\compass320.jar CR.Compass.Server.CompassServer
> >
> > java -cp lib\compass320.jar CR.Compass.Server.CAS.CAS 0
> >
> >
> >
> > as u can see I need to invoke to 2 classes at the same time (which =
are
> > from the same jar)=85
> >
> >
> >
> > is there a way to do this in wrapper?
> >
>
> -------------------------------------------------------
> 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
>
>
>
>
> (See attached file: wrapperserver.conf)
> (See attached file: wrappercas.conf)
> (See attached file: log.txt)
> (See attached file: server0.log)
> (See attached file: server.log)
> (See attached file: wrapperserver.log)
> (See attached file: wrapperCAS.log)
>
>
>
>
>
>
>
>
>
>
>
>
> =20
> 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=20
> immediately through the
> technological support center,email:he...@mi... and do not =
> disclose the contents to any one or make copies.
>
>
>-----------------------------------------------------------------------=
-
>
><02:58:45.468> [main] Main called
><02:58:46.546> [main] [Network.connect] New socket :
Socket[addr=3D127.0.0.1/127.0.0.1,port=3D4711,localport=3D1370]
><02:58:46.562> [main] [Order.constructor] opCode init : 3
><02:58:46.562> [main] [NetworkLayerClient.synchCall] started
><02:58:46.562> [main] [Order.writeOrder synch] opCode :3
><02:58:46.562> [main] [Order.writeHeader] called with 3
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:46.562> [main] [Order.constructor] default init
><02:58:46.562> [main] [Order.readResult] started
><02:58:46.562> [main] [Order.readHeader] called
><02:58:46.562> [main] [Network.readInteger] started
><02:58:46.578> [main] [Network.readInteger] started
><02:58:46.578> [main] [Order.readResult] opCode : 3 error Code 0
><02:58:46.578> [main] [Order.constructor] opCode init : 6
><02:58:46.578> [main] [NetworkLayerClient.synchCall] started
><02:58:46.578> [main] [Order.writeOrder synch] opCode :6
><02:58:46.578> [main] [Order.writeHeader] called with 6
><02:58:46.578> [main] [Network.writeInteger] started
><02:58:46.578> [main] [Network.writeString] ELHANAN
><02:58:46.578> [main] [Network.writeString]=20
><02:58:46.593> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:46.593> [main] [Order.constructor] default init
><02:58:46.593> [main] [Order.readResult] started
><02:58:46.593> [main] [Order.readHeader] called
><02:58:46.593> [main] [Network.readInteger] started
><02:58:48.062> [main] [Network.readInteger] started
><02:58:48.062> [main] [Order.readResult] opCode : 6 error Code 0
><02:58:48.062> [main] [Order.constructor] opCode init : 5
><02:58:48.062> [main] [NetworkLayerClient.synchCall] started
><02:58:48.062> [main] [Order.writeOrder synch] opCode :5
><02:58:48.062> [main] [Order.writeHeader] called with 5
><02:58:48.062> [main] [Network.writeInteger] started
><02:58:48.062> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:48.062> [main] [Order.constructor] default init
><02:58:48.062> [main] [Order.readResult] started
><02:58:48.062> [main] [Order.readHeader] called
><02:58:48.062> [main] [Network.readInteger] started
><02:58:48.656> [main] [Network.readString] started
><02:58:48.656> [main] [Network.readString] finished
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Order.readResult] opCode : 5 error Code 0
>AWIGetTextualResult err : 0 result Error: file tmp\0 is not open
><02:58:48.656> [main] [Order.constructor] opCode init : 2
><02:58:48.656> [main] [NetworkLayerClient.synchCall] started
><02:58:48.656> [main] [Order.writeOrder synch] opCode :2
><02:58:48.656> [main] [Order.writeHeader] called with 2
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:48.656> [main] [Order.constructor] default init
><02:58:48.656> [main] [Order.readResult] started
><02:58:48.656> [main] [Order.readHeader] called
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Network.readString] started
><02:58:48.656> [main] [Network.readString] finished
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Order.readResult] opCode : 2 error Code 0
>return code err 0rc 0=20
><02:58:48.656> [main] [Order.constructor] opCode init : 3
><02:58:48.656> [main] [NetworkLayerClient.synchCall] started
><02:58:48.656> [main] [Order.writeOrder synch] opCode :3
><02:58:48.656> [main] [Order.writeHeader] called with 3
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:48.656> [main] [Order.constructor] default init
><02:58:48.656> [main] [Order.readResult] started
><02:58:48.671> [main] [Order.readHeader] called
><02:58:48.671> [main] [Network.readInteger] started
><02:58:49.281> [main] [Network.readInteger] started
><02:58:49.281> [main] [Order.readResult] opCode : 3 error Code 0
><02:58:49.281> [main] [Order.constructor] opCode init : 6
><02:58:49.281> [main] [NetworkLayerClient.synchCall] started
><02:58:49.281> [main] [Order.writeOrder synch] opCode :6
><02:58:49.281> [main] [Order.writeHeader] called with 6
><02:58:49.281> [main] [Network.writeInteger] started
><02:58:49.281> [main] [Network.writeString] ELHANAN
><02:58:49.281> [main] [Network.writeString]=20
><02:58:49.281> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:49.281> [main] [Order.constructor] default init
><02:58:49.281> [main] [Order.readResult] started
><02:58:49.281> [main] [Order.readHeader] called
><02:58:49.281> [main] [Network.readInteger] started
> =20
>
-------------------------------------------------------
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
=20
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-11-26 13:53:39
|
Giovanni,
My first guess is that your copy of Java is not set up correctly. I
don't think that this is
Java related. What happens if you run java manually? Try the following.
java -version
If that works then set the wrapper.debug=true flag and restart the
wrapper. When it
launched this time, you will see a dump of the components that make up
the command
used to launch Java. Copy all of these into a new shell script and
build the command
from them. Remove the -Dwrapper.key property from your new java
command. Now
try running that. My guess is that you will see the same problem even
without the
Wrapper involved. If not, let me know and I'll try to think of
something else.
Also, remember that Google is your friend. I tried a quick search on:
ld.so.1: fatal: libpthread.so.1: version `SUNW_1.2' not found
and turned up quite a few reponses. Have not read them all but the
first few are Solaris
related so not sure if they relate to your problem.
Cheers,
Leif
Giovanni Regola wrote:
> dear experts,
> trying to start Tomcat (obviously with Wrapper) under Linux I get the
> following error:
>
> *ld.so.1: ./wrapper: fatal: libpthread.so.1: version `SUNW_1.2' not
> found (required by file ./wrapper)*
>
> It seems something related with linux shared objects.
> I followed all instructions listed on Wrapper documentation
> <http://wrapper.tanukisoftware.org/doc/english/integrate-start-stop-nix.html>,
> step by step.
> Any suggestions?
>
> best regards
>
> Giovanni Regola
|
|
From: Giovanni R. <g.r...@so...> - 2003-11-26 12:30:13
|
dear experts, trying to start Tomcat (obviously with Wrapper) under Linux I get the = following error: ld.so.1: ./wrapper: fatal: libpthread.so.1: version `SUNW_1.2' not found = (required by file ./wrapper) It seems something related with linux shared objects. I followed all instructions listed on Wrapper documentation, step by = step. Any suggestions? best regards Giovanni Regola |
|
From: whack er <wha...@ya...> - 2003-11-25 18:35:59
|
Leif Thanks for the clarifications, here is another doubt When I run the TestWrapper as a Windows service the swing GUI is not displayed. Can I understand that when the Wrapper runs as a service there is no desktop interaction. Is this as designed or is this how it should be ? TIA Leif Mortenson <le...@ta...> wrote: whack er wrote: > Greetings > > I have experimented with the wrapper test program on Windows XP and > have the following doubt: > > 1.I beleive that the console window would not be displayed if I run as > a service on the Windows platform. In all released versions of the Wrapper, it is not possible to display the java console when running as an NT service. It sounds like this is what you want, so this is a good thing. I have already added the ability to optionally display the console even when running as an interactive service. This will be in the next release. > 2.If run on LINUX, I beleive that the console window would be displayed. Yes and no. The shell script that is used to launch the wrapper on UNIX systems allows a great amount of control over how it is launched. The script behaves like a standard init script, in that it takes a single command which tells the script what to do. The first command 'console', will launch the Wrapper in the shell from which the script is executed. The user will be able to see all of the console output and be able to stop the application by pressing CTRL-C. The second command is 'start'. This sounds like what you want. This will launch the wrapper in the background as a daemon process. It will stay running even if the shell is closed and the user will not be able to see the console output. Depending on how you have configured the wrapper's logging, the console output may still be written to the wrapper.log file. > 3.Since I am evaluating the use of the wrapper, I would not like to > display the console to end users and leave them guessing. As described in 1 and 2. You should be able to hide the console on both Windows and Linux platforms. > 4.If I run a normal Java application using javaw then there is no > console displayed, can I do the same on Windows and Linux using the > wrapper ? See above. > 5.Are there any optionsto run on the system tray or KDE task bar ? Not currently. The Wrapper does not interact directly with the Window Manager on Unix or Windows platforms. This is on my list of things that I would eventually like to support however. Cheers, Leif ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Free Pop-Up Blocker - Get it now |
|
From:
<el...@mi...> - 2003-11-25 15:31:18
|
-----Original Message-----
From: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF=20
Sent: Tuesday, November 25, 2003 5:15 PM
To: 'com...@ge...'
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Not it usually doesn't, are normal server configuration sets all oracle
client files to be in the network servers, that's why compass never
complains, what u said confirmed my original suspicion but too late =
because
it got it to work!!, I found a server with a local oracle client =
installed
had the wrapper installed there and it went correctly, so like I said
services cannot access client files.=20
Now I have the annoyances of how to get it to work from the root =
directory.
-----Original Message-----
From: com...@ge... [mailto:com...@ge...]=20
Sent: Tuesday, November 25, 2003 4:16 PM
To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Hi Elhanan,
Lacombi.trc is saying "ora...dll" missing. Where is ora...dll located? =
It
should be in the same directory which is the current directory lacombi =
is
called from.
E.g.: You are calling lacombi from c:\call_compass and lacombi.exe is
located at c:\compass. Then ora...dll should be in c:\call_compass
I noticed on Oracle message from the server-log-files.
Gen Re
Life/Health Client Services
Systems
E-Mail: com...@ge...
Tel: +49 - 221- 9738 - 500
Fax: +49 - 221- 9738 - 984
=20
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
<elhanan@migdal-g To:
"'com...@ge...'" <com...@ge...>
roup.co.il> cc:
Subject: RE: =
[Wrapper-user]
configuring Wrapper to run to java classes to =20
25.11.2003 14:35 =
run as
one service. .. =20
=20
=20
I didn=92t' see any ora-19217
-----Original Message-----
From: com...@ge... [mailto:com...@ge...]
Sent: Tuesday, November 25, 2003 3:30 PM
To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Hi Elhanan,
It is always good to hear that there is progress! Can you provide us =
with
lacombi.trc?
BTW: Wasn't Ora 19217 observed before? (And fixed??)
kind egards
Marcus Tkotz
Gen Re
Life/Health Client Services
Systems
E-Mail: com...@ge...
Tel: +49 - 221- 9738 - 500
Fax: +49 - 221- 9738 - 984
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<elhanan@migdal-g=A0=A0=A0=A0=A0=A0=A0 To:
"'com...@ge...'" <com...@ge...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
roup.co.il>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cc:
"'le...@ta...'" <le...@ta...>, =F2=E5=E3=E3 =
=F8=E6=F0=E9=F7
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<to...@mi...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
25.11.2003 14:12=A0=A0=A0=A0=A0=A0=A0=A0 Subject:=A0 RE: [Wrapper-user]
configuring Wrapper to run to java classes to
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 run as one
service. ..
We have progress
By changing the login account on both services and starting them I did =
get
the lacombi.trc file however when I used the calling sample something =
went
wrong in the server as u will see in the log of server.log
I suspect (and leif I'm asking u that as well) that services whatever =
their
account may be, cannot access resources servers and since all of our =
oracle
dll our on a network that could be a problem.
-----Original Message-----
From: com...@ge... [mailto:com...@ge...]
Sent: Tuesday, November 25, 2003 2:04 PM
To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
yes
Gen Re
Life/Health Client Services
Systems
E-Mail: com...@ge...
Tel: +49 - 221- 9738 - 500
Fax: +49 - 221- 9738 - 984
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<elhanan@migdal-g=A0=A0=A0=A0=A0=A0=A0 To:
"'com...@ge...'" <com...@ge...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
roup.co.il>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cc:
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Subject:=A0 RE: [Wrapper-user]
configuring Wrapper to run to java classes to
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
25.11.2003 12:48=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
run as=A0=A0=A0 one
service. ..
Did u get the other files before?
-----Original Message-----
From: com...@ge... [mailto:com...@ge...]
Sent: Tuesday, November 25, 2003 1:47 PM
To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Hi Elhanan,
Sorry ... no files attached ...
kind regards
Marcus Tkotz
Gen Re
Life/Health Client Services
Systems
E-Mail: com...@ge...
Tel: +49 - 221- 9738 - 500
Fax: +49 - 221- 9738 - 984
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<elhanan@migdal-g=A0=A0=A0=A0=A0=A0=A0 To:
"'com...@ge...'" <com...@ge...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
roup.co.il>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cc:
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Subject:=A0 RE: [Wrapper-user]
configuring Wrapper to run to java classes to
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
25.11.2003 12:38=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 run as=A0=A0 one =
service. ..
Extract the following zip files in their directories (meaning =
compasscli.zip
into c:\compasscli\ and compassrv.zip into c:\compassrv)
It assumes u have c:\compass library
Then in the bin directory use
InstallCompassServer-NT.bat
And
InstallCAS-NT.bat
Then inorder to run it in normal mode use startCompassserver.bat and
startCAS.bat
inorder to test the call run starttestloc.bat from c:\compasscli\
u should get the file name 0 in tmp directory INSIDE the bin directory =
if
all goes well. If it does try starting the services Compass Server and
CompassCAS in the services tab.
Change the oracle connection string INSIDE the bin directory in the
profile.aes to your own.
-----Original Message-----
From: com...@ge... [mailto:com...@ge...]
Sent: Tuesday, November 25, 2003 1:22 PM
To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Hello Elhanan,
It is me, Marcus to answer ...
We are very happy to hear that some of the problems (libsybdb.dll) =
could be
resolved. At the moment cas.cfg is locked. What about creating a copy =
in a
different directory? But we will have a closer look.
From the information given we can't say anything why the COMPASS server
won't start. It would be a great help for us to be able to run the =
COMPASS
server (at Cologne) the same way as you run it. Can you provide us with
anything that allows the COMPASS server to run as a service (e.g. =
Wrapper
code, start-routines ...)? From the logs we can't see how the COMPASS =
server
is called by a client. Can you provide us with the calls?
Kind regards
Marcus Tkotz
Gen Re
Life/Health Client Services
Systems
E-Mail: com...@ge...
Tel: +49 - 221- 9738 - 500
Fax: +49 - 221- 9738 - 984
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<elhanan@migdal-g=A0=A0=A0=A0=A0=A0=A0 To:
"'com...@ge...'" <com...@ge...>, 'Leif =
Mortenson'
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
roup.co.il>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<le...@ta...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
cc:=A0=A0=A0=A0=A0=A0 =F2=E5=E3=E3 =F8=E6=F0=E9=F7
<to...@mi...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
25.11.2003 09:14=A0=A0=A0=A0=A0=A0=A0=A0 Subject:=A0 RE: [Wrapper-user]
configuring Wrapper to run to java classes to
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
run as=A0 one service. ..
Once again I'm uniting my answer to both because the problem was in =
both
areas.
lucas (your answer is just below this answer)
once u told me that dll was in fact a DLL for Sybase I guess that once =
again
compass tried to read from the directory the wrapper was launched (a =
sub
directory with in compasssrv which launches the jvm), and when it =
didn=92t'
find it there, it reverted to towards default values (sysbase) when I =
copied
profile.aes to the bin directory and this lacombi said ora73.dll was
missing, as leif wrote all paths to other dll's must be declared, so I =
added
that path to oracle library in the wrapper config files, and that =
solved
that problem BUT then It screamed it couldn't write the report file to =
the
directory (tmp) so off course I created that directory as well in the =
bin,
and this time everything worked, that is compass server answered me.
The problem why I had to launch 2 jvm sepratly is because compasserver =
class
completely locks cas.cfg, with no regards to the wrapper, if I try to =
create
compassserer class and CAS class in my own little java class, cas class
won't be able to read the cas.cfg file becosue compassserver class =
locks it.
If u have anything to solve it I'd be happy to hear it.
Leif
As u can see I have a problem here with the wrapper because I keep =
having to
replicate the root directory's files into the bin directory where the
wrapper is (copying the application config files, creating directories,
etc..) I have to find way to either fool the compass into=A0 thinking =
it is
laucned from root directory, or config the wrapper to launch from the =
root
directory (i.e change the install/uninstall batch files, and the run =
batch
files)
Lucas and leif
Now I'm faced with another problem, I said the application worked, but =
it
only worked with run batch files, if tried using it via services =
applet,
nothing seems to work, although in the services applet I press start =
and
they simply started, but when I tried calling the java server with the =
api's
I got some reply but it simply hung there , it did manage to see the =
servers
(otherwise it would have crashd and exited) I'm sending lucas
log.txt,server.log and server0.log files bugt=A0 although profile.aes =
had a
log setting I couldn't find the lacombi.trc file anywhere
Lucas: the wrapperCAS.conf and wrapperserver.conf files also contain =
the
screen output from the servers (as there was no screen when I started =
the
services)
Another issue I'm concerned about is the ORDER the services are =
started,
compassserver services must be started first because it waits and =
listens on
port 4712 then cas services is started and they both communicate with =
each
other, I don't how windows handles this wait in between (to be safe I
stopped both services, started the first one, waited, and then started =
the
second one).
Elhanan,
=A0=A0=A0 After reading through all of this, the final problem is that =
the
executable lacombi.exe binary can not locate a required dll file.=A0=A0 =
I am not
really clear how that relates to the Wrapper?=A0 Is that application =
being
launched by one of your 2 JVMs?
=A0=A0=A0 If the DLL is required as a JNI native library by one of the =
classes in
your Java application then you must include the location of the DLL on =
your
java library path. When you run Java without the wrapper, it uses a =
default
library path that includes the windows directory and user =
directory.=A0=A0 When
running with the Wrapper, you must set this manually in the =
wrapper.conf
file.
=A0=A0=A0 Since you can not locate this file anyplace, not sure if that =
is your
problem however.
=A0=A0=A0 Other than that, it sounds like your 2 JVMs are starting up =
correctly.
Could you please set the wrapper.debug=3Dtrue property in both of your
wrapper.conf files.=A0 Then reply with the 2 wrapper.conf files and
wrapper.log files as attachments.=A0 Please only include the log output =
for a
SINGLE JVM invocation.
=A0=A0=A0 I may be able to spot something to help you out.
Cheers,
Leif
-----Original Message-----
From: com...@ge... [mailto:com...@ge...]
Sent: Monday, November 24, 2003 10:31 AM
To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Hello Elhanan,
I'm answering the topic of requiring the "libsybdb.dll" by lacombi.exe. =
This
is simply that COMPASS was told to access a Sybase database and it is =
not
able to locate the library needed for this. As far as I know you are =
using
Oracle. COMPASS is told by "profile.aes" which database to connect. =
Could
you please check if all entries are right in this file?
I'm not with you when you describe the process of starting two servers.
Which problem shall be solved with this design ?
Kind regards
Marcus Tkotz
Gen Re
Life/Health Client Services
Systems
E-Mail: com...@ge...
Tel: +49 - 221- 9738 - 500
Fax: +49 - 221- 9738 - 984
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
<elhanan@migdal-g=A0=A0=A0=A0=A0=A0=A0 To:
"'wra...@li...'"
<wra...@li...>,
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
roup.co.il>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
"'com...@gc...'"
<com...@gc...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
cc:=A0=A0=A0=A0=A0=A0 =F2=E5=E3=E3 =F8=E6=F0=E9=F7
<to...@mi...>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
23.11.2003 18:59=A0=A0=A0=A0=A0=A0=A0=A0 Subject:=A0 RE: [Wrapper-user]
configuring Wrapper to run to java classes to=A0=A0=A0=A0=A0=A0=A0 run
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
as one service. ..
I'm sending this to both of u since I don't know exactly where the =
problem
exists
First I discovered I cannot launch the 2 class (compasserver,cas) in =
code
from the same jvm because compassserver locks cas.cfg
I know this because after remarking the first class (comapsserver) and
telling the batch file to raise the original class and then my class =
with my
code, only then it worked, by trying your code as u wrote it, the 2nd =
class
keeps saying that it could find the CASListenport on line 4 (which is =
in
cas.cfg, which it couldn't read I guess)
So I was left with the 2nd alternative:
After creating to adtional directories (confCAS,confSERVER) and =
modifying
and creating 2 install files, 2 run files, and 2 uninstall files (by =
simply
chaning each files conf directory to my own directories) I was able to
install the services.
After changing the conf files according I was left the following =
problems.
The classes won't run unless they will have server.cfg and cas.cfg in =
the
directory where wrapper.exe exists. Even though i specified the the =
root
directory in wrapper.java.class parameters
Originally thought both files were in the same directory as the =
original
batch file. This is not a major problem because after copying both =
files
into Directories it seemed to work. Also comass also demanded the =
directory
lacid (also located in the root directory of the application) will be =
copied
to the directory of batch files
Now the real problem started when I tried accessing compass with java =
client
api sample... suddenly windows alerted the lacombi.exe needed the file
libsybdb.dll and couldn't find it. The strange thing is that I REALLY
couldn't find it, now in my entire c drive and not in the network =
directory
which contains the oracle.dll
Also I've checked lacombi with dependency walker an it really doesn't
reference this dll.
Running compass normally does not raise this error. I have no idea what =
is
this dll for.
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]
Sent: Friday, November 21, 2003 12:20 PM
To: wra...@li...
Subject: Re: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Elhanan,
=A0=A0=A0 Just like Java, the Wrapper only allows you to specify a =
single class
when it it launches the JVM.=A0=A0 In your application, you are =
launching the
two classes in two different JVM instances.
=A0=A0=A0 There are a couple ways to do you may want to be doing.
1) Launch two copies of the Wrapper.=A0 This can easily be done by =
creating
two different wrapper.conf files.=A0=A0 Either install them in =
different
locations or take care that the log and any pid files are named =
uniquely and
things should work great.=A0 If you are running under NT you can even =
setup a
dependency on the other server using the =
wrapper.ntservice.dependency.<n>
properties.
2) Depending on how your applications work.=A0 You may also be able to =
simply
run both of your applications from within the same JVM.=A0=A0 To do =
this create
a simple class that does the following:
public static main(String[] args)
{
=A0=A0=A0 Thread t1 =3D new Thread()
=A0=A0=A0 {
=A0=A0=A0=A0=A0=A0 public void run()
=A0=A0=A0=A0=A0=A0 {
=A0=A0=A0=A0=A0=A0=A0=A0=A0 CR.Compass.Server.CompassServer.main( new =
String[] {} );
=A0=A0=A0=A0=A0=A0 }
=A0=A0=A0 };
=A0=A0=A0 t1.start();
=A0=A0=A0 Thread t2 =3D new Thread()
=A0=A0=A0 {
=A0=A0=A0=A0=A0=A0 public void run()
=A0=A0=A0=A0=A0=A0 {
=A0=A0=A0=A0=A0=A0=A0=A0=A0 CR.Compass.Server.CAS.CAS.main( new =
String[] { "0" } );
=A0=A0=A0=A0=A0=A0 }
=A0=A0=A0 };
=A0=A0=A0 t2.start();
}
=A0=A0=A0 I didn't compile the above, but it should work.=A0 Just =
specify this new
class as the first wrapper.app.parameter and then specify
org.tanukisoftware.wrapper.WrapperSimpleApp
as the wrapper.java.mainclass.=A0 It should work.
=A0=A0=A0 If you found the support or the product useful, drop by the =
following as
well. http://wrapper.tanukisoftware.org/doc/english/donate.html
=A0=A0=A0 Let me know if you have any other questions.
=A0=A0=A0 Cheers,
=A0=A0=A0 Leif
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF wrote:
> Hi=85
>
> i have the following batch file to run a java server:
>
>
>
> start java -cp lib\compass320.jar CR.Compass.Server.CompassServer
>
> java -cp lib\compass320.jar CR.Compass.Server.CAS.CAS 0
>
>
>
> as u can see I need to invoke to 2 classes at the same time (which =
are=20
> from the same jar)=85
>
>
>
> is there a way to do this in wrapper?
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does
SourceForge.net help you be more productive?=A0 Does it help you create =
better
code?=A0 SHARE THE LOVE, and help us help YOU!=A0 Click Here:
http://sourceforge.net/donate/
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
(See attached file: wrapperserver.conf)
(See attached file: wrappercas.conf)
(See attached file: log.txt)
(See attached file: server0.log)
(See attached file: server.log)
(See attached file: wrapperserver.log)
(See attached file: wrapperCAS.log)
(See attached file: log.txt)
(See attached file: server.log)
(See attached file: server0.log)
(See attached file: LACOMBI.TRC)
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:
<el...@mi...> - 2003-11-25 15:30:39
|
Ok first it's not something I wrote, It's something I need to =
integrate, so
no source code access.
2nd I got it to work, because I manage to install on a machine that had =
it's
oracle client files installed locally, and as I guessed earlier =
services
cannot access files or dll on a network, so no matter what I place in =
the
lib path of the conf files it won't find them. By specifying a lib path =
that
is local it works.
Sn now we have the current directory issue.
I didn't understand the parameter -Duser.dir=3D/ do u mean
-Duser.dir=3Dc:\compassrv ?
i don't want to break it, what I thought was instead of having all the
install/uninstall/run files refer to /bin/ as the directory to install =
u
would guide me on how change them so they would simply refer to their =
OWN
directory as the directory to launch the wrapper.=20
Right now they have various parameter and variables I don't fully =
understand
so even though I tried change them it didn't work.
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]=20
Sent: Tuesday, November 25, 2003 4:56 PM
To: Wrapper User List
Cc: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
Subject: Re: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Elhanan,
Is this a program that you have written or is it something that you =
are simply trying to
get integrated with the wrapper. You sent me a lot. I tried looking =
it=20
all over, but may
have missed something. It sounds like your only remaining problems are =
path related.
One thing that you need to know about how the Wrapper currently=20
works is that it
always sets the current user.dir of the JVM to be the location of the=20
Wrapper.exe file.
All paths are then relative to this location. So if you create a =
file:=20
new File( "tmp/0" )
then this File object will represent a file called "0", located in a=20
directory, "tmp", which
is located in the current user directory, which is the location of the=20
Wrapper.exe file.
If you really want to accessing the tmp directory in the root, then =
you need to do the
following: new File( "/tmp/0" )
This tells Java to start and the root directory, ignoring the current=20
user directory.
It is possible to override the default user.dir when the JVM is=20
launched by explicitly
setting the user.dir property as a system property. This can be done=20
using the following
parameter in your wrapper.conf file. =
wrapper.java.additional.1=3D-Duser.dir=3D/
The above sets the user dir to the root directory. Note that this=20
WILL BREAK all
relative path handling by the Wrapper and you will need to start=20
specifying fully
qualified paths in your wrapper.conf file. I don't normally suggest=20
this, because path
problems tend to quickly multiply.
If you have access to the source of the compass application, I =
would=20
suggest trying
to figure out another way to correct those path issues from within the=20
application.
It seems like you should have been having similar problems when running =
from a batch
file. Did that batch file include and cds or anything to change the=20
current directory to
the root?
Cheers,
Leif
P.S. Please post to the list rather than to me directly. It helps =
other=20
to learn by making
your questions and my answers searchable.
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF wrote:
> We have progress
> By changing the login account on both services and starting them I =
did
> get the lacombi.trc file however when I used the calling sample=20
> something went wrong in the server as u will see in the log of =
server.log
>
> I suspect (and leif I'm asking u that as well) that services whatever
> their account may be, cannot access resources servers and since all =
of=20
> our oracle dll our on a network that could be a problem.
>
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 2:04 PM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes
> to run as one service. ..
>
> yes
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
>
>
>
>
> =E0=EC=E7=F0=EF=20
> =EE=F2=E9=E9=EF
>
>
> <elhanan@migdal-g To: =20
> "'com...@ge...'"=20
> <com...@ge...> =20
>
> roup.co.il> =20
> cc:
>
>
> Subject: RE:=20
> [Wrapper-user] configuring Wrapper to run to java classes to =
=20
>
> 25.11.2003 12:48 run as =
one=20
> service. .. =20
>
>
>
>
>
>
>
>
>
>
>
>
> Did u get the other files before?
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 1:47 PM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes=20
> to run as one service. ..
>
> Hi Elhanan,
> Sorry ... no files attached ...
>
> kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
>
> <elhanan@migdal-g To:
> "'com...@ge...'" <com...@ge...>
>
> roup.co.il> cc:
>
> Subject: RE:
> [Wrapper-user]
> configuring Wrapper to run to java classes to
>
> 25.11.2003 12:38 run as one=20
> service. ..
>
>
>
>
>
>
>
> Extract the following zip files in their directories (meaning=20
> compasscli.zip into c:\compasscli\ and compassrv.zip into=20
> c:\compassrv)
>
> It assumes u have c:\compass library
> Then in the bin directory use
> InstallCompassServer-NT.bat
> And
> InstallCAS-NT.bat
>
> Then inorder to run it in normal mode use startCompassserver.bat
> and
> startCAS.bat
>
> inorder to test the call run starttestloc.bat from c:\compasscli\
>
> u should get the file name 0 in tmp directory INSIDE the bin =
directory=20
> if all goes well. If it does try starting the services Compass Server =
> and CompassCAS in the services tab.
>
> Change the oracle connection string INSIDE the bin directory in the=20
> profile.aes to your own.
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 1:22 PM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes=20
> to run as one service. ..
>
> Hello Elhanan,
> It is me, Marcus to answer ...
>
> We are very happy to hear that some of the problems (libsybdb.dll)
> could be
> resolved. At the moment cas.cfg is locked. What about creating a copy =
> in a
> different directory? But we will have a closer look.
>
> From the information given we can't say anything why the COMPASS=20
> server won't start. It would be a great help for us to be able to run =
> the COMPASS server (at Cologne) the same way as you run it. Can you=20
> provide us with anything that allows the COMPASS server to run as a=20
> service (e.g. Wrapper code, start-routines ...)? From the logs we=20
> can't see how the COMPASS server is called by a client. Can you=20
> provide us with the calls?
>
> Kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
>
> <elhanan@migdal-g To:
> "'com...@ge...'" <com...@ge...>, 'Leif=20
> Mortenson'
>
> roup.co.il> =
<le...@ta...>
>
> cc: =F2=E5=E3=E3 =
=F8=E6=F0=E9=F7
> <to...@mi...>
>
> 25.11.2003 09:14 Subject: RE:=20
> [Wrapper-user]
> configuring Wrapper to run to java classes to
>
> run as one service.=20
> ..
>
>
>
>
>
> Once again I'm uniting my answer to both because the problem was in=20
> both areas.
>
> lucas (your answer is just below this answer)
> once u told me that dll was in fact a DLL for Sybase I guess that =
once=20
> again compass tried to read from the directory the wrapper was=20
> launched (a sub directory with in compasssrv which launches the jvm), =
> and when it didn=92t' find it there, it reverted to towards default=20
> values (sysbase) when
> I copied profile.aes to the bin directory and this lacombi said =
ora73.dll
> was missing, as leif wrote all paths to other dll's must be declared, =
> so I
> added that path to oracle library in the wrapper config files, and =
that
> solved that problem BUT then It screamed it couldn't write the report =
> file
> to the directory (tmp) so off course I created that directory as well =
in
> the bin, and this time everything worked, that is compass server =
answered
> me.
>
> The problem why I had to launch 2 jvm sepratly is because =
compasserver=20
> class completely locks cas.cfg, with no regards to the wrapper, if I=20
> try to create compassserer class and CAS class in my own little java=20
> class, cas class won't be able to read the cas.cfg file becosue=20
> compassserver class locks it. If u have anything to solve it I'd be=20
> happy to hear it.
>
> Leif
> As u can see I have a problem here with the wrapper because I keep=20
> having to replicate the root directory's files into the bin directory =
> where the wrapper is (copying the application config files, creating=20
> directories,
>
> etc..) I have to find way to either fool the compass into thinking =
it=20
> is laucned from root directory, or config the wrapper to launch from=20
> the root directory (i.e change the install/uninstall batch files, and =
> the run batch
>
> files)
>
> Lucas and leif
>
> Now I'm faced with another problem, I said the application worked, =
but=20
> it only worked with run batch files, if tried using it via services=20
> applet, nothing seems to work, although in the services applet I =
press=20
> start and they simply started, but when I tried calling the java=20
> server with the api's I got some reply but it simply hung there , it=20
> did manage to see the servers (otherwise it would have crashd and=20
> exited) I'm sending lucas log.txt,server.log and server0.log files=20
> bugt although profile.aes had a log setting I couldn't find the=20
> lacombi.trc file anywhere
>
> Lucas: the wrapperCAS.conf and wrapperserver.conf files also contain=20
> the screen output from the servers (as there was no screen when I=20
> started the
>
> services)
>
> Another issue I'm concerned about is the ORDER the services are=20
> started, compassserver services must be started first because it =
waits=20
> and listens on port 4712 then cas services is started and they both=20
> communicate with each other, I don't how windows handles this wait in =
> between (to be safe I stopped both services, started the first one,=20
> waited, and then started the
> second one).
>
> Elhanan,
> After reading through all of this, the final problem is that the
> executable lacombi.exe binary can not locate a required dll file. I =
am
> not really clear how that relates to the Wrapper? Is that =
application=20
> being launched by one of your 2 JVMs?
>
> If the DLL is required as a JNI native library by one of the
> classes in
> your Java application then you must include the location of the DLL =
on=20
> your
> java library path. When you run Java without the wrapper, it uses a=20
> default
> library path that includes the windows directory and user directory. =
=20
> When
> running with the Wrapper, you must set this manually in the =
wrapper.conf
> file.
>
> Since you can not locate this file anyplace, not sure if that is=20
> your problem however.
>
> Other than that, it sounds like your 2 JVMs are starting up
> correctly.
> Could you please set the wrapper.debug=3Dtrue property in both of =
your
> wrapper.conf files. Then reply with the 2 wrapper.conf files and
> wrapper.log files as attachments. Please only include the log output =
> for a
> SINGLE JVM invocation.
>
> I may be able to spot something to help you out.
>
> Cheers,
> Leif
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Monday, November 24, 2003 10:31 AM
> To: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java =
classes=20
> to run as one service. ..
>
> Hello Elhanan,
> I'm answering the topic of requiring the "libsybdb.dll" by=20
> lacombi.exe. This is simply that COMPASS was told to access a Sybase=20
> database and it is not able to locate the library needed for this. As =
> far as I know you are using Oracle. COMPASS is told by "profile.aes"=20
> which database to connect. Could you please check if all entries are=20
> right in this file?
>
> I'm not with you when you describe the process of starting two=20
> servers. Which problem shall be solved with this design ?
>
> Kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
>
> <elhanan@migdal-g To:
> "'wra...@li...'"
> <wra...@li...>,
>
> roup.co.il> =20
> "'com...@gc...'"
> <com...@gc...>
>
> cc: =F2=E5=E3=E3 =
=F8=E6=F0=E9=F7
> <to...@mi...>
>
> 23.11.2003 18:59 Subject: RE:=20
> [Wrapper-user]
> configuring Wrapper to run to java classes to run
>
> as one service. ..
>
>
>
>
> I'm sending this to both of u since I don't know exactly where the
> problem
> exists
>
> First I discovered I cannot launch the 2 class (compasserver,cas) in=20
> code from the same jvm because compassserver locks cas.cfg
>
> I know this because after remarking the first class (comapsserver) =
and=20
> telling the batch file to raise the original class and then my class=20
> with my code, only then it worked, by trying your code as u wrote it, =
> the 2nd class keeps saying that it could find the CASListenport on=20
> line 4 (which is in cas.cfg, which it couldn't read I guess)
>
> So I was left with the 2nd alternative:
>
> After creating to adtional directories (confCAS,confSERVER) and=20
> modifying and creating 2 install files, 2 run files, and 2 uninstall=20
> files (by simply chaning each files conf directory to my own=20
> directories) I was able to install the services.
>
> After changing the conf files according I was left the following
> problems.
> The classes won't run unless they will have server.cfg and cas.cfg in =
the
> directory where wrapper.exe exists. Even though i specified the the =
root
> directory in wrapper.java.class parameters
>
> Originally thought both files were in the same directory as the=20
> original batch file. This is not a major problem because after =
copying=20
> both files into Directories it seemed to work. Also comass also=20
> demanded the directory lacid (also located in the root directory of=20
> the application) will be copied to the directory of batch files
>
> Now the real problem started when I tried accessing compass with java =
> client api sample... suddenly windows alerted the lacombi.exe needed=20
> the file libsybdb.dll and couldn't find it. The strange thing is that =
> I REALLY couldn't find it, now in my entire c drive and not in the=20
> network directory
> which contains the oracle.dll
>
> Also I've checked lacombi with dependency walker an it really doesn't =
> reference this dll.
>
> Running compass normally does not raise this error. I have no idea
> what is
> this dll for.
>
> -----Original Message-----
> From: Leif Mortenson [mailto:le...@ta...]
> Sent: Friday, November 21, 2003 12:20 PM
> To: wra...@li...
> Subject: Re: [Wrapper-user] configuring Wrapper to run to java =
classes=20
> to run as one service. ..
>
> Elhanan,
> Just like Java, the Wrapper only allows you to specify a single =
class
> when it it launches the JVM. In your application, you are launching =
the
> two classes in two different JVM instances.
>
> There are a couple ways to do you may want to be doing.
>
> 1) Launch two copies of the Wrapper. This can easily be done by =
creating
> two different wrapper.conf files. Either install them in different
> locations or take care that the log and any pid files are named=20
> uniquely and things should work great. If you are running under NT=20
> you can even setup a dependency on the other server using the=20
> wrapper.ntservice.dependency.<n> properties.
>
> 2) Depending on how your applications work. You may also be able to
> simply
> run both of your applications from within the same JVM. To do this=20
> create
> a simple class that does the following:
>
> public static main(String[] args)
> {
> Thread t1 =3D new Thread()
> {
> public void run()
> {
> CR.Compass.Server.CompassServer.main( new String[] {} );
> }
> };
> t1.start();
>
> Thread t2 =3D new Thread()
> {
> public void run()
> {
> CR.Compass.Server.CAS.CAS.main( new String[] { "0" } );
> }
> };
> t2.start();
> }
>
> I didn't compile the above, but it should work. Just specify =
this
> new
> class as the first wrapper.app.parameter and then specify
> org.tanukisoftware.wrapper.WrapperSimpleApp
>
> as the wrapper.java.mainclass. It should work.
>
> If you found the support or the product useful, drop by the=20
> following as well.=20
> http://wrapper.tanukisoftware.org/doc/english/donate.html
>
> Let me know if you have any other questions.
>
> Cheers,
> Leif
>
> =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF wrote:
>
> > Hi=85
> >
> > i have the following batch file to run a java server:
> >
> >
> >
> > start java -cp lib\compass320.jar CR.Compass.Server.CompassServer
> >
> > java -cp lib\compass320.jar CR.Compass.Server.CAS.CAS 0
> >
> >
> >
> > as u can see I need to invoke to 2 classes at the same time (which=20
> > are from the same jar)=85
> >
> >
> >
> > is there a way to do this in wrapper?
> >
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. Does=20
> SourceForge.net help you be more productive? Does it help you create =
> better code? SHARE THE LOVE, and help us help YOU! Click Here:=20
> http://sourceforge.net/donate/=20
> _______________________________________________
>
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
>
> (See attached file: wrapperserver.conf)
> (See attached file: wrappercas.conf)
> (See attached file: log.txt)
> (See attached file: server0.log)
> (See attached file: server.log)
> (See attached file: wrapperserver.log)
> (See attached file: wrapperCAS.log)
>
>
>
>
>
>
>
>
>
>
>
>
> =20
> This mail was scanned and found secure
>
> The contents of this email and any attachments are confidential. It =
is=20
> intended for the named recipient(s) only. If you have received this=20
> 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.
>
>
>-----------------------------------------------------------------------=
>-
>
><02:58:45.468> [main] Main called
><02:58:46.546> [main] [Network.connect] New socket :=20
>Socket[addr=3D127.0.0.1/127.0.0.1,port=3D4711,localport=3D1370]
><02:58:46.562> [main] [Order.constructor] opCode init : 3
><02:58:46.562> [main] [NetworkLayerClient.synchCall] started
><02:58:46.562> [main] [Order.writeOrder synch] opCode :3
><02:58:46.562> [main] [Order.writeHeader] called with 3
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:46.562> [main] [Order.constructor] default init
><02:58:46.562> [main] [Order.readResult] started
><02:58:46.562> [main] [Order.readHeader] called
><02:58:46.562> [main] [Network.readInteger] started
><02:58:46.578> [main] [Network.readInteger] started
><02:58:46.578> [main] [Order.readResult] opCode : 3 error Code 0
><02:58:46.578> [main] [Order.constructor] opCode init : 6
><02:58:46.578> [main] [NetworkLayerClient.synchCall] started
><02:58:46.578> [main] [Order.writeOrder synch] opCode :6
><02:58:46.578> [main] [Order.writeHeader] called with 6
><02:58:46.578> [main] [Network.writeInteger] started
><02:58:46.578> [main] [Network.writeString] ELHANAN
><02:58:46.578> [main] [Network.writeString]=20
><02:58:46.593> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:46.593> [main] [Order.constructor] default init
><02:58:46.593> [main] [Order.readResult] started
><02:58:46.593> [main] [Order.readHeader] called
><02:58:46.593> [main] [Network.readInteger] started
><02:58:48.062> [main] [Network.readInteger] started
><02:58:48.062> [main] [Order.readResult] opCode : 6 error Code 0
><02:58:48.062> [main] [Order.constructor] opCode init : 5
><02:58:48.062> [main] [NetworkLayerClient.synchCall] started
><02:58:48.062> [main] [Order.writeOrder synch] opCode :5
><02:58:48.062> [main] [Order.writeHeader] called with 5
><02:58:48.062> [main] [Network.writeInteger] started
><02:58:48.062> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:48.062> [main] [Order.constructor] default init
><02:58:48.062> [main] [Order.readResult] started
><02:58:48.062> [main] [Order.readHeader] called
><02:58:48.062> [main] [Network.readInteger] started
><02:58:48.656> [main] [Network.readString] started
><02:58:48.656> [main] [Network.readString] finished
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Order.readResult] opCode : 5 error Code 0
>AWIGetTextualResult err : 0 result Error: file tmp\0 is not open
><02:58:48.656> [main] [Order.constructor] opCode init : 2
><02:58:48.656> [main] [NetworkLayerClient.synchCall] started
><02:58:48.656> [main] [Order.writeOrder synch] opCode :2
><02:58:48.656> [main] [Order.writeHeader] called with 2
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:48.656> [main] [Order.constructor] default init
><02:58:48.656> [main] [Order.readResult] started
><02:58:48.656> [main] [Order.readHeader] called
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Network.readString] started
><02:58:48.656> [main] [Network.readString] finished
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Order.readResult] opCode : 2 error Code 0
>return code err 0rc 0=20
><02:58:48.656> [main] [Order.constructor] opCode init : 3
><02:58:48.656> [main] [NetworkLayerClient.synchCall] started
><02:58:48.656> [main] [Order.writeOrder synch] opCode :3
><02:58:48.656> [main] [Order.writeHeader] called with 3
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:48.656> [main] [Order.constructor] default init
><02:58:48.656> [main] [Order.readResult] started
><02:58:48.671> [main] [Order.readHeader] called
><02:58:48.671> [main] [Network.readInteger] started
><02:58:49.281> [main] [Network.readInteger] started
><02:58:49.281> [main] [Order.readResult] opCode : 3 error Code 0
><02:58:49.281> [main] [Order.constructor] opCode init : 6
><02:58:49.281> [main] [NetworkLayerClient.synchCall] started
><02:58:49.281> [main] [Order.writeOrder synch] opCode :6
><02:58:49.281> [main] [Order.writeHeader] called with 6
><02:58:49.281> [main] [Network.writeInteger] started
><02:58:49.281> [main] [Network.writeString] ELHANAN
><02:58:49.281> [main] [Network.writeString]=20
><02:58:49.281> [main] [NetworkLayerClient.synchCall] read Order from =
net
><02:58:49.281> [main] [Order.constructor] default init
><02:58:49.281> [main] [Order.readResult] started
><02:58:49.281> [main] [Order.readHeader] called
><02:58:49.281> [main] [Network.readInteger] started
> =20
>
-------------------------------------------------------
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
=20
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-11-25 14:56:08
|
Elhanan,
Is this a program that you have written or is it something that you
are simply trying to
get integrated with the wrapper. You sent me a lot. I tried looking it
all over, but may
have missed something. It sounds like your only remaining problems are
path related.
One thing that you need to know about how the Wrapper currently
works is that it
always sets the current user.dir of the JVM to be the location of the
Wrapper.exe file.
All paths are then relative to this location. So if you create a file:
new File( "tmp/0" )
then this File object will represent a file called "0", located in a
directory, "tmp", which
is located in the current user directory, which is the location of the
Wrapper.exe file.
If you really want to accessing the tmp directory in the root, then
you need to do the
following: new File( "/tmp/0" )
This tells Java to start and the root directory, ignoring the current
user directory.
It is possible to override the default user.dir when the JVM is
launched by explicitly
setting the user.dir property as a system property. This can be done
using the following
parameter in your wrapper.conf file.
wrapper.java.additional.1=-Duser.dir=/
The above sets the user dir to the root directory. Note that this
WILL BREAK all
relative path handling by the Wrapper and you will need to start
specifying fully
qualified paths in your wrapper.conf file. I don't normally suggest
this, because path
problems tend to quickly multiply.
If you have access to the source of the compass application, I would
suggest trying
to figure out another way to correct those path issues from within the
application.
It seems like you should have been having similar problems when running
from a batch
file. Did that batch file include and cds or anything to change the
current directory to
the root?
Cheers,
Leif
P.S. Please post to the list rather than to me directly. It helps other
to learn by making
your questions and my answers searchable.
אלחנן מעיין wrote:
> We have progress
> By changing the login account on both services and starting them I did
> get the lacombi.trc file however when I used the calling sample
> something went wrong in the server as u will see in the log of server.log
>
> I suspect (and leif I'm asking u that as well) that services whatever
> their account may be, cannot access resources servers and since all of
> our oracle dll our on a network that could be a problem.
>
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 2:04 PM
> To: אלחנן מעיין
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes
> to run as one service. ..
>
> yes
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
>
>
>
>
> אלחנן
> מעיין
>
>
> <elhanan@migdal-g To:
> "'com...@ge...'"
> <com...@ge...>
>
> roup.co.il>
> cc:
>
>
> Subject: RE:
> [Wrapper-user] configuring Wrapper to run to java classes to
>
> 25.11.2003 12:48 run as one
> service. ..
>
>
>
>
>
>
>
>
>
>
>
>
> Did u get the other files before?
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 1:47 PM
> To: אלחנן מעיין
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes to
> run as one service. ..
>
> Hi Elhanan,
> Sorry ... no files attached ...
>
> kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
>
> אלחנן מעיין
>
> <elhanan@migdal-g To:
> "'com...@ge...'" <com...@ge...>
>
> roup.co.il> cc:
>
> Subject: RE:
> [Wrapper-user]
> configuring Wrapper to run to java classes to
>
> 25.11.2003 12:38 run as one
> service. ..
>
>
>
>
>
>
>
> Extract the following zip files in their directories (meaning
> compasscli.zip into c:\compasscli\ and compassrv.zip into c:\compassrv)
>
> It assumes u have c:\compass library
> Then in the bin directory use
> InstallCompassServer-NT.bat
> And
> InstallCAS-NT.bat
>
> Then inorder to run it in normal mode use
> startCompassserver.bat
> and
> startCAS.bat
>
> inorder to test the call run starttestloc.bat from c:\compasscli\
>
> u should get the file name 0 in tmp directory INSIDE the bin directory if
> all goes well. If it does try starting the services Compass Server and
> CompassCAS in the services tab.
>
> Change the oracle connection string INSIDE the bin directory in the
> profile.aes to your own.
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Tuesday, November 25, 2003 1:22 PM
> To: אלחנן מעיין
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes to
> run as one service. ..
>
> Hello Elhanan,
> It is me, Marcus to answer ...
>
> We are very happy to hear that some of the problems (libsybdb.dll)
> could be
> resolved. At the moment cas.cfg is locked. What about creating a copy
> in a
> different directory? But we will have a closer look.
>
> From the information given we can't say anything why the COMPASS server
> won't start. It would be a great help for us to be able to run the
> COMPASS
> server (at Cologne) the same way as you run it. Can you provide us with
> anything that allows the COMPASS server to run as a service (e.g. Wrapper
> code, start-routines ...)? From the logs we can't see how the COMPASS
> server is called by a client. Can you provide us with the calls?
>
> Kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
>
> אלחנן מעיין
>
> <elhanan@migdal-g To:
> "'com...@ge...'" <com...@ge...>, 'Leif Mortenson'
>
> roup.co.il> <le...@ta...>
>
> cc: עודד רזניק
> <to...@mi...>
>
> 25.11.2003 09:14 Subject: RE:
> [Wrapper-user]
> configuring Wrapper to run to java classes to
>
> run as one service. ..
>
>
>
>
>
> Once again I'm uniting my answer to both because the problem was in both
> areas.
>
> lucas (your answer is just below this answer)
> once u told me that dll was in fact a DLL for Sybase I guess that once
> again compass tried to read from the directory the wrapper was
> launched (a
> sub directory with in compasssrv which launches the jvm), and when it
> didn’t' find it there, it reverted to towards default values (sysbase)
> when
> I copied profile.aes to the bin directory and this lacombi said ora73.dll
> was missing, as leif wrote all paths to other dll's must be declared,
> so I
> added that path to oracle library in the wrapper config files, and that
> solved that problem BUT then It screamed it couldn't write the report
> file
> to the directory (tmp) so off course I created that directory as well in
> the bin, and this time everything worked, that is compass server answered
> me.
>
> The problem why I had to launch 2 jvm sepratly is because compasserver
> class completely locks cas.cfg, with no regards to the wrapper, if I
> try to
> create compassserer class and CAS class in my own little java class, cas
> class won't be able to read the cas.cfg file becosue compassserver class
> locks it. If u have anything to solve it I'd be happy to hear it.
>
> Leif
> As u can see I have a problem here with the wrapper because I keep having
> to replicate the root directory's files into the bin directory where the
> wrapper is (copying the application config files, creating directories,
>
> etc..) I have to find way to either fool the compass into thinking it is
> laucned from root directory, or config the wrapper to launch from the
> root
> directory (i.e change the install/uninstall batch files, and the run
> batch
>
> files)
>
> Lucas and leif
>
> Now I'm faced with another problem, I said the application worked, but it
> only worked with run batch files, if tried using it via services applet,
> nothing seems to work, although in the services applet I press start and
> they simply started, but when I tried calling the java server with the
> api's I got some reply but it simply hung there , it did manage to see
> the
> servers (otherwise it would have crashd and exited) I'm sending lucas
> log.txt,server.log and server0.log files bugt although profile.aes had a
> log setting I couldn't find the lacombi.trc file anywhere
>
> Lucas: the wrapperCAS.conf and wrapperserver.conf files also contain the
> screen output from the servers (as there was no screen when I started the
>
> services)
>
> Another issue I'm concerned about is the ORDER the services are started,
> compassserver services must be started first because it waits and listens
> on port 4712 then cas services is started and they both communicate with
> each other, I don't how windows handles this wait in between (to be
> safe I
> stopped both services, started the first one, waited, and then started
> the
> second one).
>
> Elhanan,
> After reading through all of this, the final problem is that the
> executable lacombi.exe binary can not locate a required dll file. I am
> not really clear how that relates to the Wrapper? Is that application
> being launched by one of your 2 JVMs?
>
> If the DLL is required as a JNI native library by one of the
> classes in
> your Java application then you must include the location of the DLL on
> your
> java library path. When you run Java without the wrapper, it uses a
> default
> library path that includes the windows directory and user directory.
> When
> running with the Wrapper, you must set this manually in the wrapper.conf
> file.
>
> Since you can not locate this file anyplace, not sure if that is your
> problem however.
>
> Other than that, it sounds like your 2 JVMs are starting up
> correctly.
> Could you please set the wrapper.debug=true property in both of your
> wrapper.conf files. Then reply with the 2 wrapper.conf files and
> wrapper.log files as attachments. Please only include the log output
> for a
> SINGLE JVM invocation.
>
> I may be able to spot something to help you out.
>
> Cheers,
> Leif
>
> -----Original Message-----
> From: com...@ge... [mailto:com...@ge...]
> Sent: Monday, November 24, 2003 10:31 AM
> To: אלחנן מעיין
> Subject: RE: [Wrapper-user] configuring Wrapper to run to java classes to
> run as one service. ..
>
> Hello Elhanan,
> I'm answering the topic of requiring the "libsybdb.dll" by lacombi.exe.
> This is simply that COMPASS was told to access a Sybase database and
> it is
> not able to locate the library needed for this. As far as I know you are
> using Oracle. COMPASS is told by "profile.aes" which database to connect.
> Could you please check if all entries are right in this file?
>
> I'm not with you when you describe the process of starting two servers.
> Which problem shall be solved with this design ?
>
> Kind regards
> Marcus Tkotz
>
> Gen Re
> Life/Health Client Services
> Systems
>
> E-Mail: com...@ge...
> Tel: +49 - 221- 9738 - 500
> Fax: +49 - 221- 9738 - 984
>
> אלחנן מעיין
>
> <elhanan@migdal-g To:
> "'wra...@li...'"
> <wra...@li...>,
>
> roup.co.il>
> "'com...@gc...'"
> <com...@gc...>
>
> cc: עודד רזניק
> <to...@mi...>
>
> 23.11.2003 18:59 Subject: RE:
> [Wrapper-user]
> configuring Wrapper to run to java classes to run
>
> as one service. ..
>
>
>
>
> I'm sending this to both of u since I don't know exactly where the
> problem
> exists
>
> First I discovered I cannot launch the 2 class (compasserver,cas) in code
> from the same jvm because compassserver locks cas.cfg
>
> I know this because after remarking the first class (comapsserver) and
> telling the batch file to raise the original class and then my class with
> my code, only then it worked, by trying your code as u wrote it, the 2nd
> class keeps saying that it could find the CASListenport on line 4
> (which is
> in cas.cfg, which it couldn't read I guess)
>
> So I was left with the 2nd alternative:
>
> After creating to adtional directories (confCAS,confSERVER) and modifying
> and creating 2 install files, 2 run files, and 2 uninstall files (by
> simply
> chaning each files conf directory to my own directories) I was able to
> install the services.
>
> After changing the conf files according I was left the following
> problems.
> The classes won't run unless they will have server.cfg and cas.cfg in the
> directory where wrapper.exe exists. Even though i specified the the root
> directory in wrapper.java.class parameters
>
> Originally thought both files were in the same directory as the original
> batch file. This is not a major problem because after copying both files
> into Directories it seemed to work. Also comass also demanded the
> directory
> lacid (also located in the root directory of the application) will be
> copied to the directory of batch files
>
> Now the real problem started when I tried accessing compass with java
> client api sample... suddenly windows alerted the lacombi.exe needed the
> file libsybdb.dll and couldn't find it. The strange thing is that I
> REALLY
> couldn't find it, now in my entire c drive and not in the network
> directory
> which contains the oracle.dll
>
> Also I've checked lacombi with dependency walker an it really doesn't
> reference this dll.
>
> Running compass normally does not raise this error. I have no idea
> what is
> this dll for.
>
> -----Original Message-----
> From: Leif Mortenson [mailto:le...@ta...]
> Sent: Friday, November 21, 2003 12:20 PM
> To: wra...@li...
> Subject: Re: [Wrapper-user] configuring Wrapper to run to java classes to
> run as one service. ..
>
> Elhanan,
> Just like Java, the Wrapper only allows you to specify a single class
> when it it launches the JVM. In your application, you are launching the
> two classes in two different JVM instances.
>
> There are a couple ways to do you may want to be doing.
>
> 1) Launch two copies of the Wrapper. This can easily be done by creating
> two different wrapper.conf files. Either install them in different
> locations or take care that the log and any pid files are named uniquely
> and things should work great. If you are running under NT you can even
> setup a dependency on the other server using the
> wrapper.ntservice.dependency.<n> properties.
>
> 2) Depending on how your applications work. You may also be able to
> simply
> run both of your applications from within the same JVM. To do this
> create
> a simple class that does the following:
>
> public static main(String[] args)
> {
> Thread t1 = new Thread()
> {
> public void run()
> {
> CR.Compass.Server.CompassServer.main( new String[] {} );
> }
> };
> t1.start();
>
> Thread t2 = new Thread()
> {
> public void run()
> {
> CR.Compass.Server.CAS.CAS.main( new String[] { "0" } );
> }
> };
> t2.start();
> }
>
> I didn't compile the above, but it should work. Just specify this
> new
> class as the first wrapper.app.parameter and then specify
> org.tanukisoftware.wrapper.WrapperSimpleApp
>
> as the wrapper.java.mainclass. It should work.
>
> If you found the support or the product useful, drop by the following
> as well. http://wrapper.tanukisoftware.org/doc/english/donate.html
>
> Let me know if you have any other questions.
>
> Cheers,
> Leif
>
> אלחנן מעיין wrote:
>
> > Hi…
> >
> > i have the following batch file to run a java server:
> >
> >
> >
> > start java -cp lib\compass320.jar CR.Compass.Server.CompassServer
> >
> > java -cp lib\compass320.jar CR.Compass.Server.CAS.CAS 0
> >
> >
> >
> > as u can see I need to invoke to 2 classes at the same time (which are
> > from the same jar)…
> >
> >
> >
> > is there a way to do this in wrapper?
> >
>
> -------------------------------------------------------
> 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
>
>
>
>
> (See attached file: wrapperserver.conf)
> (See attached file: wrappercas.conf)
> (See attached file: log.txt)
> (See attached file: server0.log)
> (See attached file: server.log)
> (See attached file: wrapperserver.log)
> (See attached file: wrapperCAS.log)
>
>
>
>
>
>
>
>
>
>
>
>
>
> 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.
>
>
>------------------------------------------------------------------------
>
><02:58:45.468> [main] Main called
><02:58:46.546> [main] [Network.connect] New socket : Socket[addr=127.0.0.1/127.0.0.1,port=4711,localport=1370]
><02:58:46.562> [main] [Order.constructor] opCode init : 3
><02:58:46.562> [main] [NetworkLayerClient.synchCall] started
><02:58:46.562> [main] [Order.writeOrder synch] opCode :3
><02:58:46.562> [main] [Order.writeHeader] called with 3
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [Network.writeInteger] started
><02:58:46.562> [main] [NetworkLayerClient.synchCall] read Order from net
><02:58:46.562> [main] [Order.constructor] default init
><02:58:46.562> [main] [Order.readResult] started
><02:58:46.562> [main] [Order.readHeader] called
><02:58:46.562> [main] [Network.readInteger] started
><02:58:46.578> [main] [Network.readInteger] started
><02:58:46.578> [main] [Order.readResult] opCode : 3 error Code 0
><02:58:46.578> [main] [Order.constructor] opCode init : 6
><02:58:46.578> [main] [NetworkLayerClient.synchCall] started
><02:58:46.578> [main] [Order.writeOrder synch] opCode :6
><02:58:46.578> [main] [Order.writeHeader] called with 6
><02:58:46.578> [main] [Network.writeInteger] started
><02:58:46.578> [main] [Network.writeString] ELHANAN
><02:58:46.578> [main] [Network.writeString]
><02:58:46.593> [main] [NetworkLayerClient.synchCall] read Order from net
><02:58:46.593> [main] [Order.constructor] default init
><02:58:46.593> [main] [Order.readResult] started
><02:58:46.593> [main] [Order.readHeader] called
><02:58:46.593> [main] [Network.readInteger] started
><02:58:48.062> [main] [Network.readInteger] started
><02:58:48.062> [main] [Order.readResult] opCode : 6 error Code 0
><02:58:48.062> [main] [Order.constructor] opCode init : 5
><02:58:48.062> [main] [NetworkLayerClient.synchCall] started
><02:58:48.062> [main] [Order.writeOrder synch] opCode :5
><02:58:48.062> [main] [Order.writeHeader] called with 5
><02:58:48.062> [main] [Network.writeInteger] started
><02:58:48.062> [main] [NetworkLayerClient.synchCall] read Order from net
><02:58:48.062> [main] [Order.constructor] default init
><02:58:48.062> [main] [Order.readResult] started
><02:58:48.062> [main] [Order.readHeader] called
><02:58:48.062> [main] [Network.readInteger] started
><02:58:48.656> [main] [Network.readString] started
><02:58:48.656> [main] [Network.readString] finished
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Order.readResult] opCode : 5 error Code 0
>AWIGetTextualResult err : 0 result Error: file tmp\0 is not open
><02:58:48.656> [main] [Order.constructor] opCode init : 2
><02:58:48.656> [main] [NetworkLayerClient.synchCall] started
><02:58:48.656> [main] [Order.writeOrder synch] opCode :2
><02:58:48.656> [main] [Order.writeHeader] called with 2
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [NetworkLayerClient.synchCall] read Order from net
><02:58:48.656> [main] [Order.constructor] default init
><02:58:48.656> [main] [Order.readResult] started
><02:58:48.656> [main] [Order.readHeader] called
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Network.readString] started
><02:58:48.656> [main] [Network.readString] finished
><02:58:48.656> [main] [Network.readInteger] started
><02:58:48.656> [main] [Order.readResult] opCode : 2 error Code 0
>return code err 0rc 0
><02:58:48.656> [main] [Order.constructor] opCode init : 3
><02:58:48.656> [main] [NetworkLayerClient.synchCall] started
><02:58:48.656> [main] [Order.writeOrder synch] opCode :3
><02:58:48.656> [main] [Order.writeHeader] called with 3
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [Network.writeInteger] started
><02:58:48.656> [main] [NetworkLayerClient.synchCall] read Order from net
><02:58:48.656> [main] [Order.constructor] default init
><02:58:48.656> [main] [Order.readResult] started
><02:58:48.671> [main] [Order.readHeader] called
><02:58:48.671> [main] [Network.readInteger] started
><02:58:49.281> [main] [Network.readInteger] started
><02:58:49.281> [main] [Order.readResult] opCode : 3 error Code 0
><02:58:49.281> [main] [Order.constructor] opCode init : 6
><02:58:49.281> [main] [NetworkLayerClient.synchCall] started
><02:58:49.281> [main] [Order.writeOrder synch] opCode :6
><02:58:49.281> [main] [Order.writeHeader] called with 6
><02:58:49.281> [main] [Network.writeInteger] started
><02:58:49.281> [main] [Network.writeString] ELHANAN
><02:58:49.281> [main] [Network.writeString]
><02:58:49.281> [main] [NetworkLayerClient.synchCall] read Order from net
><02:58:49.281> [main] [Order.constructor] default init
><02:58:49.281> [main] [Order.readResult] started
><02:58:49.281> [main] [Order.readHeader] called
><02:58:49.281> [main] [Network.readInteger] started
>
>
|
|
From: Leif M. <le...@ta...> - 2003-11-25 14:36:19
|
whack er wrote: > Greetings > > I have experimented with the wrapper test program on Windows XP and > have the following doubt: > > 1.I beleive that the console window would not be displayed if I run as > a service on the Windows platform. In all released versions of the Wrapper, it is not possible to display the java console when running as an NT service. It sounds like this is what you want, so this is a good thing. I have already added the ability to optionally display the console even when running as an interactive service. This will be in the next release. > 2.If run on LINUX, I beleive that the console window would be displayed. Yes and no. The shell script that is used to launch the wrapper on UNIX systems allows a great amount of control over how it is launched. The script behaves like a standard init script, in that it takes a single command which tells the script what to do. The first command 'console', will launch the Wrapper in the shell from which the script is executed. The user will be able to see all of the console output and be able to stop the application by pressing CTRL-C. The second command is 'start'. This sounds like what you want. This will launch the wrapper in the background as a daemon process. It will stay running even if the shell is closed and the user will not be able to see the console output. Depending on how you have configured the wrapper's logging, the console output may still be written to the wrapper.log file. > 3.Since I am evaluating the use of the wrapper, I would not like to > display the console to end users and leave them guessing. As described in 1 and 2. You should be able to hide the console on both Windows and Linux platforms. > 4.If I run a normal Java application using javaw then there is no > console displayed, can I do the same on Windows and Linux using the > wrapper ? See above. > 5.Are there any optionsto run on the system tray or KDE task bar ? Not currently. The Wrapper does not interact directly with the Window Manager on Unix or Windows platforms. This is on my list of things that I would eventually like to support however. Cheers, Leif |
|
From: Leif M. <le...@ta...> - 2003-11-25 14:26:11
|
Jacques, >Attached are the files for a single normal startup and shutdown of what you >asked for. >Just to let you know, after generating the log for you, I tested the two >apps running together again this morning, terminating the VM processes, and >the wrapper handled both fine this time. What bothers me is that yesterday >it didn't work, today it did, but I haven't changed anything. Not the apps, >not the wrapper.conf, nothing. I haven't even restarted my machine. > > I looked over your wrapper.log and wrapper.conf files and they look fine. Does this wrapper.log capture the failure that you described? It looks like the applications starts up normally and then exits normally. The Wrapper begins the shutdown process when its shutdown hook is invoked. This was most likely caused by something in your code calling System.exit(n). I am not sure what would have been causing the problem you had seen before. If you are able to reproduce it and capture the problem in a log file, I would love to see it. >Another, much less important issue :) Is there a way to set the text line >wrap width on the console output. I find that the output gets wrapped when >there is still more than enough room left to finish some of the lines. > > At what point are you having problem with characters wrapping? Looking at the source it looks like the Wrapper will wrap long lines at 1024 characters? Is this the limit you are encountering? If this the problem, I can look at reworking that code to get rid of the wrapping. It is an artifact of the way output is read in from the JVM. Cheers, Leif |
|
From: whack er <wha...@ya...> - 2003-11-25 12:27:33
|
Greetings I have experimented with the wrapper test program on Windows XP and have the following doubt: 1.I beleive that the console window would not be displayed if I run as a service on the Windows platform. 2.If run on LINUX, I beleive that the console window would be displayed. 3.Since I am evaluating the use of the wrapper, I would not like to display the console to end users and leave them guessing. 4.If I run a normal Java application using javaw then there is no console displayed, can I do the same on Windows and Linux using the wrapper ? 5.Are there any optionsto run on the system tray or KDE task bar ? TIA --------------------------------- Do you Yahoo!? Free Pop-Up Blocker - Get it now |
|
From: Jacques B. <jac...@gm...> - 2003-11-25 07:45:46
|
Hi there Leif. Attached are the files for a single normal startup and shutdown of what you asked for. Just to let you know, after generating the log for you, I tested the two apps running together again this morning, terminating the VM processes, and the wrapper handled both fine this time. What bothers me is that yesterday it didn't work, today it did, but I haven't changed anything. Not the apps, not the wrapper.conf, nothing. I haven't even restarted my machine. Another, much less important issue :) Is there a way to set the text line wrap width on the console output. I find that the output gets wrapped when there is still more than enough room left to finish some of the lines. Thanx for the help. Jacques ----- Original Message ----- From: "Leif Mortenson" <le...@ta...> To: <wra...@li...> Sent: Monday, November 24, 2003 4:49 PM Subject: Re: [Wrapper-user] 2 wrapper instances - problem : Jacques, : : > Hi there guys. Couldn't find any info on the type of problem I'm having. : > : > I am wrapping two completely separate java apps on the same machine. : > They start up and run fine, but when I terminate one of the java.exe : > (VM) processes using the task manager to test that the wrapper : > restarts the VM, the whole wrapper seems to die, not just the VM. : > Consequently the VM doesn't get started up again - obviously. : > When I test the two separately, both work fine and get restarted : > without a problem. It's only when they are running simultaneously that : > things seem to go wrong. : > : > Can anybody help me? Am I doing something wrong. Can the wrapper : > handle two VMs? : > Thanx much! : : This should be working, I run with multiple JVMs all the time. Just : retested this and it is : working fine for me. Could you enable debug output in the JVM that is : exiting using : the wrapper.debug=true property then reply with your wrapper.conf file : and the contents : of the wrapper.log file for a single JVM run? I may be able to spot the : problem. : : > Testing this on a WinXP Home system: SUN JRE 1.4.2_1. 512 MB RAM. 2GB : > Intel. Wrapper 3.0.5. : > : > PS I think this wrapper project is seriously cool! Thanx for the : > work, to the dev team.. : : Thanks, glad you find it useful. : : Cheers, : Leif : : : : : ------------------------------------------------------- : 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 : : : |