|
From: Leif M. <le...@ta...> - 2004-02-25 00:35:59
|
Alain,
Are you using Integration Method #1? Most likely you will want to
be specifying the WrapperSimpleApp helper class are your main class.
Then specify the name of your
class as its first argument. If you are specifying your class as the
main class, things will
not work. It is explained in the integration docs, but the Wrapper
requires that the
JVM do some work on startup. This is all handled automatically if you
make use of
one of the two helper classes (Methods #1, #2), or manually if using
Method #3.
If you have questions after reading through that documentation,
please set the
wrapper.debug=true property in the conf file and then post back with the
contents
of the Wrapper.log for a SINGLE JVM run along with your wrapper.conf. I
will
then be able to tell you the exact problem.
Cheers,
Leif
Alain Gaeremynck wrote:
> I am a j2ee programmer so please be kind and don't laugh
>
> Using the wrapper i am trying to create a service that monitors the
> content of a folder and perform an action when it changes.
>
> I created a small set of class that performs the task throught a
> Timer. here is a copy of the main:
>
> public class WrapperTest {
>
> public WrapperTest() throws ConfigurationException {
> FolderMonitor fm = new FolderMonitor(new
> File("/home/garem/workarea/rci/runtime/conf"));
> Timer tm = new Timer();
> System.out.println("running");
> tm.scheduleAtFixedRate(fm, 0,600);
> }
>
>
> public static void main(String[] args) throws Exception {
> WrapperTest wp = new WrapperTest();
> }
> }
>
> as a stand alone i add a few line to the main to exit on <<enter>>
> using System.in
>
> now i've used the example given to start jboss and i get the following
> error:
> Startup failed: Timed out waiting for signal from JVM.
> wrapper | JVM did not exit on request, terminated
>
>
> if i remove the timer then it dies and restart and dies and restarts ....
>
> What is it that i did not unserstand
>
> Alain Gaeremynck
> interstructure
>
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|