You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/12/09 12:30:57 UTC
DO NOT REPLY [Bug 50442] New: Replacing # with / does not work
https://issues.apache.org/bugzilla/show_bug.cgi?id=50442
Summary: Replacing # with / does not work
Product: Tomcat 6
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: ognjen.milic@asw.eu
We have need to have our docBase not to be directly under appBase but like this
${TOMCAT_HOME}/webapps/iis_root/iis.
We call context XML file iis_root#iis.xml as it is advised in documentation but
then we get this error.
java.lang.IllegalArgumentException: Document base
/home/dev-erp/tomcat/webapps/iis_root#iis does not exist or is not a readable
directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4249)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4418)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50442] Replacing # with / does not work
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50442
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-12-09 06:37:04 EST ---
A docBase of ${TOMCAT_HOME}/webapps/iis_root/iis is not supported. For further
assistance please use the users mailing list.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50442] Replacing # with / does not work
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50442
Ognjen Milic <og...@asw.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Ognjen Milic <og...@asw.eu> 2010-12-09 10:06:13 EST ---
In tomcat docs about context definition it says.
Context elements may be explicitly defined:
.....
-------------------------------------------------------------------------------
* In individual files (with a ".xml" extension) in the
$CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The name of the file
(less the .xml extension) will be used as the context path. Multi-level context
paths may be defined using #, e.g. foo#bar.xml for a context path of /foo/bar.
The default web application may be defined by using a file called ROOT.xml.
---------------------------------------------------------------------------
.....
So we concluded that iis_root#iis is allowed context path for iis_root/iis. Is
the documentation wrong?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50442] Replacing # with / does not work
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50442
Chuck Caldarale <ch...@unisys.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Chuck Caldarale <ch...@unisys.com> 2010-12-09 10:16:41 EST ---
(In reply to comment #2)
> So we concluded that iis_root#iis is allowed context path for iis_root/iis. Is
> the documentation wrong?
You're confusing context path (the URL) with the file system path (docBase).
For a context path of iis_root/iis, the file system path must be iis_root#iis
if the webapp is deployed under the <Host> appBase directory.
- Chuck
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org