[ 
https://issues.apache.org/jira/browse/CAMEL-8326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14313764#comment-14313764
 ] 

Claus Ibsen commented on CAMEL-8326:
------------------------------------

Works fine for me, just created using Camel 2.14.1 and 2.15-SNAPSHOT

Here is 2.14.1
{code}
davsclaus:~/Documents/workspace/blue/$ mvn camel:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building A Camel Blueprint Route 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> camel-maven-plugin:2.14.1:run (default-cli) > test-compile @ blue >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blue ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ blue ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
blue ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ blue 
---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< camel-maven-plugin:2.14.1:run (default-cli) < test-compile @ blue <<<
[INFO]
[INFO] --- camel-maven-plugin:2.14.1:run (default-cli) @ blue ---
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-api/1.0.2/deltaspike-core-api-1.0.2.pom
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-api/1.0.2/deltaspike-core-api-1.0.2.pom
 (2 KB at 2.0 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-impl/1.0.2/deltaspike-core-impl-1.0.2.pom
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-impl/1.0.2/deltaspike-core-impl-1.0.2.pom
 (3 KB at 19.9 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-api/1.0.2/deltaspike-core-api-1.0.2.jar
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-impl/1.0.2/deltaspike-core-impl-1.0.2.jar
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-impl/1.0.2/deltaspike-core-impl-1.0.2.jar
 (120 KB at 551.3 KB/sec)
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/deltaspike/core/deltaspike-core-api/1.0.2/deltaspike-core-api-1.0.2.jar
 (210 KB at 562.6 KB/sec)
[INFO] Using org.apache.camel.test.blueprint.Main to initiate a CamelContext
[INFO] Starting Camel ...
[mel.test.blueprint.Main.main()] MainSupport                    INFO  Apache 
Camel 2.14.1 starting
[mel.test.blueprint.Main.main()] Activator                      INFO  Camel 
activator starting
[mel.test.blueprint.Main.main()] Activator                      INFO  Camel 
activator started
[mel.test.blueprint.Main.main()] BlueprintExtender              INFO  No 
quiesce support is available, so blueprint components will not participate in 
quiesce operations
[         Blueprint Extender: 1] BlueprintContainerImpl         INFO  Bundle 
blue is waiting for namespace handlers 
[http://camel.apache.org/schema/blueprint]
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache 
Camel 2.14.1 (CamelContext: blueprintContext) is starting
[         Blueprint Extender: 1] ManagedManagementStrategy      INFO  JMX is 
enabled
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  
AllowUseOriginalMessage is enabled. If access to the original message is not 
needed, then its recommended to turn this option off as it may improve 
performance.
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  
StreamCaching is not in use. If using streams then its recommended to enable 
stream caching. See more details at http://camel.apache.org/stream-caching.html
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Route: 
timerToLog started and consuming from: Endpoint[timer://foo?period=5000]
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Total 1 
routes, of which 1 is started.
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache 
Camel 2.14.1 (CamelContext: blueprintContext) started in 0.345 seconds
[ntext) thread #0 - timer://foo] timerToLog                     INFO  The 
message contains Hi from Camel at 2015-02-10 08:49:16
[ntext) thread #0 - timer://foo] timerToLog                     INFO  The 
message contains Hi from Camel at 2015-02-10 08:49:21
^C[                      Thread-1] MainSupport$HangupInterceptor  INFO  
Received hang up - stopping the main instance.
[                      Thread-1] BlueprintCamelContext          INFO  Apache 
Camel 2.14.1 (CamelContext: blueprintContext) is shutting down
[                      Thread-1] DefaultShutdownStrategy        INFO  Starting 
to graceful shutdown 1 routes (timeout 300 seconds)
[text) thread #1 - ShutdownTask] DefaultShutdownStrategy        INFO  Route: 
timerToLog shutdown complete, was consuming from: 
Endpoint[timer://foo?period=5000]
[                      Thread-1] DefaultShutdownStrategy        INFO  Graceful 
shutdown of 1 routes completed in 0 seconds
[                      Thread-1] BlueprintCamelContext          INFO  Apache 
Camel 2.14.1 (CamelContext: blueprintContext) uptime 7.410 seconds
[                      Thread-1] BlueprintCamelContext          INFO  Apache 
Camel 2.14.1 (CamelContext: blueprintContext) is shutdown in 0.011 seconds
[                      Thread-1] BlueprintExtender              INFO  
Destroying BlueprintContainer for bundle blue
[                      Thread-1] BlueprintExtender              INFO  
Destroying BlueprintContainer for bundle org.apache.aries.blueprint
[                      Thread-1] BlueprintExtender              INFO  
Destroying BlueprintContainer for bundle org.apache.camel.camel-blueprint
[                      Thread-1] Activator                      INFO  Camel 
activator stopping
[                      Thread-1] Activator                      INFO  Camel 
activator stopped
[                      Thread-1] CamelBlueprintHelper           INFO  Deleting 
work directory target/bundles/1423554553187
{code}

Have you changed anything in the generate code? 

> Project created from camel-blueprint-archetype does not work
> ------------------------------------------------------------
>
>                 Key: CAMEL-8326
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8326
>             Project: Camel
>          Issue Type: Bug
>          Components: osgi, tooling
>    Affects Versions: 2.13.3, 2.14.1
>            Reporter: Charles Moulliard
>
> When we launch the camel:run maven goal created from a project created using 
> the archetype :
> org.apache.camel.archetypes:camel-archetype-blueprint (Creates a new Camel 
> project with OSGi blueprint support. Ready to be deployed in OSGi.)
> then it fails
> {code}
> [mel.test.blueprint.Main.main()] MainSupport                    INFO  Apache 
> Camel 2.14.1 starting
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel 
> activator starting
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel 
> activator started
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO  No 
> quiesce support is available, so blueprint components will not participate in 
> quiesce operations
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  Test 
> bundle headers: Bundle-ManifestVersion=2, Bundle-Name=System Bundle, 
> Bundle-SymbolicName=de.kalpatec.pojosr.framework, Bundle-Vendor=kalpatec, 
> Bundle-Version=0.2.1
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.packageadmin.PackageAdmin], bundle: 
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.camel.spi.LanguageResolver], bundle: 
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer], 
> bundle: org.apache.camel.camel-blueprint [4], symbolicName: 
> org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.cm.ManagedServiceFactory], bundle: 
> org.apache.felix.fileinstall [26], symbolicName: org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.felix.cm.PersistenceManager], bundle: 
> org.apache.felix.configadmin [25], symbolicName: org.apache.felix.configadmin
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.camel.spi.DataFormatResolver], bundle: 
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer], 
> bundle: org.apache.aries.blueprint [13], symbolicName: 
> org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.camel.camel-blueprint [4], symbolicName: 
> org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle: 
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.url.URLStreamHandlerService], bundle: 
> org.apache.felix.fileinstall [26], symbolicName: org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.cm.ConfigurationAdmin], bundle: 
> org.apache.felix.configadmin [25], symbolicName: org.apache.felix.configadmin
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle: 
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle: 
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.proxy.ProxyManager], bundle: 
> org.apache.aries.proxy.impl [15], symbolicName: org.apache.aries.proxy.impl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.startlevel.StartLevel], bundle: 
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.service.cm.ConfigurationListener, 
> org.apache.felix.fileinstall.ArtifactListener, 
> org.apache.felix.fileinstall.ArtifactInstaller], bundle: 
> org.apache.felix.fileinstall [26], symbolicName: org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.osgi.framework.hooks.bundle.EventHook], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.services.ParserService], 
> bundle: org.apache.aries.blueprint [13], symbolicName: 
> org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle: 
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO  
> Destroying BlueprintContainer for bundle org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] BlueprintExtender              INFO  
> Destroying BlueprintContainer for bundle org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel 
> activator stopping
> [mel.test.blueprint.Main.main()] Activator                      INFO  Camel 
> activator stopped
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper           INFO  
> Deleting work directory target/bundles/1423485067188
> [ERROR] *************************************
> [ERROR] Error occurred while running main from: 
> org.apache.camel.test.blueprint.Main
> [ERROR]
> java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:606)
>       at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:488)
>       at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.RuntimeException: Gave up waiting for service 
> (objectClass=org.apache.camel.CamelContext)
>       at 
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:240)
>       at 
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:202)
>       at org.apache.camel.test.blueprint.Main.doStart(Main.java:104)
>       at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>       at org.apache.camel.main.MainSupport.run(MainSupport.java:149)
>       at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
>       at org.apache.camel.test.blueprint.Main.main(Main.java:81)
>       ... 6 more
> {code}
> Issue reported with camel : 2.14.1 & also 2.13.3



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to