You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by boday <be...@initekconsulting.com> on 2011/07/12 00:06:46 UTC

Re: Embedded web console

hmmm...anyone try to package camel-web within an existing app (lately)?  I
tried adding the dependency (below) in my web app and deployed to
Tomcat...but, I can't seem to get to the console (tried
http://localhost:8080/ and http://localhost:8080/<my app context>, etc). 
What is the URL/context to hit?  Any other integration necessary? 

         <groupId>org.apache.camel</groupId>
          <artifactId>camel-web</artifactId>
          <version>2.7.1</version>
          <type>war</type>
          <scope>runtime</scope>
        </dependency>

Once I get it figured out, I'll update the camel-web page with some better
information on this...thanks



-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4576821.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded web console

Posted by Jim Talbut <jt...@spudsoft.co.uk>.
Claus,

I /think/ I fixed some relative URL issues in my patch for CAMEL-3519 (I 
tested it embedded and in OSGi).

Jim

On 08/09/2011 15:34, Claus Ibsen wrote:
> On Thu, Sep 1, 2011 at 5:57 PM, boday<be...@initekconsulting.com>  wrote:
>> hmmm...I'd think those paths would be relative to the web app context...not
>> sure why you'd need to add the context in explicity...
>>
> Yeah the urls ought to be relative when they are rendered.
>
> I guess we ought to create a JIRA about this so we wont forget. As ppl
> may embed camel-web under their context path of choice.
>
> And while we are at it, we ought to see if we can trim it down. I
> think we got some java script libraries in there which is not needed
> anymore. Eg we should keep the camel-web smaller in size.
>
>> wilsonsjc wrote:
>>> Thanks for your reply,
>>>
>>> I downloaded camel-web-2.8.0-sources.jar and modified java files under
>>> org.apache.camel.web.resources package from new URI("/routes") to new
>>> URI("/services/routes") then recompiled to jar.
>>>
>>> It's working. I can see the changes after I click the start and stop. Now
>>> it's redirect to "/services/routes"
>>>
>>
>> -----
>> Ben O'Day
>> IT Consultant -http://consulting-notes.com
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4758894.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>


Re: Embedded web console

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Sep 1, 2011 at 5:57 PM, boday <be...@initekconsulting.com> wrote:
> hmmm...I'd think those paths would be relative to the web app context...not
> sure why you'd need to add the context in explicity...
>

Yeah the urls ought to be relative when they are rendered.

I guess we ought to create a JIRA about this so we wont forget. As ppl
may embed camel-web under their context path of choice.

And while we are at it, we ought to see if we can trim it down. I
think we got some java script libraries in there which is not needed
anymore. Eg we should keep the camel-web smaller in size.

>
> wilsonsjc wrote:
>>
>> Thanks for your reply,
>>
>> I downloaded camel-web-2.8.0-sources.jar and modified java files under
>> org.apache.camel.web.resources package from new URI("/routes") to new
>> URI("/services/routes") then recompiled to jar.
>>
>> It's working. I can see the changes after I click the start and stop. Now
>> it's redirect to "/services/routes"
>>
>
>
> -----
> Ben O'Day
> IT Consultant -http://consulting-notes.com
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4758894.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: Embedded web console

Posted by boday <be...@initekconsulting.com>.
hmmm...I'd think those paths would be relative to the web app context...not
sure why you'd need to add the context in explicity...


wilsonsjc wrote:
> 
> Thanks for your reply,
> 
> I downloaded camel-web-2.8.0-sources.jar and modified java files under
> org.apache.camel.web.resources package from new URI("/routes") to new
> URI("/services/routes") then recompiled to jar. 
> 
> It's working. I can see the changes after I click the start and stop. Now
> it's redirect to "/services/routes"
> 


-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4758894.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded web console

Posted by wilsonsjc <wi...@gmail.com>.
Thanks for your reply,

I downloaded camel-web-2.8.0-sources.jar and modified java files under
org.apache.camel.web.resources package from new URI("/routes") to new
URI("/services/routes") then recompiled to jar. 

It's working. I can see the changes after I click the start and stop. Now
it's redirect to "/services/routes" 



--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4758797.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded web console

Posted by boday <be...@initekconsulting.com>.
I see the issue, in
camel-web\src\main\java\org\apache\camel\web\resources\RouteStatusResource.java,
the setStatus() method returns return Response.seeOther(new
URI("/routes")).build() after it starts/stops the route...this was to
"refresh" the route list display, but it doesn't play nice with an explicit
context, etc.  It does this in several other places as well...not sure a way
around it at the moment.


wilsonsjc wrote:
> 
> Hi All,
> 
> I too embeded camel web console in my app it's working.
> To view the routes here is the url http://localhost:8081/services/routes
> 
> But when I click the "stop" button to stop one of the route, the URL
> redirect  to http://localhost:8081/routes  (with out my app context
> "services")
> But It stop the route.
> 
> Any one come across this issue any suggestion.
> 
> Here is my web.xml
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
> 	http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
> 	<display-name>Onesource Services</display-name>
> 	<filter>
> 		<filter-name>hibernateFilter</filter-name>
> 	
> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
> 		<init-param>
> 			<param-name>singleSession</param-name>
> 			<param-value>true</param-value>
> 		</init-param>
> 	</filter>
> 	<filter-mapping>
> 		<filter-name>hibernateFilter</filter-name>
> 		<url-pattern>/*</url-pattern>
> 	</filter-mapping>
> 	<context-param>
> 		<param-name>contextConfigLocation</param-name>
> 		<param-value>WEB-INF/applicationContext.xml</param-value>
> 	</context-param>
> 	<listener>
> 	
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> 	</listener>
>   	<listener>
>     
> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
>   	</listener>	
> 	<servlet>
> 		<servlet-name>CXFServlet</servlet-name>
> 	
> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
> 		<init-param>
> 			<param-name>service-list-path</param-name>
> 			<param-value>/wadl</param-value>
> 		</init-param>		
> 		<load-on-startup>1</load-on-startup>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>CXFServlet</servlet-name>
> 		<url-pattern>/guest/*</url-pattern>
> 		<url-pattern>/cast/*</url-pattern>
> 		<url-pattern>/admin/*</url-pattern>
> 	</servlet-mapping>
> 	<resource-ref>
> 		<description>Sleepy Datasource</description>
> 		<res-ref-name>jdbc/SLEEPY_DB</res-ref-name>
> 		<res-type>javax.sql.DataSource</res-type>
> 		<res-auth>Container</res-auth>
> 	</resource-ref>
> 	<welcome-file-list>
> 		<welcome-file>index.jsp</welcome-file>
> 	</welcome-file-list>
> 
> 
> 
> 	
> 
>   <filter> 
>     <filter-name>Jersey Filter</filter-name> 
> 
> <filter-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</filter-class> 
>     <init-param> 
> 	
> <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> 
> 		<param-value>org.apache.camel.web.util.CamelResourceConfig</param-value> 
>     </init-param> 
>     <init-param> 
> 	
> <param-name>com.sun.jersey.config.feature.FilterForwardOn404</param-name> 
>       <param-value>true</param-value> 
>     </init-param> 
>    <init-param> 
> 	
> <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name> 
>       <param-value>/(images|css|js)/.*</param-value> 
>     </init-param> 
>     <init-param> 
> 		<param-name>com.sun.jersey.config.feature.ImplicitViewables</param-name> 
>       <param-value>true</param-value> 
>     </init-param> 
>     <init-param> 
>       <param-name>com.sun.jersey.config.feature.Trace</param-name> 
>       <param-value>true</param-value> 
>     </init-param> 
>     <init-param> 
>       <param-name>com.sun.jersey.config.feature.Redirect</param-name> 
>       <param-value>true</param-value> 
>     </init-param> 
>     <init-param> 
>       <param-name>com.sun.jersey.config.property.packages</param-name> 
>       <param-value>org.apache.camel.web:</param-value> 
>     </init-param> 
>     <init-param> 
> 		<param-name>com.sun.jersey.config.property.WadlResourceUri</param-name> 
> 		<param-value>/api</param-value> 
>     </init-param> 
>   </filter> 
> 
>   <filter-mapping> 
>     <filter-name>Jersey Filter</filter-name> 
>     <url-pattern>/*</url-pattern> 
>   </filter-mapping> 
> 
>   <servlet> 
>     <servlet-name>TemplateEngineServlet</servlet-name> 
> 
> 
> <servlet-class>org.fusesource.scalate.servlet.TemplateEngineServlet</servlet-class> 
>     <load-on-startup>1</load-on-startup> 
>   </servlet> 
> 
>   <servlet-mapping> 
>     <servlet-name>TemplateEngineServlet</servlet-name> 
>     <url-pattern>*.mustache</url-pattern> 
>   </servlet-mapping> 
>   <servlet-mapping> 
>     <servlet-name>TemplateEngineServlet</servlet-name> 
>     <url-pattern>*.scaml</url-pattern> 
>   </servlet-mapping> 
>   <servlet-mapping> 
>     <servlet-name>TemplateEngineServlet</servlet-name> 
>     <url-pattern>*.ssp</url-pattern> 
>   </servlet-mapping> 
> 
>   <error-page> 
>     <error-code>500</error-code> 
>     <location>/WEB-INF/scalate/errors/500.scaml</location> 
>   </error-page>	
> 	
> 	
> 	
> </web-app>
> 


-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4755900.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded web console

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Aug 31, 2011 at 9:06 PM, wilsonsjc <wi...@gmail.com> wrote:
> Hi All,
>
> I too embeded camel web console in my app it's working.
> To view the routes here is the url http://localhost:8081/services/routes
>
> But when I click the "stop" button to stop one of the route, the URL
> redirect  to http://localhost:8081/routes  (with out my app context
> "services")
> But It stop the route.

Is that the only "button" or link in your embedded web console, that
has this problem?
eg it looses the "services" from the path?

And what version of Camel are you using?

And how did you embed the camel web console. I dont see anything in
your web.xml file.


>
> Any one come across this issue any suggestion.
>
> Here is my web.xml
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>        http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>        <display-name>Onesource Services</display-name>
>        <filter>
>                <filter-name>hibernateFilter</filter-name>
>
> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
>                <init-param>
>                        <param-name>singleSession</param-name>
>                        <param-value>true</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>hibernateFilter</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <context-param>
>                <param-name>contextConfigLocation</param-name>
>                <param-value>WEB-INF/applicationContext.xml</param-value>
>        </context-param>
>        <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>        </listener>
>        <listener>
>
> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
>        </listener>
>        <servlet>
>                <servlet-name>CXFServlet</servlet-name>
>                <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
>                <init-param>
>                        <param-name>service-list-path</param-name>
>                        <param-value>/wadl</param-value>
>                </init-param>
>                <load-on-startup>1</load-on-startup>
>        </servlet>
>        <servlet-mapping>
>                <servlet-name>CXFServlet</servlet-name>
>                <url-pattern>/guest/*</url-pattern>
>                <url-pattern>/cast/*</url-pattern>
>                <url-pattern>/admin/*</url-pattern>
>        </servlet-mapping>
>        <resource-ref>
>                <description>Sleepy Datasource</description>
>                <res-ref-name>jdbc/SLEEPY_DB</res-ref-name>
>                <res-type>javax.sql.DataSource</res-type>
>                <res-auth>Container</res-auth>
>        </resource-ref>
>        <welcome-file-list>
>                <welcome-file>index.jsp</welcome-file>
>        </welcome-file-list>
>
>
>
>
>
>  <filter>
>    <filter-name>Jersey Filter</filter-name>
>
> <filter-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</filter-class>
>    <init-param>
>
> <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
>                <param-value>org.apache.camel.web.util.CamelResourceConfig</param-value>
>    </init-param>
>    <init-param>
>                <param-name>com.sun.jersey.config.feature.FilterForwardOn404</param-name>
>      <param-value>true</param-value>
>    </init-param>
>   <init-param>
>
> <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
>      <param-value>/(images|css|js)/.*</param-value>
>    </init-param>
>    <init-param>
>                <param-name>com.sun.jersey.config.feature.ImplicitViewables</param-name>
>      <param-value>true</param-value>
>    </init-param>
>    <init-param>
>      <param-name>com.sun.jersey.config.feature.Trace</param-name>
>      <param-value>true</param-value>
>    </init-param>
>    <init-param>
>      <param-name>com.sun.jersey.config.feature.Redirect</param-name>
>      <param-value>true</param-value>
>    </init-param>
>    <init-param>
>      <param-name>com.sun.jersey.config.property.packages</param-name>
>      <param-value>org.apache.camel.web:</param-value>
>    </init-param>
>    <init-param>
>                <param-name>com.sun.jersey.config.property.WadlResourceUri</param-name>
>                <param-value>/api</param-value>
>    </init-param>
>  </filter>
>
>  <filter-mapping>
>    <filter-name>Jersey Filter</filter-name>
>    <url-pattern>/*</url-pattern>
>  </filter-mapping>
>
>  <servlet>
>    <servlet-name>TemplateEngineServlet</servlet-name>
>
>
> <servlet-class>org.fusesource.scalate.servlet.TemplateEngineServlet</servlet-class>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
>
>  <servlet-mapping>
>    <servlet-name>TemplateEngineServlet</servlet-name>
>    <url-pattern>*.mustache</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>    <servlet-name>TemplateEngineServlet</servlet-name>
>    <url-pattern>*.scaml</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>    <servlet-name>TemplateEngineServlet</servlet-name>
>    <url-pattern>*.ssp</url-pattern>
>  </servlet-mapping>
>
>  <error-page>
>    <error-code>500</error-code>
>    <location>/WEB-INF/scalate/errors/500.scaml</location>
>  </error-page>
>
>
>
> </web-app>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4755568.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: Embedded web console

Posted by wilsonsjc <wi...@gmail.com>.
Hi All,

I too embeded camel web console in my app it's working.
To view the routes here is the url http://localhost:8081/services/routes

But when I click the "stop" button to stop one of the route, the URL
redirect  to http://localhost:8081/routes  (with out my app context
"services")
But It stop the route.

Any one come across this issue any suggestion.

Here is my web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
	http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
	<display-name>Onesource Services</display-name>
	<filter>
		<filter-name>hibernateFilter</filter-name>
	
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
		<init-param>
			<param-name>singleSession</param-name>
			<param-value>true</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>hibernateFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>WEB-INF/applicationContext.xml</param-value>
	</context-param>
	<listener>
	
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
  	<listener>
    
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  	</listener>	
	<servlet>
		<servlet-name>CXFServlet</servlet-name>
		<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
		<init-param>
			<param-name>service-list-path</param-name>
			<param-value>/wadl</param-value>
		</init-param>		
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>CXFServlet</servlet-name>
		<url-pattern>/guest/*</url-pattern>
		<url-pattern>/cast/*</url-pattern>
		<url-pattern>/admin/*</url-pattern>
	</servlet-mapping>
	<resource-ref>
		<description>Sleepy Datasource</description>
		<res-ref-name>jdbc/SLEEPY_DB</res-ref-name>
		<res-type>javax.sql.DataSource</res-type>
		<res-auth>Container</res-auth>
	</resource-ref>
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>



	

  <filter> 
    <filter-name>Jersey Filter</filter-name> 

<filter-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</filter-class> 
    <init-param> 
	
<param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> 
		<param-value>org.apache.camel.web.util.CamelResourceConfig</param-value> 
    </init-param> 
    <init-param> 
		<param-name>com.sun.jersey.config.feature.FilterForwardOn404</param-name> 
      <param-value>true</param-value> 
    </init-param> 
   <init-param> 
	
<param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name> 
      <param-value>/(images|css|js)/.*</param-value> 
    </init-param> 
    <init-param> 
		<param-name>com.sun.jersey.config.feature.ImplicitViewables</param-name> 
      <param-value>true</param-value> 
    </init-param> 
    <init-param> 
      <param-name>com.sun.jersey.config.feature.Trace</param-name> 
      <param-value>true</param-value> 
    </init-param> 
    <init-param> 
      <param-name>com.sun.jersey.config.feature.Redirect</param-name> 
      <param-value>true</param-value> 
    </init-param> 
    <init-param> 
      <param-name>com.sun.jersey.config.property.packages</param-name> 
      <param-value>org.apache.camel.web:</param-value> 
    </init-param> 
    <init-param> 
		<param-name>com.sun.jersey.config.property.WadlResourceUri</param-name> 
		<param-value>/api</param-value> 
    </init-param> 
  </filter> 

  <filter-mapping> 
    <filter-name>Jersey Filter</filter-name> 
    <url-pattern>/*</url-pattern> 
  </filter-mapping> 

  <servlet> 
    <servlet-name>TemplateEngineServlet</servlet-name> 


<servlet-class>org.fusesource.scalate.servlet.TemplateEngineServlet</servlet-class> 
    <load-on-startup>1</load-on-startup> 
  </servlet> 

  <servlet-mapping> 
    <servlet-name>TemplateEngineServlet</servlet-name> 
    <url-pattern>*.mustache</url-pattern> 
  </servlet-mapping> 
  <servlet-mapping> 
    <servlet-name>TemplateEngineServlet</servlet-name> 
    <url-pattern>*.scaml</url-pattern> 
  </servlet-mapping> 
  <servlet-mapping> 
    <servlet-name>TemplateEngineServlet</servlet-name> 
    <url-pattern>*.ssp</url-pattern> 
  </servlet-mapping> 

  <error-page> 
    <error-code>500</error-code> 
    <location>/WEB-INF/scalate/errors/500.scaml</location> 
  </error-page>	
	
	
	
</web-app>






--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4755568.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded web console

Posted by padewitte <pa...@gmail.com>.
Hi all,

Since CAMEL 2.8.0 my custom web.xml is not enrich with Jersey Filter and
TemplateEngine Servelet.

I had to add this to my web.xml to get the console working :

<listener>
	
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>

	<filter>
		<filter-name>Jersey Filter</filter-name>
	
<filter-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</filter-class>
		<init-param>
		
<param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
			<param-value>org.apache.camel.web.util.CamelResourceConfig</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.feature.FilterForwardOn404</param-name>
			<param-value>true</param-value>
		</init-param>
		
		<init-param>
		
<param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
			<param-value>/(images|css|js)/.*</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.feature.ImplicitViewables</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.feature.Trace</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.feature.Redirect</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.property.packages</param-name>
			<param-value>org.apache.camel.web:</param-value>
		</init-param>
		<init-param>
			<param-name>com.sun.jersey.config.property.WadlResourceUri</param-name>
			<param-value>/api</param-value>
		</init-param>
	</filter>

	<filter-mapping>
		<filter-name>Jersey Filter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<servlet>
		<servlet-name>TemplateEngineServlet</servlet-name>
	
<servlet-class>org.fusesource.scalate.servlet.TemplateEngineServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>TemplateEngineServlet</servlet-name>
		<url-pattern>*.mustache</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>TemplateEngineServlet</servlet-name>
		<url-pattern>*.scaml</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>TemplateEngineServlet</servlet-name>
		<url-pattern>*.ssp</url-pattern>
	</servlet-mapping>

	<error-page>
		<error-code>500</error-code>
		<location>/WEB-INF/scalate/errors/500.scaml</location>
	</error-page>


--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p4688736.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Embedded web console

Posted by mgiammarco <mg...@gmail.com>.
Same thing for me! And I tried also to deploy projects created with maven
archetype webconsole without luck.

--
View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p5119175.html
Sent from the Camel - Users mailing list archive at Nabble.com.