You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Alexey Petrenko <al...@gmail.com> on 2007/12/18 11:42:42 UTC

Tomcat startup script for Windows

Hi.

I've experienced the following problem with Tomcat 6.0.14 startup
script for Windows. The script just exits silently on my machine and
Tomcat does not start.

Small investigation shown that the problem is in error level after
setclasspath.bat call from catalina.bat. Line 101 of catalina.bat
always detects an error and exits.

However setclasspath.bat does not print any error and exits as
expected through "end" label.

The following patch fixes the situation:
Index: bin/setclasspath.bat
===================================================================
--- bin/setclasspath.bat	(revision 604213)
+++ bin/setclasspath.bat	(working copy)
@@ -85,3 +85,4 @@
 exit /b 1

 :end
+exit /b 0
===================================================================

Have anyone experienced such problems before? Did I do something wrong
or it is better to patch the script?

Thanks in advance.

SY, Alexey

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Tomcat startup script for Windows

Posted by Yoav Shapira <yo...@apache.org>.
If it's a reproducible problem on a normal Windows operating system
(as opposed to some strange custom version on your PC), please submit
the script diff as a patch to Bugzilla (issues.apache.org) ;)  Thanks,

Yoav

On Dec 21, 2007 6:35 AM, Alexey Petrenko <al...@gmail.com> wrote:
> Any comments?
>
> SY, Alexey
>
> 2007/12/18, Alexey Petrenko <al...@gmail.com>:
> > Hi.
> >
> > I've experienced the following problem with Tomcat 6.0.14 startup
> > script for Windows. The script just exits silently on my machine and
> > Tomcat does not start.
> >
> > Small investigation shown that the problem is in error level after
> > setclasspath.bat call from catalina.bat. Line 101 of catalina.bat
> > always detects an error and exits.
> >
> > However setclasspath.bat does not print any error and exits as
> > expected through "end" label.
> >
> > The following patch fixes the situation:
> > Index: bin/setclasspath.bat
> > ===================================================================
> > --- bin/setclasspath.bat        (revision 604213)
> > +++ bin/setclasspath.bat        (working copy)
> > @@ -85,3 +85,4 @@
> >  exit /b 1
> >
> >  :end
> > +exit /b 0
> > ===================================================================
> >
> > Have anyone experienced such problems before? Did I do something wrong
> > or it is better to patch the script?
> >
> > Thanks in advance.
> >
> > SY, Alexey
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>



-- 
Thanks,

Yoav

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Tomcat startup script for Windows

Posted by Alexey Petrenko <al...@gmail.com>.
Any comments?

SY, Alexey

2007/12/18, Alexey Petrenko <al...@gmail.com>:
> Hi.
>
> I've experienced the following problem with Tomcat 6.0.14 startup
> script for Windows. The script just exits silently on my machine and
> Tomcat does not start.
>
> Small investigation shown that the problem is in error level after
> setclasspath.bat call from catalina.bat. Line 101 of catalina.bat
> always detects an error and exits.
>
> However setclasspath.bat does not print any error and exits as
> expected through "end" label.
>
> The following patch fixes the situation:
> Index: bin/setclasspath.bat
> ===================================================================
> --- bin/setclasspath.bat        (revision 604213)
> +++ bin/setclasspath.bat        (working copy)
> @@ -85,3 +85,4 @@
>  exit /b 1
>
>  :end
> +exit /b 0
> ===================================================================
>
> Have anyone experienced such problems before? Did I do something wrong
> or it is better to patch the script?
>
> Thanks in advance.
>
> SY, Alexey
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org