camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babak Vahdat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5648) camel-example-cdi - The two maven profiles inside this example's POM (glassfish / jboss) don't work properly
Date Tue, 25 Sep 2012 19:36:08 GMT

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

Babak Vahdat commented on CAMEL-5648:
-------------------------------------

And I fixed the Glassfish profile where the console output now becomes:

{code}
~/dev/workspace/camel/examples/camel-example-cdi>mvn deploy -Pglassfish
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel :: Example :: CDI 2.11-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-cdi ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ camel-example-cdi ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ camel-example-cdi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default) @ camel-example-cdi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-example-cdi ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ camel-example-cdi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/test/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-example-cdi ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.8:test (default-test) @ camel-example-cdi ---
[INFO] Surefire report directory: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/surefire-reports
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ camel-example-cdi ---
[INFO] Packaging webapp
[INFO] Assembling webapp [camel-example-cdi] in [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/main/resources/META-INF] to [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
[INFO] Copying webapp webResources [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/main/resources/META-INF] to [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
[INFO] Copying webapp resources [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/main/webapp]
[INFO] Webapp assembled in [175 msecs]
[INFO] Building war: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT.war
[INFO] 
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ camel-example-cdi ---
[INFO] 
[INFO] --- maven-embedded-glassfish-plugin:3.1.2.2:run (default) @ camel-example-cdi ---
Created New Bootstrap ClassLoader. ServerId = maven, ClassPaths = 
ClassPath Element : file:/Users/bvahdat/.m2/repository/org/glassfish/main/extras/glassfish-embedded-all/3.1.2.2/glassfish-embedded-all-3.1.2.2.jar
ClassPath Element : file:/Users/bvahdat/.m2/repository/org/glassfish/embedded/maven-embedded-glassfish-plugin/3.1.2.2/maven-embedded-glassfish-plugin-3.1.2.2.jar
ClassPath Element : file:/Users/bvahdat/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
ClassPath Element : file:/Users/bvahdat/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
ClassPath Element : file:/Users/bvahdat/.m2/repository/org/glassfish/main/common/simple-glassfish-api/3.1.2.2/simple-glassfish-api-3.1.2.2.jar
25.09.2012 21:24:06 com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
25.09.2012 21:24:06 org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 4.3.0.Final
25.09.2012 21:24:07 PluginUtil getGlassFish
INFO: Created GlassFish ServerId = maven, BootstrapProperties = {GlassFish_Platform=Static}, GlassFishRuntime = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime@6c3d685f, GlassFishProperties = {embedded-glassfish-config.server.network-config.network-listeners.network-listener.http-listener.enabled=true, embedded-glassfish-config.server.network-config.network-listeners.network-listener.http-listener.port=8080}, GlassFish = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime$1@338f6c7d, GlassFish Status = INIT, TimeTaken = 647 ms
25.09.2012 21:24:07 com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy
INFO: Network listener https-listener on port 0 disabled per domain.xml
25.09.2012 21:24:07 com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
INFO: Grizzly Framework 1.9.50 started in: 38ms - bound to [0.0.0.0:8080]
25.09.2012 21:24:07 com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish Server Open Source Edition 3.1.2.2 (java_re) startup time : Embedded (536ms), startup services(374ms), total(910ms)
25.09.2012 21:24:07 PluginUtil startGlassFish
INFO: Started GlassFish ServerId = maven, GlassFish = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime$1@338f6c7d, TimeTaken = 542 ms
25.09.2012 21:24:09 com.sun.enterprise.security.SecurityLifecycle <init>
INFO: SEC1002: Security Manager is OFF.
25.09.2012 21:24:09 com.sun.enterprise.security.SecurityLifecycle onInitialization
INFO: SEC1010: Entering Security Startup Service
25.09.2012 21:24:09 com.sun.enterprise.security.PolicyLoader loadPolicy
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.jacc.provider.SimplePolicyProvider.
25.09.2012 21:24:09 com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
25.09.2012 21:24:09 com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
25.09.2012 21:24:09 com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
25.09.2012 21:24:09 com.sun.enterprise.security.SecurityLifecycle onInitialization
INFO: SEC1011: Security Service(s) Started Successfully
25.09.2012 21:24:09 com.sun.enterprise.web.WebContainer createHttpListener
INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8080]
25.09.2012 21:24:09 com.sun.enterprise.web.WebContainer createHosts
INFO: WEB0171: Created virtual server [server]
25.09.2012 21:24:10 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules
INFO: WEB0172: Virtual server [server] loaded default web module []
classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@705369a
25.09.2012 21:24:11 org.jboss.weld.bootstrap.WeldBootstrap <clinit>
INFO: WELD-000900 SNAPSHOT
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
25.09.2012 21:24:12 org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
25.09.2012 21:24:13 com.sun.enterprise.web.WebApplication start
INFO: WEB0671: Loading application [myapp] at [/Camel :: Example :: CDI]
No valid EE environment for injection of org.apache.camel.cdi.internal.CamelContextMap
25.09.2012 21:24:13 org.apache.camel.impl.DefaultCamelContext start
INFO: Apache Camel 2.11-SNAPSHOT (CamelContext: camel-2) is starting
25.09.2012 21:24:13 org.apache.camel.management.ManagementStrategyFactory create
INFO: JMX enabled.
25.09.2012 21:24:13 org.apache.camel.impl.converter.DefaultTypeConverter doStart
INFO: Loaded 175 type converters
No valid EE environment for injection of org.apache.camel.cdi.component.properties.CdiPropertiesComponent
25.09.2012 21:24:13 org.apache.camel.management.DefaultManagementLifecycleStrategy$TimerListenerManagerStartupListener onCamelContextStarted
INFO: Load performance statistics enabled.
25.09.2012 21:24:13 org.apache.camel.impl.DefaultCamelContext start
INFO: Total 0 routes, of which 0 is started.
25.09.2012 21:24:13 org.apache.camel.impl.DefaultCamelContext start
INFO: Apache Camel 2.11-SNAPSHOT (CamelContext: camel-2) started in 0.238 seconds
No valid EE environment for injection of org.apache.camel.example.cdi.MyRoutes
No valid EE environment for injection of org.apache.camel.cdi.internal.CamelFactory
No valid EE environment for injection of org.apache.camel.cdi.internal.CamelFactory
25.09.2012 21:24:13 org.apache.camel.component.file.FileEndpoint createConsumer
INFO: Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
25.09.2012 21:24:13 org.apache.camel.component.file.FileEndpoint createConsumer
INFO: Using default memory based idempotent repository with cache max size: 1000
25.09.2012 21:24:13 org.apache.camel.impl.DefaultCamelContext doStartOrResumeRouteConsumers
INFO: Route: route1 started and consuming from: Endpoint[file://src/data?noop=true]
25.09.2012 21:24:14 org.apache.camel.impl.DefaultCamelContext doStartOrResumeRouteConsumers
INFO: Route: route2 started and consuming from: Endpoint[file://target/testdata/queue]
25.09.2012 21:24:14 org.glassfish.deployment.admin.DeployCommand execute
INFO: myapp was successfully deployed in 6.607 milliseconds.
25.09.2012 21:24:14 PluginUtil doDeploy
INFO: Deployed myapp
Hit ENTER to redeploy, X to exit
Received: <?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<person user="james">
  <firstName>James</firstName>
  <lastName>Strachan</lastName>
  <city>London</city>
</person>
Received: <?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<person user="hiram">
  <firstName>Hiram</firstName>
  <lastName>Chirino</lastName>
  <city>Tampa</city>
</person>
{code}

Again you can see the same {{SomeBean}} in Action. Also note that we still see the log with *0 routes* as:

{code}
INFO: Total 0 routes, of which 0 is started.
{code}

This's just because the 2 routes are added into the {{CdiCamelContext}} *after* it's started.

                
> camel-example-cdi - The two maven profiles inside this example's POM (glassfish / jboss) don't work properly
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5648
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5648
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Babak Vahdat
>             Fix For: 2.11.0
>
>
> See the discussion here: 
> http://camel.465427.n5.nabble.com/Build-on-trunk-fails-camel-example-cdi-td5719732.html
> According to what we say here the two glassfish & jboss profiles should work out-of-the-box for the users:
> https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-cdi/README.txt
> However the deployment using the {{glassfish}} profile ends up with a {{NullPointerException}}:
> {code}
> ~/dev/workspace/camel/examples/camel-example-cdi>mvn deploy -Pglassfish
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.camel:camel-example-cdi:war:2.11-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Camel :: Example :: CDI 2.11-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-example-cdi ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/test/resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-example-cdi ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.8:test (default-test) @ camel-example-cdi ---
> [INFO] Surefire report directory: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/surefire-reports
> [INFO] 
> [INFO] --- maven-war-plugin:2.2:war (default-war) @ camel-example-cdi ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [camel-example-cdi] in [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp webResources [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/classes] to [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
> [INFO] Webapp assembled in [138 msecs]
> [INFO] Building war: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT.war
> [INFO] 
> [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-embedded-glassfish-plugin:3.1.1:run (default) @ camel-example-cdi ---
> Created New Bootstrap ClassLoader. ServerId = maven, ClassPaths = 
> ClassPath Element : file:/Users/bvahdat/.m2/repository/org/glassfish/extras/glassfish-embedded-all/3.1.1/glassfish-embedded-all-3.1.1.jar
> ClassPath Element : file:/Users/bvahdat/.m2/repository/org/glassfish/maven-embedded-glassfish-plugin/3.1.1/maven-embedded-glassfish-plugin-3.1.1.jar
> ClassPath Element : file:/Users/bvahdat/.m2/repository/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar
> ClassPath Element : file:/Users/bvahdat/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
> ClassPath Element : file:/Users/bvahdat/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> ClassPath Element : file:/Users/bvahdat/.m2/repository/org/glassfish/simple-glassfish-api/3.1.1/simple-glassfish-api-3.1.1.jar
> 25.09.2012 13:28:23 com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
> INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
> 25.09.2012 13:28:23 org.hibernate.validator.util.Version <clinit>
> INFO: Hibernate Validator null
> 25.09.2012 13:28:23 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
> INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
> 25.09.2012 13:28:23 PluginUtil getGlassFish
> INFO: Created GlassFish ServerId = maven, BootstrapProperties = {GlassFish_Platform=Static}, GlassFishRuntime = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime@398f1ef8, GlassFishProperties = {embedded-glassfish-config.server.network-config.network-listeners.network-listener.http-listener.enabled=true, embedded-glassfish-config.server.network-config.network-listeners.network-listener.http-listener.port=8080}, GlassFish = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime$1@633a494d, GlassFish Status = INIT, TimeTaken = 652 ms
> 25.09.2012 13:28:23 com.sun.enterprise.v3.services.impl.GrizzlyService createNetworkProxy
> INFO: Network listener https-listener on port 0 disabled per domain.xml
> 25.09.2012 13:28:23 com.sun.enterprise.v3.server.AppServerStartup run
> INFO: GlassFish Server Open Source Edition 3.1.1 (12) startup time : Embedded (524ms), startup services(264ms), total(788ms)
> 25.09.2012 13:28:23 com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
> INFO: Grizzly Framework 1.9.36 started in: 75ms - bound to [0.0.0.0:8080]
> 25.09.2012 13:28:23 org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
> INFO: JMXStartupService: JMXConnector system is disabled, skipping.
> 25.09.2012 13:28:24 PluginUtil startGlassFish
> INFO: Started GlassFish ServerId = maven, GlassFish = com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime$1@633a494d, TimeTaken = 440 ms
> 25.09.2012 13:28:26 com.sun.enterprise.security.SecurityLifecycle <init>
> INFO: SEC1002: Security Manager is OFF.
> 25.09.2012 13:28:26 com.sun.enterprise.security.SecurityLifecycle onInitialization
> INFO: SEC1010: Entering Security Startup Service
> 25.09.2012 13:28:26 com.sun.enterprise.security.PolicyLoader loadPolicy
> INFO: SEC1143: Loading policy provider com.sun.enterprise.security.jacc.provider.SimplePolicyProvider.
> 25.09.2012 13:28:26 com.sun.enterprise.security.auth.realm.Realm doInstantiate
> INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
> 25.09.2012 13:28:26 com.sun.enterprise.security.auth.realm.Realm doInstantiate
> INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
> 25.09.2012 13:28:26 com.sun.enterprise.security.auth.realm.Realm doInstantiate
> INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
> 25.09.2012 13:28:26 com.sun.enterprise.security.SecurityLifecycle onInitialization
> INFO: SEC1011: Security Service(s) Started Successfully
> 25.09.2012 13:28:26 com.sun.enterprise.web.WebContainer createHttpListener
> INFO: WEB0169: Created HTTP listener [http-listener] on host/port [0.0.0.0:8080]
> 25.09.2012 13:28:26 com.sun.enterprise.web.WebContainer createHosts
> INFO: WEB0171: Created virtual server [server]
> 25.09.2012 13:28:26 com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules
> INFO: WEB0172: Virtual server [server] loaded default web module []
> classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@67635d96
> 25.09.2012 13:28:28 com.sun.ejb.containers.BaseContainer initializeHome
> INFO: Portable JNDI names for EJB MyRoutes : [java:global/myapp/MyRoutes!org.apache.camel.example.cdi.MyRoutes, java:global/myapp/MyRoutes]
> 25.09.2012 13:28:28 org.jboss.weld.bootstrap.WeldBootstrap <clinit>
> INFO: WELD-000900 SNAPSHOT
> 25.09.2012 13:28:28 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
> INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
> INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
> INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
> INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
> INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
> INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
> INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
> 25.09.2012 13:28:28 org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
> INFO: Computed the following DeltaSpike ProjectStage: Production
> 25.09.2012 13:28:29 org.glassfish.internal.data.ModuleInfo start
> SCHWERWIEGEND: Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
> javax.ejb.EJBException: javax.ejb.CreateException: Initialization failed for Singleton MyRoutes
> 	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:721)
> 	at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451)
> 	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:216)
> 	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:177)
> 	at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:155)
> 	at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:177)
> 	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
> 	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
> 	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
> 	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
> 	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> 	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
> 	at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
> 	at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)
> 	at org.glassfish.maven.PluginUtil.doDeploy(PluginUtil.java:106)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.glassfish.maven.AbstractDeployMojo.doDeploy(AbstractDeployMojo.java:239)
> 	at org.glassfish.maven.RunMojo.execute(RunMojo.java:68)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: javax.ejb.CreateException: Initialization failed for Singleton MyRoutes
> 	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:547)
> 	at com.sun.ejb.containers.AbstractSingletonContainer.access$100(AbstractSingletonContainer.java:79)
> 	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:719)
> 	... 47 more
> Caused by: java.lang.NullPointerException
> 	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> 	at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:1209)
> 	at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:144)
> 	at org.glassfish.weld.services.JCDIServiceImpl._createJCDIInjectionContext(JCDIServiceImpl.java:169)
> 	at org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:146)
> 	at com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1636)
> 	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:489)
> 	... 49 more
> 25.09.2012 13:28:29 org.glassfish.api.ActionReport failure
> SCHWERWIEGEND: Exception while loading the app
> classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@67635d96
> 25.09.2012 13:28:29 org.glassfish.deployment.admin.DeployCommand execute
> SCHWERWIEGEND: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton MyRoutes
> javax.ejb.CreateException: Initialization failed for Singleton MyRoutes
> 	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:547)
> 	at com.sun.ejb.containers.AbstractSingletonContainer.access$100(AbstractSingletonContainer.java:79)
> 	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:719)
> 	at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451)
> 	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:216)
> 	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:177)
> 	at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:155)
> 	at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:177)
> 	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
> 	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
> 	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
> 	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
> 	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> 	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
> 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
> 	at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
> 	at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)
> 	at org.glassfish.maven.PluginUtil.doDeploy(PluginUtil.java:106)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.glassfish.maven.AbstractDeployMojo.doDeploy(AbstractDeployMojo.java:239)
> 	at org.glassfish.maven.RunMojo.execute(RunMojo.java:68)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.NullPointerException
> 	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> 	at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:1209)
> 	at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:144)
> 	at org.glassfish.weld.services.JCDIServiceImpl._createJCDIInjectionContext(JCDIServiceImpl.java:169)
> 	at org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:146)
> 	at com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1636)
> 	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:489)
> 	... 49 more
> PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton MyRoutes. Please see server.log for more details.
>     [name=myapp
> 25.09.2012 13:28:29 PluginUtil doDeploy
> INFO: Deployed null
> Hit ENTER to redeploy, X to exit
> {code}
> On the other hand the deployment using the {{jboss}} profile bootstraps the application server as well as the Camel context properly but the routing does *not* kick in, because the 2 routes defined by {{org.apache.camel.example.cdi.MyRoutes}} are not detected as one can see it on the console (*Total 0 routes*):
> {code}
> 13:43:15,227 INFO  [org.apache.camel.cdi.CdiCamelContext] (MSC service thread 1-7) Total 0 routes, of which 0 is started.
> {code}
> And following the full output using this profile:
> {code}
> ~/dev/workspace/camel/examples/camel-example-cdi>mvn deploy -Pjboss
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.camel:camel-example-cdi:war:2.11-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Camel :: Example :: CDI 2.11-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-example-cdi ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/test/resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-example-cdi ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.8:test (default-test) @ camel-example-cdi ---
> [INFO] Surefire report directory: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/surefire-reports
> [INFO] 
> [INFO] --- maven-war-plugin:2.2:war (default-war) @ camel-example-cdi ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [camel-example-cdi] in [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp webResources [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/classes] to [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
> [INFO] Webapp assembled in [155 msecs]
> [INFO] Building war: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT.war
> [INFO] 
> [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ camel-example-cdi ---
> [INFO] 
> [INFO] >>> jboss-as-maven-plugin:7.2.Final:run (default) @ camel-example-cdi >>>
> [INFO] 
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ camel-example-cdi ---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-example-cdi ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ camel-example-cdi ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/src/test/resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-example-cdi ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.8:test (default-test) @ camel-example-cdi ---
> [INFO] Skipping execution of surefire because it has already been run for this configuration
> [INFO] 
> [INFO] --- maven-war-plugin:2.2:war (default-war) @ camel-example-cdi ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [camel-example-cdi] in [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp webResources [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/classes] to [/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT]
> [INFO] Webapp assembled in [94 msecs]
> [INFO] Building war: /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/camel-example-cdi-2.11-SNAPSHOT.war
> [INFO] 
> [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ camel-example-cdi ---
> [INFO] 
> [INFO] <<< jboss-as-maven-plugin:7.2.Final:run (default) @ camel-example-cdi <<<
> [INFO] 
> [INFO] --- jboss-as-maven-plugin:7.2.Final:run (default) @ camel-example-cdi ---
> [INFO] Resolving artifact org.jboss.as:jboss-as-dist:zip:7.1.1.Final from [jboss -releases (https://repository.jboss.org/nexus/content/repositories/releases/, releases+snapshots), apache.snapshots (http://repository.apache.org/snapshots/, snapshots), central (http://repo.maven.apache.org/maven2, releases)]
> [INFO] JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0_32-b05-420.jdk/Contents/Home
> [INFO] JBOSS_HOME=/Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/jboss-as-run/jboss-as-7.1.1.Final
> [INFO] Server is starting up. Press CTRL + C to stop the server.
> 25.09.2012 13:43:03 org.xnio.Xnio <clinit>
> INFO: XNIO Version 3.0.3.GA
> 25.09.2012 13:43:03 org.xnio.nio.NioXnio <clinit>
> INFO: XNIO NIO Implementation Version 3.0.3.GA
> 25.09.2012 13:43:03 org.jboss.remoting3.EndpointImpl <clinit>
> INFO: JBoss Remoting version 3.2.7.GA
> 13:43:04,051 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
> 13:43:04,192 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
> 13:43:04,222 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
> 13:43:04,724 INFO  [org.xnio] XNIO Version 3.0.3.GA
> 13:43:04,724 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
> 13:43:04,733 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
> 13:43:04,739 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
> 13:43:04,751 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
> 13:43:04,753 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
> 13:43:04,756 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
> 13:43:04,763 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
> 13:43:04,765 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
> 13:43:04,768 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
> 13:43:04,774 INFO  [org.jboss.as.security] (MSC service thread 1-15) JBAS013100: Current PicketBox version=4.0.7.Final
> 13:43:04,779 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
> 13:43:04,799 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
> 13:43:04,811 INFO  [org.jboss.as.connector] (MSC service thread 1-13) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
> 13:43:04,813 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
> 13:43:04,856 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
> 13:43:04,877 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA
> 13:43:04,943 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
> 13:43:05,098 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-15) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
> 13:43:05,265 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-11) JBAS015012: Started FileSystemDeploymentService for directory /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/jboss-as-run/jboss-as-7.1.1.Final/standalone/deployments
> 13:43:05,279 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:4447
> 13:43:05,279 INFO  [org.jboss.as.remoting] (MSC service thread 1-13) JBAS017100: Listening on /127.0.0.1:9999
> 13:43:05,338 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
> 13:43:05,339 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1508ms - Started 133 of 208 services (74 services are passive or on-demand)
> [INFO] Deploying application 'camel-example-cdi-2.11-SNAPSHOT.war'
> 13:43:10,849 INFO  [org.jboss.as.repository] (management-handler-thread - 4) JBAS014900: Content added at location /Users/bvahdat/dev/workspace/camel/examples/camel-example-cdi/target/jboss-as-run/jboss-as-7.1.1.Final/standalone/data/content/3b/2c977160488faaa98b563dd1428fc4c4b44c93/content
> 13:43:10,859 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015876: Starting deployment of "camel-example-cdi-2.11-SNAPSHOT.war"
> 13:43:13,639 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'org.apache.hadoop.hdfs.DFSClient$Renewer' for service type 'org.apache.hadoop.security.token.TokenRenewer'
> 13:43:13,640 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'org.apache.hadoop.mapred.JobClient$Renewer' for service type 'org.apache.hadoop.security.token.TokenRenewer'
> 13:43:13,640 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier$Renewer' for service type 'org.apache.hadoop.security.token.TokenRenewer'
> 13:43:13,641 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier$Renewer' for service type 'org.apache.hadoop.security.token.TokenRenewer'
> 13:43:13,642 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'org.apache.hadoop.hdfs.HftpFileSystem$TokenManager' for service type 'org.apache.hadoop.security.token.TokenRenewer'
> 13:43:13,642 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015893: Encountered invalid class name 'org.apache.hadoop.hdfs.web.WebHdfsFileSystem$DtRenewer' for service type 'org.apache.hadoop.security.token.TokenRenewer'
> 13:43:13,755 WARN  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016003: Found beans.xml file in non-standard location: "/content/camel-example-cdi-2.11-SNAPSHOT.war/WEB-INF/classes/META-INF/beans.xml", war deployments should place beans.xml files into WEB-INF/beans.xml
> 13:43:14,023 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment camel-example-cdi-2.11-SNAPSHOT.war
> 13:43:14,035 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-6) JNDI bindings for session bean named MyRoutes in deployment unit deployment "camel-example-cdi-2.11-SNAPSHOT.war" are as follows:
> 	java:global/camel-example-cdi-2.11-SNAPSHOT/MyRoutes!org.apache.camel.example.cdi.MyRoutes
> 	java:app/camel-example-cdi-2.11-SNAPSHOT/MyRoutes!org.apache.camel.example.cdi.MyRoutes
> 	java:module/MyRoutes!org.apache.camel.example.cdi.MyRoutes
> 	java:global/camel-example-cdi-2.11-SNAPSHOT/MyRoutes
> 	java:app/camel-example-cdi-2.11-SNAPSHOT/MyRoutes
> 	java:module/MyRoutes
> 13:43:14,233 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016005: Starting Services for CDI deployment: camel-example-cdi-2.11-SNAPSHOT.war
> 13:43:14,251 INFO  [org.jboss.weld.Version] (MSC service thread 1-6) WELD-000900 1.1.5 (AS71)
> 13:43:14,280 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment camel-example-cdi-2.11-SNAPSHOT.war
> 13:43:14,431 INFO  [org.apache.deltaspike.core.util.ClassDeactivationUtils] (MSC service thread 1-7) class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
> 13:43:14,431 INFO  [org.apache.deltaspike.core.util.ClassDeactivationUtils] (MSC service thread 1-7) class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
> 13:43:14,432 INFO  [org.apache.deltaspike.core.util.ClassDeactivationUtils] (MSC service thread 1-7) class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
> 13:43:14,433 INFO  [org.apache.deltaspike.core.util.ClassDeactivationUtils] (MSC service thread 1-7) class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
> 13:43:14,433 INFO  [org.apache.deltaspike.core.util.ClassDeactivationUtils] (MSC service thread 1-7) class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
> 13:43:14,438 INFO  [org.apache.deltaspike.core.util.ClassDeactivationUtils] (MSC service thread 1-7) class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
> 13:43:14,482 INFO  [org.apache.deltaspike.core.util.ProjectStageProducer] (MSC service thread 1-7) Computed the following DeltaSpike ProjectStage: Production
> 13:43:15,114 INFO  [org.apache.camel.cdi.CdiCamelContext] (MSC service thread 1-7) Apache Camel 2.11-SNAPSHOT (CamelContext: camel-2) is starting
> 13:43:15,122 INFO  [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-7) JMX enabled.
> 13:43:15,195 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-7) Loaded 175 type converters
> 13:43:15,217 INFO  [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-7) Load performance statistics enabled.
> 13:43:15,227 INFO  [org.apache.camel.cdi.CdiCamelContext] (MSC service thread 1-7) Total 0 routes, of which 0 is started.
> 13:43:15,228 INFO  [org.apache.camel.cdi.CdiCamelContext] (MSC service thread 1-7) Apache Camel 2.11-SNAPSHOT (CamelContext: camel-2) started in 0.114 seconds
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message