[dna-issues] [JBoss JIRA] Updated: (DNA-501) dna-web-jcr-rest should depend on servlet-api using the provided scope instead of compile

Brian Carothers (JIRA) jira-events at lists.jboss.org
Wed Aug 5 11:00:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/DNA-501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Carothers updated DNA-501:
--------------------------------

    Attachment: DNA-501.patch


Added patch to make the change from compile to provided.  Tests still pass and the change makes sense.

> dna-web-jcr-rest should depend on servlet-api using the provided scope instead of compile
> -----------------------------------------------------------------------------------------
>
>                 Key: DNA-501
>                 URL: https://jira.jboss.org/jira/browse/DNA-501
>             Project: DNA
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.6
>         Environment: JBoss DNA revision 1143
> JBoss AS 5.1.0.GA
>            Reporter: torkjel hongve
>         Attachments: DNA-501.patch
>
>
> JBoss throws the following exception when resources.war (produced by dna-web-jcr-rest-war) is deployed: 
> 14:01:48,969 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception                                                                                        
> javax.servlet.ServletException: non-HTTP request or response                                                                                                                  
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)                                                                                                       
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)                                                                  
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)                                                                          
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)                                                                                 
> etc... 
> The error message is fairly cryptic, but the problem seems to be that the war file and JBoss itself provides different versions of servlet-api.jar. Using the provided scope for dna-web-jcr-rest's dependency on servlet-api fixes the problem by removing servlet-api.jar from the war file. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the dna-issues mailing list