setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
Hi,

I must start Tomcat setting a value for this attribute
com.sun.CORBA.transport.ORBTCPReadTimeouts (it set a Timeout for a corba
socket).
I've tried to add com.sun.CORBA.transport.ORBTCPReadTimeouts in JAVA_OPTS
Tomcat variable in catalina.sh script:

JAVA_OPTS=$JAVA_OPTS
...-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=1:30:50:10 

but Tomcat can't start:


Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10
Could not create the Java virtual machine.

Any suggestion???
thanks in advance


Re: setting JAVA_OPT in Tomcat

2008-06-06 Thread David Delbecq

En l'instant précis du 06/06/08 09:42, luke l s'exprimait en ces termes:

Hi,

I must start Tomcat setting a value for this attribute
com.sun.CORBA.transport.ORBTCPReadTimeouts (it set a Timeout for a corba
socket).
I've tried to add com.sun.CORBA.transport.ORBTCPReadTimeouts in JAVA_OPTS
Tomcat variable in catalina.sh script:

JAVA_OPTS=$JAVA_OPTS
..-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=1:30:50:10 

but Tomcat can't start:


Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10
Could not create the Java virtual machine.

Any suggestion???
thanks in advance

  



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 :)


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
*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:3:500:10
Could not create the Java virtual machine.
Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10
Could not create the Java virtual machine.
and Tomcat doesn't start

thanks


Re: Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread David Delbecq

En l'instant précis du 06/06/08 10:23, luke l s'exprimait en ces termes:

*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:3:500:10
Could not create the Java virtual machine.
Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10
Could not create the Java virtual machine.
and Tomcat doesn't start

thanks

  

They are still joined, put a space!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread David Delbecq

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:3:500:10 
this error is raised:
usr/local/tom6/bin/catalina.sh: line 184:
-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10 : command not
found

Anyway other JAVA_OPT defined (java.util.logging) works properly without a
space

thanks

-- Forwarded message --
From: luke l [EMAIL PROTECTED]
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:3:500:10
Could not create the Java virtual machine.
Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3: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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
setting in catalina.sh:
JAVA_OPTS=$JAVA_OPTS
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10

it seems doesn't solve my problem

Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10
Could not create the Java virtual machine.

thanks...

-- Forwarded message --
From: luke l [EMAIL PROTECTED]
Date: Jun 6, 2008 2:27 PM
Subject: Fwd: setting JAVA_OPT in Tomcat
To: users@tomcat.apache.org


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:3:500:10 
this error is raised:
usr/local/tom6/bin/catalina.sh: line 184:
-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10 : command not
found

Anyway other JAVA_OPT defined (java.util.logging) works properly without a
space

thanks

-- Forwarded message --
From: luke l [EMAIL PROTECTED]
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:3:500:10
Could not create the Java virtual machine.
Unrecognized option:
-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:3:500:10
Could not create the Java virtual machine.
and Tomcat doesn't start

thanks


Fwd: setting JAVA_OPT in Tomcat

2008-06-06 Thread luke l
... Just add, at top of your catalina.sh, just after defining JAVA_OPTS=

echo JAVA_OPTS is $JAVA_OPTS
..

wow.I set previously JAVA_OPTS in another temp script!!!

now it's owrking properlyI'm sorry for so stupid question !

Thanks a lot David..have a nice weekend