Re: Write temp- ile on tomcat

2007-03-03 Thread Freakazoid
Thanks for the code. From the java view it seems to work, but when I try it in my web service it crashes, some NullPointerException is thrown. I think the exception is thrown when the ServletContext is created. But I got my web service now to work in a different way, so that I don' t need a te

Re: Write temp- ile on tomcat

2007-03-03 Thread Jeff Greif
1. The various servlet docs are here http://java.sun.com/products/servlet/docs.html The API specs might be useful. Which version depends on your version of tomcat. 2. Code sketch MessageContext msgCtx = MessageContext.getCurrentContext(); |ServletContext srvCtx = ((HttpServlet)msgCtx.g

Re: Write temp- ile on tomcat

2007-03-03 Thread Freakazoid
Sorry, I didn't meant the first step in the serviceStub but in the serviceSkeleton. Christoph Freakazoid schrieb: Yes, the service is running within axis. I tried to implement what you said, but I didn't succeed, because I don't know anything about servlets. And I don't know the first step

Re: Write temp- ile on tomcat

2007-03-03 Thread Freakazoid
Yes, the service is running within axis. I tried to implement what you said, but I didn't succeed, because I don't know anything about servlets. And I don't know the first step to do in my serviceStub, because all I get there is the requestDocument the client sent. If you know about it, and

Re: Write temp- ile on tomcat

2007-03-02 Thread Jeff Greif
If your service is implemented within axis, then it is running as part of the axis servlet. You can get the servlet context via the MessageContext, and access paths within the webapp containing that servlet. I think you get the HttpServletRequest from the MessageContext, get the ServletContext f

Write temp- ile on tomcat

2007-03-02 Thread Freakazoid
Hi. I have a little web service, which needs to write a temp file on a tomcat server where the axis2-webapp is running. If I just use a name for the file without any path, on a standard tomcat-server as unzipped from the archive, the file appears in the bin file of the tomcat-server. I could