<br><br>
<div class="gmail_quote">2009/9/23 Sören Gebbert <span dir="ltr">&lt;<a href="mailto:soerengebbert@gmx.de">soerengebbert@gmx.de</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello maven,<br>i guess the problem  is located in your GrassMain.java line 200:<br><br>                               if (ps.exitValue() != 0) {<br>
                                       System.exit(ps.exitValue());<br>                               }<br><br>AFAIK, the tomcat server uses a container to run the several servlet threads<br>inside.<br>If you call from any servlet thread the System.exit() command, the server will<br>
be shutdown.<br><br>Java doc of System.exit():<br></blockquote>
<div>Hi,thanks, you are right, I have solved this problem,but I want to know how to judge a grass commond(called in my javaProgram) is successfully exected?</div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Terminates the currently running Java Virtual Machine.<br><br>Best regards<br>Soeren<br><br>Am Sunday 20 September 2009 05:21:29 schrieb maven apache:<br>

<div>
<div></div>
<div class="h5">&gt; Hi,<br>&gt; In my application ,I provide a interface which can called by users to<br>&gt; execute some geo process through the web,for example,user send a map,and a<br>&gt; width to the server ,then the server can do a buffer operation using the<br>
&gt; grass(the server make the grass commond) according to the parameter from<br>&gt; client  .<br>&gt; But I found that if user give a invalide parameter, then the grass commond<br>&gt; maybe error, I can get the error message in the log, but my web server<br>
&gt; (tomcat)shut down itself.<br>&gt; Any one have encountered the same suitation?<br>&gt;<br>&gt; Annex is my java class to set up the grass environment. I  hope some can<br>&gt; check it and identify it if any problem exist.<br>
&gt; The GrassMain is the main class to set up the environment,the GrassThread<br>&gt; is to get the output result , the GrassThreadError is to get the error<br>&gt; message if so.<br>&gt; Thanks!<br><br><br></div></div></blockquote>
</div><br>