Perhaps this should be on the jetty list, but I'm not subscribed.
jboss 3.0.4
I am not succeeding in setting up jetty to serve static content. Following
the instructions in the jboss-jetty FAQ to include something like
<Call name="addContext">
<Arg>/documents/*</Arg>
<Set name="ResourceBase">/docroot/</Set>
<Set name="ServingResources">TRUE</Set>
</Call>
in jbossweb.sar/META-INF/jboss-service.xml
produced an exception
ava.lang.NoSuchMethodException: class
org.mortbay.jetty.servlet.ServletHttpContext.setServingResources(class
java.lang.String)
at
org.mortbay.xml.XmlConfiguration.set(XmlConfiguration.java:356)
at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:227)
at
org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:496)
at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:231)
at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:163)
at org.jboss.jetty.Jetty.setXMLConfiguration(Jetty.java:357)
at org.jboss.jetty.Jetty.setConfigurationElement(Jetty.java:330)
at
org.jboss.jetty.JettyService.createService(JettyService.java:165)
which is hardly surprising since the setServingResources method was removed
from HttpContext on June 26th.
Removing the offending line from the configuration removes the exception,
but does not result in any content being served, apparently because there
are no handlers attached to the context. My guess is I need to add a new
ResourceHandler, but I see no way to do so.
Any hints?
Thanks
david jencks
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user