Oh, I think I solved the problem: Probably it was a classpath-error. Tomcat/Axis looks for jars in its common/lib folder or in the systems classpath-variable (right?). I used Eclipse to write the webservice. Eclipse looks for jars in its own places that can be specified in the Eclipse-project's settings. I found a plugin to start tomcat within eclispse. The plugin lets me also specify jars that are added to the tomcat-classpath. I can also debug the webservice-method when it is called from a client. Pretty cool.....
-----Urspr�ngliche Nachricht----- Von: Keith Hatton [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 12. Dezember 2003 14:04 An: [EMAIL PROTECTED] Betreff: RE: Can webservice code read from file? Hi Daniel, I don't think there is any problem in principle with reading/writing Files. But your application server's security policy might not permit it by default. The other possibility that springs to mind is that there is some problem with class loaders, and that Axis can't find the classes for MySQL. That might lead to an InvocationTargetException. Have you turned on stack traces in your server-config.wsdd? That might give you more information, at least. Hope this helps Keith -----Original Message----- From: Daniel Humberg [mailto:[EMAIL PROTECTED] Sent: 12 December 2003 09:28 To: [EMAIL PROTECTED] Subject: Can webservice code read from file? I an quite new to axis and I am stuck in a UserException problem: I have a method 'String addEntry()' that reads from a local file and then adds an entry to a mysql-database. If I run addEntry locally, it works fine. If I call it with a webservice-client, I get a soap-fault: ----- <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.reflect.InvocationTargetException</faultstring> ----- I suppose this is because I try to read the file and try to write into the database. (if I delete this party of the code, it works fine from the webservice client). Maybe this is not allowed in the standard security configuration. What can I do? Change deploy.wsdd? Change server-config.wsdd? Anything else? Thanks, Daniel
