Topic
  • 1 reply
  • Latest Post - ‏2013-09-26T18:24:33Z by JAntley
MickH
MickH
1 Post

Pinned topic Liberty profile ServletContext.getRealPath()

‏2013-09-19T16:49:16Z |

I'm attempting to use the liberty profile 8.5 in eclipse to run a web application previously ran on websphere 6.1 in RAD.

I've encountered the known issue "An application that relies on a result being returned by getRealPath must be deployed as an expanded application, not as a WAR file".

It is planned to use websphere full profile as the production server, so do not wish to make code changes to solve this development environment issue.

In our application the getRealPath call is made from a utility jar in the lib folder of the ear, and from a war within the ear.

Can a war file similarly be deployed as "expanded" within an ear to get a result other than null?

Can a jar file similarly be deployed as "expanded" within an ear to get a result other than null?

If so what are the correct paths/locations?

What best way to do this? (I cannot use the dropins folder because I need to add a classloader node in the server.xml)

Any suggestions or directions to specific documents appreciated.