FroMage / jax-doclets

Set of JavaDoc doclets for modern Java annotations APIs
http://www.lunatech-labs.com/open-source/jax-doclets
GNU Lesser General Public License v3.0
26 stars 23 forks source link

FileNotFoundException: /doclet.css (Permission denied) #39

Closed antonpiatek closed 12 years ago

antonpiatek commented 12 years ago

I am getting a file not found exception (permission denied) for /doclet.css using the 0.9 jar download and trying to run the jaxb doclets from ant:

I get the following stack. [javadoc] javadoc: error - In doclet class com.lunatech.doclets.jax.jaxb.JAXBDoclet, method start has thrown an exception java.lang.reflect.InvocationTargetException [javadoc] java.lang.RuntimeException: java.io.FileNotFoundException: /doclet.css (Permission denied) [javadoc] at com.lunatech.doclets.jax.Utils.copyResource(Utils.java:453) [javadoc] at com.lunatech.doclets.jax.Utils.copyResources(Utils.java:438) [javadoc] at com.lunatech.doclets.jax.jaxb.JAXBDoclet.start(JAXBDoclet.java:110) [javadoc] at com.lunatech.doclets.jax.jaxb.JAXBDoclet.start(JAXBDoclet.java:93) [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) [javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [javadoc] at java.lang.reflect.Method.invoke(Method.java:600) [javadoc] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269) [javadoc] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143) [javadoc] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) [javadoc] at com.sun.tools.javadoc.Start.begin(Start.java:128) [javadoc] at com.sun.tools.javadoc.Main.execute(Main.java:41) [javadoc] at com.sun.tools.javadoc.Main.main(Main.java:31) [javadoc] Caused by: java.io.FileNotFoundException: /doclet.css (Permission denied) [javadoc] at java.io.FileOutputStream.open(Native Method) [javadoc] at java.io.FileOutputStream.(FileOutputStream.java:194) [javadoc] at java.io.FileOutputStream.(FileOutputStream.java:145) [javadoc] at com.lunatech.doclets.jax.Utils.copyResource(Utils.java:443)

The jar file does contain the file, so I don't quite know why it can't open it. The jar is +rw for my userid.

antonpiatek commented 12 years ago

Setting a destdir="output/" on the javadoc ant task seems to have solved it - I'm not sure where it was trying to write, but setting a path explicitly has resolved the issue for me.