tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mixon" <rnmi...@qwest.net>
Subject RE: need help with .startup.sh
Date Sun, 03 Sep 2006 19:26:09 GMT
Lee,

In spite of this appearing to be more of a Linux (FC 4) issue, lets keep it
on the list. It might help someone else. 

I would suggest that you look at the following files for the culprit:
  ~/.bashrc
  /etc/bashrc
And maybe
  ~/.profile
  /etc/profile

 - Richard

-----Original Message-----
From: Lee Chalupa [mailto:lchalupa@seelink.org] 
Sent: Sunday, September 03, 2006 10:43 AM
To: rnmixon@qwest.net
Subject: RE: need help with .startup.sh

Well I think something else is going on here that has to do with how the
server is setup or maybe this userid.

Here is what I found out.
Nothing in catalina.sh has been changed. The content of the file is how you
describe it.
I know I haven't edited anything except the setenv.sh file as directed.

I added the bang line and the xtrace line to the setenvh.sh file.
The ./startup.sh command now reports errors with xtrace command along with
the others it was already complaining about.
For fun, I tried to run the setenv.sh file alone via the bash command, it
doesn't like the xtrace command. (ex: bash setenv.sh). 
I double checked syntax, capitalization etc.
I know that's not how we will use the file but I wanted to see if it would
recognize the command. It doesn't.

I checked. The userId I'm signed on as, is setup to use bash.

I think I have some kind of env. problem. I starting looking for such.

I noticed that when I sign on under ANY userId via ssh, I get an error
message immediately after signon.
' : not a valid identifier
This error prints twice on separate lines.
I remember this has persisted for months. I ignored it since everything
seemed to be working ok.
It's nothing we did lately.
I'm guessing if I can correct this, my shell scripts will start working.
Any idea where to start?
I've got my linux books out so point me in a direction please.

lee



Richard Mixon wrote ..
> Lee,
> 
> First, I assumed you are using the "bash" shell, not csh or something 
> else unusual.
> 
> Have you changed catalina.sh or startup.sh ? Take a look at 
> catalina.sh around line 73 - it should look something like:
>   if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
>     . "$CATALINA_HOME"/bin/setenv.sh
>   fi
> 
> Also, you can add the following two lines to the top of your setenv.sh 
> file to help show what is happening:
>   #!/bin/bash
>   set -o xtrace
>   JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxPermSize=256m"
>   export JAVA_OPTS
> This will echo the expanded command lines to the screen when you run 
> the startup.sh or "catalina.sh start"
> 
>  - Richard
> 
> -----Original Message-----
> From: Lee Chalupa [mailto:lchalupa@seelink.org]
> Sent: Saturday, September 02, 2006 11:02 AM
> To: rnmixon@qwest.net
> Subject: RE: need help with .startup.sh
> 
> I created the setenv.sh file in the /bin directory.
> 
> It is complaining when I startup the server with /startup.sh . A pic 
> of the actual file and the command line is attached.
> Any ideas?
> Thanks again. You have already saved me hours of frustration.
> 
> Lee
> 
> 
> Richard Mixon wrote ..
> > There is no need to change any of the shell scripts.
> > 
> > You need to set environment variable JAVA_OPTS with the desired 
> > option and the tomcat scripts will pick it up automatically.
> > 
> > The catalina.sh script looks for a script called setenv.sh to set 
> > this and other similar options. Here are the contents of a simple 
> > setenv.sh file that might do something similar:
> >   JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxPermSize=256m"
> >   export JAVA_OPTS
> > 
> > Or you can just set it in /etc/profile or ~/.profile (or equivalent 
> > for your shell).
> > 
> > Hope this helps - Richard
> > 
> > -----Original Message-----
> > From: Lee Chalupa [mailto:lchalupa@seelink.org]
> > Sent: Saturday, September 02, 2006 9:52 AM
> > To: users@tomcat.apache.org
> > Subject: need help with .startup.sh
> > 
> > Hello:
> > 
> > I need help figuring out how to modify my tomcat deployment so when 
> > the JVM starts it starts with a -server option.  There seems to be a 
> > bug in the jvm implementation that fedoracore 4 is using and using 
> > this option when the jvm starts corrects the problem at least from 
> > my application's perspective.
> > 
> > The problem is that I don't know what needs changing in the 
> > startup.sh or whatever. The application is deployed on linux runing 
> > Fedora Core 4.
> > 
> > Could someone give me an idea what I need to edit. I know basic 
> > linux administration.
> > 
> > Thanks
> > 
> > Lee
> > 
> > 
> > 
> > --------------------------------------------------------------------
> > - 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
> 
> 
> ---------------------------------------------------------------------
> 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


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


Mime
View raw message