Hi,

thank you for your prompt answer! I am working through your book enterprise osgi in action so I have a competent partner here :)

With original (not changed by me) samples-1.0.0 installed I got a BundleException trying to run the example of part 3.2.3 in your book. (That was the cause, that I tried to exchange geronimo-transaction with a newer version and geronimo-j2ee-connector). I hope you can help me to resolve this problem?

Thank you!

Christian

org.osgi.framework.BundleException: The bundle "org.apache.geronimo.components.geronimo-transaction_2.1.3 [58]" could not be resolved. Reason: Package uses conflict: Import-Package: javax.resource.spi; version="[1.0.0,2.0.0)" at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327) at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

and have several problems with the examples. When
Am 21.09.12 15:25, schrieb Holly Cummins:
Hi,

The Aries parent pom is configured to use
http://download.eclipse.org/rt/eclipselink/maven.repo/ as well as
Maven Central for lookups. I've noticed in the past that when Maven
can't download something it only reports the last repository it tried,
which can give confusing messages like the ones you're seeing. I'm
pretty sure it will have checked both Maven Central and the
EclipseLink repository, despite what it claims!

It looks like the geronimo-j2ee-connector_1.6_spec-1.0.pom file is
empty, which could have been caused by a corrupted or interrupted
download. I'd try deleting the org/apache/geronimo/specs folder from
your local Maven repo and see if that gets you any further.

Holly
--
Enterprise OSGi in Action: http://www.manning.com/cummins

On Fri, Sep 21, 2012 at 1:52 PM, Christian Eugster
<[email protected]> wrote:
Hi,

I have downloaded the samples-1.0.0 zip and installed it on my local disk.
Running mvn clean install throws an error saying, that maven: "failed to
execute goal on project org.apache.aries.samples.blog.datasource: Could not
resolve dependencies for project
org.apache.aries.samples.blog:org.apache.aries.samples.blog.datasource:bundle:1.0.0:
Failure to find
org.apache.geronimo.specs:geronimo-j2ee-connector_1.6_spec:jar:1.0.0 in
http://download.eclipse.org/rt/eclipselink/maven.repo/ was cached in the
local repository, resolution will not be reattempted until the update
interval of EclipseLink Repo has elapsed or updates are forced -> [Help 1]"

I do not understand why maven tries to download
org.apache.geronimo.specs:geronimo-j2ee-connector_1.6_spec:jar from an
eclipselink repository. I do not know either how to change the behaviour so
that maven uses the central repository. Can anyone help me?

Thank you

Christian


[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Aries Samples
[INFO] Apache Aries blog sample
[INFO] Apache Aries blog sample API
[INFO] Apache Aries blog sample transaction enlisting JDBC datasource
[INFO] Apache Aries blog sample assembly
[INFO] Apache Aries blog sample
[INFO] Apache Aries blog sample web component
[INFO] Apache Aries blog sample persistence
[INFO] Apache Aries Blog Sample EBA using JDBC
[INFO] Apache Aries blog sample persistence
[INFO] Apache Aries Blog Sample EBA using JPA
[INFO] Apache Aries blog sample commenting EJB
[INFO] Apache Aries Blog sample iTests
[INFO] AriesTrader :: Performance Benchmark Sample
[INFO] AriesTrader :: Modules
[INFO] AriesTrader :: Modules - Util
[INFO] AriesTrader :: Modules - API
[INFO] AriesTrader :: Modules - Core
[INFO] AriesTrader :: Modules - Web
[INFO] AriesTrader :: Modules - Beans
[INFO] AriesTrader :: Modules - Entities
[INFO] AriesTrader :: Modules - Derby DataSource
[INFO] AriesTrader :: Modules - Persist JDBC
[INFO] AriesTrader :: Modules - Persist JPA App Managed
[INFO] AriesTrader :: Modules - Persist JPA Container Managed
[INFO] AriesTrader :: Assemblies
[INFO] AriesTrader :: Assemblies - EBA - JDBC
[INFO] AriesTrader :: Assemblies - EBA - ALL
[INFO] Equinox test harness that can be used to install sample EBAs
[INFO] Apache Aries Blueprint samples
[INFO] Apache Aries Blueprint HelloWorld
[INFO] Apache Aries Blueprint HelloWorld API
[INFO] Apache Aries Blueprint HelloWorldServer
[INFO] Apache Aries Blueprint HelloWorldClient
[INFO] Apache Aries Blueprint HelloWorld Assembly
[INFO] Apache Aries Blueprint HelloWorld EBA
[INFO] Apache Aries Blueprint sample iTests
[INFO] Apache Aries Blueprint Sample - ID Verifier
[INFO] Apache Aries Blueprint Sample - ID Verifier API
[INFO] Apache Aries Blueprint Sample - ID Verifier Server
[INFO] Apache Aries Blueprint Sample - ID Verifier Client
[INFO] Apache Aries Blueprint Sample - ID Verifier Assembly
[INFO] Apache Aries Twitter sample
[INFO] Apache Aries Bundlise Twitter4j
[INFO] Apache Aries Twitter bundle
[INFO] Apache Aries Twitter EBA
[INFO] Apache Aries Twitter sample integration tests
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Aries Samples 1.0.0
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ samples ---
[INFO] Deleting file set: C:\Projekte\fancyfoods\samples-1.0.0\target
(included: [**], excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @ samples ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ samples ---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (check-java15) @ samples
---
[INFO] Checking unresolved references to
org.codehaus.mojo.signature:java15:1.0
[INFO]
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
samples ---
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @ samples ---
[INFO] Installing C:\Projekte\fancyfoods\samples-1.0.0\pom.xml to
U:\Maven\repository\org\apache\aries\samples\samples\1.0.0\samples-1.0.0.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Aries blog sample 1.0.0
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ blog ---
[INFO] Deleting file set: C:\Projekte\fancyfoods\samples-1.0.0\blog\target
(included: [**], excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @ blog ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ blog ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (check-java15) @ blog
---
[INFO] Checking unresolved references to
org.codehaus.mojo.signature:java15:1.0
[INFO]
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
blog ---
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @ blog ---
[INFO] Installing C:\Projekte\fancyfoods\samples-1.0.0\blog\pom.xml to
U:\Maven\repository\org\apache\aries\samples\blog\blog\1.0.0\blog-1.0.0.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Aries blog sample API 1.0.0
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @
org.apache.aries.samples.blog.api ---
[INFO] Deleting file set:
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\target (included: [**],
excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @
org.apache.aries.samples.blog.api ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @
org.apache.aries.samples.blog.api ---
[INFO]
[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @
org.apache.aries.samples.blog.api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\src\main\resources
[INFO] skip non existing resourceDirectory
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\src\main\filtered-resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @
org.apache.aries.samples.blog.api ---
[INFO] Compiling 13 source files to
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4:testResources (default-testResources)
@ org.apache.aries.samples.blog.api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\src\test\resources
[INFO] skip non existing resourceDirectory
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\src\test\filtered-resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @
org.apache.aries.samples.blog.api ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @
org.apache.aries.samples.blog.api ---
[INFO] Surefire report directory:
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (check-java15) @
org.apache.aries.samples.blog.api ---
[INFO] Checking unresolved references to
org.codehaus.mojo.signature:java15:1.0
[INFO]
[INFO] --- maven-bundle-plugin:2.3.4:bundle (default-bundle) @
org.apache.aries.samples.blog.api ---
[WARNING] Warning building bundle
org.apache.aries.samples.blog:org.apache.aries.samples.blog.api:bundle:1.0.0
: Did not find matching referal for org.apache.aries.*
[INFO]
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
org.apache.aries.samples.blog.api ---
[INFO] Checking legal files in: org.apache.aries.samples.blog.api-1.0.0.jar
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @
org.apache.aries.samples.blog.api ---
[INFO] Installing
C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\target\org.apache.aries.samples.blog.api-1.0.0.jar
to
U:\Maven\repository\org\apache\aries\samples\blog\org.apache.aries.samples.blog.api\1.0.0\org.apache.aries.samples.blog.api-1.0.0.jar
[INFO] Installing C:\Projekte\fancyfoods\samples-1.0.0\blog\blog-api\pom.xml
to
U:\Maven\repository\org\apache\aries\samples\blog\org.apache.aries.samples.blog.api\1.0.0\org.apache.aries.samples.blog.api-1.0.0.pom
[INFO]
[INFO] --- maven-bundle-plugin:2.3.4:install (default-install) @
org.apache.aries.samples.blog.api ---
[INFO] Installing
org/apache/aries/samples/blog/org.apache.aries.samples.blog.api/1.0.0/org.apache.aries.samples.blog.api-1.0.0.jar
[INFO] Writing OBR metadata
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Aries blog sample transaction enlisting JDBC
datasource 1.0.0
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for
org.apache.geronimo.specs:geronimo-j2ee-connector_1.6_spec:jar:1.0.0 is
missing, no dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Aries Samples .............................. SUCCESS [12.869s]
[INFO] Apache Aries blog sample .......................... SUCCESS [0.590s]
[INFO] Apache Aries blog sample API ...................... SUCCESS [13.400s]
[INFO] Apache Aries blog sample transaction enlisting JDBC datasource
FAILURE [0.320s]
[INFO] Apache Aries blog sample assembly ................. SKIPPED
[INFO] Apache Aries blog sample .......................... SKIPPED
[INFO] Apache Aries blog sample web component ............ SKIPPED
[INFO] Apache Aries blog sample persistence .............. SKIPPED
[INFO] Apache Aries Blog Sample EBA using JDBC ........... SKIPPED
[INFO] Apache Aries blog sample persistence .............. SKIPPED
[INFO] Apache Aries Blog Sample EBA using JPA ............ SKIPPED
[INFO] Apache Aries blog sample commenting EJB ........... SKIPPED
[INFO] Apache Aries Blog sample iTests ................... SKIPPED
[INFO] AriesTrader :: Performance Benchmark Sample ....... SKIPPED
[INFO] AriesTrader :: Modules ............................ SKIPPED
[INFO] AriesTrader :: Modules - Util ..................... SKIPPED
[INFO] AriesTrader :: Modules - API ...................... SKIPPED
[INFO] AriesTrader :: Modules - Core ..................... SKIPPED
[INFO] AriesTrader :: Modules - Web ...................... SKIPPED
[INFO] AriesTrader :: Modules - Beans .................... SKIPPED
[INFO] AriesTrader :: Modules - Entities ................. SKIPPED
[INFO] AriesTrader :: Modules - Derby DataSource ......... SKIPPED
[INFO] AriesTrader :: Modules - Persist JDBC ............. SKIPPED
[INFO] AriesTrader :: Modules - Persist JPA App Managed .. SKIPPED
[INFO] AriesTrader :: Modules - Persist JPA Container Managed SKIPPED
[INFO] AriesTrader :: Assemblies ......................... SKIPPED
[INFO] AriesTrader :: Assemblies - EBA - JDBC ............ SKIPPED
[INFO] AriesTrader :: Assemblies - EBA - ALL ............. SKIPPED
[INFO] Equinox test harness that can be used to install sample EBAs SKIPPED
[INFO] Apache Aries Blueprint samples .................... SKIPPED
[INFO] Apache Aries Blueprint HelloWorld ................. SKIPPED
[INFO] Apache Aries Blueprint HelloWorld API ............. SKIPPED
[INFO] Apache Aries Blueprint HelloWorldServer ........... SKIPPED
[INFO] Apache Aries Blueprint HelloWorldClient ........... SKIPPED
[INFO] Apache Aries Blueprint HelloWorld Assembly ........ SKIPPED
[INFO] Apache Aries Blueprint HelloWorld EBA ............. SKIPPED
[INFO] Apache Aries Blueprint sample iTests .............. SKIPPED
[INFO] Apache Aries Blueprint Sample - ID Verifier ....... SKIPPED
[INFO] Apache Aries Blueprint Sample - ID Verifier API ... SKIPPED
[INFO] Apache Aries Blueprint Sample - ID Verifier Server  SKIPPED
[INFO] Apache Aries Blueprint Sample - ID Verifier Client  SKIPPED
[INFO] Apache Aries Blueprint Sample - ID Verifier Assembly  SKIPPED
[INFO] Apache Aries Twitter sample ....................... SKIPPED
[INFO] Apache Aries Bundlise Twitter4j ................... SKIPPED
[INFO] Apache Aries Twitter bundle ....................... SKIPPED
[INFO] Apache Aries Twitter EBA .......................... SKIPPED
[INFO] Apache Aries Twitter sample integration tests ..... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 30.964s
[INFO] Finished at: Fri Sep 21 14:37:36 CEST 2012
[INFO] Final Memory: 31M/74M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project
org.apache.aries.samples.blog.datasource: Could not resolve dependencies for
project
org.apache.aries.samples.blog:org.apache.aries.samples.blog.datasource:bundle:1.0.0:
Failure to find
org.apache.geronimo.specs:geronimo-j2ee-connector_1.6_spec:jar:1.0.0 in
http://download.eclipse.org/rt/eclipselink/maven.repo/ was cached in the
local repository, resolution will not be reattempted until the update
interval of EclipseLink Repo has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :org.apache.aries.samples.blog.datasource


Reply via email to