You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Rick McGuire <ri...@gmail.com> on 2009/10/12 21:11:28 UTC

More OSGi progress

Time to start a new thread, I think.  I'm getting further now.  The 
framework builds, but I'm getting errors trying to build the configs.  I 
get an IOException attempting to build the J2EE System config (see 
below).  The file in question is

java.io.IOException: Referenced file does not exist: 
C:\jencks\g\framework\confi
gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
NAPSHOT\j2ee-system-3.0-SNAPSHOT.car

which actually does exist.  Strangely, this does not kill the build, but 
it then dies trying to build the rmi-naming config with a similar error 
trying to load the rmi-naming car file.  This one does kill the build.  
Both exceptions occur when starting the Felix framework, but I'm not 
sure where the reference to that file is coming from.  Any suggestions 
on where I might start debugging this problem?

Rick

[INFO] [car:update-pluginlist]
[INFO] 
------------------------------------------------------------------------
[INFO] Building Geronimo Framework, Configs :: J2EE System
[INFO]    task-segment: [install]
[INFO] 
------------------------------------------------------------------------
[INFO] [genesis:validate-configuration {execution: default}]
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory 
C:\jencks\g\framework\configs\j2ee-sy
stem\src\main\filtered-resources
[INFO] Copying 3 resources
[INFO] [car:validate-configuration]
[INFO] [car:prepare-plan]
[INFO] Generated: 
C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml

[INFO] [car:verify-no-dependency-change]
[INFO] [car:prepare-metadata]
[INFO] [car:package]
[INFO] Packaging module configuration: 
C:\jencks\g\framework\configs\j2ee-system
\target\work\plan.xml
ERROR: Error creating archive. (java.io.IOException: Referenced file 
does not ex
ist: 
C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
java.io.IOException: Referenced file does not exist: 
C:\jencks\g\framework\confi
gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
        at 
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
tion(BundleArchive.java:994)
        at 
org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
ava:631)
        at 
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
ava:206)
        at 
org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
java:149)
        at org.apache.felix.framework.Felix.init(Felix.java:558)
        at org.apache.felix.framework.Felix.start(Felix.java:683)
        at 
org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
tractCarMojo.java:771)
        at 
org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
Mojo.java:360)
        at 
org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
Mojo.java:294)
        at 
org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
java:234)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:453)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:500)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:479)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:331)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:292)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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)
ERROR: Error starting 
reference:file://c:\.m2\repository\org\apache\geronimo\fra
mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator 
start er
ror in bundle 
org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
].)
java.lang.NullPointerException: Specified service reference cannot be null.
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContext
Impl.java:320)
        at 
org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
ationActivator.java:46)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:639)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at 
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)

        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
)
        at java.lang.Thread.run(Thread.java:619)
13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not 
using proxi
es
[INFO] Started deployer: 
org.apache.geronimo.framework/geronimo-gbean-deployer-b
ootstrap/3.0-SNAPSHOT/car
13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath 
processing
mode is in effect.
This option can be altered by specifying 
-DXorg.apache.geronimo.deployment.Lenie
ntMFCP=true|false
Specify ="true" for more lenient processing such as ignoring missing 
jars and re
ferences that are not spec compliant.
13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for 
bundle org.
apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
ar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.xbean/xbean-reflect/3.6/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [xpp3
/xpp3_min/1.1.4c/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
ar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
ar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
L]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [comm
ons-logging/commons-logging/1.0.3/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [juni
t/junit/4.5/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
HOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
HOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [java
x.xml.stream/stax-api/1.0-2/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [java
x.activation/activation/1.1/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [java
x.xml.bind/jaxb-api/2.1/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
L]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
HOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
T/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
13:37:40,781 INFO  [DependencyManager] installing artifact: 
DependencyType [org.
apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
jar:ALL]
[INFO] [car:archive-car]
[INFO] Building jar: 
C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
m-3.0-SNAPSHOT.car
[INFO] [ianal:verify-legal-files {execution: default}]
[INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
[INFO] [install:install]
[INFO] Installing 
C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
.0-SNAPSHOT.car to 
c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
[INFO] Installing 
C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
A-INF\geronimo-plugin.xml to 
c:\.m2\repository\org\apache\geronimo\framework\j2e
e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
[INFO] [car:update-pluginlist]
[INFO] 
------------------------------------------------------------------------
[INFO] Building Geronimo Framework, Configs :: RMI Naming
[INFO]    task-segment: [install]
[INFO] 
------------------------------------------------------------------------
[INFO] [genesis:validate-configuration {execution: default}]
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\jencks\g\framework\configs\rmi-nam
ing\src\main\resources
[INFO] skip non existing resourceDirectory 
C:\jencks\g\framework\configs\rmi-nam
ing\src\main\filtered-resources
[INFO] Copying 3 resources
[INFO] [car:validate-configuration]
[INFO] [car:prepare-plan]
[INFO] Generated: 
C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
[INFO] [car:verify-no-dependency-change]
[INFO] [car:prepare-metadata]
[INFO] [car:package]
[INFO] Packaging module configuration: 
C:\jencks\g\framework\configs\rmi-naming\
target\work\plan.xml
ERROR: Error creating archive. (java.io.IOException: Referenced file 
does not ex
ist: 
C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
java.io.IOException: Referenced file does not exist: 
C:\jencks\g\framework\confi
gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
PSHOT\rmi-naming-3.0-SNAPSHOT.car
        at 
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
tion(BundleArchive.java:994)
        at 
org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
ava:631)
        at 
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
ava:206)
        at 
org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
java:149)
        at org.apache.felix.framework.Felix.init(Felix.java:558)
        at org.apache.felix.framework.Felix.start(Felix.java:683)
        at 
org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
tractCarMojo.java:771)

Re: More OSGi progress

Posted by chi runhua <ch...@gmail.com>.
I tried to follow the steps that Rex provided, somehow I ran into a build
failure when mvn install framework in the final step. Then I tried mvn clean
install -Dmaven.test.skip=true, still no luck.

Here is the error msg I noticed, any workaround to bypass the exception?

Thanks in advance.

Jeff C
++++++++++++++++++++++++++++++++

[INFO]
------------------------------------------------------------------------
[INFO] Building Geronimo Build Support :: Plugin
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [genesis:validate-configuration {execution: default}]
[INFO] [enforcer:enforce {execution: default}]
[INFO] [groovy:generateStubs {execution: default}]
[WARN]  Failed to load provider from:
org.codehaus.groovy.maven.runtime.loader.DefaultProviderLoader@31103110
java.lang.NullPointerException

org.codehaus.groovy.maven.runtime.loader.DefaultProviderLoader.findProviders(DefaultProviderLoader.java:67)

org.codehaus.groovy.maven.runtime.loader.DefaultProviderLoader.load(DefaultProviderLoader.java:45)

org.codehaus.groovy.maven.runtime.loader.DefaultProviderSelector.load(DefaultProviderSelector.java:192)

org.codehaus.groovy.maven.runtime.loader.DefaultProviderSelector.discover(DefaultProviderSelector.java:154)

org.codehaus.groovy.maven.runtime.loader.DefaultProviderSelector.register(DefaultProviderSelector.java:98)

org.codehaus.groovy.maven.runtime.loader.DefaultProviderSelector.select(DefaultProviderSelector.java:47)

org.codehaus.groovy.maven.runtime.loader.DefaultProviderManager.select(DefaultProviderManager.java:91)

org.codehaus.groovy.maven.plugin.ProviderMojoSupport.provider(ProviderMojoSupport.java:107)

org.codehaus.groovy.maven.plugin.ComponentMojoSupport.doExecute(ComponentMojoSupport.java:58)

org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java:69)

org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    java.lang.reflect.Method.invoke(Method.java:599)
    org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    org.codehaus.classworlds.Launcher.main(Launcher.java:375)

..........
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Dependencies have changed:
    Added dependencies are saved here:
/home/jeffchi/Geronimo/SourceCode/sandbox/framework/configs/geronimo-gbean-deployer-bootstrap/src/main/history/dependencies.added.xml
    Tree listing is saved here:
/home/jeffchi/Geronimo/SourceCode/sandbox/framework/configs/geronimo-gbean-deployer-bootstrap/src/main/history/treeListing.xml
Delete
/home/jeffchi/Geronimo/SourceCode/sandbox/framework/configs/geronimo-gbean-deployer-bootstrap/src/main/history/dependencies.xml
if you are happy with the dependency changes.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 18 seconds
[INFO] Finished at: Fri Oct 16 10:56:00 CST 2009
[INFO] Final Memory: 201M/387M
[INFO]
------------------------------------------------------------------------






On Thu, Oct 15, 2009 at 4:53 PM, Rex Wang <rw...@gmail.com> wrote:

> I just built dj's sandbox framework successfully, here is my footprint.
> Hope this helps for the following guys, and also thanks for the clues above!
>
> my env:
> windowxp
> maven2.2.1
> jdk6
> sandbox rev825381
>
> checkout sandbox ramework
>   ps: modify pom.xml(xmlbeans denp: 2.4.0_2-SNAPSHOT -> 2.4.0_3-SNAPSHOT)
>
> checkout servicemix
>   ps:
>   add djencks patch to xstream-1.3/pom.xml
>   build root pom.xml
>   build: jaxb-impl-2.1.6, xmlbeans-2.4.0, woodstox-3.2.8, jline-0.9.94
>
> copy the G-trunk root pom.xml to the parent dir of this sandbox frameowrk
> build geronimo bundles
>   ps: plexus-utils pom.xml (version->1.4.5_1-SNAPSHOT ), build it before
> plexus achiver and logging
>
> checkout karaf from felix trunk and  bunld it
> checkout org.osgi.core/foundation/compendium and build them sequentially.
>
> then, build the sandbox framework.
>
> HTH.
>
> -Rex
>
> 2009/10/13 Rick McGuire <ri...@gmail.com>
>
> Time to start a new thread, I think.  I'm getting further now.  The
>> framework builds, but I'm getting errors trying to build the configs.  I get
>> an IOException attempting to build the J2EE System config (see below).  The
>> file in question is
>>
>> java.io.IOException: Referenced file does not exist:
>> C:\jencks\g\framework\confi
>>
>> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>>
>> which actually does exist.  Strangely, this does not kill the build, but
>> it then dies trying to build the rmi-naming config with a similar error
>> trying to load the rmi-naming car file.  This one does kill the build.  Both
>> exceptions occur when starting the Felix framework, but I'm not sure where
>> the reference to that file is coming from.  Any suggestions on where I might
>> start debugging this problem?
>>
>> Rick
>>
>> [INFO] [car:update-pluginlist]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Geronimo Framework, Configs :: J2EE System
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [genesis:validate-configuration {execution: default}]
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 1 resource
>> [INFO] skip non existing resourceDirectory
>> C:\jencks\g\framework\configs\j2ee-sy
>> stem\src\main\filtered-resources
>> [INFO] Copying 3 resources
>> [INFO] [car:validate-configuration]
>> [INFO] [car:prepare-plan]
>> [INFO] Generated:
>> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
>>
>> [INFO] [car:verify-no-dependency-change]
>> [INFO] [car:prepare-metadata]
>> [INFO] [car:package]
>> [INFO] Packaging module configuration:
>> C:\jencks\g\framework\configs\j2ee-system
>> \target\work\plan.xml
>> ERROR: Error creating archive. (java.io.IOException: Referenced file does
>> not ex
>> ist:
>> C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
>> nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
>> java.io.IOException: Referenced file does not exist:
>> C:\jencks\g\framework\confi
>>
>> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>>       at
>> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>> tion(BundleArchive.java:994)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>> ava:631)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>> ava:206)
>>       at
>> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>> java:149)
>>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>>       at
>> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>> tractCarMojo.java:771)
>>       at
>> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
>> Mojo.java:360)
>>       at
>> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
>> Mojo.java:294)
>>       at
>> org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
>> java:234)
>>       at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> nManager.java:453)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:559)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:500)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:479)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:331)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:292)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:142)
>>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>       at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>       at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       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)
>> ERROR: Error starting
>> reference:file://c:\.m2\repository\org\apache\geronimo\fra
>>
>> mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
>> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator
>> start er
>> ror in bundle
>> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
>> ].)
>> java.lang.NullPointerException: Specified service reference cannot be
>> null.
>>       at
>> org.apache.felix.framework.BundleContextImpl.getService(BundleContext
>> Impl.java:320)
>>       at
>> org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
>> ationActivator.java:46)
>>       at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
>> ion.java:639)
>>       at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
>>       at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>>       at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>>
>>       at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
>> )
>>       at java.lang.Thread.run(Thread.java:619)
>> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not using
>> proxi
>> es
>> [INFO] Started deployer:
>> org.apache.geronimo.framework/geronimo-gbean-deployer-b
>> ootstrap/3.0-SNAPSHOT/car
>> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath
>> processing
>> mode is in effect.
>> This option can be altered by specifying
>> -DXorg.apache.geronimo.deployment.Lenie
>> ntMFCP=true|false
>> Specify ="true" for more lenient processing such as ignoring missing jars
>> and re
>> ferences that are not spec compliant.
>> 13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for
>> bundle org.
>> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
>> ar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.xbean/xbean-reflect/3.6/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [xpp3
>> /xpp3_min/1.1.4c/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
>> ar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
>> ar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
>> L]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [comm
>> ons-logging/commons-logging/1.0.3/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [juni
>> t/junit/4.5/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
>> HOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
>> HOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [java
>> x.xml.stream/stax-api/1.0-2/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [java
>> x.activation/activation/1.1/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [java
>> x.xml.bind/jaxb-api/2.1/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
>> L]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
>> HOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
>> T/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>>
>> apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
>> jar:ALL]
>> [INFO] [car:archive-car]
>> [INFO] Building jar:
>> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
>> m-3.0-SNAPSHOT.car
>> [INFO] [ianal:verify-legal-files {execution: default}]
>> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
>> [INFO] [install:install]
>> [INFO] Installing
>> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
>> .0-SNAPSHOT.car to
>> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
>> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>> [INFO] Installing
>> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
>> A-INF\geronimo-plugin.xml to
>> c:\.m2\repository\org\apache\geronimo\framework\j2e
>> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
>> [INFO] [car:update-pluginlist]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Geronimo Framework, Configs :: RMI Naming
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [genesis:validate-configuration {execution: default}]
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory
>> C:\jencks\g\framework\configs\rmi-nam
>> ing\src\main\resources
>> [INFO] skip non existing resourceDirectory
>> C:\jencks\g\framework\configs\rmi-nam
>> ing\src\main\filtered-resources
>> [INFO] Copying 3 resources
>> [INFO] [car:validate-configuration]
>> [INFO] [car:prepare-plan]
>> [INFO] Generated:
>> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
>> [INFO] [car:verify-no-dependency-change]
>> [INFO] [car:prepare-metadata]
>> [INFO] [car:package]
>> [INFO] Packaging module configuration:
>> C:\jencks\g\framework\configs\rmi-naming\
>> target\work\plan.xml
>> ERROR: Error creating archive. (java.io.IOException: Referenced file does
>> not ex
>> ist:
>> C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
>> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
>> java.io.IOException: Referenced file does not exist:
>> C:\jencks\g\framework\confi
>>
>> gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
>> PSHOT\rmi-naming-3.0-SNAPSHOT.car
>>       at
>> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>> tion(BundleArchive.java:994)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>> ava:631)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>> ava:206)
>>       at
>> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>> java:149)
>>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>>       at
>> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>> tractCarMojo.java:771)
>>
>
>

Re: More OSGi progress

Posted by Rex Wang <rw...@gmail.com>.
I just built dj's sandbox framework successfully, here is my footprint. Hope
this helps for the following guys, and also thanks for the clues above!

my env:
windowxp
maven2.2.1
jdk6
sandbox rev825381

checkout sandbox ramework
  ps: modify pom.xml(xmlbeans denp: 2.4.0_2-SNAPSHOT -> 2.4.0_3-SNAPSHOT)

checkout servicemix
  ps:
  add djencks patch to xstream-1.3/pom.xml
  build root pom.xml
  build: jaxb-impl-2.1.6, xmlbeans-2.4.0, woodstox-3.2.8, jline-0.9.94

copy the G-trunk root pom.xml to the parent dir of this sandbox frameowrk
build geronimo bundles
  ps: plexus-utils pom.xml (version->1.4.5_1-SNAPSHOT ), build it before
plexus achiver and logging

checkout karaf from felix trunk and  bunld it
checkout org.osgi.core/foundation/compendium and build them sequentially.

then, build the sandbox framework.

HTH.

-Rex

2009/10/13 Rick McGuire <ri...@gmail.com>

> Time to start a new thread, I think.  I'm getting further now.  The
> framework builds, but I'm getting errors trying to build the configs.  I get
> an IOException attempting to build the J2EE System config (see below).  The
> file in question is
>
> java.io.IOException: Referenced file does not exist:
> C:\jencks\g\framework\confi
>
> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>
> which actually does exist.  Strangely, this does not kill the build, but it
> then dies trying to build the rmi-naming config with a similar error trying
> to load the rmi-naming car file.  This one does kill the build.  Both
> exceptions occur when starting the Felix framework, but I'm not sure where
> the reference to that file is coming from.  Any suggestions on where I might
> start debugging this problem?
>
> Rick
>
> [INFO] [car:update-pluginlist]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Framework, Configs :: J2EE System
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [genesis:validate-configuration {execution: default}]
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] skip non existing resourceDirectory
> C:\jencks\g\framework\configs\j2ee-sy
> stem\src\main\filtered-resources
> [INFO] Copying 3 resources
> [INFO] [car:validate-configuration]
> [INFO] [car:prepare-plan]
> [INFO] Generated:
> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
>
> [INFO] [car:verify-no-dependency-change]
> [INFO] [car:prepare-metadata]
> [INFO] [car:package]
> [INFO] Packaging module configuration:
> C:\jencks\g\framework\configs\j2ee-system
> \target\work\plan.xml
> ERROR: Error creating archive. (java.io.IOException: Referenced file does
> not ex
> ist:
> C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
> nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
> java.io.IOException: Referenced file does not exist:
> C:\jencks\g\framework\confi
>
> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>       at
> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
> tion(BundleArchive.java:994)
>       at
> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
> ava:631)
>       at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
> ava:206)
>       at
> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
> java:149)
>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>       at
> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
> tractCarMojo.java:771)
>       at
> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
> Mojo.java:360)
>       at
> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
> Mojo.java:294)
>       at
> org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
> java:234)
>       at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:453)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:559)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:500)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:479)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:331)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:292)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:142)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       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)
> ERROR: Error starting
> reference:file://c:\.m2\repository\org\apache\geronimo\fra
>
> mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator
> start er
> ror in bundle
> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
> ].)
> java.lang.NullPointerException: Specified service reference cannot be null.
>       at
> org.apache.felix.framework.BundleContextImpl.getService(BundleContext
> Impl.java:320)
>       at
> org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
> ationActivator.java:46)
>       at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
> ion.java:639)
>       at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
>       at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>       at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>
>       at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
> )
>       at java.lang.Thread.run(Thread.java:619)
> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not using
> proxi
> es
> [INFO] Started deployer:
> org.apache.geronimo.framework/geronimo-gbean-deployer-b
> ootstrap/3.0-SNAPSHOT/car
> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath
> processing
> mode is in effect.
> This option can be altered by specifying
> -DXorg.apache.geronimo.deployment.Lenie
> ntMFCP=true|false
> Specify ="true" for more lenient processing such as ignoring missing jars
> and re
> ferences that are not spec compliant.
> 13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for bundle
> org.
> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
> ar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.xbean/xbean-reflect/3.6/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [xpp3
> /xpp3_min/1.1.4c/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
> ar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
> ar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
> L]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [comm
> ons-logging/commons-logging/1.0.3/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [juni
> t/junit/4.5/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
> HOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
> HOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [java
> x.xml.stream/stax-api/1.0-2/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [java
> x.activation/activation/1.1/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [java
> x.xml.bind/jaxb-api/2.1/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
> L]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
> HOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
> T/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
>
> apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
> jar:ALL]
> [INFO] [car:archive-car]
> [INFO] Building jar:
> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
> m-3.0-SNAPSHOT.car
> [INFO] [ianal:verify-legal-files {execution: default}]
> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
> [INFO] [install:install]
> [INFO] Installing
> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
> .0-SNAPSHOT.car to
> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
> [INFO] Installing
> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
> A-INF\geronimo-plugin.xml to
> c:\.m2\repository\org\apache\geronimo\framework\j2e
> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
> [INFO] [car:update-pluginlist]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Framework, Configs :: RMI Naming
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [genesis:validate-configuration {execution: default}]
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> C:\jencks\g\framework\configs\rmi-nam
> ing\src\main\resources
> [INFO] skip non existing resourceDirectory
> C:\jencks\g\framework\configs\rmi-nam
> ing\src\main\filtered-resources
> [INFO] Copying 3 resources
> [INFO] [car:validate-configuration]
> [INFO] [car:prepare-plan]
> [INFO] Generated:
> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
> [INFO] [car:verify-no-dependency-change]
> [INFO] [car:prepare-metadata]
> [INFO] [car:package]
> [INFO] Packaging module configuration:
> C:\jencks\g\framework\configs\rmi-naming\
> target\work\plan.xml
> ERROR: Error creating archive. (java.io.IOException: Referenced file does
> not ex
> ist:
> C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
> java.io.IOException: Referenced file does not exist:
> C:\jencks\g\framework\confi
>
> gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
> PSHOT\rmi-naming-3.0-SNAPSHOT.car
>       at
> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
> tion(BundleArchive.java:994)
>       at
> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
> ava:631)
>       at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
> ava:206)
>       at
> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
> java:149)
>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>       at
> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
> tractCarMojo.java:771)
>

Re: More OSGi progress

Posted by Rick McGuire <ri...@gmail.com>.
I'm making a little progress.  If I do an mvn clean in the configs 
directory before starting any build, I get past the RMI naming problem.  
This gets me to the same error that Ivan is seeing when building the 
Karaf Boilerplate Framework.  If I change into the geronimo-assemblies 
dir and build, everything builds cleanly, but then I'm stuck at that 
point point.  Any attempt to build anything else runs into the 
rmi-naming build problem all over.   I've tried all sorts of 
combinations of partial build, and I either get the error building the 
configs, or the error building the assemblies.

Rick


Ivan wrote:
> I found an interesting thing on my local machine, while I run mvn 
> install in the framework directory, an error below occured
>
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Assemblies :: Karaf Boilerplate Framework
> [INFO]    task-segment: [clean, install]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting file set: 
> D:\geronimo-all\osgisandbox\framework\configs\karaf-framework\target 
> (included: [**], excluded: [])
> [INFO] [genesis:validate-configuration {execution: default}]
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [antrun:run {execution: create-prop}]
> [INFO] Executing tasks
>   [taskdef] Could not load definitions from resource 
> net/sf/antcontrib/antcontrib.properties. It could not be found.
>      [echo] Maven version: 3.0-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: Problem: failed to create 
> task or type propertyregex
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken 
> place.
>
> But if I build karaf-framework individually, it is built successfully, 
> not sure whether it is caused by my local environment.
> Anthing question is about the default repository, I remembered that 
> David has opened a JIRA for the hard coded location for "system". But 
> in the latest code, it is changed back like 
> "System.getProperty(DEFAULT_REPO, "system");", so the configuration in 
> the config.properties is not read, so the karaf failed to start :-(
>
>
> 2009/10/13 Jarek Gawor <jgawor@gmail.com <ma...@gmail.com>>
>
>     Btw, I've been using Maven 2.0.10 to build the framework but I'm
>     getting better results with 2.2.1.
>
>     Jarek
>
>     On Mon, Oct 12, 2009 at 8:49 PM, Jarek Gawor <jgawor@gmail.com
>     <ma...@gmail.com>> wrote:
>     > Once I fixed my manifest problem I ran into this problem as
>     well. But
>     > somehow I bypassed it by building the config modules individually...
>     > Then I ran into the problem that Ivan reported. I think I just fixed
>     > that problem as well and got a little bit further.
>     >
>     > Jarek
>     >
>     > On Mon, Oct 12, 2009 at 3:11 PM, Rick McGuire <rickmcg@gmail.com
>     <ma...@gmail.com>> wrote:
>     >> Time to start a new thread, I think.  I'm getting further now.  The
>     >> framework builds, but I'm getting errors trying to build the
>     configs.  I get
>     >> an IOException attempting to build the J2EE System config (see
>     below).  The
>     >> file in question is
>     >>
>     >> java.io.IOException: Referenced file does not exist:
>     >> C:\jencks\g\framework\confi
>     >>
>     gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>     >> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>     >>
>     >> which actually does exist.  Strangely, this does not kill the
>     build, but it
>     >> then dies trying to build the rmi-naming config with a similar
>     error trying
>     >> to load the rmi-naming car file.  This one does kill the build.
>      Both
>     >> exceptions occur when starting the Felix framework, but I'm not
>     sure where
>     >> the reference to that file is coming from.  Any suggestions on
>     where I might
>     >> start debugging this problem?
>     >>
>     >> Rick
>     >>
>     >> [INFO] [car:update-pluginlist]
>     >> [INFO]
>     >>
>     ------------------------------------------------------------------------
>     >> [INFO] Building Geronimo Framework, Configs :: J2EE System
>     >> [INFO]    task-segment: [install]
>     >> [INFO]
>     >>
>     ------------------------------------------------------------------------
>     >> [INFO] [genesis:validate-configuration {execution: default}]
>     >> [INFO] [enforcer:enforce {execution: default}]
>     >> [INFO] [remote-resources:process {execution: default}]
>     >> [INFO] [resources:resources]
>     >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>     >> [INFO] Copying 1 resource
>     >> [INFO] skip non existing resourceDirectory
>     >> C:\jencks\g\framework\configs\j2ee-sy
>     >> stem\src\main\filtered-resources
>     >> [INFO] Copying 3 resources
>     >> [INFO] [car:validate-configuration]
>     >> [INFO] [car:prepare-plan]
>     >> [INFO] Generated:
>     >> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
>     >>
>     >> [INFO] [car:verify-no-dependency-change]
>     >> [INFO] [car:prepare-metadata]
>     >> [INFO] [car:package]
>     >> [INFO] Packaging module configuration:
>     >> C:\jencks\g\framework\configs\j2ee-system
>     >> \target\work\plan.xml
>     >> ERROR: Error creating archive. (java.io.IOException: Referenced
>     file does
>     >> not ex
>     >> ist:
>     >>
>     C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
>     >>
>     nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
>     >> java.io.IOException: Referenced file does not exist:
>     >> C:\jencks\g\framework\confi
>     >>
>     gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>     >> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>     >> tion(BundleArchive.java:994)
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>     >> ava:631)
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>     >> ava:206)
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>     >> java:149)
>     >>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>     >>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>     >>       at
>     >>
>     org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>     >> tractCarMojo.java:771)
>     >>       at
>     >>
>     org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
>     >> Mojo.java:360)
>     >>       at
>     >>
>     org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
>     >> Mojo.java:294)
>     >>       at
>     >>
>     org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
>     >> java:234)
>     >>       at
>     >>
>     org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>     >> nManager.java:453)
>     >>       at
>     >>
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>     >> ultLifecycleExecutor.java:559)
>     >>       at
>     >>
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>     >> fecycle(DefaultLifecycleExecutor.java:500)
>     >>       at
>     >>
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>     >> ltLifecycleExecutor.java:479)
>     >>       at
>     >>
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>     >> dleFailures(DefaultLifecycleExecutor.java:331)
>     >>       at
>     >>
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>     >> ts(DefaultLifecycleExecutor.java:292)
>     >>       at
>     >>
>     org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>     >> fecycleExecutor.java:142)
>     >>       at
>     org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>     >>       at
>     org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>     >>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>     >>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>     Method)
>     >>       at
>     >>
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>     >> java:39)
>     >>       at
>     >>
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>     >> sorImpl.java:25)
>     >>       at java.lang.reflect.Method.invoke(Method.java:597)
>     >>       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)
>     >> ERROR: Error starting
>     >> reference:file://c:\.m2\repository\org\apache\geronimo\fra
>     >>
>     mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
>     >> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException:
>     Activator
>     >> start er
>     >> ror in bundle
>     >> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
>     >> ].)
>     >> java.lang.NullPointerException: Specified service reference
>     cannot be null.
>     >>       at
>     >>
>     org.apache.felix.framework.BundleContextImpl.getService(BundleContext
>     >> Impl.java:320)
>     >>       at
>     >>
>     org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
>     >> ationActivator.java:46)
>     >>       at
>     >>
>     org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
>     >> ion.java:639)
>     >>       at
>     org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
>     >>       at
>     org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>     >>       at
>     >>
>     org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>     >>
>     >>       at
>     >>
>     org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
>     >> )
>     >>       at java.lang.Thread.run(Thread.java:619)
>     >> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references
>     are not using
>     >> proxi
>     >> es
>     >> [INFO] Started deployer:
>     >> org.apache.geronimo.framework/geronimo-gbean-deployer-b
>     >> ootstrap/3.0-SNAPSHOT/car
>     >> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest
>     Classpath
>     >> processing
>     >> mode is in effect.
>     >> This option can be altered by specifying
>     >> -DXorg.apache.geronimo.deployment.Lenie
>     >> ntMFCP=true|false
>     >> Specify ="true" for more lenient processing such as ignoring
>     missing jars
>     >> and re
>     >> ferences that are not spec compliant.
>     >> 13:37:40,781 INFO  [DependencyManager] found
>     geronimo-plugin.xml for bundle
>     >> org.
>     >> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
>     >> ar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.xbean/xbean-reflect/3.6/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [xpp3
>     >> /xpp3_min/1.1.4c/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
>     >> ar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
>     >> ar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
>     >> L]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [comm
>     >> ons-logging/commons-logging/1.0.3/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [juni
>     >> t/junit/4.5/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
>     >> HOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
>     >> HOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [java
>     >> x.xml.stream/stax-api/1.0-2/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [java
>     >> x.activation/activation/1.1/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [java
>     >> x.xml.bind/jaxb-api/2.1/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
>     >> L]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
>     >> HOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
>     >> T/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
>     >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>     DependencyType
>     >> [org.
>     >>
>     apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
>     >> jar:ALL]
>     >> [INFO] [car:archive-car]
>     >> [INFO] Building jar:
>     >> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
>     >> m-3.0-SNAPSHOT.car
>     >> [INFO] [ianal:verify-legal-files {execution: default}]
>     >> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
>     >> [INFO] [install:install]
>     >> [INFO] Installing
>     >> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
>     >> .0-SNAPSHOT.car to
>     >> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
>     >> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>     >> [INFO] Installing
>     >> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
>     >> A-INF\geronimo-plugin.xml to
>     >> c:\.m2\repository\org\apache\geronimo\framework\j2e
>     >> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
>     >> [INFO] [car:update-pluginlist]
>     >> [INFO]
>     >>
>     ------------------------------------------------------------------------
>     >> [INFO] Building Geronimo Framework, Configs :: RMI Naming
>     >> [INFO]    task-segment: [install]
>     >> [INFO]
>     >>
>     ------------------------------------------------------------------------
>     >> [INFO] [genesis:validate-configuration {execution: default}]
>     >> [INFO] [enforcer:enforce {execution: default}]
>     >> [INFO] [remote-resources:process {execution: default}]
>     >> [INFO] [resources:resources]
>     >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>     >> [INFO] skip non existing resourceDirectory
>     >> C:\jencks\g\framework\configs\rmi-nam
>     >> ing\src\main\resources
>     >> [INFO] skip non existing resourceDirectory
>     >> C:\jencks\g\framework\configs\rmi-nam
>     >> ing\src\main\filtered-resources
>     >> [INFO] Copying 3 resources
>     >> [INFO] [car:validate-configuration]
>     >> [INFO] [car:prepare-plan]
>     >> [INFO] Generated:
>     >> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
>     >> [INFO] [car:verify-no-dependency-change]
>     >> [INFO] [car:prepare-metadata]
>     >> [INFO] [car:package]
>     >> [INFO] Packaging module configuration:
>     >> C:\jencks\g\framework\configs\rmi-naming\
>     >> target\work\plan.xml
>     >> ERROR: Error creating archive. (java.io.IOException: Referenced
>     file does
>     >> not ex
>     >> ist:
>     >>
>     C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
>     >> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
>     >> java.io.IOException: Referenced file does not exist:
>     >> C:\jencks\g\framework\confi
>     >>
>     gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
>     >> PSHOT\rmi-naming-3.0-SNAPSHOT.car
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>     >> tion(BundleArchive.java:994)
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>     >> ava:631)
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>     >> ava:206)
>     >>       at
>     >>
>     org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>     >> java:149)
>     >>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>     >>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>     >>       at
>     >>
>     org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>     >> tractCarMojo.java:771)
>     >>
>     >
>
>
>
>
> -- 
> Ivan


Re: More OSGi progress

Posted by Jarek Gawor <jg...@gmail.com>.
Ivan,

That build problem disappeared for me once I upgraded to Maven 2.2.1.

For the Karaf system dir issue, I just created a "system" soft link to
the repository dir. And with that I was able to start the framework
assembly. With some tweaks to startup.properties file I fixed some
osgi resolution problems but then I got stuck on some Geronimo
specific error trying to load some parent car module.

Jarek

On Tue, Oct 13, 2009 at 5:45 AM, Ivan <xh...@gmail.com> wrote:
> I found an interesting thing on my local machine, while I run mvn install in
> the framework directory, an error below occured
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Assemblies :: Karaf Boilerplate Framework
> [INFO]    task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting file set:
> D:\geronimo-all\osgisandbox\framework\configs\karaf-framework\target
> (included: [**], excluded: [])
> [INFO] [genesis:validate-configuration {execution: default}]
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [antrun:run {execution: create-prop}]
> [INFO] Executing tasks
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antcontrib.properties. It could not be found.
>      [echo] Maven version: 3.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: Problem: failed to create task or
> type propertyregex
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken place.
>
> But if I build karaf-framework individually, it is built successfully, not
> sure whether it is caused by my local environment.
> Anthing question is about the default repository, I remembered that David
> has opened a JIRA for the hard coded location for "system". But in the
> latest code, it is changed back like "System.getProperty(DEFAULT_REPO,
> "system");", so the configuration in the config.properties is not read, so
> the karaf failed to start :-(
>
>
> 2009/10/13 Jarek Gawor <jg...@gmail.com>
>>
>> Btw, I've been using Maven 2.0.10 to build the framework but I'm
>> getting better results with 2.2.1.
>>
>> Jarek
>>
>> On Mon, Oct 12, 2009 at 8:49 PM, Jarek Gawor <jg...@gmail.com> wrote:
>> > Once I fixed my manifest problem I ran into this problem as well. But
>> > somehow I bypassed it by building the config modules individually...
>> > Then I ran into the problem that Ivan reported. I think I just fixed
>> > that problem as well and got a little bit further.
>> >
>> > Jarek
>> >
>> > On Mon, Oct 12, 2009 at 3:11 PM, Rick McGuire <ri...@gmail.com> wrote:
>> >> Time to start a new thread, I think.  I'm getting further now.  The
>> >> framework builds, but I'm getting errors trying to build the configs.
>> >>  I get
>> >> an IOException attempting to build the J2EE System config (see below).
>> >>  The
>> >> file in question is
>> >>
>> >> java.io.IOException: Referenced file does not exist:
>> >> C:\jencks\g\framework\confi
>> >>
>> >> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>> >> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>> >>
>> >> which actually does exist.  Strangely, this does not kill the build,
>> >> but it
>> >> then dies trying to build the rmi-naming config with a similar error
>> >> trying
>> >> to load the rmi-naming car file.  This one does kill the build.  Both
>> >> exceptions occur when starting the Felix framework, but I'm not sure
>> >> where
>> >> the reference to that file is coming from.  Any suggestions on where I
>> >> might
>> >> start debugging this problem?
>> >>
>> >> Rick
>> >>
>> >> [INFO] [car:update-pluginlist]
>> >> [INFO]
>> >>
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building Geronimo Framework, Configs :: J2EE System
>> >> [INFO]    task-segment: [install]
>> >> [INFO]
>> >>
>> >> ------------------------------------------------------------------------
>> >> [INFO] [genesis:validate-configuration {execution: default}]
>> >> [INFO] [enforcer:enforce {execution: default}]
>> >> [INFO] [remote-resources:process {execution: default}]
>> >> [INFO] [resources:resources]
>> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> >> [INFO] Copying 1 resource
>> >> [INFO] skip non existing resourceDirectory
>> >> C:\jencks\g\framework\configs\j2ee-sy
>> >> stem\src\main\filtered-resources
>> >> [INFO] Copying 3 resources
>> >> [INFO] [car:validate-configuration]
>> >> [INFO] [car:prepare-plan]
>> >> [INFO] Generated:
>> >> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
>> >>
>> >> [INFO] [car:verify-no-dependency-change]
>> >> [INFO] [car:prepare-metadata]
>> >> [INFO] [car:package]
>> >> [INFO] Packaging module configuration:
>> >> C:\jencks\g\framework\configs\j2ee-system
>> >> \target\work\plan.xml
>> >> ERROR: Error creating archive. (java.io.IOException: Referenced file
>> >> does
>> >> not ex
>> >> ist:
>> >>
>> >> C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
>> >> nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
>> >> java.io.IOException: Referenced file does not exist:
>> >> C:\jencks\g\framework\confi
>> >>
>> >> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>> >> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>> >>       at
>> >> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>> >> tion(BundleArchive.java:994)
>> >>       at
>> >> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>> >> ava:631)
>> >>       at
>> >> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>> >> ava:206)
>> >>       at
>> >> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>> >> java:149)
>> >>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>> >>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>> >>       at
>> >> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>> >> tractCarMojo.java:771)
>> >>       at
>> >> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
>> >> Mojo.java:360)
>> >>       at
>> >> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
>> >> Mojo.java:294)
>> >>       at
>> >> org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
>> >> java:234)
>> >>       at
>> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> >> nManager.java:453)
>> >>       at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> >> ultLifecycleExecutor.java:559)
>> >>       at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> >> fecycle(DefaultLifecycleExecutor.java:500)
>> >>       at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> >> ltLifecycleExecutor.java:479)
>> >>       at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> >> dleFailures(DefaultLifecycleExecutor.java:331)
>> >>       at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> >> ts(DefaultLifecycleExecutor.java:292)
>> >>       at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> >> fecycleExecutor.java:142)
>> >>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> >>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> >>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>> >>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >>       at
>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> >> java:39)
>> >>       at
>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> >> sorImpl.java:25)
>> >>       at java.lang.reflect.Method.invoke(Method.java:597)
>> >>       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)
>> >> ERROR: Error starting
>> >> reference:file://c:\.m2\repository\org\apache\geronimo\fra
>> >>
>> >> mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
>> >> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator
>> >> start er
>> >> ror in bundle
>> >> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
>> >> ].)
>> >> java.lang.NullPointerException: Specified service reference cannot be
>> >> null.
>> >>       at
>> >> org.apache.felix.framework.BundleContextImpl.getService(BundleContext
>> >> Impl.java:320)
>> >>       at
>> >> org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
>> >> ationActivator.java:46)
>> >>       at
>> >> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
>> >> ion.java:639)
>> >>       at
>> >> org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
>> >>       at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>> >>       at
>> >> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>> >>
>> >>       at
>> >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
>> >> )
>> >>       at java.lang.Thread.run(Thread.java:619)
>> >> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not
>> >> using
>> >> proxi
>> >> es
>> >> [INFO] Started deployer:
>> >> org.apache.geronimo.framework/geronimo-gbean-deployer-b
>> >> ootstrap/3.0-SNAPSHOT/car
>> >> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath
>> >> processing
>> >> mode is in effect.
>> >> This option can be altered by specifying
>> >> -DXorg.apache.geronimo.deployment.Lenie
>> >> ntMFCP=true|false
>> >> Specify ="true" for more lenient processing such as ignoring missing
>> >> jars
>> >> and re
>> >> ferences that are not spec compliant.
>> >> 13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for
>> >> bundle
>> >> org.
>> >> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
>> >> ar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.xbean/xbean-reflect/3.6/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [xpp3
>> >> /xpp3_min/1.1.4c/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
>> >> ar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
>> >> ar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
>> >> L]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [comm
>> >> ons-logging/commons-logging/1.0.3/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [juni
>> >> t/junit/4.5/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
>> >> HOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
>> >> HOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [java
>> >> x.xml.stream/stax-api/1.0-2/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [java
>> >> x.activation/activation/1.1/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [java
>> >> x.xml.bind/jaxb-api/2.1/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
>> >> L]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
>> >> HOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
>> >> T/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
>> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
>> >> DependencyType
>> >> [org.
>> >>
>> >> apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
>> >> jar:ALL]
>> >> [INFO] [car:archive-car]
>> >> [INFO] Building jar:
>> >> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
>> >> m-3.0-SNAPSHOT.car
>> >> [INFO] [ianal:verify-legal-files {execution: default}]
>> >> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
>> >> [INFO] [install:install]
>> >> [INFO] Installing
>> >> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
>> >> .0-SNAPSHOT.car to
>> >> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
>> >> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>> >> [INFO] Installing
>> >> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
>> >> A-INF\geronimo-plugin.xml to
>> >> c:\.m2\repository\org\apache\geronimo\framework\j2e
>> >> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
>> >> [INFO] [car:update-pluginlist]
>> >> [INFO]
>> >>
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building Geronimo Framework, Configs :: RMI Naming
>> >> [INFO]    task-segment: [install]
>> >> [INFO]
>> >>
>> >> ------------------------------------------------------------------------
>> >> [INFO] [genesis:validate-configuration {execution: default}]
>> >> [INFO] [enforcer:enforce {execution: default}]
>> >> [INFO] [remote-resources:process {execution: default}]
>> >> [INFO] [resources:resources]
>> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> >> [INFO] skip non existing resourceDirectory
>> >> C:\jencks\g\framework\configs\rmi-nam
>> >> ing\src\main\resources
>> >> [INFO] skip non existing resourceDirectory
>> >> C:\jencks\g\framework\configs\rmi-nam
>> >> ing\src\main\filtered-resources
>> >> [INFO] Copying 3 resources
>> >> [INFO] [car:validate-configuration]
>> >> [INFO] [car:prepare-plan]
>> >> [INFO] Generated:
>> >> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
>> >> [INFO] [car:verify-no-dependency-change]
>> >> [INFO] [car:prepare-metadata]
>> >> [INFO] [car:package]
>> >> [INFO] Packaging module configuration:
>> >> C:\jencks\g\framework\configs\rmi-naming\
>> >> target\work\plan.xml
>> >> ERROR: Error creating archive. (java.io.IOException: Referenced file
>> >> does
>> >> not ex
>> >> ist:
>> >>
>> >> C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
>> >> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
>> >> java.io.IOException: Referenced file does not exist:
>> >> C:\jencks\g\framework\confi
>> >>
>> >> gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
>> >> PSHOT\rmi-naming-3.0-SNAPSHOT.car
>> >>       at
>> >> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>> >> tion(BundleArchive.java:994)
>> >>       at
>> >> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>> >> ava:631)
>> >>       at
>> >> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>> >> ava:206)
>> >>       at
>> >> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>> >> java:149)
>> >>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>> >>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>> >>       at
>> >> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>> >> tractCarMojo.java:771)
>> >>
>> >
>
>
>
> --
> Ivan
>

Re: More OSGi progress

Posted by Ivan <xh...@gmail.com>.
I found an interesting thing on my local machine, while I run mvn install in
the framework directory, an error below occured

[INFO]
------------------------------------------------------------------------
[INFO] Building Geronimo Assemblies :: Karaf Boilerplate Framework
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting file set:
D:\geronimo-all\osgisandbox\framework\configs\karaf-framework\target
(included: [**], excluded: [])
[INFO] [genesis:validate-configuration {execution: default}]
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [antrun:run {execution: create-prop}]
[INFO] Executing tasks
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antcontrib.properties. It could not be found.
     [echo] Maven version: 3.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Problem: failed to create task or
type propertyregex
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

But if I build karaf-framework individually, it is built successfully, not
sure whether it is caused by my local environment.
Anthing question is about the default repository, I remembered that David
has opened a JIRA for the hard coded location for "system". But in the
latest code, it is changed back like "System.getProperty(DEFAULT_REPO,
"system");", so the configuration in the config.properties is not read, so
the karaf failed to start :-(


2009/10/13 Jarek Gawor <jg...@gmail.com>

> Btw, I've been using Maven 2.0.10 to build the framework but I'm
> getting better results with 2.2.1.
>
> Jarek
>
> On Mon, Oct 12, 2009 at 8:49 PM, Jarek Gawor <jg...@gmail.com> wrote:
> > Once I fixed my manifest problem I ran into this problem as well. But
> > somehow I bypassed it by building the config modules individually...
> > Then I ran into the problem that Ivan reported. I think I just fixed
> > that problem as well and got a little bit further.
> >
> > Jarek
> >
> > On Mon, Oct 12, 2009 at 3:11 PM, Rick McGuire <ri...@gmail.com> wrote:
> >> Time to start a new thread, I think.  I'm getting further now.  The
> >> framework builds, but I'm getting errors trying to build the configs.  I
> get
> >> an IOException attempting to build the J2EE System config (see below).
>  The
> >> file in question is
> >>
> >> java.io.IOException: Referenced file does not exist:
> >> C:\jencks\g\framework\confi
> >>
> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
> >> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
> >>
> >> which actually does exist.  Strangely, this does not kill the build, but
> it
> >> then dies trying to build the rmi-naming config with a similar error
> trying
> >> to load the rmi-naming car file.  This one does kill the build.  Both
> >> exceptions occur when starting the Felix framework, but I'm not sure
> where
> >> the reference to that file is coming from.  Any suggestions on where I
> might
> >> start debugging this problem?
> >>
> >> Rick
> >>
> >> [INFO] [car:update-pluginlist]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building Geronimo Framework, Configs :: J2EE System
> >> [INFO]    task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [genesis:validate-configuration {execution: default}]
> >> [INFO] [enforcer:enforce {execution: default}]
> >> [INFO] [remote-resources:process {execution: default}]
> >> [INFO] [resources:resources]
> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] Copying 1 resource
> >> [INFO] skip non existing resourceDirectory
> >> C:\jencks\g\framework\configs\j2ee-sy
> >> stem\src\main\filtered-resources
> >> [INFO] Copying 3 resources
> >> [INFO] [car:validate-configuration]
> >> [INFO] [car:prepare-plan]
> >> [INFO] Generated:
> >> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
> >>
> >> [INFO] [car:verify-no-dependency-change]
> >> [INFO] [car:prepare-metadata]
> >> [INFO] [car:package]
> >> [INFO] Packaging module configuration:
> >> C:\jencks\g\framework\configs\j2ee-system
> >> \target\work\plan.xml
> >> ERROR: Error creating archive. (java.io.IOException: Referenced file
> does
> >> not ex
> >> ist:
> >>
> C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
> >> nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
> >> java.io.IOException: Referenced file does not exist:
> >> C:\jencks\g\framework\confi
> >>
> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
> >> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
> >>       at
> >> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
> >> tion(BundleArchive.java:994)
> >>       at
> >> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
> >> ava:631)
> >>       at
> >> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
> >> ava:206)
> >>       at
> >> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
> >> java:149)
> >>       at org.apache.felix.framework.Felix.init(Felix.java:558)
> >>       at org.apache.felix.framework.Felix.start(Felix.java:683)
> >>       at
> >> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
> >> tractCarMojo.java:771)
> >>       at
> >> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
> >> Mojo.java:360)
> >>       at
> >> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
> >> Mojo.java:294)
> >>       at
> >> org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
> >> java:234)
> >>       at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> >> nManager.java:453)
> >>       at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> >> ultLifecycleExecutor.java:559)
> >>       at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> >> fecycle(DefaultLifecycleExecutor.java:500)
> >>       at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> >> ltLifecycleExecutor.java:479)
> >>       at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> >> dleFailures(DefaultLifecycleExecutor.java:331)
> >>       at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> >> ts(DefaultLifecycleExecutor.java:292)
> >>       at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> >> fecycleExecutor.java:142)
> >>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> >>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
> >>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>       at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> >> java:39)
> >>       at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >> sorImpl.java:25)
> >>       at java.lang.reflect.Method.invoke(Method.java:597)
> >>       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)
> >> ERROR: Error starting
> >> reference:file://c:\.m2\repository\org\apache\geronimo\fra
> >>
> mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
> >> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator
> >> start er
> >> ror in bundle
> >> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
> >> ].)
> >> java.lang.NullPointerException: Specified service reference cannot be
> null.
> >>       at
> >> org.apache.felix.framework.BundleContextImpl.getService(BundleContext
> >> Impl.java:320)
> >>       at
> >> org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
> >> ationActivator.java:46)
> >>       at
> >> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
> >> ion.java:639)
> >>       at
> org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
> >>       at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
> >>       at
> >> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
> >>
> >>       at
> >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
> >> )
> >>       at java.lang.Thread.run(Thread.java:619)
> >> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not
> using
> >> proxi
> >> es
> >> [INFO] Started deployer:
> >> org.apache.geronimo.framework/geronimo-gbean-deployer-b
> >> ootstrap/3.0-SNAPSHOT/car
> >> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath
> >> processing
> >> mode is in effect.
> >> This option can be altered by specifying
> >> -DXorg.apache.geronimo.deployment.Lenie
> >> ntMFCP=true|false
> >> Specify ="true" for more lenient processing such as ignoring missing
> jars
> >> and re
> >> ferences that are not spec compliant.
> >> 13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for
> bundle
> >> org.
> >> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
> >> ar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.xbean/xbean-reflect/3.6/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [xpp3
> >> /xpp3_min/1.1.4c/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
> >> ar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
> >> ar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
> >> L]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [comm
> >> ons-logging/commons-logging/1.0.3/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [juni
> >> t/junit/4.5/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
> >> HOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
> >> HOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [java
> >> x.xml.stream/stax-api/1.0-2/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [java
> >> x.activation/activation/1.1/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [java
> >> x.xml.bind/jaxb-api/2.1/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
> >> L]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
> >> HOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
> >> T/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
> >> 13:37:40,781 INFO  [DependencyManager] installing artifact:
> DependencyType
> >> [org.
> >>
> apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
> >> jar:ALL]
> >> [INFO] [car:archive-car]
> >> [INFO] Building jar:
> >> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
> >> m-3.0-SNAPSHOT.car
> >> [INFO] [ianal:verify-legal-files {execution: default}]
> >> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
> >> [INFO] [install:install]
> >> [INFO] Installing
> >> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
> >> .0-SNAPSHOT.car to
> >> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
> >> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
> >> [INFO] Installing
> >> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
> >> A-INF\geronimo-plugin.xml to
> >> c:\.m2\repository\org\apache\geronimo\framework\j2e
> >> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
> >> [INFO] [car:update-pluginlist]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building Geronimo Framework, Configs :: RMI Naming
> >> [INFO]    task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [genesis:validate-configuration {execution: default}]
> >> [INFO] [enforcer:enforce {execution: default}]
> >> [INFO] [remote-resources:process {execution: default}]
> >> [INFO] [resources:resources]
> >> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] skip non existing resourceDirectory
> >> C:\jencks\g\framework\configs\rmi-nam
> >> ing\src\main\resources
> >> [INFO] skip non existing resourceDirectory
> >> C:\jencks\g\framework\configs\rmi-nam
> >> ing\src\main\filtered-resources
> >> [INFO] Copying 3 resources
> >> [INFO] [car:validate-configuration]
> >> [INFO] [car:prepare-plan]
> >> [INFO] Generated:
> >> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
> >> [INFO] [car:verify-no-dependency-change]
> >> [INFO] [car:prepare-metadata]
> >> [INFO] [car:package]
> >> [INFO] Packaging module configuration:
> >> C:\jencks\g\framework\configs\rmi-naming\
> >> target\work\plan.xml
> >> ERROR: Error creating archive. (java.io.IOException: Referenced file
> does
> >> not ex
> >> ist:
> >>
> C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
> >> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
> >> java.io.IOException: Referenced file does not exist:
> >> C:\jencks\g\framework\confi
> >>
> gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
> >> PSHOT\rmi-naming-3.0-SNAPSHOT.car
> >>       at
> >> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
> >> tion(BundleArchive.java:994)
> >>       at
> >> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
> >> ava:631)
> >>       at
> >> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
> >> ava:206)
> >>       at
> >> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
> >> java:149)
> >>       at org.apache.felix.framework.Felix.init(Felix.java:558)
> >>       at org.apache.felix.framework.Felix.start(Felix.java:683)
> >>       at
> >> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
> >> tractCarMojo.java:771)
> >>
> >
>



-- 
Ivan

Re: More OSGi progress

Posted by Jarek Gawor <jg...@gmail.com>.
Btw, I've been using Maven 2.0.10 to build the framework but I'm
getting better results with 2.2.1.

Jarek

On Mon, Oct 12, 2009 at 8:49 PM, Jarek Gawor <jg...@gmail.com> wrote:
> Once I fixed my manifest problem I ran into this problem as well. But
> somehow I bypassed it by building the config modules individually...
> Then I ran into the problem that Ivan reported. I think I just fixed
> that problem as well and got a little bit further.
>
> Jarek
>
> On Mon, Oct 12, 2009 at 3:11 PM, Rick McGuire <ri...@gmail.com> wrote:
>> Time to start a new thread, I think.  I'm getting further now.  The
>> framework builds, but I'm getting errors trying to build the configs.  I get
>> an IOException attempting to build the J2EE System config (see below).  The
>> file in question is
>>
>> java.io.IOException: Referenced file does not exist:
>> C:\jencks\g\framework\confi
>> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>>
>> which actually does exist.  Strangely, this does not kill the build, but it
>> then dies trying to build the rmi-naming config with a similar error trying
>> to load the rmi-naming car file.  This one does kill the build.  Both
>> exceptions occur when starting the Felix framework, but I'm not sure where
>> the reference to that file is coming from.  Any suggestions on where I might
>> start debugging this problem?
>>
>> Rick
>>
>> [INFO] [car:update-pluginlist]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Geronimo Framework, Configs :: J2EE System
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [genesis:validate-configuration {execution: default}]
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 1 resource
>> [INFO] skip non existing resourceDirectory
>> C:\jencks\g\framework\configs\j2ee-sy
>> stem\src\main\filtered-resources
>> [INFO] Copying 3 resources
>> [INFO] [car:validate-configuration]
>> [INFO] [car:prepare-plan]
>> [INFO] Generated:
>> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
>>
>> [INFO] [car:verify-no-dependency-change]
>> [INFO] [car:prepare-metadata]
>> [INFO] [car:package]
>> [INFO] Packaging module configuration:
>> C:\jencks\g\framework\configs\j2ee-system
>> \target\work\plan.xml
>> ERROR: Error creating archive. (java.io.IOException: Referenced file does
>> not ex
>> ist:
>> C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
>> nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
>> java.io.IOException: Referenced file does not exist:
>> C:\jencks\g\framework\confi
>> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
>> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>>       at
>> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>> tion(BundleArchive.java:994)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>> ava:631)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>> ava:206)
>>       at
>> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>> java:149)
>>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>>       at
>> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>> tractCarMojo.java:771)
>>       at
>> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
>> Mojo.java:360)
>>       at
>> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
>> Mojo.java:294)
>>       at
>> org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
>> java:234)
>>       at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> nManager.java:453)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:559)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:500)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:479)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:331)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:292)
>>       at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:142)
>>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>       at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>       at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>       at java.lang.reflect.Method.invoke(Method.java:597)
>>       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)
>> ERROR: Error starting
>> reference:file://c:\.m2\repository\org\apache\geronimo\fra
>> mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
>> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator
>> start er
>> ror in bundle
>> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
>> ].)
>> java.lang.NullPointerException: Specified service reference cannot be null.
>>       at
>> org.apache.felix.framework.BundleContextImpl.getService(BundleContext
>> Impl.java:320)
>>       at
>> org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
>> ationActivator.java:46)
>>       at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
>> ion.java:639)
>>       at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
>>       at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>>       at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>>
>>       at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
>> )
>>       at java.lang.Thread.run(Thread.java:619)
>> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not using
>> proxi
>> es
>> [INFO] Started deployer:
>> org.apache.geronimo.framework/geronimo-gbean-deployer-b
>> ootstrap/3.0-SNAPSHOT/car
>> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath
>> processing
>> mode is in effect.
>> This option can be altered by specifying
>> -DXorg.apache.geronimo.deployment.Lenie
>> ntMFCP=true|false
>> Specify ="true" for more lenient processing such as ignoring missing jars
>> and re
>> ferences that are not spec compliant.
>> 13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for bundle
>> org.
>> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
>> ar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.xbean/xbean-reflect/3.6/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [xpp3
>> /xpp3_min/1.1.4c/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
>> ar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
>> ar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
>> L]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [comm
>> ons-logging/commons-logging/1.0.3/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [juni
>> t/junit/4.5/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
>> HOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
>> HOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [java
>> x.xml.stream/stax-api/1.0-2/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [java
>> x.activation/activation/1.1/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [java
>> x.xml.bind/jaxb-api/2.1/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
>> L]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
>> HOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
>> T/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
>> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
>> [org.
>> apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
>> jar:ALL]
>> [INFO] [car:archive-car]
>> [INFO] Building jar:
>> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
>> m-3.0-SNAPSHOT.car
>> [INFO] [ianal:verify-legal-files {execution: default}]
>> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
>> [INFO] [install:install]
>> [INFO] Installing
>> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
>> .0-SNAPSHOT.car to
>> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
>> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>> [INFO] Installing
>> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
>> A-INF\geronimo-plugin.xml to
>> c:\.m2\repository\org\apache\geronimo\framework\j2e
>> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
>> [INFO] [car:update-pluginlist]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Geronimo Framework, Configs :: RMI Naming
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [genesis:validate-configuration {execution: default}]
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory
>> C:\jencks\g\framework\configs\rmi-nam
>> ing\src\main\resources
>> [INFO] skip non existing resourceDirectory
>> C:\jencks\g\framework\configs\rmi-nam
>> ing\src\main\filtered-resources
>> [INFO] Copying 3 resources
>> [INFO] [car:validate-configuration]
>> [INFO] [car:prepare-plan]
>> [INFO] Generated:
>> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
>> [INFO] [car:verify-no-dependency-change]
>> [INFO] [car:prepare-metadata]
>> [INFO] [car:package]
>> [INFO] Packaging module configuration:
>> C:\jencks\g\framework\configs\rmi-naming\
>> target\work\plan.xml
>> ERROR: Error creating archive. (java.io.IOException: Referenced file does
>> not ex
>> ist:
>> C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
>> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
>> java.io.IOException: Referenced file does not exist:
>> C:\jencks\g\framework\confi
>> gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
>> PSHOT\rmi-naming-3.0-SNAPSHOT.car
>>       at
>> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
>> tion(BundleArchive.java:994)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
>> ava:631)
>>       at
>> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
>> ava:206)
>>       at
>> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
>> java:149)
>>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>>       at
>> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
>> tractCarMojo.java:771)
>>
>

Re: More OSGi progress

Posted by Jarek Gawor <jg...@gmail.com>.
Once I fixed my manifest problem I ran into this problem as well. But
somehow I bypassed it by building the config modules individually...
Then I ran into the problem that Ivan reported. I think I just fixed
that problem as well and got a little bit further.

Jarek

On Mon, Oct 12, 2009 at 3:11 PM, Rick McGuire <ri...@gmail.com> wrote:
> Time to start a new thread, I think.  I'm getting further now.  The
> framework builds, but I'm getting errors trying to build the configs.  I get
> an IOException attempting to build the J2EE System config (see below).  The
> file in question is
>
> java.io.IOException: Referenced file does not exist:
> C:\jencks\g\framework\confi
> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>
> which actually does exist.  Strangely, this does not kill the build, but it
> then dies trying to build the rmi-naming config with a similar error trying
> to load the rmi-naming car file.  This one does kill the build.  Both
> exceptions occur when starting the Felix framework, but I'm not sure where
> the reference to that file is coming from.  Any suggestions on where I might
> start debugging this problem?
>
> Rick
>
> [INFO] [car:update-pluginlist]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Framework, Configs :: J2EE System
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [genesis:validate-configuration {execution: default}]
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] skip non existing resourceDirectory
> C:\jencks\g\framework\configs\j2ee-sy
> stem\src\main\filtered-resources
> [INFO] Copying 3 resources
> [INFO] [car:validate-configuration]
> [INFO] [car:prepare-plan]
> [INFO] Generated:
> C:\jencks\g\framework\configs\j2ee-system\target\work\plan.xml
>
> [INFO] [car:verify-no-dependency-change]
> [INFO] [car:prepare-metadata]
> [INFO] [car:package]
> [INFO] Packaging module configuration:
> C:\jencks\g\framework\configs\j2ee-system
> \target\work\plan.xml
> ERROR: Error creating archive. (java.io.IOException: Referenced file does
> not ex
> ist:
> C:\jencks\g\framework\configs\j2ee-system\target\repository\org\apache\gero
> nimo\framework\j2ee-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car)
> java.io.IOException: Referenced file does not exist:
> C:\jencks\g\framework\confi
> gs\j2ee-system\target\repository\org\apache\geronimo\framework\j2ee-system\3.0-S
> NAPSHOT\j2ee-system-3.0-SNAPSHOT.car
>       at
> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
> tion(BundleArchive.java:994)
>       at
> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
> ava:631)
>       at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
> ava:206)
>       at
> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
> java:149)
>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>       at
> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
> tractCarMojo.java:771)
>       at
> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(Package
> Mojo.java:360)
>       at
> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
> Mojo.java:294)
>       at
> org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
> java:234)
>       at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:453)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:559)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:500)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:479)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:331)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:292)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:142)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       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)
> ERROR: Error starting
> reference:file://c:\.m2\repository\org\apache\geronimo\fra
> mework\geronimo-gbean-deployer-bootstrap\3.0-SNAPSHOT\geronimo-gbean-deployer-bo
> otstrap-3.0-SNAPSHOT.car (org.osgi.framework.BundleException: Activator
> start er
> ror in bundle
> org.apache.geronimo.framework.geronimo-gbean-deployer-bootstrap [1
> ].)
> java.lang.NullPointerException: Specified service reference cannot be null.
>       at
> org.apache.felix.framework.BundleContextImpl.getService(BundleContext
> Impl.java:320)
>       at
> org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(Configur
> ationActivator.java:46)
>       at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
> ion.java:639)
>       at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
>       at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>       at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>
>       at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264
> )
>       at java.lang.Thread.run(Thread.java:619)
> 13:37:40,171 INFO  [AbstractGBeanReference] GBean references are not using
> proxi
> es
> [INFO] Started deployer:
> org.apache.geronimo.framework/geronimo-gbean-deployer-b
> ootstrap/3.0-SNAPSHOT/car
> 13:37:40,734 INFO  [DeploymentContext] The Strict Manifest Classpath
> processing
> mode is in effect.
> This option can be altered by specifying
> -DXorg.apache.geronimo.deployment.Lenie
> ntMFCP=true|false
> Specify ="true" for more lenient processing such as ignoring missing jars
> and re
> ferences that are not spec compliant.
> 13:37:40,781 INFO  [DependencyManager] found geronimo-plugin.xml for bundle
> org.
> apache.geronimo.framework.j2ee-system-DEPLOYMENT [45]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.felix/org.osgi.core/1.5.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/slf4j/1.5.5_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-logging/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/asm/3.1_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/asm-commons/3.1_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/2.1_3_3-SNAPSHOT/j
> ar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.xbean/xbean-reflect/3.6/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [xpp3
> /xpp3_min/1.1.4c/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_2-SNAPSHOT/j
> ar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_2-SNAPSHOT/j
> ar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-crypto/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-kernel/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-common/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> codehaus.groovy/groovy-all-minimal/1.5.6/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-config-groovy-transformer/3.0-SNAPSHOT/jar:AL
> L]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/commons-cli/1.0_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-cli/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [comm
> ons-logging/commons-logging/1.0.3/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [juni
> t/junit/4.5/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-jexl/1.1_2-SNAPS
> HOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPS
> HOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.3.0/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.specs/geronimo-activation_1.1_spec/1.0.2/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.2.0/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [java
> x.xml.stream/stax-api/1.0-2/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [java
> x.activation/activation/1.1/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [java
> x.xml.bind/jaxb-api/2.1/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1/jar:AL
> L]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.4-SNAPS
> HOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1-SNAPSHO
> T/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-system/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.framework/geronimo-transformer/3.0-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/sxc-jaxb/0.7.2_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.geronimo.bundles/sxc-runtime/0.7.2_1-SNAPSHOT/jar:ALL]
> 13:37:40,781 INFO  [DependencyManager] installing artifact: DependencyType
> [org.
> apache.servicemix.bundles/org.apache.servicemix.bundles.jline/0.9.94_2-SNAPSHOT/
> jar:ALL]
> [INFO] [car:archive-car]
> [INFO] Building jar:
> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-syste
> m-3.0-SNAPSHOT.car
> [INFO] [ianal:verify-legal-files {execution: default}]
> [INFO] Checking legal files in: j2ee-system-3.0-SNAPSHOT.car
> [INFO] [install:install]
> [INFO] Installing
> C:\jencks\g\framework\configs\j2ee-system\target\j2ee-system-3
> .0-SNAPSHOT.car to
> c:\.m2\repository\org\apache\geronimo\framework\j2ee-system\3
> .0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.car
> [INFO] Installing
> C:\jencks\g\framework\configs\j2ee-system\target\resources\MET
> A-INF\geronimo-plugin.xml to
> c:\.m2\repository\org\apache\geronimo\framework\j2e
> e-system\3.0-SNAPSHOT\j2ee-system-3.0-SNAPSHOT.plugin-metadata
> [INFO] [car:update-pluginlist]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Framework, Configs :: RMI Naming
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [genesis:validate-configuration {execution: default}]
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> C:\jencks\g\framework\configs\rmi-nam
> ing\src\main\resources
> [INFO] skip non existing resourceDirectory
> C:\jencks\g\framework\configs\rmi-nam
> ing\src\main\filtered-resources
> [INFO] Copying 3 resources
> [INFO] [car:validate-configuration]
> [INFO] [car:prepare-plan]
> [INFO] Generated:
> C:\jencks\g\framework\configs\rmi-naming\target\work\plan.xml
> [INFO] [car:verify-no-dependency-change]
> [INFO] [car:prepare-metadata]
> [INFO] [car:package]
> [INFO] Packaging module configuration:
> C:\jencks\g\framework\configs\rmi-naming\
> target\work\plan.xml
> ERROR: Error creating archive. (java.io.IOException: Referenced file does
> not ex
> ist:
> C:\jencks\g\framework\configs\rmi-naming\target\repository\org\apache\geron
> imo\framework\rmi-naming\3.0-SNAPSHOT\rmi-naming-3.0-SNAPSHOT.car)
> java.io.IOException: Referenced file does not exist:
> C:\jencks\g\framework\confi
> gs\rmi-naming\target\repository\org\apache\geronimo\framework\rmi-naming\3.0-SNA
> PSHOT\rmi-naming-3.0-SNAPSHOT.car
>       at
> org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
> tion(BundleArchive.java:994)
>       at
> org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
> ava:631)
>       at
> org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
> ava:206)
>       at
> org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.
> java:149)
>       at org.apache.felix.framework.Felix.init(Felix.java:558)
>       at org.apache.felix.framework.Felix.start(Felix.java:683)
>       at
> org.apache.geronimo.mavenplugins.car.AbstractCarMojo.getFramework(Abs
> tractCarMojo.java:771)
>