Another Tomcat question - IBM AS400

This is a discussion on Another Tomcat question - IBM AS400 ; Hi all, Another problem with Tomcat is that I can't use symbolic link's. For example, if I want to serve external folder within Tomcat I need to setup xxxxx.xml in tomcat/conf/catalina/localhost with following: allowLinking="true" reloadable="true" crossContext="true"> I think the problem ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Another Tomcat question

  1. Another Tomcat question

    Hi all,

    Another problem with Tomcat is that I can't use symbolic link's.
    For example, if I want to serve external folder within Tomcat I need to
    setup
    xxxxx.xml in tomcat/conf/catalina/localhost with following:

    allowLinking="true"
    reloadable="true" crossContext="true">



    I think the problem is that Tomcat use java.io.File instead IFSJavaFile
    because I get the error

    java.io.IOException: bad path error
    at java.lang.Throwable.(Throwable.java:196)
    at java.lang.Exception.(Exception.java:41)
    at java.io.IOException.(IOException.java:40)
    at java.io.IOException.(IOException.java:40)
    at java.io.Os400FileSystem.canonicalize(Native Method)
    at java.io.File.getCanonicalPath(File.java:559)
    .............................

    Is there any workaround for this or I missconfigured something or should I
    get Tomcat source and
    change java.io.File into IFSJavaFile?!?!?!?

    This was tested on Windows and works great.

    Niko!



  2. Re: Another Tomcat question

    It looks that QDLS is not accessible, other folders works.
    We have some old applications that generates documents inside QDLS/PFDATA
    so I need them to be accessible.
    Only idea I have is to create some servlet filter and when request is made
    to QDLS/PFDATA
    filter will load and forward data to the user.

    Niko.




+ Reply to Thread