[ https://issues.apache.org/jira/browse/MUSE-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463008 ]
James Shiell commented on MUSE-141: ----------------------------------- Unfortunately, copying the WSDL to /classes results in no change. This appears to be a little messier than that - WLS reports the following: Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:im port[1]): faultCode=OTHER_ERROR: Unable to resolve imported document at 'WS-Reso urce-1_2.wsdl', relative to 'C:\dev\bea\user_projects\domains\mainline\servers\A dminServer\tmp\_WL_user\cspire\g5o3sf\war\WEB-INF\classes\wsdl': java.io.FileNot FoundException: This file was not found: file:/C:/dev/bea/user_projects/domains/ mainline/servers/AdminServer/tmp/_WL_user/cspire/g5o3sf/war/WEB-INF/classes/WS-R esource-1_2.wsdl However, while C:/dev/bea/user_projects/domains/ mainline/servers/AdminServer/tmp/_WL_user/cspire/g5o3sf/war/WEB-INF/classes/WS-R esource-1_2.wsdl exists, it is an empty directory. This could be related to WLS refusal to unarchive some files, which would explain why the servlet context method succeeds while this fails, but that's merely an informed guess. > 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]