Hello,
in my Apache 8 context.xml file, I have created the following resource:
<Resources>
<PreResources
className="org.apache.catalina.webresources.DirResourceSet"
base="/mnt/mynfsserver_img/"
webAppMount="/img"
internalPath="/img" />
</Resources>
where /mnt/mynfsserver_img is a mounted volume containing thousands of photos
in sub-directories.
When I start Tomcat 8, I get the following error message:
-------------------------------------
Caused by: org.apache.catalina.LifecycleException: Failed to initialize
component [org.apache.catalina.webresources.DirResourceSet@6649bfd3]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at
org.apache.catalina.webresources.StandardRoot.initInternal(StandardRoot.java:647)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 14 more
Caused by: java.lang.IllegalArgumentException: TODO-i18n: base/internalPath is
not a directory
at
org.apache.catalina.webresources.DirResourceSet.checkType(DirResourceSet.java:247)
at
org.apache.catalina.webresources.AbstractFileResourceSet.initInternal(AbstractFileResourceSet.java:134)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 16 more
--------------------------------------------
What am I doing wrong?
Many thanks.
Cheers,
Philippe
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]