Hi Brian, I am not sure, but you are using an absolute path. Relative paths are more flexible.
Although this is just a wild guess, I am not expert on this area. Sietse -----Original Message----- From: Brian Panulla [mailto:[EMAIL PROTECTED] Sent: 28 November 2007 20:32 To: [email protected] Subject: Reading a data file bundled in the .aar I'm just getting started with Axis2. I have a data file for testing my first Web service that I would like to bundle up in the aar file, but I can't seem to read the file when I deploy the service to the Web server. I'm using Axis 2 1.3.2, running using the built in Web server. My aar is structured like this: / |_____data/myDatafile | |_____edu.psu.ist.nc2if.ws.myWebService | |____ META-INF/services.xml Here's what I'm trying to do as part of myWebService: String inputDataFile = "/data/myDataFile"; // Build a URL object as a handle to the sample data file URL DataUrl = getClass().getResource(inputDataFile); /* URL InputStream through a Buffered read to read a line at a time */ BufferedReader bufRead = new BufferedReader( new InputStreamReader( DataUrl.openStream() )); This works great when I unit test within Eclipse, but there's something blowing up when I build the aar and deploy it. I need to learn more about logging and debugging services, so that's definitely my next step, but I thought I'd ping the list to see if this is something i'm just not seeing here. Any suggestions? -B -- _____ Brian Panulla Senior Technologist, Solutions Institute College of Information Sciences and Technology [EMAIL PROTECTED] http://ghostednotes.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
