[ 
http://jira.codehaus.org/browse/XFIRE-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88567
 ] 

Dave Kallstrom commented on XFIRE-827:
--------------------------------------

I just tried this again and found out that if I specify the location of the 
services.xml file like the following
     <servlet>
                <servlet-name>XFire</servlet-name>
                <display-name>XFire Servlet</display-name>
                
<servlet-class>org.codehaus.xfire.transport.http.XFireConfigurableServlet</servlet-class>
                <init-param>
                        <param-name>config</param-name>
                        <param-value>services.xml</param-value>
                </init-param>
        </servlet>
and leave the war file packed the application correctly finds services.xml if 
it is in the classpath.
So in my case I placed the services.xml in WEB-INF/classes. However if I do not 
specify the location of the services.xml file xfire assumes it is in 
META-INF/xfire/services.xml
which would not typically be on the classpath. If you take a look at 
XFireConfigLoader you'll notice that when the file does not exists on disk it 
uses ClassPathResource to load the file.
So this may not be an issue with the code but may be an issue with the 
documentation for the location of services.xml.

> services.xml file not being found when war file is not expanded
> ---------------------------------------------------------------
>
>                 Key: XFIRE-827
>                 URL: http://jira.codehaus.org/browse/XFIRE-827
>             Project: XFire
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.3
>         Environment: Windows XP server running tomcat 5.5.17
>            Reporter: Dave Kallstrom
>         Assigned To: Tomasz Sztelak
>             Fix For: 1.2.5
>
>
> XFireConfigurableServlet does not seem to be able to read the services.xml 
> file from a non expanded war file. As soon as I expand the war file 
> everything runs as expected.
> I have the services.xml file place in WEB-INF/META-INF/xfire/services.xml. My 
> web.xml file looks like the following. Notice I am not specifying where the 
> services.xml file is located. Although that does not seem to matter either 
> way.
> <servlet>
>    <servlet-name>XFire</servlet-name>
>    <display-name>XFire Servlet</display-name>
>     
> <servlet-class>org.codehaus.xfire.transport.http.XFireConfigurableServlet</servlet-class>
> </servlet>
> <servlet-mapping>
>    <servlet-name>XFire</servlet-name>
>    <url-pattern>/xfire/*</url-pattern>
> </servlet-mapping>

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to