Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 89727 invoked from network); 29 May 2008 16:27:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2008 16:27:52 -0000 Received: (qmail 80679 invoked by uid 500); 29 May 2008 16:27:52 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 80448 invoked by uid 500); 29 May 2008 16:27:51 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 80437 invoked by uid 99); 29 May 2008 16:27:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2008 09:27:51 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.49.71] (HELO web53201.mail.re2.yahoo.com) (206.190.49.71) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 May 2008 16:27:01 +0000 Received: (qmail 78709 invoked by uid 60001); 29 May 2008 16:27:16 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=CyzLR5zwlCWw0/P+v5RI9DQE0zCrA6dKIvCX0zVGR5ON9AhH9+dQYcW8AiL3ln1FUoxoWPGUp7j1KXRkixLAN6DRaGkbkojoWK2p5exuhm38UvqzLydPv458jXxhmdZf5SsRjPKsA2sKUDuLb5XWyavLjjnApLmLv/l92u0Te2s=; X-YMail-OSG: t2LhmUgVM1nVhPyBW0Xq8TNxi7pdOkggeOEEXlxDUK.uq96UrUrBqUtinrGrjZeE1KkIr7qkg4zmqZ.uWtGw9DlDIp7G7IZjcBXHSRPzKZVFKSEXxZOQV4hyE6k- Received: from [63.83.48.10] by web53201.mail.re2.yahoo.com via HTTP; Thu, 29 May 2008 09:27:15 PDT X-Mailer: YahooMailRC/975.41 YahooMailWebService/0.7.185 Date: Thu, 29 May 2008 09:27:15 -0700 (PDT) From: Moni Reply-To: Moni Subject: Re: Main class used to start and stop the geronimo server? To: user@geronimo.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2019613362-1212078435=:78090" Message-ID: <985469.78090.qm@web53201.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-2019613362-1212078435=:78090 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I am using the following command to start the geronimo server.=A0=0A/usr/lo= cal/jrockit-R27.5.0-jdk1.6.0_03/jre/bin/java -javaagent:/usr/local/geronimo= /bin/jpa.jar -Dorg.apache.geronimo.base.dir=3D/usr/local/geronimo -Djava.en= dorsed.dirs=3D/usr/local/geronimo/lib/endorsed:/usr/local/jrockit-R27.5.0-j= dk1.6.0_03/jre/lib/endorsed -Djava.io.tmpdir=3Dvar/temp -jar /usr/local/ger= onimo/bin/server.jar=0A=0AHowever when I use the Java Service Wrapper to st= art the server I am getting the exception pasted below.=A0 I have been info= rmed in the discussion forums for Java Service Wrapper that I am probably n= ot specifying all the parameters to start the server.=A0 That is what is gi= ving the start up error.=A0 Could you please look into it and let me know i= f I am missing any geronimo start up parameters.=A0 Any feedback will be mu= ch appreciated.=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 | Booti= ng Geronimo Kernel (in Java 1.6.0_03)...=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 20= 08/05/27 14:59:48 | Starting Geronimo Application Server v2.0.2=0AINFO=A0= =A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 |=0AINFO=A0=A0 | jvm 1=A0=A0=A0 = | 2008/05/27 14:59:48 | WrapperSimpleApp: Encountered an error running main= : java.lang.StringIndexOutOfBoundsException: String index out of range: -11= =0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 | java.lang.StringInde= xOutOfBoundsException: String index out of range: -11=0AINFO=A0=A0 | jvm 1= =A0=A0=A0 | 2008/05/27 14:59:48 |=A0=A0=A0=A0=A0=A0 at java.lang.String.sub= string(String.java:1938)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:4= 8 |=A0=A0=A0=A0=A0=A0 at org.apache.geronimo.system.main.ProgressBarStartup= Monitor.repaint(ProgressBarStartupMonitor.java:183)=0AINFO=A0=A0 | jvm 1=A0= =A0=A0 | 2008/05/27 14:59:48 |=A0=A0=A0=A0=A0=A0 at org.apache.geronimo.sys= tem.main.ProgressBarStartupMonitor.serverStartFailed(ProgressBarStartupMoni= tor.java:151)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 |=A0=A0= =A0=A0=A0=A0 at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(Em= beddedDaemon.java:201)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 = |=A0=A0=A0=A0=A0=A0 at org.apache.geronimo.system.main.EmbeddedDaemon.execu= te(EmbeddedDaemon.java:78)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59= :48 |=A0=A0=A0=A0=A0=A0 at org.apache.geronimo.kernel.util.MainConfiguratio= nBootstrapper.main(MainConfigurationBootstrapper.java:45)=0AINFO=A0=A0 | jv= m 1=A0=A0=A0 | 2008/05/27 14:59:48 |=A0=A0=A0=A0=A0=A0 at org.apache.geroni= mo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)=0AINFO=A0=A0 | jvm 1=A0= =A0=A0 | 2008/05/27 14:59:48 |=A0=A0=A0=A0=A0=A0 at org.apache.geronimo.cli= .daemon.DaemonCLI.main(DaemonCLI.java:30)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2= 008/05/27 14:59:48 |=A0=A0=A0=A0=A0=A0 at sun.reflect.NativeMethodAccessorI= mpl.invoke0(Native Method)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59= :48 |=A0=A0=A0=A0=A0=A0 at sun.reflect.NativeMethodAccessorImpl.invoke(Nati= veMethodAccessorImpl.java:39)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14= :59:48 |=A0=A0=A0=A0=A0=A0 at sun.reflect.DelegatingMethodAccessorImpl.invo= ke(DelegatingMethodAccessorImpl.java:25)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 20= 08/05/27 14:59:48 |=A0=A0=A0=A0=A0=A0 at java.lang.reflect.Method.invoke(Me= thod.java:597)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 |=A0=A0= =A0=A0=A0=A0 at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimp= leApp.java:240)=0AINFO=A0=A0 | jvm 1=A0=A0=A0 | 2008/05/27 14:59:48 |=A0=A0= =A0=A0=A0=A0 at java.lang.Thread.run(Thread.java:619)=0ASTATUS | wrapper=A0= | 2008/05/27 14:59:50 | <-- Wrapper Stopped=0A=0AThanks and regards,=0AMon= isha=0A=0A=0A----- Original Message ----=0AFrom: Kevan Miller =0ATo: user@geronimo.apache.org=0ASent: Saturday, May 24, 2008 9= :40:22 AM=0ASubject: Re: Main class used to start and stop the geronimo ser= ver?=0A=0A=0A=0AOn May 24, 2008, at 11:13 AM, Mark Aufdencamp wrote:=0A=0AS= omeone recently, within the the last 2 months, posted a Linux service=0Asta= rt/stop script for Geronimo. =A0I just tried to Google it for you, but=0Adi= dn't find it quickly. =A0Perhaps someone else can find it and it can get=0A= added to the documentation as a sibling to the Windows Java Service=0AWrapp= er.=0A=0Ahttp://www.nabble.com/Looking-for-init.d---rc.d-script-tt17113713.= html#a17113713=0A=0AGood idea...=0A=0A--kevan=0A=0A=0A=0A=0A-------- Origin= al Message --------=0A=0ASubject: Main class used to start and stop the ger= onimo server?=0A=0AFrom: MShah =0A=0ADate: Fri, May= 23, 2008 5:41 pm=0A=0ATo: user@geronimo.apache.org=0A=0A=0A=0AHi,=0A=0A=A0= I am trying to start geronimo automatically on linux using the java=0A=0Ase= rvice wrapper and in the conf file I need to specify the main class needed= =0A=0Ato start and stop the geronimo process instance. =A0=0A=0A=0ACan anyo= ne please let me know that the main class is that is used to start=0A=0Athe= geronimo server instance and what is the main class used to stop the=0A=0A= server? =A0=0A=0A=0AAny input will be appreciated. =A0=0A=0A=0AThanks,=0A= =0AMonisha=0A=0A-- =0A=0AView this message in context: http://www.nabble.co= m/Main-class-used-to-start-and-stop-the-geronimo-server--tp17441475s134p174= 41475.html=0A=0ASent from the Apache Geronimo - Users mailing list archive = at Nabble.com.=0A=0A=0A --0-2019613362-1212078435=:78090 Content-Type: text/html; charset=us-ascii
I am using the following command to start the geronimo server. 
 
/usr/local/jrockit-R27.5.0-jdk1.6.0_03/jre/bin/java -javaagent:/usr/local/geronimo/bin/jpa.jar -Dorg.apache.geronimo.base.dir=/usr/local/geronimo -Djava.endorsed.dirs=/usr/local/geronimo/lib/endorsed:/usr/local/jrockit-R27.5.0-jdk1.6.0_03/jre/lib/endorsed -Djava.io.tmpdir=var/temp -jar /usr/local/geronimo/bin/server.jar
However when I use the Java Service Wrapper to start the server I am getting the exception pasted below.  I have been informed in the discussion forums for Java Service Wrapper that I am probably not specifying all the parameters to start the server.  That is what is giving the start up error.  Could you please look into it and let me know if I am missing any geronimo start up parameters.  Any feedback will be much appreciated.
 
INFO   | jvm 1    | 2008/05/27 14:59:48 | Booting Geronimo Kernel (in Java 1.6.0_03)...
INFO   | jvm 1    | 2008/05/27 14:59:48 | Starting Geronimo Application Server v2.0.2
INFO   | jvm 1    | 2008/05/27 14:59:48 |
INFO   | jvm 1    | 2008/05/27 14:59:48 | WrapperSimpleApp: Encountered an error running main: java.lang.StringIndexOutOfBoundsException: String index out of range: -11
INFO   | jvm 1    | 2008/05/27 14:59:48 | java.lang.StringIndexOutOfBoundsException: String index out of range: -11
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at java.lang.String.substring(String.java:1938)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.system.main.ProgressBarStartupMonitor.repaint(ProgressBarStartupMonitor.java:183)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.system.main.ProgressBarStartupMonitor.serverStartFailed(ProgressBarStartupMonitor.java:151)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:201)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2008/05/27 14:59:48 |       at java.lang.Thread.run(Thread.java:619)
STATUS | wrapper  | 2008/05/27 14:59:50 | <-- Wrapper Stopped
Thanks and regards,
Monisha
 
 

----- Original Message ----
From: Kevan Miller <kevan.miller@gmail.com>
To: user@geronimo.apache.org
Sent: Saturday, May 24, 2008 9:40:22 AM
Subject: Re: Main class used to start and stop the geronimo server?


On May 24, 2008, at 11:13 AM, Mark Aufdencamp wrote:

Someone recently, within the the last 2 months, posted a Linux service
start/stop script for Geronimo.  I just tried to Google it for you, but
didn't find it quickly.  Perhaps someone else can find it and it can get
added to the documentation as a sibling to the Windows Java Service
Wrapper.


Good idea...

--kevan



-------- Original Message --------
Subject: Main class used to start and stop the geronimo server?
From: MShah <moni_sparkle@yahoo.com>
Date: Fri, May 23, 2008 5:41 pm
To: user@geronimo.apache.org


Hi,
 I am trying to start geronimo automatically on linux using the java
service wrapper and in the conf file I need to specify the main class needed
to start and stop the geronimo process instance.  

Can anyone please let me know that the main class is that is used to start
the geronimo server instance and what is the main class used to stop the
server?  

Any input will be appreciated.  

Thanks,
Monisha
--
View this message in context: http://www.nabble.com/Main-class-used-to-start-and-stop-the-geronimo-server--tp17441475s134p17441475.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



--0-2019613362-1212078435=:78090--