Hi Yong fu
I havent tried the xfire-book example but from the error message I can see
that you are missing a jar file:
java.lang.NoClassDefFoundError:
org/apache/xbean/spring/context/SpringApplicationContext
NoClassDefFoundError means that something is missing on the classpath. You
have to include xbean-spring.jar
in your classpath.
If you have downloaded the xfire distrubution then the jar file is included
in the lib folder.
Kind regards
/Murat
2007/3/9, yong fu <[EMAIL PROTECTED]>:
Ok. What I did was follows:
1) deploy mvn war from examples/book, xfire-book-1.2-SNAPSHOT.war. 50kb
(By the way, mvn generate build error, I had to get the spring-1.2
SNAPSHOT manually and install)
2) Test and et XFireServlet not found error.
3) Imported xfire-all-1.2.4.jar
4) Got the following error.
thanks,
Yong Fu
--------------------------------------
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:316)
WARN!!
javax.servlet.ServletException: Error initializing XFireServlet.
at
org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:52)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:296)
at org.mortbay.jetty.servlet.ServletHolder.handle(
ServletHolder.java:333)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(
WebApplicationHandler.java:342)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ActivityMonitorFilter.doFilter
(ActivityMonitorFilter.java:286)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(
WebApplicationHandler.java:334)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:286)
at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java
:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java
:960)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.FlushingHttpConnection.handleNext
(FlushingHttpConnection.java:69)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.handleNewConnection
(ConduitStreamListener.java:193)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.access$300
(ConduitStreamListener.java:78)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener$1.run
(ConduitStreamListener.java:262)
at org.mortbay.util.ThreadPool.handle(ThreadPool.java:385)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
getRootCause():
java.lang.NoClassDefFoundError:
org/apache/xbean/spring/context/SpringApplicationContext
at
org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(
XFireConfigurableServlet.java:68)
at
org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(
XFireConfigurableServlet.java:51)
at
org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:296)
at org.mortbay.jetty.servlet.ServletHolder.handle(
ServletHolder.java:333)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(
WebApplicationHandler.java:342)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ActivityMonitorFilter.doFilter
(ActivityMonitorFilter.java:286)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(
WebApplicationHandler.java:334)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:286)
at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java
:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java
:960)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.FlushingHttpConnection.handleNext
(FlushingHttpConnection.java:69)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.handleNewConnection
(ConduitStreamListener.java:193)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener.access$300
(ConduitStreamListener.java:78)
at
com.sterlingcommerce.woodstock.services.pshttp.jetty.ConduitStreamListener$1.run
(ConduitStreamListener.java:262)
at org.mortbay.util.ThreadPool.handle(ThreadPool.java:385)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
Wayne Keenan wrote:
>
> Please coud you post the actual excpetion with stack trace that you are
> getting?
>
> On 08/03/07, yong fu <[EMAIL PROTECTED]> wrote:
>>
>>
>> The error I am getting is just class not found error. Adding more jar
>> files
>> inside the war should solve this issue.
>>
>> My question is that, since these xfire example's intentionally build
the
>> war
>> file to be small, then there must be a standard procedure/way to make a
>> servlet container (like Jetty, Tomcat) "xfile capable". I can not
find
>> one
>> as of now, ofcourse I am new also.
>>
>>
>> Or it is like everyone have freedom to configure their own servlet
>> container
>> to make it work? Or just rebuild the war file to include all jars in
>> xfire
>> directory?
>>
>>
>>
>>
>>
>>
>>
>>
>> Tomek Sztelak wrote:
>> >
>> > Hi
>> > What exactly error you have ? I use jetty all the time w/o any
>> > problems. I just put wars inside webapps folder.
>> >
>> > On 3/7/07, yong fu <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I am trying to get the xfire examples to run under Jetty, for
example
>> the
>> >> book service example.
>> >> There is not a lot of document around, it will be great if some one
>> can
>> >> point me to those links.
>> >>
>> >> Simply drop in the mvn build war file is not enough. I have added
>> >> xfire-all.1.2.4.jar, moved a little bit further but looks like other
>> jars
>> >> are still needed.
>> >>
>> >> Any one can contribute their experience and instructions?
>> >>
>> >> thanks,
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>>
http://www.nabble.com/Can-xfire-run-under-Jetty%2C-and-how-to-tf3363663.html#a9357930
>> >> Sent from the XFire - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
---------------------------------------------------------------------
>> >> To unsubscribe from this list please visit:
>> >>
>> >> http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >
>> >
>> > --
>> > -----
>> > When one of our products stops working, we'll blame another vendor
>> > within 24 hours.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe from this list please visit:
>> >
>> > http://xircles.codehaus.org/manage_email
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/Can-xfire-run-under-Jetty%2C-and-how-to-tf3363663.html#a9381348
>> Sent from the XFire - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Can-xfire-run-under-Jetty%2C-and-how-to-tf3363663.html#a9386898
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email