Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

[jira] Created: (GERONIMO-4946) Artifact-alias fails for replacing deployed plugins

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (GERONIMO-4946) Artifact-alias fails for replacing deployed plugins

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Artifact-alias fails for replacing deployed plugins
---------------------------------------------------

                 Key: GERONIMO-4946
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4946
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: core, deployment, Plugins
    Affects Versions: 2.2
            Reporter: Donald Woods
             Fix For: 2.2


I'm trying to build a openjpa 2.0 plugin for 2.2, which would replace the existing openjpa 1.2 plugin when installed.
https://svn.apache.org/repos/asf/geronimo/server/branches/2.2/plugins/openjpa2

The following works as expected:
1) when the new openjpa2 plugin and deployer are installed they replace the existing ones via the "obsoletes" directive in config.xml
2) the artifact-alias.properties and client-artifact-alias.properties are updated with:
org.apache.geronimo.configs/openjpa//car=org.apache.geronimo.configs/openjpa2/2.2-SNAPSHOT/car
org.apache.geronimo.configs/persistence-jpa10-deployer//car=org.apache.geronimo.configs/persistence-jpa20-deployer/2.2-SNAPSHOT/car

Issues:
1) the offline-deployer-config.xml contains entries for the old openjpa and jpa10-deployer modules and the new openjpa2 and jpa20-deployer modules.  I would have expected the old ones to be removed, as was done for the server config.xml
2) the openjeb module fails to load (even after server restart) using the new plugins, even though entries were added to artifact-alias.properties -
aused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration gbean failed to start org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car
reason: Missing dependency: org.apache.geronimo.configs/openjpa/2.2-SNAPSHOT/car
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:166)


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4946) Add optional OpenJPA2 plugin to server builds, but not the assemblies

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/GERONIMO-4946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-4946:
-----------------------------------

    Component/s:     (was: deployment)
                     (was: core)
       Assignee: Donald Woods
     Issue Type: New Feature  (was: Bug)
        Summary: Add optional OpenJPA2 plugin to server builds, but not the assemblies  (was: Artifact-alias fails for replacing deployed plugins)

The suggestion from David Jencks to add additional artifact-alias entries that mapped the ${version} to ${version} fixed the problem.
http://article.gmane.org/gmane.comp.java.geronimo.devel/77270

So, now I'm renaming the JIRA to what its original intent was, which was to provide a JPA2 plugin and deployer based on OpenJPA 2.0.0-M3 and the JPA2 2.0-PFD2 spec API.


> Add optional OpenJPA2 plugin to server builds, but not the assemblies
> ---------------------------------------------------------------------
>
>                 Key: GERONIMO-4946
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4946
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues)
>          Components: Plugins
>    Affects Versions: 2.2
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.2
>
>
> I'm trying to build a openjpa 2.0 plugin for 2.2, which would replace the existing openjpa 1.2 plugin when installed.
> https://svn.apache.org/repos/asf/geronimo/server/branches/2.2/plugins/openjpa2
> The following works as expected:
> 1) when the new openjpa2 plugin and deployer are installed they replace the existing ones via the "obsoletes" directive in config.xml
> 2) the artifact-alias.properties and client-artifact-alias.properties are updated with:
> org.apache.geronimo.configs/openjpa//car=org.apache.geronimo.configs/openjpa2/2.2-SNAPSHOT/car
> org.apache.geronimo.configs/persistence-jpa10-deployer//car=org.apache.geronimo.configs/persistence-jpa20-deployer/2.2-SNAPSHOT/car
> Issues:
> 1) the offline-deployer-config.xml contains entries for the old openjpa and jpa10-deployer modules and the new openjpa2 and jpa20-deployer modules.  I would have expected the old ones to be removed, as was done for the server config.xml
> 2) the openjeb module fails to load (even after server restart) using the new plugins, even though entries were added to artifact-alias.properties -
> aused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration gbean failed to start org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car
> reason: Missing dependency: org.apache.geronimo.configs/openjpa/2.2-SNAPSHOT/car
> at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:166)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.