WLP 8.1 weblogic.utils.io.FilenameEncoder$UnsafeFilenameEx ceptiondeploying Pageflow
I am setting up a development environment with a linux box hosting a
full WL Platform 8.1 install which i've exposed as a windows share using
samba quite successfully. (I also start up the weblogic server on the
linux box)
Now Ive done a full install of WL Platform 8.1 on another windows box,
and have mounted the shared samba drive as a windows drive (z:) on the
windows PC and managed to connect Workshop running on the windows box to
the running server on the linux box. Things seem to work quite well, For
example, i've deployed a very simple process and it works fine, i can
use the test harness to successfully execute the process. However, when
i try to run a simple page flow that i create, i get the following
exception:
<15-Oct-2003 00:59:24 o'clock IST> <Error> <HTTP> <BEA-101005>
<[ServletContext(id=3879938,name=Untitled,context-path=/Untitled)]
getRealPath() called with unsafe path: "/WEB-INF/jpf-struts-config.xml".
weblogic.utils.io.FilenameEncoder$UnsafeFilenameException:
/home3/bea/DEV/FirstProject/process/Untitled/WEB-INF/jpf-struts-config.xml
not under:
/home3/bea/user_projects/domains/platformdomain/./../../../DEV/FirstProject/process/Untitled
at weblogic.utils.io.FilenameEncoder.getSafeFile(FilenameEncoder.java:220)
at
weblogic.servlet.internal.WebAppServletContext.getRealPath(WebAppServletContext.java:924)
at
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.registerStaleModule(DynamicSubappActionServlet.java:539)
at
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.ensureModuleRegistered(DynamicSubappActionServlet.java:500)
at
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.getModuleConfig(DynamicSubappActionServlet.java:455)
at
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.process(DynamicSubappActionServlet.java:389)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)[color=blue]
>[/color]
I have looked in the weblogic console on the linux box, and it looks
like the application is deployed with a relative path as opposed to an
absolute path:
Path: ../../../DEV/FirstProject/process
The URI, located on the Administration Server, of the original source
files for this application.
Is there something i can do prevent this problem from occurring? i.e.
can i tell weblogic workshop to deploy my application with an absolute
path as opposed to a relative path?
Note: I had exactly the same problem when attempting to deploy page
flows between two windows pcs, one hosting the server, and trying to run
pageflows created in workshop on the other, so i dont think it has
anything to do with me deploying the stuff to windows in this instance.
Re: WLP 8.1 weblogic.utils.io.FilenameEncoder$UnsafeFilenameEx ception deploying Pageflow
I too have the same problem. According to my understanding this can be
solved by placing the source in the server (linux box)
under your domain where you deploy the application.
Let me know if it help you.
Karthi.
"soteri panagou" <panagos@eircom.net> wrote in message
news:3f8c9bb1@newsgroups.bea.com...[color=blue]
> I am setting up a development environment with a linux box hosting a
> full WL Platform 8.1 install which i've exposed as a windows share using
> samba quite successfully. (I also start up the weblogic server on the
> linux box)
>
> Now Ive done a full install of WL Platform 8.1 on another windows box,
> and have mounted the shared samba drive as a windows drive (z:) on the
> windows PC and managed to connect Workshop running on the windows box to
> the running server on the linux box. Things seem to work quite well, For
> example, i've deployed a very simple process and it works fine, i can
> use the test harness to successfully execute the process. However, when
> i try to run a simple page flow that i create, i get the following
> exception:
>
> <15-Oct-2003 00:59:24 o'clock IST> <Error> <HTTP> <BEA-101005>
> <[ServletContext(id=3879938,name=Untitled,context-path=/Untitled)]
> getRealPath() called with unsafe path: "/WEB-INF/jpf-struts-config.xml".
> weblogic.utils.io.FilenameEncoder$UnsafeFilenameException:
> /home3/bea/DEV/FirstProject/process/Untitled/WEB-INF/jpf-struts-config.xml
> not under:
>[/color]
/home3/bea/user_projects/domains/platformdomain/./../../../DEV/FirstProject/
process/Untitled[color=blue]
> at weblogic.utils.io.FilenameEncoder.getSafeFile(FilenameEncoder.java:220)
> at
>[/color]
weblogic.servlet.internal.WebAppServletContext.getRealPath(WebAppServletCont
ext.java:924)[color=blue]
> at
>[/color]
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.registerStaleModule(Dy
namicSubappActionServlet.java:539)[color=blue]
> at
>[/color]
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.ensureModuleRegistered
(DynamicSubappActionServlet.java:500)[color=blue]
> at
>[/color]
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.getModuleConfig(Dynami
cSubappActionServlet.java:455)[color=blue]
> at
>[/color]
com.bea.wlw.netui.pageflow.DynamicSubappActionServlet.process(DynamicSubappA
ctionServlet.java:389)[color=blue]
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>[/color]
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)[color=blue]
> at
>[/color]
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)[color=blue]
> at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
> at
>[/color]
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)[color=blue]
> at
>[/color]
com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
313)[color=blue]
> at
>[/color]
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)[color=blue]
> at
>[/color]
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6316)[color=blue]
> at
>[/color]
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)[color=blue]
> at[/color]
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)[color=blue]
> at
>[/color]
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3622)[color=blue]
> at
>[/color]
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2569)[color=blue]
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)[color=green]
> >[/color]
>
>
> I have looked in the weblogic console on the linux box, and it looks
> like the application is deployed with a relative path as opposed to an
> absolute path:
>
> Path: ../../../DEV/FirstProject/process
> The URI, located on the Administration Server, of the original source
> files for this application.
>
> Is there something i can do prevent this problem from occurring? i.e.
> can i tell weblogic workshop to deploy my application with an absolute
> path as opposed to a relative path?
>
> Note: I had exactly the same problem when attempting to deploy page
> flows between two windows pcs, one hosting the server, and trying to run
> pageflows created in workshop on the other, so i dont think it has
> anything to do with me deploying the stuff to windows in this instance.
>[/color]
RE: Re: WLP 8.1 weblogic.utils.io.FilenameEncoder$UnsafeFilenameEx ception deploying Pageflow
This tip solved the our problem as well. Though our server was Windows 2000 box.
Thanks