geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: More OSGi progress
Date Tue, 13 Oct 2009 09:45:40 GMT
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>

> 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> 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> 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

Mime
View raw message