Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 78140 invoked from network); 6 Jun 2008 12:39:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 12:39:52 -0000 Received: (qmail 72023 invoked by uid 500); 6 Jun 2008 12:39:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71998 invoked by uid 500); 6 Jun 2008 12:39:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 71987 invoked by uid 99); 6 Jun 2008 12:39:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 05:39:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of delbd+jakarta@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie1.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 12:38:51 +0000 Received: from bonnie1.oma.be (localhost [127.0.0.1]) by bonnie1.oma.be (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id m56Cd6CU024381 for ; Fri, 6 Jun 2008 12:39:06 GMT Received: from [193.190.249.120] (cal-12.oma.be [193.190.249.120]) by bonnie1.oma.be (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id m56Cd6ld024378 for ; Fri, 6 Jun 2008 12:39:06 GMT Message-ID: <4849132A.90300@oma.be> Date: Fri, 06 Jun 2008 12:36:26 +0200 From: David Delbecq User-Agent: Thunderbird 2.0.0.12 (X11/20080305) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Fwd: setting JAVA_OPT in Tomcat References: <6edd2d3d0806060042k3f9c19f2qd6432fa9b4e3bb36@mail.gmail.com> <6edd2d3d0806060123t656e68b2t91d4f3cb053d152a@mail.gmail.com> <6edd2d3d0806060527n7c2adfeapfc8483672d05110a@mail.gmail.com> In-Reply-To: <6edd2d3d0806060527n7c2adfeapfc8483672d05110a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I see several errors below: 1) you put " at what look like random magic places. Just put a " in the begin and a " in the end. 2) you problem is the you didn't put a space between $JAVA_OPTS and the first argument following it when you construct the new JAVA_OPTS 3) you don't want a linefeed (that's the reason of your command not found). Correct format is as follow JAVA_OPTS="$JAVA_OPTS -Dsomekey=someValue -Dsomeotherkey=someothervalue" Notice the space between the S of $JAVA_OPTS and the - of -Dsomekey. Notice also i don't put linefeeds an only one pair of double quotes. En l'instant pr�cis du 06/06/08 14:27, luke l s'exprimait en ces termes: > Putting a space in catalina.sh as follow > JAVA_OPTS="$JAVA_OPTS > "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" > "-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties > " -Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10" " > this error is raised: > usr/local/tom6/bin/catalina.sh: line 184: > -Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10 : command not > found > > Anyway other JAVA_OPT defined (java.util.logging) works properly without a > space > > thanks > > ---------- Forwarded message ---------- > From: luke l > Date: Jun 6, 2008 10:23 AM > Subject: Fwd: setting JAVA_OPT in Tomcat > To: users@tomcat.apache.org > > > > *Don't forget to add a space between $JAVA_OPTS and your additionnal option. > In your case, you joined -J and -D parameters without a space, as a result > the jvm does not recognize an option named "J-D" :)* > > I've again an error > > Unrecognized option: > -J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10 > Could not create the Java virtual machine. > Unrecognized option: > -J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10 > Could not create the Java virtual machine. > and Tomcat doesn't start > > thanks > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org