You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Maciej Pietrzak <mp...@gmail.com> on 2007/04/14 19:46:39 UTC

build problem in dao-jpa-ojpa-derby

Hello!

I've got problems compiling dao-jpa-ojpa-derby.

1). I've set failonerror="true" in build.xml in gen-schemas. I didn't
even notice this error earlier.

2). Build fails with following error message:

maciej@mpd:~/stuff/school/java/ode/ode/dao-jpa-ojpa-derby $ mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building ODE :: OpenJPA DAO Impl Using Derby
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [antrun:run {execution: OpenJPA Schema Gen}]
[INFO] Executing tasks

gen-schemas:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/maciej/stuff/school/java/ode/ode/dao-jpa-ojpa-derby/build.xml:96:
java.util.MissingResourceException:
org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
executing ant tasks
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        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:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
executing ant tasks
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:77)
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:72)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: The following error occurred while executing this line:
/home/maciej/stuff/school/java/ode/ode/dao-jpa-ojpa-derby/build.xml:96:
java.util.MissingResourceException:
org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:71)
        ... 19 more
Caused by: /home/maciej/stuff/school/java/ode/ode/dao-jpa-ojpa-derby/build.xml:96:
java.util.MissingResourceException:
org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
        at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        ... 23 more
Caused by: java.util.MissingResourceException:
org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
        at org.apache.openjpa.lib.conf.ProductDerivations.reportErrors(ProductDerivations.java:323)
        at org.apache.openjpa.lib.conf.ProductDerivations.load(ProductDerivations.java:271)
        at org.apache.openjpa.lib.conf.Configurations.populateConfiguration(Configurations.java:280)
        at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:964)
        at org.apache.openjpa.jdbc.meta.MappingTool.main(MappingTool.java:915)
        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:585)
        at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
        at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
        ... 34 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sat Apr 14 19:43:03 CEST 2007
[INFO] Final Memory: 8M/14M
[INFO] ------------------------------------------------------------------------




Do you have any idea what might be causing this? I've researched this
for a while, but don't know how to fix it (or even what's the nature
of the problem).


Regards
Maciej

Re: build problem in dao-jpa-ojpa-derby

Posted by Maciej Pietrzak <mp...@gmail.com>.
On 4/14/07, Maciej Pietrzak <mp...@gmail.com> wrote:
> On 4/14/07, Matthieu Riou <ma...@gmail.com> wrote:
> > Looks like a parser problem. Are you using the correct Java version (1.5)?
> > Also you could have for some reason a bad jar in your Maven repository,
> > trying again with an empty repository could solve it.
> >
> > Matthieu
>
> (although I'll give it a try just to make sure).
>

Well, I've tried.

Commands I've executed:

rm -rf ~/.m2
cd some/path/ode
svn checkout http://svn.apache.org/repos/asf/incubator/ode/trunk ode
vim tools-bin/build.xml # remove stage_doc as it causes to build fail
as I mentioned in other email
mvn -e install | tee mvn-install-tee-2007-04-15.log
mvn -e install | tee mvn-install-tee-2007-04-15-2.log

.. and build fails.

Bottom of second log is obvious, but before that <java/> task is
executed by ant without failonerror set, so mvn hapily continues build
even though there are errors earlier.

I'm attaching both log files.

Java version:
$ java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)


Could you please help me resolve those problems?


Best Regards
Maciej

Re: build problem in dao-jpa-ojpa-derby

Posted by Maciej Pietrzak <mp...@gmail.com>.
On 4/14/07, Matthieu Riou <ma...@gmail.com> wrote:
> Looks like a parser problem. Are you using the correct Java version (1.5)?
> Also you could have for some reason a bad jar in your Maven repository,
> trying again with an empty repository could solve it.
>
> Matthieu


Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)

To empty repository means to delete all files from ~/.m2?
If yes, then I think I did it already (although I'll give it a try
just to make sure).


Maciej

Re: build problem in dao-jpa-ojpa-derby

Posted by Matthieu Riou <ma...@gmail.com>.
Looks like a parser problem. Are you using the correct Java version (1.5)?
Also you could have for some reason a bad jar in your Maven repository,
trying again with an empty repository could solve it.

Matthieu

On 4/14/07, Maciej Pietrzak <mp...@gmail.com> wrote:
>
> Hello!
>
> I've got problems compiling dao-jpa-ojpa-derby.
>
> 1). I've set failonerror="true" in build.xml in gen-schemas. I didn't
> even notice this error earlier.
>
> 2). Build fails with following error message:
>
> maciej@mpd:~/stuff/school/java/ode/ode/dao-jpa-ojpa-derby $ mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building ODE :: OpenJPA DAO Impl Using Derby
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [antrun:run {execution: OpenJPA Schema Gen}]
> [INFO] Executing tasks
>
> gen-schemas:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: The following error occurred while executing this line:
> /home/maciej/stuff/school/java/ode/ode/dao-jpa-ojpa-derby/build.xml:96:
> java.util.MissingResourceException:
>
> org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> executing ant tasks
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:564)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> executing ant tasks
>         at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(
> AbstractAntMojo.java:77)
>         at org.apache.maven.plugin.antrun.AntRunMojo.execute(
> AntRunMojo.java:72)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by: The following error occurred while executing this line:
> /home/maciej/stuff/school/java/ode/ode/dao-jpa-ojpa-derby/build.xml:96:
> java.util.MissingResourceException:
>
> org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(
> ProjectHelper.java:539)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
> :275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(
> AbstractAntMojo.java:71)
>         ... 19 more
> Caused by:
> /home/maciej/stuff/school/java/ode/ode/dao-jpa-ojpa-derby/build.xml:96:
> java.util.MissingResourceException:
>
> org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
>         at org.apache.tools.ant.taskdefs.ExecuteJava.execute(
> ExecuteJava.java:180)
>         at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
> :275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java
> :1216)
>         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(
> SingleCheckExecutor.java:37)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>         ... 23 more
> Caused by: java.util.MissingResourceException:
>
> org.apache.openjpa.persistence.PersistenceProductDerivation:javax.xml.parsers.FactoryConfigurationError:
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
>         at org.apache.openjpa.lib.conf.ProductDerivations.reportErrors(
> ProductDerivations.java:323)
>         at org.apache.openjpa.lib.conf.ProductDerivations.load(
> ProductDerivations.java:271)
>         at
> org.apache.openjpa.lib.conf.Configurations.populateConfiguration(
> Configurations.java:280)
>         at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java
> :964)
>         at org.apache.openjpa.jdbc.meta.MappingTool.main(MappingTool.java
> :915)
>         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:585)
>         at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java
> :202)
>         at org.apache.tools.ant.taskdefs.ExecuteJava.execute(
> ExecuteJava.java:134)
>         ... 34 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Sat Apr 14 19:43:03 CEST 2007
> [INFO] Final Memory: 8M/14M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> Do you have any idea what might be causing this? I've researched this
> for a while, but don't know how to fix it (or even what's the nature
> of the problem).
>
>
> Regards
> Maciej
>