What Camel version do you use? And have you tried with latest release? On Thu, Feb 6, 2014 at 12:26 AM, brianorwig <brianor...@gmail.com> wrote: > I am trying to run my application in Glassfish 4 and I am getting the error > below which is due to Exception being thrown in the @PostContruct method. > According to the J2EE spec methods with the @PostConstruct annotation "MUST > NOT throw a checked exception". > > Does anyone have a good work around for this? About the only thing that I > can think of is to get the camel source code and change this to a runtime > exception. > > The lifecycle method [start] must not throw a checked exception. Related > annotation information: annotation [@javax.annotation.PostConstruct()] on > annotated element [public void > org.apache.camel.guice.GuiceCamelContext.start() > throws java.lang.Exception] of type [METHOD] > The lifecycle method [start] > must not throw a checked exception. Related annotation information: > annotation > [@javax.annotation.PostConstruct()] on annotated element [public void > org.apache.camel.guice.GuiceCamelContext.start() throws java.lang.Exception] > of > type [METHOD] > at > org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:367) > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/GuiceCamelContext-checked-exception-issue-with-Glassfish4-tp5746869.html > Sent from the Camel - Users mailing list archive at Nabble.com.
-- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io