You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tarjei Huse <ta...@scanmine.com> on 2010/02/10 15:55:58 UTC

Problem using camel-web embedded

Hi, I'm trying to get camel-web working embedded with a new camel application
I have setup. 

Now, what I did was add:
     <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-web</artifactId>
      <version>2.2-SNAPSHOT</version>
      <type>war</type>
 </dependency>

to the pom.xml of my camelbased project. Then I tried to test it by running

mvn jetty:run-war


I then get the error:
HTTP ERROR 500

Problem accessing /. Reason:

    javax.servlet.ServletException:
javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;

Caused by:

com.sun.jersey.api.container.ContainerException:
javax.servlet.ServletException:
javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
	at
com.sun.jersey.server.impl.container.servlet.JSPTemplateProcessor.writeTo(JSPTemplateProcessor.java:124)
	at
com.sun.jersey.server.impl.container.servlet.JSPTemplateProcessor.writeTo(JSPTemplateProcessor.java:60)
	at
com.sun.jersey.spi.template.ResolvedViewable.writeTo(ResolvedViewable.java:100)
	at
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.writeTo(ViewableMessageBodyWriter.java:78)
	at
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.writeTo(ViewableMessageBodyWriter.java:58)
	at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:289)
	at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1029)
	at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:941)
	at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:932)
	at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:384)
	at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:451)

Note:
In this project, I allready got a jersey API that I am trying to expose, so
I just added 
org.apache.camel.web 
to
com.sun.jersey.config.property.packages
in web.xml.

If I try to access any of my own API I get:
javax.ws.rs.WebApplicationException: javax.xml.bind.JAXBException: class
com.example.filter.service.FilterServerStatus nor any of its super class is
known to this context

Does anyone know why this is happening? 

Kind regards,
Tarjei
-- 
View this message in context: http://old.nabble.com/Problem-using-camel-web-embedded-tp27532423p27532423.html
Sent from the Camel - Users mailing list archive at Nabble.com.