Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] EclipseLink 2: ANT Task Error

I got this ANT task:

<javac verbose="on"
    srcdir="${src.dir}"
    destdir="${build.dir}/${context.path}/classes"
    debug="${compile.debug}"
    debuglevel="${javac.debuglevel}"
    optimize="${compile.optimize}"
    deprecation="${javac.deprecation}"
    failonerror="true">
    <compilerarg value="-Aeclipselink.persistencexml=${web.dir}/META-INF"
compiler="javac1.6" />
    <compilerarg line=" -processor
org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor" />
    <compilerarg line=" -proc:only" compiler="javac1.6" />
    <classpath refid="compile.classpath"/>
</javac>

When I ran the above task, I got this error:

[javac] Caused by: java.net.URISyntaxException: Illegal character in opaque
part at index 2: D:\Project\website/WebContent/META-INF
    [javac]     at java.net.URI$Parser.fail(URI.java:2809)
    [javac]     at java.net.URI$Parser.checkChars(URI.java:2982)
    [javac]     at java.net.URI$Parser.parse(URI.java:3019)
    [javac]     at java.net.URI.<init>(URI.java:578)
    [javac]     at java.net.URI.create(URI.java:840)
    [javac]     ... 38 more

I've traced the error to this line <compilerarg
value="-Aeclipselink.persistencexml=${web.dir}/META-INF" compiler="javac1.6"
/>.

I'm using EclipseLink version 2 that comes bundled with Glassfish 3.1. I
have also tried compile the above task with the standalone EclipseLink
libraries version 2.2.0.v20110202-r8913 and got the same error.

I'm using JDK 1.6.0.24.

Is this an error with the Java compiler or EclipseLink? Is there a
workaround I can use?
-- 
View this message in context: http://old.nabble.com/EclipseLink-2%3A-ANT-Task-Error-tp31475388p31475388.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top