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

2024-02-12 Thread Romain Manni-Bucau (Jira)


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

Romain Manni-Bucau commented on OPENJPA-2898:
-

looks good to me, just misses a test.

 

side note: you can do a PR, can be easier to review 

> 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, 3.2.2
>Reporter: Patrice DUROUX
>Priority: Major
> Attachments: openjpa.patch
>
>
> 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 
> 

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

2024-02-12 Thread Patrice DUROUX (Jira)


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

Patrice DUROUX commented on OPENJPA-2898:
-

Hi

Could you please consider this patch?

Thanks!

[^openjpa.patch]

> 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, 3.2.2
>Reporter: Patrice DUROUX
>Priority: Major
> Attachments: openjpa.patch
>
>
> 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 
> 

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

2024-01-17 Thread Patrice DUROUX (Jira)


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

Patrice DUROUX commented on OPENJPA-2898:
-

Hi,

 

I have tried again to look at this deeply by switching again from 3.2.0 to 
3.2.2.

What is strange is that the naming of the XSD ressource files are not all on 
the same schema when looking into the .jar content:

$ find 3.2.2 -name "*.rsrc"
3.2.2/org/apache/openjpa/persistence/persistence_2_1.xsd.rsrc
3.2.2/org/apache/openjpa/persistence/orm-xsd.rsrc
3.2.2/org/apache/openjpa/persistence/persistence_2_2.xsd.rsrc
3.2.2/org/apache/openjpa/persistence/orm_2_2.xsd.rsrc
3.2.2/org/apache/openjpa/persistence/orm_2_1.xsd.rsrc
3.2.2/org/apache/openjpa/persistence/persistence-xsd.rsrc
3.2.2/org/apache/openjpa/persistence/persistence_2_0-xsd.rsrc
3.2.2/org/apache/openjpa/persistence/orm_2_0-xsd.rsrc
3.2.2/org/apache/openjpa/jdbc/sql/sql-keywords.rsrc
3.2.2/org/apache/openjpa/jdbc/sql/sql-invalid-column-names.rsrc
3.2.2/org/apache/openjpa/jdbc/meta/java-keywords.rsrc
3.2.2/org/apache/openjpa/jdbc/schema/schemas-doctype.rsrc

Some have suffix '-xsd.rsrc' and some '.xsd.rsrc'.

Searching into the source (current git clone),  I found:

$ rgrep "xsd.rsrc" 
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
orm-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
orm_2_0-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
orm_2_1-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, 
taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
orm_2_2-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, 
taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
persistence-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
persistence_2_0-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
persistence_2_1-xsd.rsrc - Eclipse Public License v1.0 - included in the 
openjpa jar, taken from:
openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm:  
persistence_2_2-xsd.rsrc - Eclipse Public License v1.0 - included in the 
openjpa jar, taken from:
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java:
        String ormxsd = "orm_2_0-xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java:
            ormxsd = "orm-xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java:
            ormxsd = "orm_2_0-xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java:
            ormxsd = "orm_2_1.xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java:
            ormxsd = "orm_2_2.xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java:
            String persistencexsd = "persistence-xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java:
                persistencexsd = "persistence_2_0-xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java:
                persistencexsd = "persistence_2_1-xsd.rsrc";
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java:
                persistencexsd = "persistence_2_2-xsd.rsrc";
openjpa-project/LICENSE:  orm-xsd.rsrc - included in the openjpa jar, taken 
from:
openjpa-project/LICENSE:  orm_2_0-xsd.rsrc - included in the openjpa jar, taken 
from:
openjpa-project/LICENSE:  orm_2_1-xsd.rsrc - Eclipse Public License v1.0 - 
included in the openjpa jar, taken from:
openjpa-project/LICENSE:  orm_2_2-xsd.rsrc - Eclipse Public License v1.0 - 
included in the openjpa jar, taken from:
openjpa-project/LICENSE:  persistence-xsd.rsrc - included in the openjpa jar, 
taken from:
openjpa-project/LICENSE:  persistence_2_0-xsd.rsrc - included in the openjpa 
jar, taken from:
openjpa-project/LICENSE:  persistence_2_1-xsd.rsrc - Eclipse Public License 
v1.0 - included in the openjpa jar, taken from:
openjpa-project/LICENSE:  persistence_2_2-xsd.rsrc - Eclipse Public License 
v1.0 - included in the openjpa jar, taken from:
openjpa-all/src/main/appended-resources/META-INF/LICENSE.vm:  orm-xsd.rsrc - 
CDDL 1.0 - included in the openjpa jar, taken from:
openjpa-all/src/main/appended-resources/META-INF/LICENSE.vm:  orm_2_0-xsd.rsrc 
- CDDL 1.0 - included in the openjpa jar, taken 

[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