On Wed, Aug 31, 2011 at 9:06 PM, wilsonsjc <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
