> Hi
>
> I have three schema files that are compiled with xjc(jaxb 2.1.4).
> There seems to be a problem in one of the schema files. I will be
> happy if anyone give me a hint or a complete solution for this
> problem.
>
> Best regards Lulseged
>
>
>
> [echo] Compiling schema files . . .
> [xjc] Compiling
> file:/C:/appz/eclipse/eclipse-3.3-j2ee/eclipse/workspace/ptt-schema/sc
> hema/ietf-common-policy.xsd and others
> [xjc] removing old output files
> [xjc] [ERROR] cos-nonambig:
> "urn:ietf:params:xml:ns:common-policy":ruleset and
> WC[##other:"urn:oma:xml:poc:list-service"] (or elements from their
> substitution group) violate "Unique Particle Attribution". During
> validation against this schema, ambiguity would be created for those
> two particles.
> [xjc] line 26 of
> file:/C:/appz/eclipse/eclipse-3.3-j2ee/eclipse/workspace/ptt-schema/sc
> hema/poc_listService-v1_0_1.xsd
> [xjc] failure in the XJC task. Use the Ant -verbose switch for
> more details
>
>
>
>
>
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema>ant
> -verbose
> Apache Ant version 1.7.0 compiled on December 13 2006
> Buildfile: build.xml
> Detected Java version: 1.6 in: C:\Program Files\Java\jdk1.6.0_02\jre
> Detected OS: Windows 2000
> parsing buildfile
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\build.xm
> l with URI =
> file:/C:/appz/eclipse/eclipse-3.3-j2ee/eclipse/workspace/ptt-schema/bu
> ild.xml
> Project base dir set to:
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema
> [antlib:org.apache.tools.ant] Could not load definitions from resource
> org/apache/tools/ant/antlib.xml. It could not be found.
> [property] Loading
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\build.pr
> operties
> [setproxy] Setting proxy to www-proxy.ericsson.se:8080
> Build sequence for target(s) `all' is [clean, init, compile-schema,
> javadoc, all]
> Complete build sequence is [clean, init, compile-schema, javadoc, all,
> ]
>
> clean:
> [echo] Cleaning . . .
> [delete] Deleting directory
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\src\oma
> [delete] Deleting directory
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\src\oma
> [delete] Deleting directory
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\src\ietf
> [delete] Deleting directory
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\src\ietf
> [delete] Deleting directory
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\docs
> [delete] Deleting directory
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\docs
>
> init:
> [echo] Initializing . . .
> [mkdir] Created dir:
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\src\oma
> [mkdir] Created dir:
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\src\ietf
> [mkdir] Created dir:
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\docs
>
> compile-schema:
> [echo] Compiling schema files . . .
> [xjc] build id of XJC is 2.1.4-b02-fcs
> [xjc] Checking timestamp of
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\schema\i
> etf-common-policy.xsd
> [xjc] Checking timestamp of
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\schema\i
> etf-resource-lists.xsd
> [xjc] Checking timestamp of
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\schema\p
> oc_listService-v1_0_1.xsd
> [xjc] the last modified time of the inputs is 1186037733387
> [xjc] the last modified time of the outputs is
> -9223372036854775808
> [xjc] Compiling
> file:/C:/appz/eclipse/eclipse-3.3-j2ee/eclipse/workspace/ptt-schema/sc
> hema/ietf-common-policy.xsd and others
> [xjc] removing old output files
> [xjc] [ERROR] cos-nonambig:
> "urn:ietf:params:xml:ns:common-policy":ruleset and
> WC[##other:"urn:oma:xml:poc:list-service"] (or elements from their
> substitution group) violate
> "Unique Particle Attribution". During validation against this schema,
> ambiguity would be created for those two particles.
> [xjc] line 26 of
> file:/C:/appz/eclipse/eclipse-3.3-j2ee/eclipse/workspace/ptt-schema/sc
> hema/poc_listService-v1_0_1.xsd
> [xjc]
> [xjc] failure in the XJC task. Use the Ant -verbose switch for
> more details
>
> BUILD FAILED
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema\build.xm
> l:31: unable to parse the schema. Error messages should have been
> provided
> at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:490)
> at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)
> at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:369)
> at
> com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java
> :105)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:357)
> at org.apache.tools.ant.Target.performTasks(Target.java:385)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExec
> utor.java:41)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> at org.apache.tools.ant.Main.runBuild(Main.java:698)
> at org.apache.tools.ant.Main.startAnt(Main.java:199)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>
> Total time: 0 seconds
> C:\appz\eclipse\eclipse-3.3-j2ee\eclipse\workspace\ptt-schema>
>