RE: How to start Tomcat with JDK 1.4 compatibility pack on JDK 5. 0?

2005-09-23 Thread KEREM ERKAN
You could try what you suggested before and send your comments about it to
us ;-)

Or you could do this:

Write a shell script that changes the names of compatibility jars to
something with an extension different from *.jar

Then you could start Tomcat from the same script and rename the jar files
back to their original names.

That will absolutely work :-)

Cheers,

Kerem 

> -Original Message-
> From: Stagger Lee [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 23, 2005 1:28 PM
> To: Tomcat Users List
> Subject: Re: How to start Tomcat with JDK 1.4 compatibility 
> pack on JDK 5.0?
> 
> Come on guys, don't tell me no one had to solve this yet. Anyone?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


smime.p7s
Description: S/MIME cryptographic signature


Re: How to start Tomcat with JDK 1.4 compatibility pack on JDK 5.0?

2005-09-23 Thread Stagger Lee
Come on guys, don't tell me no one had to solve this yet. Anyone?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to start Tomcat using differnt JRE

2005-09-22 Thread KEREM ERKAN
Add this to the beginning of your catalina.sh script in /bin directory of
Tomcat.

export JAVA_HOME=/path/to/jdk1.5

That way it will start with the JDK of your choice.

Regards,

Kerem

> -Original Message-
> From: lanna august [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 23, 2005 8:16 AM
> To: tomcat-user@jakarta.apache.org
> Subject: How to start Tomcat using differnt JRE
> 
> Hi sorry for sending this twice, but I am using new email 
> program and it kinda flipped out when I first sent it, was 
> not sure it went through the first time.
> 
> Hello 
> 
> I have searched far and wide but no luck so thought i try here.
> 
> I have a Red Hat ES V4 Linux Server that has 3 different 
> versions of JDK and JRE on it.  They each are being used for 
> different projects.  One of the versions is 1.5 JDK and JRE.  
> I need to install now Tomcat 5.5.9 on the server and I must 
> have it use the
> 1.5 JRE when it starts up.  Unfortunatly the systems global 
> JDK and JRE are set to the 1.3 Version of Java and this I 
> cannot change it must remain.
> 
> I thought awhile ago I came across mention of how to start up 
> the Tomcat server and tell it what JRE to be using.  But I 
> don't remember exactly.
> 
> Can anyone help?
> 
> I tried making a Tomcat user and placing the Tomcat server in 
> this Tomcat users directory.  Then setting the JAVA_HOME in 
> this Tomcat users .bash_profile  to point to the 1.5 
> directory.  I then log into the Tomcat user and run the 
> command java -version.  I get back 1.3.
> 
> I thought there was a place in one of the config files to 
> point it at what the JAVA_HOME or JRE_HOME was?
> 
> or some kind of command I type at startup on the linux box?
> 
> any help much appreciated.
> 
> 
> 
> 
>   
> __
> Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


smime.p7s
Description: S/MIME cryptographic signature


RE: How to start Tomcat using differnt JRE

2005-09-22 Thread Jan Fredrik Fallsen
You must change the JAVA_HOME in system variables

-Original Message-
From: lanna august [mailto:[EMAIL PROTECTED] 
Sent: 23. september 2005 07:16
To: tomcat-user@jakarta.apache.org
Subject: How to start Tomcat using differnt JRE

Hi sorry for sending this twice, but I am using new
email program and it kinda flipped out when I first
sent it, was not sure it went through the first time.

Hello 

I have searched far and wide but no luck so thought i
try here.

I have a Red Hat ES V4 Linux Server that has 3
different versions of JDK and JRE on it.  They each
are being used for different projects.  One of the
versions is 1.5 JDK and JRE.  I need to install now
Tomcat 5.5.9 on the server and I must have it use the
1.5 JRE when it starts up.  Unfortunatly the systems
global JDK and JRE are set to the 1.3 Version of Java
and this I cannot change it must remain.

I thought awhile ago I came across mention of how to
start up the Tomcat server and tell it what JRE to be
using.  But I don't remember exactly.

Can anyone help?

I tried making a Tomcat user and placing the Tomcat
server in this Tomcat users directory.  Then setting
the JAVA_HOME in this Tomcat users .bash_profile  to
point to the 1.5 directory.  I then log into the
Tomcat user and run the command java -version.  I get
back 1.3.

I thought there was a place in one of the config files
to point it at what the JAVA_HOME or JRE_HOME was?

or some kind of command I type at startup on the linux
box?

any help much appreciated.





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HOW TO start tomcat on linux boot

2002-03-07 Thread Gustavo Souza

Slackware Linux 8.0

thanks

At 19:51 06/03/2002 -0500, you wrote:
>What distro of Linux are you using?
>
>Mike
>
>-Original Message-
>From: Brett Porter [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 06, 2002 5:57 PM
>To: 'Tomcat Users List'
>Subject: RE: HOW TO start tomcat on linux boot
>
>
>Is CATALINA_HOME set?
>IS JAVA_HOME set?
>what about CATALINA_BASE?
>
>Also, I don't personally like running things as root - you might want to
>install your webapps as another user (I just called it appuser), and su to
>that before executing tomcat.
>
>- Brett
>
>-Original Message-
>From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, 7 March 2002 9:52 AM
>To: Tomcat Users List
>Subject: HOW TO start tomcat on linux boot
>
>
>hello, im trying to start tomcat on linux boot...
>
>but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local
>
>it only works when I type it on prompt..
>
>anyone can help ?
>
>thanks
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>

Gustavo Souza
[EMAIL PROTECTED]
TudoWEB Networks 2002



RE: HOW TO start tomcat on linux boot

2002-03-06 Thread Mike Millson

What distro of Linux are you using?

Mike

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:57 PM
To: 'Tomcat Users List'
Subject: RE: HOW TO start tomcat on linux boot


Is CATALINA_HOME set?
IS JAVA_HOME set?
what about CATALINA_BASE?

Also, I don't personally like running things as root - you might want to
install your webapps as another user (I just called it appuser), and su to
that before executing tomcat.

- Brett

-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 9:52 AM
To: Tomcat Users List
Subject: HOW TO start tomcat on linux boot


hello, im trying to start tomcat on linux boot...

but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local

it only works when I type it on prompt..

anyone can help ?

thanks



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: HOW TO start tomcat on linux boot

2002-03-06 Thread Brett Porter

Is CATALINA_HOME set?
IS JAVA_HOME set?
what about CATALINA_BASE?

Also, I don't personally like running things as root - you might want to
install your webapps as another user (I just called it appuser), and su to
that before executing tomcat.

- Brett

-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 9:52 AM
To: Tomcat Users List
Subject: HOW TO start tomcat on linux boot


hello, im trying to start tomcat on linux boot...

but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local

it only works when I type it on prompt..

anyone can help ?

thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



Re: How to start Tomcat 4.0 in debug mode

2002-02-07 Thread Nagender Taalla

Hi,

Thanks for replying Dave, but I have seen the startup.bat file and it seems
to be calling catalina.bat, so I modified the CATALINA_OPTS in catalina.bat
to be set to
"-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server
=y,suspend=n,address=5000"


rem - Set Up The Runtime
Classpath 

if not "%CATALINA_OPTS%" == "" goto cool
set CATALINA_OPTS=
"-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server
=y,suspend=n,address=5000"
:cool
set CP=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
if "%JSSE_HOME%" == "" goto noJsse
set
CP=%CP%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\j
sse.jar
:noJsse
set CLASSPATH=%CP%
echo Using CATALINA_BASE: %CATALINA_BASE%
echo Using CATALINA_HOME: %CATALINA_HOME%
echo Using CLASSPATH: %CLASSPATH%
echo Using JAVA_HOME: %JAVA_HOME%


But there is no difference, Tomcat starts as usual and I am not able to use
the remote debugger at port 5000. When I try to connect to it from the IDE
it says connection refused. I would greatly appreciate any help.

Regards
Nagender Taalla
1bigthink
7361 Calhoun Place
Suite 302
Rockville, Maryland 20855
Phone 301.251.8570 (x) 211
Fax 301.251.8573
- Original Message -
From: "Dave Whitla" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 6:04 PM
Subject: Re: How to start Tomcat 4.0 in debug mode


> The start script in the bin directory of the binary distribution.
>
> - Original Message -
> From: "Nagender Taalla" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, February 07, 2002 8:09 AM
> Subject: How to start Tomcat 4.0 in debug mode
>
>
> > Hi,
> >
> > I am using an external debugger and need to have tomcat running its JVM
> with
> > these parameters :
> >
>
> -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serve
> r=
> > y,suspend=n,address=5000
> >
> > where do I set these parameters for the JVM that tomcat starts with.
> >
> > Nagender Taalla
> > 1bigthink
> > 7361 Calhoun Place
> > Suite 302
> > Rockville, Maryland 20855
> > Phone 301.251.8570 (x) 211
> > Fax 301.251.8573
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: How to start Tomcat 4.0 in debug mode

2002-02-07 Thread Ilya Khandamirov

In your catalina.bat/catalina.sh file. Locate the doStart label, then
insert your line after the %_STARTJAVA% word.

Ilya


-Original Message-
From: Nagender Taalla [mailto:[EMAIL PROTECTED]] 
Sent: Mittwoch, 6. Februar 2002 23:10
To: Tomcat Users List
Subject: How to start Tomcat 4.0 in debug mode


Hi,

I am using an external debugger and need to have tomcat running its JVM
with these parameters :

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=
y,suspend=n,address=5000

where do I set these parameters for the JVM that tomcat starts with.

Nagender Taalla
1bigthink
7361 Calhoun Place
Suite 302
Rockville, Maryland 20855
Phone 301.251.8570 (x) 211
Fax 301.251.8573

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to start Tomcat 4.0 in debug mode

2002-02-06 Thread Dave Whitla

The start script in the bin directory of the binary distribution.

- Original Message -
From: "Nagender Taalla" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 8:09 AM
Subject: How to start Tomcat 4.0 in debug mode


> Hi,
>
> I am using an external debugger and need to have tomcat running its JVM
with
> these parameters :
>
> -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serve
r=
> y,suspend=n,address=5000
>
> where do I set these parameters for the JVM that tomcat starts with.
>
> Nagender Taalla
> 1bigthink
> 7361 Calhoun Place
> Suite 302
> Rockville, Maryland 20855
> Phone 301.251.8570 (x) 211
> Fax 301.251.8573
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: How to start tomcat

2001-02-16 Thread Aleksandar Milanovic



Go to 
ControlPanel->system->environment and set the environment variable 
JAVA_HOME to the location of your JDK installation. All this is explained in the 
tomcat documentation. Environment variables are variables that get passed to 
programs you run so that they can adjust their behaviour to your machine's 
configuration. Some environment variables are defined by the operating system, 
some by applications, others by human users. On Win platform users usually don't 
have to deal with environment variables unless they work with cross-platform 
programs.
 
thx
Alex

  -Original Message-From: Daniel Liu 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 16, 2001 6:20 
  PMTo: [EMAIL PROTECTED]Subject: How to 
  start tomcat
  I have just downlad tomcat.zip and unzip it. 
  After I typed startup on DOS prompter I got the message said
    
  You must set JAVA_HOME to point at your Java 
  Development Kit installation
   
  Does anybody know what the message means? I 
  work on NT4.0 


RE: How to start Tomcat on NT?

2001-02-02 Thread Randy Layman


Depending upon your logging level, that's probably it.  To check if
Tomcat is running go to http://localhost:8007.  Note:  This is where your
System.out and System.err will show up.

Randy

-Original Message-
From: Chris Perkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 2:06 PM
To: '[EMAIL PROTECTED]'
Subject: How to start Tomcat on NT?


I installed Tomcat 3.2.1 as per the instructions, and the IIS
isapi_redirector as well.
When I run the startup batch file, I immediately get seven lines of output
in the new DOS window. The last line is:

PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007

Then it just stops. Is there supposed to be more, or is that it? I suspect
it should do more than that, because I cannot view the example pages through
localhost.

Chris Perkins


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: how to start tomcat on port 80 w/o being root?

2000-10-25 Thread Paul Russell

On Wed, Oct 25, 2000 at 04:47:22PM -0400, Jan Labanowski wrote:
> I am afraid, you are out of luck... But I hope someone will say I am wrong...

Bzzzt. Sadly, you're completely right. Java has no knowladge of
the UNIX security architecture.

> But of course, you can always start Apache as root to listen to port 80
> and talk to tomcat, which does not have to run as root if its
> Connctor runs on a port > 1024 (say 8007).

Or run Tomcat's httpd (although I wouldn't recommend that on 3.x)
somewhere above 1024, and port forward to it using ipchains,
ipfwadm, or if you're really hip and happening, iptables. This
solution will be lighter than apache if you're running totally
dynamic stuff, because all the redirection is done in kernel
land.


Paul

-- 
Paul Russell   <[EMAIL PROTECTED]>
Technical Director,   http://www.luminas.co.uk
Luminas Ltd.



Re: how to start tomcat on port 80 w/o being root?

2000-10-25 Thread Jan Labanowski

I am afraid, you are out of luck... But I hope someone will say I am wrong...

The apache has a "parent" process which runs as root, and spawns children
processes as "nobodies" (or whatever). Tomcat is running a single
process, does not spawn children, and from the beginning to the end
is the same user (starts and dies the same user id).

But of course, you can always start Apache as root to listen to port 80
and talk to tomcat, which does not have to run as root if its
Connctor runs on a port > 1024 (say 8007).



On Wed, 25 Oct 2000, Trevor Little wrote:

> I want to create a tomcat user and start tomcat on port 80 under linux. 
> I know only root can use ports below 1024.  However, apache can run as
> someone other than root and still use port 80.  I want to do something
> similar.  I know to change the ports settings on server.xml.
> 
> Thanks
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




RE: how to start tomcat on port 80 w/o being root?

2000-10-25 Thread Dan Byrne

I have used a program called sudo which accesses root permission to startup
such services

Dan

-Original Message-
From: tlittle [mailto:tlittle]On Behalf Of Trevor Little
Sent: Wednesday, October 25, 2000 5:43 PM
To: [EMAIL PROTECTED]
Subject: how to start tomcat on port 80 w/o being root?


I want to create a tomcat user and start tomcat on port 80 under linux.
I know only root can use ports below 1024.  However, apache can run as
someone other than root and still use port 80.  I want to do something
similar.  I know to change the ports settings on server.xml.

Thanks