activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: activemq 5.7: camel web console not working from camel 2.10.1
Date Thu, 25 Oct 2012 20:44:22 GMT
You don't have the activemq-camel jar on the classpath properly.

Add it to the camel/WEB-INF/lib folder

and add this to your WebAppContext declaration:

                        <bean
class="org.eclipse.jetty.webapp.WebAppContext">
                            <property name="contextPath" value="/camel"/>
                            <property name="resourceBase"
value="${activemq.base}/webapps/camel" />
                            *<property name="parentLoaderPriority"
value="true" />*
                            <property name="logUrlOnStart" value="true" />
                        </bean>

On Tue, Oct 23, 2012 at 4:22 AM, Josef <josef.muri@xwr.ch> wrote:

> Hi all,
>
> I tried to manually add the camel web console to activemq 5.7. For that I
> was doing the following steps:
>
> - *I extracted the camel-web.war inside of the
> camel-web-standalone-2.10.1.jar into webapps/camel*
> - *in the conf/jett.xml I added the webapp:*
>
>                         <bean
> class="org.eclipse.jetty.webapp.WebAppContext">
>                             <property name="contextPath" value="/camel" />
>                             <property name="resourceBase"
> value="${activemq.home}/webapps/camel" />
>                             <property name="logUrlOnStart" value="true" />
>                         </bean>
>
> -* in webapps/camel/WEB-INF I changed the applicationContext.xml:
> *
>
>     <bean
>
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>         <property name="locations">
>
> <value>file:${activemq.base}/conf/credentials.properties</value>
>         </property>
>     </bean>
>
>     <import resource="file:${activemq.base}/conf/camel.xml"/>
>
> Now when I try to start activeMQ I get the following error (endpoint
> activemq is unknown):
>
> ERROR | Context initialization failed
> org.apache.camel.RuntimeCamelException:
> org.apache.camel.FailedToCreateRouteException: Failed to cre
> ate route route1: Route[[From[activemq:example.A]] ->
> [To[activemq:example.B]]... because of Failed
> to resolve endpoint: activemq://example.A due to: Cannot auto create
> component: activemq
>         at
>
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1280)
>         at
>
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120
> )
>         at
>
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBea
>
> What am I missing for using the camel web console?
> thanx for your help
>
> josef
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/activemq-5-7-camel-web-console-not-working-from-camel-2-10-1-tp4658077.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message