geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Woods <dwo...@apache.org>
Subject Re: Artifact-alias issues with 2.2 for plugins
Date Sat, 07 Nov 2009 15:42:06 GMT
Thanks for updating the wiki.  :-)

-Donald

chi runhua wrote:
> The page in G2.2 doc was updated accordingly.
> 
> http://cwiki.apache.org/GMOxDOC22/substituting-one-module-with-another.html
> 
> Thanks.
> 
> Jeff C
> 
> On Sat, Nov 7, 2009 at 1:22 AM, Donald Woods <dwoods@apache.org 
> <mailto:dwoods@apache.org>> wrote:
> 
>     That fixed it.  Thanks!
> 
>     -Donald
> 
> 
>     David Jencks wrote:
> 
>         Normally you should add two artifact aliases for each artifact
>         you are replacing, one with and one without the version on the
>         left side.  We've been moving towards including versions in
>         dependencies, so if you are going to try to cheat and use only
>         one, use the one with a version.  So you should try
> 
>         org.apache.geronimo.configs/openjpa//car=org.apache.geronimo.configs/openjpa2/2.2-SNAPSHOT/car
> 
>         org.apache.geronimo.configs/openjpa/2.2-SNAPSHOT/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
> 
>         org.apache.geronimo.configs/persistence-jpa10-deployer/2.2-SNAPSHOT/car=org.apache.geronimo.configs/persistence-jpa20-deployer/2.2-SNAPSHOT/car
> 
> 
>         That should get it running properly in the main server.
> 
>         To get it to modify the offline deployer, you have to deploy it
>         into that server as well as into the main server.  I don't
>         remember how to do that at the moment.
> 
>         hope this helps
>         david jencks
> 
> 
>         On Nov 6, 2009, at 6:35 AM, Donald Woods wrote:
> 
>             I also tried creating a copy of the openejb CAR as
>             openejb-jpa2 and updated the pom to depend on the openjpa2
>             CAR, but then the other openejb plugins fail to load due to
>             the missing openejb.car -
> 
>             Caused by:
>             org.apache.geronimo.gbean.InvalidConfigurationException:
>             Configuration gbean failed to start
>             org.apache.geronimo.configs/openejb-deployer/2.2-SNAPSHOT/car
>             reason: Missing dependency:
>             org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car
>                at
>             org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:166)
> 
> 
> 
>             So does artifact-alias just not work for CAR dependencies on
>             other CARs?
> 
> 
>             -Donald
> 
> 
>             Donald Woods wrote:
> 
>                 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)
>                 Any ideas?  I've opened GERONIMO-4946 with the above
>                 details.
>                 -Donald
> 
> 
> 
> 

Mime
View raw message