Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Apache Tomcat
BOOK: Professional Apache Tomcat
This is the forum to discuss the Wrox book Professional Apache Tomcat by Chanoch Wiggers, Ben Galbraith, Vivek Chopra, Sing Li, Debashish Bhattacharjee, Amit Bakore, Romin Irani, Sandip Bhattacharya, Chad Fowler; ISBN: 9780764543722
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 27th, 2005, 09:37 AM
Authorized User
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rushman
Default Tomcat 5 and Axis: erratic behavior

Hello @ all!

I'm completely flabbergasted! I wrote a simple web service using the JWS technique on Axis (simple java application which

extension have been changed to ".jws" and then dropped in the Axis webapp directory under Tomcat). Now, let the fun part


I wrote two client apps for my web service(one in Java, one in an obscure scripting language...).

I started Tomcat 5 from the cmd prompt (TOMCAT_HOME/bin/tomcat5.exe). Both of my client apps returned with the expected

results. This is great! But...

I restarted Tomcat with Procrun Service Manager Version this time. Guess what? None of my two clients returned with

the expected results!

After a little investigation, I realized that a file output in the java.io.tmpdir wasn't being written when I run Tomcat from

Procrun... here's a snippet of my code:

/** begin snippet **/
String[] cmd = { "cmd", 
                 " /c", 

Process process = Runtime.getRuntime().exec(cmd);

InputStream ierr = process.getErrorStream();
InputStream iin = process.getInputStream();                
while (ierr.available() > 0) {
while (iin.available() > 0) {

int exitVal = process.waitFor();


/** end snippet **/
As you can see, I'm trying to redirect the output from "DIFF" to a new file (which will be stored in the temp dir).


My question boils down to this:


or, if I simplify again:


Please folks, enlighten me!


p.s. The winner of this contest will be granted eternal admiration from my part.

Dijkstra's law on Programming and Inertia:

If you don't know what your program is supposed to do, don't try to write it.
Dijkstra's law on Programming and Inertia:

If you don't know what your program is supposed to do, don't try to write it.
Old June 8th, 2006, 04:33 AM
Registered User
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

I too with the same problem for InputStream in my program.

Similar Threads
Thread Thread Starter Forum Replies Last Post
erratic cursor behavior Tim Johnson Access 4 November 27th, 2007 07:30 AM
Axis and Tomcat using swa sample crazycomputers Apache Tomcat 0 July 20th, 2006 03:55 PM
Tomcat 5 and Axis: erratic behavior rushman Apache Tomcat 0 April 27th, 2005 09:35 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Tomcat 5 and Axis: JWS problem rushman Apache Tomcat 0 April 15th, 2005 09:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.