<br><br>
<div class="gmail_quote">2009/9/23 Sören Gebbert <span dir="ltr"><<a href="mailto:soerengebbert@gmx.de">soerengebbert@gmx.de</a>></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>Terminates the currently running Java Virtual Machine.<br></blockquote>
<div>Thanks, you are right! ^_^</div>
<div>I have solved this problem,however I want to know how to judge whether the grass commond(which I call in my program)is executed successfully?</div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><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">> Hi,<br>> In my application ,I provide a interface which can called by users to<br>> execute some geo process through the web,for example,user send a map,and a<br>> width to the server ,then the server can do a buffer operation using the<br>
> grass(the server make the grass commond) according to the parameter from<br>> client .<br>> But I found that if user give a invalide parameter, then the grass commond<br>> maybe error, I can get the error message in the log, but my web server<br>
> (tomcat)shut down itself.<br>> Any one have encountered the same suitation?<br>><br>> Annex is my java class to set up the grass environment. I hope some can<br>> check it and identify it if any problem exist.<br>
> The GrassMain is the main class to set up the environment,the GrassThread<br>> is to get the output result , the GrassThreadError is to get the error<br>> message if so.<br>> Thanks!<br><br><br></div></div></blockquote>
</div><br>