[
https://issues.apache.org/jira/browse/MUSE-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463064
]
Dan Jemiolo commented on MUSE-141:
----------------------------------
I'm confused - if WLS can't read files from the archived WEB-INF/classes (using
the ClassLoader.getResource() method(s)), how can it read .class files from the
same?
At any rate, I see two possible solutions here:
1. Install your applications as exploded directories:
http://edocs.bea.com/wls/docs60/adminguide/appman.html#1028814
http://e-docs.bea.com/wls/docs81/deployment/overview.html#1036349
I don't remember if this was an option for you or not, but it seems to fit.
2. We propose a WSL isolation layer to muse-dev that has the change you
propose. This would allow us to keep current users stable while still allowing
you to deploy on WLS. The new module would contain just the code to create the
Environment subclass you've made.
> 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]