ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hawkins, Joel" <Joel.Hawk...@compuware.com>
Subject RE: [jira] Created: (MUSE-141) Muse 2 dependant on file-system access of resources
Date Fri, 03 Nov 2006 14:11:50 GMT
I'd like to see an abstract protected method on AxisEnvironment to
return resources. That way I can override it to use an OSGi Bundle
rather than a ServletContext.

Cheers,
Joel

-----Original Message-----
From: James Shiell (JIRA) [mailto:jira@apache.org] 
Sent: Friday, November 03, 2006 8:30 AM
To: muse-dev@ws.apache.org
Subject: [jira] Created: (MUSE-141) Muse 2 dependant on file-system
access of resources

Muse 2 dependant on file-system access of resources
---------------------------------------------------

                 Key: MUSE-141
                 URL: http://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


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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira

        

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

The contents of this e-mail are intended for the named addressee only. It contains information
that may be confidential. Unless you are the named addressee or an authorized designee, you
may not copy or use it, or disclose it to anyone else. If you received it in error please
notify us immediately and then destroy it. 

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


Mime
View raw message