[ 
https://issues.apache.org/jira/browse/MUSE-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Shiell reopened MUSE-141:
-------------------------------


Many thanks. However, much as I hate to cause a fuss, I'm having problems with 
the fix. WLS 9.2 seems to try loading the relatively linked WSDL/XSD files from 
classes/*, rather than classes/wsdl.

I have another suggestion for a fix which I think is a little nicer. I've 
attached an extension of AxisEnvironment I'm using, that loads the files using 
the ServletContext rather than the classpath. This also means that the 
router-entires/WSDL/muse.xml can remain in the AAR file, as they no longer need 
to be on the CP.

Thoughts much appreciated. And thanks again for both your hard work and 
responsiveness on this - it is gratefully appreciated.

> Muse 2 dependant on file-system access of resources
> ---------------------------------------------------
>
>                 Key: MUSE-141
>                 URL: https://issues.apache.org/jira/browse/MUSE-141
>             Project: Muse
>          Issue Type: Bug
>          Components: Deployment - Axis2
>    Affects Versions: 2.0.0
>         Environment: WLS 9.2
>            Reporter: James Shiell
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: MUSE141.java
>
>
> Currently all file access in the AxisEnvironment is done via getRealPath(). 
> This could fail when an application server does not extract the code from the 
> JAR file.
> To get around this the servlet context should be used:
> final ServletContext servletContext = (ServletContext) 
> opContext.getConfigurationContext().getProperty(
>                 HTTPConstants.MC_HTTP_SERVLETCONTEXT);
> URL url = servletContext.getResource("/WEB-INF/services/muse/muse.xml");
> InputStream in = 
> servletContext.getResourceAsStream("/WEB-INF/services/muse/muse.xml");

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to