« Return to Thread: Problems of running muse wrsf example on JBoss

Re: Problems of running muse wrsf example on JBoss

by Chris Twiner :: Rate this Message:

Reply to Author | View in Thread

Thats extremely strange behaviour, and I'm certain that it has nothing
to do with Muse itself.  Muse has no control over the http request
process.

Perhaps you have some filters being used?  Its possible for a filter
to "swap" out the request types, but its a very strange thing to do.

Also a quick bit of googling finds:

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=149044
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4206493

ie. it seems jboss is a bit broke at the moment with the GA and
delegating javax.* packages to the webapp classloader.

Please check that there are no javax.servlet packages within the war.

On Mon, Mar 16, 2009 at 1:53 PM, SARA1232007 <cyl_axis@...> wrote:

>
> Hi Chris,
>
> this example is what I build using exactly the muse wrsf example.
>
> I decompile the javax.servlet.http.servlet and add some print before where
> error occurs as following:
> public abstract class HttpServlet extends GenericServlet
>    implements Serializable
> {
> ... ...
>
>  public void service(ServletRequest req, ServletResponse res)
>        throws ServletException, IOException
>    {
>        HttpServletRequest request;
>        HttpServletResponse response;
> System.err.println("HttpServlet.service(): req
> class:"+req.getClass().getName()+"----------------------");
>
> System.err.println("HttpServlet.service():rsp
> class:"+res.getClass().getName()+"-----------------------");
>
>        try
>        {
>            request = (HttpServletRequest)req;
>            response = (HttpServletResponse)res;
>        }
>        catch(ClassCastException e)
>        {
>            throw new ServletException("non-HTTP request or response");
>        }
>        service(request, response);
>    }
>
> }
>
> After I call the web service operation, I get Message from server as
> following:
>
> 11:41:46,265 ERROR [STDERR] HttpServlet.service(): req
> class:org.apache.catalina
> .connector.RequestFacade----------------------
> 11:41:46,265 ERROR [STDERR] HttpServlet.service():rsp
> class:org.apache.catalina.
> connector.ResponseFacade-----------------------
> 11:41:46,265 ERROR [[ApacheMuseServlet]] Servlet.service() for servlet
> ApacheMus
> eServlet threw exception
> javax.servlet.ServletException: non-HTTP request or response
>        at javax.servlet.http.HttpServlet.service(Unknown Source)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:290)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:206)
>        at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
> lter.java:96)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:206)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:235)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
>        at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
> yAssociationValve.java:190)
>        at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
> e.java:92)
>        at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
> ss(SecurityContextEstablishmentValve.java:126)
>        at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
> e(SecurityContextEstablishmentValve.java:70)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:127)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:102)
>        at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
> onnectionValve.java:158)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
> a:330)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :828)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ss(Http11Protocol.java:601)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
> 7)
>        at java.lang.Thread.run(Thread.java:595)
>
> Hope you could give some help
> --
> View this message in context: http://www.nabble.com/Problems-of-running-muse-wrsf-example-on-JBoss-tp22471238p22537334.html
> Sent from the Muse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-dev-unsubscribe@...
> For additional commands, e-mail: muse-dev-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...

 « Return to Thread: Problems of running muse wrsf example on JBoss