before, i had problems running the both startup.sh and catalina.sh files as 
they were under cygwin.

however, i made the below changes and everything is working ok.  is it 
possible to update the below files in the distribution to includes the 
following changes?


startup.sh
--------
####
#### ADD THE BELOW LINES AT THE BEGINNING OF THE FILE AFTER THE COMMENTS SECTION
####
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
echo "CYGWIN usage: $cygwin"


####
#### MODIFY LAST LINE TO READ
####
if $cygwin ; then
   exec "$PRGDIR"/"$EXECUTABLE" run "$@"
else
   exec "$PRGDIR"/"$EXECUTABLE" start "$@"
fi







catalina.sh
---------

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
   JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
   CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
   JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"`

   ####
   #### ADD THE BELOW 2 LINES
   ####
   CATALINA_BASE=`cygpath --path --windows "$CATALINA_BASE"`
   CATALINA_TMPDIR=`cygpath --path --windows "$CATALINA_TMPDIR"`
fi




after making the above changes, tomcat runs fine under cygwin when executed 
as follows:

[TOMCAT_HOME]/bin/startup.sh



alexander, thanks for your help!  :)



At 11:09 02/03/20 +0100, you wrote:
>Hi Tek,
>
>Why are you using cygwin? I mean, I know the Windows command line sucks, but
>you are not "using" it with tomcat, you are basically just starting the
>tomcat main class with it. So there is not need for an advanced shell as far
>as I can see.
>
> > i'm trying to run tomcat on windows2000 using cygwin.  i've set my
> > JAVA_HOME and TOMCAT_HOME environment variables (in /home/user/.bashrc),
> > and are as follows:
> > java runs fine whenever i type "java ...".  however, when i change to the
> > TOMCAT_HOME/bin directory and type "startup.sh", the following is
> > displayed
> > and nothing else happens.
> > $ bin/startup.sh
> > Using CATALINA_BASE:   /cygdrive/c/java/tomcat/404b1
> > Using CATALINA_HOME:   c:\java\tomcat\404b1
> > Using CATALINA_TMPDIR: /cygdrive/c/java/tomcat/404b1/temp
> > Using JAVA_HOME:       c:\java\j2se\sun\131_02
>
>At this moment startup.sh wants to open a new Window. Probably this doesn't
>work using cygwin. I recommend using startup.bat on windows and startup.sh
>when using unix. At least as long as you are not the ultimate cygwin crack
>who knows how to debug shell scripts and find a workaround here.
>
>Addition: The problem cease to exists if "startup.sh run" whould pass on the
>run parameter to catalina.sh, which - at least in the .bat version - it
>doesn't do, though IMHO it should...
>
>Addition 2: Try using "catalina.sh run" instead of startup, this does not
>open a new window (look at startup.sh first to see what it does before
>calling catalina.sh and include this to catalina.sh if needed)
>
>Hope that helps,
>Alexander
>
>
>--
>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]>

Reply via email to