[jira] [Created] (OPENJPA-2898) Cannot resolve the name 'orm:versionType'

2022-02-09 Thread Patrice DUROUX (Jira)
Patrice DUROUX created OPENJPA-2898:
---

 Summary: Cannot resolve the name 'orm:versionType'
 Key: OPENJPA-2898
 URL: https://issues.apache.org/jira/browse/OPENJPA-2898
 Project: OpenJPA
  Issue Type: Bug
  Components: Enhance
Affects Versions: 3.2.1
Reporter: Patrice DUROUX


Hi,

Switching from 3.2.0 to 3.2.1 to not face anymore issue OPENJPA-2881 and 
without any change in the source code, I am getting the following one:
{noformat}
[ERROR] Failed to execute goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on project 
IMGTPersistence: Execution enhancer of goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: 
org.xml.sax.SAXException: 
file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml
 [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; 
columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to 
a(n) 'type definition' component. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on project 
IMGTPersistence: Execution enhancer of goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: 
org.xml.sax.SAXException: 
file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml
 [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; 
columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to 
a(n) 'type definition' component.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution enhancer 
of goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: 
org.xml.sax.SAXException: 
file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml
 [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; 
columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to 
a(n) 'type definition' component.
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:148)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute 

[jira] [Commented] (OPENJPA-2898) Cannot resolve the name 'orm:versionType'

2022-02-09 Thread Patrice DUROUX (Jira)


[ 
https://issues.apache.org/jira/browse/OPENJPA-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17489410#comment-17489410
 ] 

Patrice DUROUX commented on OPENJPA-2898:
-

just in case here is the header of the taxonomy_orm.xml:

{{}}
{{http://xmlns.jcp.org/xml/ns/persistence/orm"}}
{{    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"}}
{{    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence/orm 
http://xmlns.jcp.org/xml/ns/persistence/orm_2_2.xsd"}}
{{    version="2.2">}}

{{...}}

{{}}

> Cannot resolve the name 'orm:versionType'
> -
>
> Key: OPENJPA-2898
> URL: https://issues.apache.org/jira/browse/OPENJPA-2898
> Project: OpenJPA
>  Issue Type: Bug
>  Components: Enhance
>Affects Versions: 3.2.1
>Reporter: Patrice DUROUX
>Priority: Major
>
> Hi,
> Switching from 3.2.0 to 3.2.1 to not face anymore issue OPENJPA-2881 and 
> without any change in the source code, I am getting the following one:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on project 
> IMGTPersistence: Execution enhancer of goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: 
> org.xml.sax.SAXException: 
> file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml
>  [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; 
> columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to 
> a(n) 'type definition' component. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on 
> project IMGTPersistence: Execution enhancer of goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: 
> org.xml.sax.SAXException: 
> file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml
>  [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; 
> columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to 
> a(n) 'type definition' component.
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance 
> failed: org.xml.sax.SAXException: 
> file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml
>  [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; 
> columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to 
> a(n) 'type definition' component.
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:148)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at