I used the servicemix-web example build from the 3.3 download.  That's the
one that gave me trouble.  When I took the really bare 3.3 war download,
that one is configured correctly for servicemix-http and once I figured out
how to add in an activemq broker and the jars needed for the various SUs to
work, my problem went away.  I would like to suggest, if you agree with
this, that the example war be updated to reflect the war download on the
site, with the addition of the examples.  It looks the war example is very
outdated, it doesn't have any of the really nice management pages that you
guys put together or anything else in it.  Just a thought.  I could
potentially give you a hand with that if you guys wish.  Either way, I'm
just glad to have it working since being able to run it in a web container
opens a lot more possibilities.

Thanks,

Ryan

On Mon, Jan 12, 2009 at 2:28 AM, Guillaume Nodet <[email protected]> wrote:

> I think the problem comes from the misconfiguration of servicemix-http.
> In case it is embedded in a web server, and you want to reuse the web
> server directly,
> you need to configure a servlet and let servicemix-http /
> servicemix-cxf-bc know about it.
> This is done using the servlets [1] and [2].  You need to configure
> them as shown in [3].
>
> [1]
> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/distributions/apache-servicemix-web/src/main/java/org/apache/servicemix/web/http/HttpManagedServlet.java
> [2]
> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/distributions/apache-servicemix-web/src/main/java/org/apache/servicemix/web/cxf/CXFManagedServlet.java
> [3]
> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/distributions/apache-servicemix-web/src/main/webapp/WEB-INF/web.xml
>
> On Sun, Jan 11, 2009 at 01:05, Ryan Moquin <[email protected]> wrote:
> > I seem to have gotten it to consistently use the jbi url, but not I just
> get
> > the managed attribute problem.. is that a known issue with 3.3 or if
> there
> > something I can do for it?
> >
> > HTTP Status 500 -
> > ------------------------------
> >
> > *type* Exception report
> >
> > *message*
> >
> > *description* *The server encountered an internal error () that prevented
> it
> > from fulfilling this request.*
> >
> > *exception*
> >
> > javax.servlet.ServletException: Servlet.init() for servlet
> > HttpManagedServlet threw exception
> >
>  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >
>  
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >
>  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >        java.lang.Thread.run(Thread.java:619)
> >
> > *root cause*
> >
> > java.lang.IllegalStateException: ServerManager is not managed
> >
>  
> org.apache.servicemix.http.jetty.JettyContextManager.getMainProcessor(JettyContextManager.java:489)
> >
>  
> org.apache.servicemix.http.HttpComponent.getMainProcessor(HttpComponent.java:364)
> >
>  
> org.apache.servicemix.http.HttpManagedServlet.init(HttpManagedServlet.java:78)
> >
>  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >
>  
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >
>  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >        java.lang.Thread.run(Thread.java:619)
> >
> > *note* *The full stack trace of the root cause is available in the Apache
> > Tomcat/6.0.18 logs.*
> > ------------------------------
> >
> > Thanks for any help!
> >
> > Ryan
> >
> > On Sat, Jan 10, 2009 at 4:14 PM, Ryan Moquin <[email protected]>
> wrote:
> >
> >> I redeployed the servicemix-web WAR and deployed all my deployables from
> >> scratch and now I'm back to my service being loaded at the URL defined
> in
> >> the xbean.xml.. if I try the rewritten JBI URL I get:
> >>
> >> HTTP ERROR: 404
> >>
> >> NOT_FOUND
> >>
> >> RequestURI=/servicemix/jbi/*notification*
> >>
> >> *Powered by jetty:// <http://jetty.mortbay.org/>*
> >> I'm not sure why it bounces back and forth and which way it's supposed
> to
> >> be... I guess tomcat can't be used to handle the HTTP requests directly?
> >>
> >>
> >> On Sat, Jan 10, 2009 at 4:01 PM, Ryan Moquin <[email protected]
> >wrote:
> >>
> >>> Since I've been using the servicemix-web WAR that is built from the
> >>> examples, it seems to be working better.  The strange thing is that my
> >>> servicemix-http binding and cxf binding were being bound to their
> defined
> >>> ports in the xbean.xml, rather than be rewritten to the jbi/ url like
> the
> >>> docs mentioned.  So I was just using that as I fixed some various
> services
> >>> issues arising from being in the tomcat container in my own code.
>  After a
> >>> few redeployments with little fixes to my servicemix-bean components,
> >>> servicemix decided to start rewriting my servicemix-http urls for
> whatever
> >>> reason to the correct jbi/ urls, but that URL, while it now exists,
> fails
> >>> when I hit it with the exception (version 3.3):
> >>>
> >>> HTTP Status 500 -
> >>> ------------------------------
> >>>
> >>> *type* Exception report
> >>>
> >>> *message*
> >>>
> >>> *description* *The server encountered an internal error () that
> prevented
> >>> it from fulfilling this request.*
> >>>
> >>> *exception*
> >>>
> >>> javax.servlet.ServletException: Servlet.init() for servlet
> HttpManagedServlet threw exception
> >>>
>  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>>
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >>>
> >>>
> >>>
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >>>
>  
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>>
>  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>>
> >>>
> >>>      java.lang.Thread.run(Thread.java:619)
> >>>
> >>> *root cause*
> >>>
> >>> java.lang.IllegalStateException: ServerManager is not managed
> >>>
>  
> org.apache.servicemix.http.jetty.JettyContextManager.getMainProcessor(JettyContextManager.java:489)
> >>>
> >>>
> >>>
>  
> org.apache.servicemix.http.HttpComponent.getMainProcessor(HttpComponent.java:364)
> >>>
>  
> org.apache.servicemix.http.HttpManagedServlet.init(HttpManagedServlet.java:78)
> >>>
>  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>>
> >>>
> >>>
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >>>
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >>>
>  
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>>
> >>>
> >>>
>  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>>      java.lang.Thread.run(Thread.java:619)
> >>>
> >>> *note* *The full stack trace of the root cause is available in the
> Apache
> >>> Tomcat/6.0.18 logs.*
> >>>
> >>> I'm really confused as to why the deployment was wrong in the first
> place,
> >>> why it changed but why it changed to the correct URL but then fails
> >>> everytime....
> >>>
> >>> Any help would be appreciated... I figured the servicemix-web would be
> a
> >>> little more transparent with my services, but it's seeming not be so :(
> >>>
> >>> Ryan
> >>>
> >>
> >>
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Reply via email to