|
From: <abr...@gm...> - 2005-02-23 19:07:25
|
I wouldn't go so far to load files from inside jar's. Since the wrapper is a native application this would require tar/zip functionality. But your right to point out that the classpath is defined inside the wrapper config. Because I currently start java processes directly from command line I assumed that the classpath is defined in the shell environment. This may be true for Solaris/Linux where I can set the classpath using ".profile", but if I want to start my class as NT service, the classpath won't be set in the service environment. One could only assume the classpath to be set in the environment during INSTALL time. But that's not sufficient, is it? I will think it over ;-) but for now my solution to pass "set.MYPATH=%MYPATH%" to the wrapper executable in the starting script and to use "%MYPATH%" as path for loading include files works absolutely fine. I think I was just a little bit irritated by having all paths relative to the wrapper binary. / Andreas -----Ursprüngliche Nachricht----- Von: wra...@li... [mailto:wra...@li...]Im Auftrag von nic...@uk... Gesendet: Mittwoch, 23. Februar 2005 01:56 An: wra...@li... Betreff: Re: AW: [Wrapper-user] wrapper and relative file locations Should it also load them from inside JAR's that are in the classpath? Also, note that the java application's classpath is defined by the wrapper.config file. How does it find the config file? ;-) It would be do-able to have a WRAPPER_HOME env var, but I usually find env-vars a very brittle mechanism for configuration of server applications. -Nick Internet abr...@gm...@lists.sourceforge.net - 22/02/2005 21:38 Please respond to wra...@li... Sent by: wra...@li... To: wrapper-user cc: Subject: AW: [Wrapper-user] wrapper and relative file locations Oh, and I forgot: even as a native application the wrapper could <naive>easily</naive> be enabled to use the classpath, because that's only an environment variable which is easy to parse: Parse it, filter out all files and you got a list of directories where you can look for files given with relative path names. <naive>Shouldn't be too difficult, right?</naive> / Andreas -----Ursprüngliche Nachricht----- Von: wra...@li... [mailto:wra...@li...]Im Auftrag von nic...@uk... Gesendet: Dienstag, 22. Februar 2005 14:42 An: wra...@li... Betreff: Re: [Wrapper-user] wrapper and relative file locations Well, firstly, the wrapper is a native application, so it wont know too much about classpath ;-) Are you on windows or unix? You can pass absolute paths to the config files if that makes it simpler (just edit the batch/shell script file) -Nick Internet ABr...@gm...@lists.sourceforge.net - 22/02/2005 09:35 Please respond to wra...@li... Sent by: wra...@li... To: wrapper-user cc: Subject: [Wrapper-user] wrapper and relative file locations Hi, I do not quite understand why the wrapper's path name behavior is so dependent on the wrappers location. Is it possible for the wrapper to find config-files (especially includes) also in the class path? That would make life much easier. For my application I have a directory named "run" in the classpath. Below that I have a "config" directory containing all configuration files I need. Inside of java I can alwas load them using the ClassLoader and "config/filename". I would like to place a basic wrapper configuration there and include it using "#include config/base.conf", but that does not work. Regards, Andreas -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. **************************************************************************** ****************** BNP Paribas Private Bank London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Securities Services London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Fund Services UK Limited is authorised and regulated by the Financial Services Authority. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |