Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [wtp-dev] Access error overwriting web.xml

Mike,
 
This question would be more appropriate on the WTP newsgroup (http://www.eclipse.org/newsportal/thread.php?group=eclipse.webtools). Please post any follow-on questions there.
 
The best way to modify web.xml is to use the API provided by WTP such as WebArtifactEdit. That way your facet will co-exist peacefully with facets written by other people. If you must replace the file with canned contents, make sure that you are using Eclipse IO (rather than Java IO)... use IFile.setContents().
 
- Konstantin
 
 

Oracle
Konstantin Komissarchik | Principal Member of Technical Staff
Phone: +1 425 201 1795 | Mobile: +1 206 898 0611
Oracle Eclipse Tooling
411 108th Ave NE, Suite 2100 | Bellevue, WA 98004

 


From: wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of Mike Murphy
Sent: Tuesday, July 22, 2008 7:24 AM
To: wtp-dev@xxxxxxxxxxx
Subject: [wtp-dev] Access error overwriting web.xml

Hi all --

I am working on a project facet plugin (thanks to Konstantin!) that creates a default template project with a bunch of assets in place.  Part of what we need to do is overlay the deployment descriptor with our own stock copy.  I am finding that a file copy does not work, I get a strange "(Access Denied)" IOException.  Is this because it is in the WEB-INF area?  I also tried creating a IO file over the default one, and calling delete() on it, which seems to have no effect?

Am I missing some obvious Java IO thing here, or is this something WTP specific about WEB-INF?

Thanks-
Mike


Stay in touch when you're away with Windows Live Messenger. IM anytime you're online.

Back to the top