ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | October 2003 Index

<--  Date Index  --> <--  Thread Index  -->

Re: Enhydra: dods task


I have a little more info on this. The DODS Generator gives me another error 
that I traced it back to a target in /usr/local/enhydra5.1/dods/generate.xml 
(line 18):

        <target name="dods:copy_doml">
                <mkdir dir="${project.root}"/>
                <validate_doml doml="${doml.file}" projRoot="${project.root}" 
template="${doml.template}" force="${generate.force}"/>
        </target>

When I run the DODS Generator it reports a permission denied error when 
trying 
to create the directory /usr/local/enhydra5.1/dods/build/${project.root}. 
That doesn't make sense. It looks like it's trying to put my project.root in 
the dods build directory /usr/local/enhydra5.1/dods/build/${project.root}. 
Why is it looking in the DODS build directory instead of my project.root?  

Running the DODS Generator from the command line gives this error:

java.io.FileNotFoundException: 
/usr/local/enhydra5.1/dods/build/dods.properties (Permission denied)

        at java.io.FileOutputStream.open(Native Method)

        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)

        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)

        at org.enhydra.dods.generator.DODSEjenProperties.main(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at org.enhydra.dods.generator.DODSGenerator.generateCode(Unknown 
Source)

        at org.enhydra.dods.generator.DODSGenerator.generateAll(Unknown 
Source)

        at org.enhydra.dods.generator.DODSGenerator.generateAll(Unknown 
Source)

        at org.enhydra.dods.generator.DODSGenerator.main(Unknown Source)


Why is it looking in /usr/local/enhydra5.1/dods/build/dods.properties? These 
things seem to be unrelated but maybe my environment/classpath is just 
screwed up.


Jeremy

On Friday 10 October 2003 12:34 pm, Jeremy Ferry wrote:
> I'm having problems getting the dods task to work. As far as I can tell
> I've got all the correct jar files in the classpath. I'm probably missing
> something very simple. Any help would be appreciated...
>
> BUILD FAILED
> java.lang.NoSuchMethodError:
> org.enhydra.dods.generator.DODSGenerator.generateAll(Ljava/lang/String;Ljav
>a/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZ)I
> at org.enhydra.ant.taskdefs.Dods.execute(Unknown Source)
>       at org.apache.tools.ant.Task.perform(Task.java:317)
>       at org.apache.tools.ant.Target.execute(Target.java:309)
>       at org.apache.tools.ant.Target.performTasks(Target.java:334)
>       at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>       at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>       at org.apache.tools.ant.Main.runBuild(Main.java:610)
>       at org.apache.tools.ant.Main.start(Main.java:196)
>       at org.apache.tools.ant.Main.main(Main.java:235)
>
> Total time: 2 seconds
> java.lang.NoSuchMethodError:
> org.enhydra.dods.generator.DODSGenerator.generateAll(Ljava/lang/String;Ljav
>a/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZ)I
> at org.enhydra.ant.taskdefs.Dods.execute(Unknown Source)
>       at org.apache.tools.ant.Task.perform(Task.java:317)
>       at org.apache.tools.ant.Target.execute(Target.java:309)
>       at org.apache.tools.ant.Target.performTasks(Target.java:334)
>       at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>       at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>       at org.apache.tools.ant.Main.runBuild(Main.java:610)
>       at org.apache.tools.ant.Main.start(Main.java:196)
>       at org.apache.tools.ant.Main.main(Main.java:235)
> org.enhydra.dods.generator.DODSGenerator.generateAll(Ljava/lang/String;Ljav
>a/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZ)I
>
>
> Thanks,
> Jeremy
>
> _______________________________________________
> Enhydra mailing list
> Enhydra@xxxxxxxxxxx
> http://www.enhydra.org/mailman/listinfo.cgi/enhydra





<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.