The Ant release notes say this: "Ant no longer ships with Apache Xerces-J or the XML APIs but relies on the Java runtime to provide a parser and matching API versions."
It's for the very same reason that we removed Xerces from our distributions; it is simply not necessary to include it because the Java runtime already provides everything that is needed. If the build is still looking for org.apache.xerces.jaxp.DocumentBuilderFactoryImpl, then it's because something tells it not to use the parser from the JRE but to look for Xerces. Is there anybody else who is able to reproduce this? Andreas On Wed, Mar 16, 2011 at 03:02, Kasun Gajasinghe <kasu...@gmail.com> wrote: > Hi, > > On Tue, Mar 15, 2011 at 7:51 PM, Amila Suriarachchi > <amilasuriarach...@gmail.com> wrote: >> >> >> On Tue, Mar 15, 2011 at 3:43 PM, Andreas Veithen >> <andreas.veit...@gmail.com> wrote: >>> >>> To me this sounds like a configuration problem in your environment. >>> Instead of using the default DOM parser from the JRE (which is >>> basically a version of Xerces relocated to a different package), it >>> specifically looks for >>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl, probably because of >>> a system property set somewhere. I bet that if you try with a clean >>> JRE and ant installation, you will not see this issue. >> >> yes. that may be the case. I'll try to check in my windows partition. > > Ant distribution no longer include Xerces jars starting from version 1.8.1 > [1]. May be that's the cause for not > finding org.apache.xerces.jaxp.DocumentBuilderFactoryImpl ? > [1] http://archive.apache.org/dist/ant/RELEASE-NOTES-apache-ant-1.8.1.html > > Regards, > Kasun > >> >> If other getting samples passed I have no issue. >> >> thanks, >> Amila. >>> >>> Andreas >>> >>> On Tue, Mar 15, 2011 at 09:21, Amila Suriarachchi >>> <amilasuriarach...@gmail.com> wrote: >>> > >>> > >>> > On Tue, Mar 15, 2011 at 3:15 AM, Andreas Veithen >>> > <andreas.veit...@gmail.com> >>> > wrote: >>> >> >>> >> I don't see any issues with the MTOM sample: >>> >> >>> >> orcus:mtom veithen$ ant >>> >> Buildfile: >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build.xml >>> >> >>> >> generate.service: >>> >> [java] Retrieving document at >>> >> >>> >> >>> >> '/Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/resources/MTOMSample.wsdl'. >>> >> [java] Retrieving schema at 'xmime.xsd', relative to >>> >> >>> >> >>> >> 'file:/Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/resources/MTOMSample.wsdl'. >>> >> [java] log4j:WARN No appenders could be found for logger >>> >> (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder). >>> >> [java] log4j:WARN Please initialize the log4j system properly. >>> >> [copy] Copying 1 file to >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service >>> >> >>> >> jar.server: >>> >> [mkdir] Created dir: >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build/service/classes >>> >> [javac] >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build.xml:112: >>> >> warning: 'includeantruntime' was not set, defaulting to >>> >> build.sysclasspath=last; set to false for repeatable builds >>> >> [javac] Compiling 8 source files to >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build/service/classes >>> >> [javac] Note: >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build/service/src/sample/mtom/service/MTOMSampleMessageReceiverInOut.java >>> >> uses unchecked or unsafe operations. >>> >> [javac] Note: Recompile with -Xlint:unchecked for details. >>> >> [copy] Copying 3 files to >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build/service/classes/META-INF >>> >> [jar] Building jar: >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/samples/mtom/build/service/sample-mtom.aar >>> >> [copy] Copying 1 file to >>> >> >>> >> >>> >> /Users/veithen/dev/maven/axis/axis2-1.6/modules/distribution/target/axis2-1.6.1-SNAPSHOT/repository/services >>> >> >>> >> BUILD SUCCESSFUL >>> >> Total time: 7 seconds >>> >> >>> >> >>> >> Can you give a bit more information about the problem? >>> > >>> > I am getting this error. >>> > >>> > generate.service: >>> > [java] Retrieving document at >>> > >>> > '/home/amila/downloads/axis2-1.6.0/samples/mtom/resources/MTOMSample.wsdl'. >>> > [java] javax.xml.parsers.FactoryConfigurationError: Provider >>> > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found >>> > [java] at >>> > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.run(Java.java:764) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) >>> > [java] at >>> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) >>> > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> > Method) >>> > [java] at >>> > >>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> > [java] at >>> > >>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> > [java] at java.lang.reflect.Method.invoke(Method.java:597) >>> > [java] at >>> > >>> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) >>> > [java] at org.apache.tools.ant.Task.perform(Task.java:348) >>> > [java] at org.apache.tools.ant.Target.execute(Target.java:357) >>> > [java] at >>> > org.apache.tools.ant.Target.performTasks(Target.java:385) >>> > [java] at >>> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) >>> > [java] at >>> > org.apache.tools.ant.Project.executeTarget(Project.java:1306) >>> > [java] at >>> > >>> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) >>> > [java] at >>> > org.apache.tools.ant.Project.executeTargets(Project.java:1189) >>> > [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) >>> > [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) >>> > [java] at >>> > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) >>> > [java] at >>> > org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) >>> > [java] Caused by: javax.xml.parsers.FactoryConfigurationError: >>> > Provider >>> > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found >>> > [java] at >>> > javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) >>> > [java] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown >>> > Source) >>> > [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown >>> > Source) >>> > [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown >>> > Source) >>> > [java] at >>> > >>> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:320) >>> > [java] at >>> > >>> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:133) >>> > [java] at >>> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) >>> > [java] at >>> > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) >>> > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> > Method) >>> > [java] at >>> > >>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> > [java] at >>> > >>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> > [java] at java.lang.reflect.Method.invoke(Method.java:597) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) >>> > [java] ... 21 more >>> > [java] --- Nested Exception --- >>> > [java] javax.xml.parsers.FactoryConfigurationError: Provider >>> > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found >>> > [java] at >>> > javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) >>> > [java] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown >>> > Source) >>> > [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown >>> > Source) >>> > [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown >>> > Source) >>> > [java] at >>> > >>> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:320) >>> > [java] at >>> > >>> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:133) >>> > [java] at >>> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) >>> > [java] at >>> > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) >>> > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> > Method) >>> > [java] at >>> > >>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> > [java] at >>> > >>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> > [java] at java.lang.reflect.Method.invoke(Method.java:597) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.run(Java.java:764) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132) >>> > [java] at >>> > org.apache.tools.ant.taskdefs.Java.execute(Java.java:105) >>> > [java] at >>> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) >>> > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> > Method) >>> > [java] at >>> > >>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> > [java] at >>> > >>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> > [java] at java.lang.reflect.Method.invoke(Method.java:597) >>> > [java] at >>> > >>> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) >>> > [java] at org.apache.tools.ant.Task.perform(Task.java:348) >>> > [java] at org.apache.tools.ant.Target.execute(Target.java:357) >>> > [java] at >>> > org.apache.tools.ant.Target.performTasks(Target.java:385) >>> > [java] at >>> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) >>> > [java] at >>> > org.apache.tools.ant.Project.executeTarget(Project.java:1306) >>> > [java] at >>> > >>> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) >>> > [java] at >>> > org.apache.tools.ant.Project.executeTargets(Project.java:1189) >>> > [java] at org.apache.tools.ant.Main.runBuild(Main.java:758) >>> > [java] at org.apache.tools.ant.Main.startAnt(Main.java:217) >>> > [java] at >>> > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) >>> > [java] at >>> > org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) >>> > [java] Java Result: -1 >>> > >>> > >>> > but when I put xercesImpl-2.6.2.jar to lib folder it works fine. >>> > >>> > I am using sun jdk. >>> > >>> > java version "1.6.0_13" >>> > Java(TM) SE Runtime Environment (build 1.6.0_13-b03) >>> > Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode) >>> > >>> > >>> > thanks, >>> > Amila. >>> >> >>> >> Andreas >>> >> >>> >> >>> >> On Sun, Feb 20, 2011 at 12:51, Amila Suriarachchi >>> >> <amilasuriarach...@gmail.com> wrote: >>> >> > As I remember we removed the xercesImpl-2.6.2.jar for some reason. >>> >> > >>> >> > But this gives an exception when generating the server code with >>> >> > mtom >>> >> > sample. >>> >> > >>> >> > thanks, >>> >> > Amila. >>> >> > >>> >> > On Sun, Feb 20, 2011 at 11:26 AM, Amila Suriarachchi >>> >> > <amilasuriarach...@gmail.com> wrote: >>> >> >> >>> >> >> >>> >> >> On Sun, Feb 20, 2011 at 11:07 AM, Amila Suriarachchi >>> >> >> <amilasuriarach...@gmail.com> wrote: >>> >> >>> >>> >> >>> >>> >> >>> On Sun, Feb 20, 2011 at 10:46 AM, Amila Suriarachchi >>> >> >>> <amilasuriarach...@gmail.com> wrote: >>> >> >>>> >>> >> >>>> is there a window to merge this[1] change to branch? >>> >> >>> >>> >> >>> I think my previous commit regarding this has broken the >>> >> >>> faulthandling >>> >> >>> sample. >>> >> >> >>> >> >> It is not regarding that but the sample is broken. We need to fix >>> >> >> that. >>> >> >> >>> >> >> thanks, >>> >> >> Amila. >>> >> >>> >>> >> >>> we need to fix that. >>> >> >>> >>> >> >>> thanks, >>> >> >>> Amila. >>> >> >>>> >>> >> >>>> Unlike in other axis2 releases, all the directories has the 777 >>> >> >>>> mode >>> >> >>>> >>> >> >>>> eg. >>> >> >>>> drwxrwxrwx 2 amila amila 328 2011-02-20 01:43 bin >>> >> >>>> drwxrwxrwx 2 amila amila 192 2011-02-20 01:43 conf >>> >> >>>> -rwxrwxrwx 1 amila amila 6145 2011-02-20 01:43 >>> >> >>>> installation-std-bin.txt >>> >> >>>> drwxrwxrwx 2 amila amila 4416 2011-02-20 01:43 lib >>> >> >>>> -rwxrwxrwx 1 amila amila 11359 2011-02-20 01:43 LICENSE.txt >>> >> >>>> -rwxrwxrwx 1 amila amila 1236 2011-02-20 01:43 NOTICE.txt >>> >> >>>> -rwxrwxrwx 1 amila amila 1982 2011-02-20 01:43 >>> >> >>>> README-std-bin.txt >>> >> >>>> -rwxrwxrwx 1 amila amila 2491 2011-02-20 01:43 README.txt >>> >> >>>> -rwxrwxrwx 1 amila amila 4172 2011-02-20 01:43 >>> >> >>>> release-notes.html >>> >> >>>> drwxrwxrwx 4 amila amila 96 2011-02-20 01:43 repository >>> >> >>>> drwxrwxrwx 27 amila amila 840 2011-02-20 01:43 samples >>> >> >>>> drwxrwxrwx 4 amila amila 136 2011-02-20 01:43 webapp >>> >> >>>> >>> >> >>>> thanks, >>> >> >>>> Amila. >>> >> >>>> >>> >> >>>> [1] http://svn.apache.org/viewvc?view=revision&revision=1072499 >>> >> >>>> >>> >> >>>> On Sun, Feb 20, 2011 at 9:07 AM, Ruwan Linton >>> >> >>>> <ruwan.lin...@gmail.com> >>> >> >>>> wrote: >>> >> >>>>> >>> >> >>>>> Hi Devs, >>> >> >>>>> >>> >> >>>>> This is a call for votes to release Axis2-1.6.0. >>> >> >>>>> >>> >> >>>>> The complete list of JIRA issues fixed in this release can be >>> >> >>>>> found >>> >> >>>>> here: >>> >> >>>>> >>> >> >>>>> http://bit.ly/issues-fixed-for-1_6 >>> >> >>>>> >>> >> >>>>> The staging repository is here: >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> https://repository.apache.org/content/repositories/orgapacheaxis2-025/ >>> >> >>>>> >>> >> >>>>> The distributions are here: >>> >> >>>>> >>> >> >>>>> http://people.apache.org/~ruwan/axis2/dist/1.6.0/ >>> >> >>>>> >>> >> >>>>> The preview of the Maven site is here: >>> >> >>>>> >>> >> >>>>> http://people.apache.org/~ruwan/axis2/site/1.6.0/ >>> >> >>>>> >>> >> >>>>> The SVN tag for this release can be found at here: >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> https://svn.apache.org/repos/asf/axis/axis2/java/core/tags/v1.6.0 >>> >> >>>>> >>> >> >>>>> Here is my +1 for releasing these as Axis2-1.6.0. >>> >> >>>>> >>> >> >>>>> Thanks, >>> >> >>>>> Ruwan >>> >> >>>>> >>> >> >>>>> -- >>> >> >>>>> Ruwan Linton >>> >> >>>>> Member, Apache Software Foundation; http://www.apache.org >>> >> >>>>> >>> >> >>>>> phone: +94 11 282 7532 >>> >> >>>>> email: ru...@wso2.com; cell: +94 77 341 3097 >>> >> >>>>> blog: http://blog.ruwan.org >>> >> >>>>> linkedin: http://www.linkedin.com/in/ruwanlinton >>> >> >>>>> google: http://www.google.com/profiles/ruwan.linton >>> >> >>>>> tweet: http://twitter.com/ruwanlinton >>> >> >>>> >>> >> >>>> >>> >> >>>> >>> >> >>>> -- >>> >> >>>> Amila Suriarachchi >>> >> >>>> WSO2 Inc. >>> >> >>>> blog: http://amilachinthaka.blogspot.com/ >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> -- >>> >> >>> Amila Suriarachchi >>> >> >>> WSO2 Inc. >>> >> >>> blog: http://amilachinthaka.blogspot.com/ >>> >> >> >>> >> >> >>> >> >> >>> >> >> -- >>> >> >> Amila Suriarachchi >>> >> >> WSO2 Inc. >>> >> >> blog: http://amilachinthaka.blogspot.com/ >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > Amila Suriarachchi >>> >> > WSO2 Inc. >>> >> > blog: http://amilachinthaka.blogspot.com/ >>> >> > >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org >>> >> For additional commands, e-mail: java-dev-h...@axis.apache.org >>> >> >>> > >>> > >>> > >>> > -- >>> > Amila Suriarachchi >>> > WSO2 Inc. >>> > blog: http://amilachinthaka.blogspot.com/ >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org >>> For additional commands, e-mail: java-dev-h...@axis.apache.org >>> >> >> >> >> -- >> Amila Suriarachchi >> WSO2 Inc. >> blog: http://amilachinthaka.blogspot.com/ > > > > -- > ~~~*******'''''''''''''*******~~~ > Kasun Gajasinghe, > University of Moratuwa, > Sri Lanka. > Blog: http://kasunbg.blogspot.com > Twitter: http://twitter.com/kasunbg > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org