Thanks for the quick reply. Sorry - typo in previous email (name/path
should have read path/docBase!).
I actually did try renaming mywebapp.xml to differentName.xml, but got
errors saying it couldn't find ...\webapps\differentName.
So now I have differentName.xml, containing
<Context path="/differentName" docBase="/mywebapp"/>
but I get the follow errors:
27-Jun-2006 12:04:33 org.apache.catalina.startup.HostConfig
deployDescriptor
WARNING: A docBase C:\jakarta-tomcat-5.5.12\webapps\mywebapp inside the
host app
Base has been specified, and will be ignored
27-Jun-2006 12:04:33 org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\jakarta-tomcat-5.5.12
\webap
ps\differentName does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3777)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
948)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:603)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:680
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
27-Jun-2006 12:04:33 org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
27-Jun-2006 12:04:34 org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
27-Jun-2006 12:04:34 org.apache.catalina.core.StandardContext start
SEVERE: Context [/differentName] startup failed due to previous errors
27-Jun-2006 12:04:34 org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/
differentName] has not been started
What am I doing wrong?
cheers,
David
|---------+---------------------------->
| | Pid |
| | <[EMAIL PROTECTED]> |
| | |
| | 27/06/2006 11:25 |
| | Please respond to|
| | "Tomcat Users |
| | List" |
| | |
|---------+---------------------------->
>-----------------------------------------------------------------------------------------------------------------|
|
|
| To: Tomcat Users List <[email protected]>
|
| cc:
|
| Subject: Re: Problem referencing webapp with different context name
|
>-----------------------------------------------------------------------------------------------------------------|
[EMAIL PROTECTED] wrote:
> Hi,
>
> We install a webapp under tomcat\webapps\mywebapp by exploding the
> appropriately named war file.
>
> However, we need users to be able to reference it by typing in
> http://myserver/differentName.
>
> I tried adding a mywebapp.xml file under C:\jakarta-tomcat-5.5.12
> \conf\Catalina\localhost with the context definition:
>
> <context name="/differentName" path="/mywebapp"/>
>
> but I get an error
>
> "WARNING: A docBase C:\jakarta-tomcat-5.5.12\webapps\mywebapp
inside
> the host appBase has been specified, and will be ignored"
>
> I *think* I can get around this by placing the webapp outside of the
> \webapps folder, but then I lose the ability to explode the war.
>
> It seems to work ok if I place the context definition in server.xml, but
> that's not recommended by the docs.
>
> What am I missing - surely this is possible?
Rename the mywebapp.xml file to differentName.xml, and re-read the
admittedly unclear docs about the path attribute at:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> cheers,
>
> David
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [email protected]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]