Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62A3418C1E for ; Fri, 19 Feb 2016 13:49:19 +0000 (UTC) Received: (qmail 15864 invoked by uid 500); 19 Feb 2016 13:49:18 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 15748 invoked by uid 500); 19 Feb 2016 13:49:18 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 15452 invoked by uid 99); 19 Feb 2016 13:49:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2016 13:49:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 419072C1F60 for ; Fri, 19 Feb 2016 13:49:18 +0000 (UTC) Date: Fri, 19 Feb 2016 13:49:18 +0000 (UTC) From: "Ralf Steppacher (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-9623) camel-example-swagger-cdi does not run MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralf Steppacher updated CAMEL-9623: ----------------------------------- Description: I am trying to run the example {{camel-example-swagger-cdi}} as documented in the {{README.md}} but the goal {{camel:run}} fails: {noformat} Ralfs-MacBook-Pro:camel-example-swagger-cdi rsteppac$ ~/dev/maven-3.2.1/bin/mvn -s ~/dev/git/vivatesmaven/settings-nexus.xml camel:run [..] [INFO] Using org.apache.camel.spring.Main to initiate a CamelContext [INFO] Starting Camel ... [ERROR] ************************************* [ERROR] Error occurred while running main from: org.apache.camel.spring.Main [ERROR] java.lang.ClassNotFoundException: org.apache.camel.spring.Main at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:455) at java.lang.Thread.run(Thread.java:745) [ERROR] ************************************* {noformat} In response I added {{camel-spring}} to the dependency list in the pom. Next run fails because no spring context is available: {noformat} Caused by: java.io.FileNotFoundException: class path resource [META-INF/spring/] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:413) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:287) at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1166) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216) ... 21 more {noformat} Indeed no spring context file is provided with the project. was: I am trying to run the example {{camel-example-swagger-cdi}} as documented in the {{README.md}} but the goal {{camel:run}} fails: {noformat} Ralfs-MacBook-Pro:camel-example-swagger-cdi rsteppac$ ~/dev/maven-3.2.1/bin/mvn -s ~/dev/git/vivatesmaven/settings-nexus.xml camel:run [..] [INFO] Using org.apache.camel.spring.Main to initiate a CamelContext [INFO] Starting Camel ... [ERROR] ************************************* [ERROR] Error occurred while running main from: org.apache.camel.spring.Main [ERROR] java.lang.ClassNotFoundException: org.apache.camel.spring.Main at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:455) at java.lang.Thread.run(Thread.java:745) [ERROR] ************************************* {noformat} In response I added {{camel-spring}} to the dependency list in the pom. Next run fails because no spring context is available: {noformat} Caused by: java.io.FileNotFoundException: class path resource [META-INF/spring/] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:413) at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:287) at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1166) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216) ... 21 more [ERROR] ************************************* {noformat} Indeed no spring context file is provided with the project. > camel-example-swagger-cdi does not run > -------------------------------------- > > Key: CAMEL-9623 > URL: https://issues.apache.org/jira/browse/CAMEL-9623 > Project: Camel > Issue Type: Bug > Affects Versions: 2.16.2 > Reporter: Ralf Steppacher > Priority: Minor > > I am trying to run the example {{camel-example-swagger-cdi}} as documented in the {{README.md}} but the goal {{camel:run}} fails: > {noformat} > Ralfs-MacBook-Pro:camel-example-swagger-cdi rsteppac$ ~/dev/maven-3.2.1/bin/mvn -s ~/dev/git/vivatesmaven/settings-nexus.xml camel:run > [..] > [INFO] Using org.apache.camel.spring.Main to initiate a CamelContext > [INFO] Starting Camel ... > [ERROR] ************************************* > [ERROR] Error occurred while running main from: org.apache.camel.spring.Main > [ERROR] > java.lang.ClassNotFoundException: org.apache.camel.spring.Main > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:455) > at java.lang.Thread.run(Thread.java:745) > [ERROR] ************************************* > {noformat} > In response I added {{camel-spring}} to the dependency list in the pom. Next run fails because no spring context is available: > {noformat} > Caused by: java.io.FileNotFoundException: class path resource [META-INF/spring/] cannot be resolved to URL because it does not exist > at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187) > at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:413) > at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:287) > at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1166) > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216) > ... 21 more > {noformat} > Indeed no spring context file is provided with the project. -- This message was sent by Atlassian JIRA (v6.3.4#6332)