Skip navigation.
Home
El JUG universitario de la Comunidad Java Mexico

Problema con el metodo getRealPath() en Weblogic 9.2

Enterprise Edition

Enviado por Andres Guardado a la lista de correo

--------------------------

Hola,

En weblogic 9.2 en un servlet quiero utilizar el metodo getRealPath() pero siempre me envia una exception. He buscado en la red la manera de solucionarlo, sin mucho exito. Hay una solucion pero es para Weblogic 10.

Alguno de ustedes ha tenido este problema? como lo ha solucionado? De antemano gracias.

Esta es la solucion pero para Weblogic 10

If you deploy a web app as an archive war file, then context.getRealPath() returns null. This behavior can lead to certain failures in cases where the web app is dependent on the path.
Solution:
Use the flag to specify that context.getRealPath() returns the path of the resource from the Server's internal webapp extraction directory for archived web applications. The flag can be configured in two ways:

* At domain level in config.xml. For example:

true