Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets 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
  #1 (permalink)  
Old April 15th, 2005, 09:32 AM
Authorized User
Points: 251, Level: 5
Points: 251, Level: 5 Points: 251, Level: 5 Points: 251, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Canada.
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rushman
Default JWS Axis Tomcat (posted to Apache Tomcat too)

Hi!

I have a small application that start a process using Runtime.getRuntime().exec("MyCommandsHere"). This process writes an XML file into the filesystem, which I parse later and return it as a String.

My problem is that, when I run it as a standalone application, everything works fine. But when I try to deploy it as a JWS file in the AXIS 1.2 webapp directory, under Tomcat 5.0, it seems that the process can't write the file to disk, causing my app to exit since it can't find the result file to parse.

I don't know if this is a case of bad Tomcat configuration, permission settings or the like but I really wish someone could help me with this.

And while I'm at it, how can you get the relative location of the webapp directory where the JWS is running?

Any help greatly appreciated,

Rushman

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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis and Tomcat using swa sample crazycomputers Apache Tomcat 0 July 20th, 2006 03:55 PM
Tomcat 5 and Axis: erratic behavior rushman BOOK: Professional Apache Tomcat 1 June 8th, 2006 04:33 AM
Apache Tomcat atul.kumar@drydentech.com Apache Tomcat 3 April 19th, 2006 07:24 AM
Tomcat 5 and Axis: erratic behavior rushman Apache Tomcat 0 April 27th, 2005 09:35 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.