Thanks for the timely response.. I've been scratching my head over this for
the past day and a half thinking I am just not getting this right. Are there
any other active gotcha's I need to watch out for? I am using this for
testing and some "getting my feet wet" work in JSP 2.0.

By the way, is there any further documentation on the JK2 interface for IIS?
I am curious to see if there have been any improvements in speed or
manageability since Tomcat 4 was updated. 

Thanks again... Now I feel a little less silly.. ;-)

Richard Norman
Web/Application Developer

-----Original Message-----
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 08, 2003 11:42 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.0.9 appBase and docBase questions...

Richard Norman wrote:
> I have a question and I have looked all through the documentation and 
> have not found the solution.
> 
> Firstly I wanted to know if there is a source to go to about using 
> Tomcat 5.0.9 with IIS on Windows. Particularly the JK2 connector and 
> ISAPI connector?
> 
> If not, then is there some sore of direction I can be given to test 
> out this new version?
> 
> Secondly, is there some parts of the configuration not working 
> properly for Tomcat 5.0.9? I am able to set the appBase of a Host 
> properly, however whenever I try to set a context with a different 
> drive for the docBase, or try to have the admin.xml and manager.xml 
> files configure their context, I get the following error...
> 
> Again, here is my Host command in server.xml....
> 
> *********************************************
> <Host name="localhost" debug="4" appBase="e:/inetpub/wwwroot" 
> unpackWARs="true" autoDeploy="true" reloadable="true">
> 
> And my Admin.xml is as follows
> *********************************************
> <Context path="/admin" docBase="c:/Tomcat/Tomcat-5.0/server/webapps/admin"
>        debug="4" privileged="true">
> 
>  <Logger className="org.apache.catalina.logger.FileLogger"
>             prefix="localhost_admin_log." suffix=".txt"
>          timestamp="true"/>
> 
> </Context>
> *********************************************
> 
> The error I receive is this (long entry)...
> *********************************************
> Sep 8, 2003 5:01:48 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL 
> file:C:\Tomcat\Tomcat-5.0\conf\Catalina\localhost\admin.xml
> Sep 8, 2003 5:01:48 PM org.apache.commons.digester.Digester 
> startElement
> SEVERE: Begin event threw exception
> java.io.IOException: The filename, directory name, or volume label 
> syntax is incorrect
>     at java.io.WinNTFileSystem.canonicalize0(Native Method)
>     at java.io.Win32FileSystem.canonicalize(Unknown Source)
>     at java.io.File.getCanonicalPath(Unknown Source)
>     at java.io.File.getCanonicalFile(Unknown Source)
>     at
> org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
>     at org.apache.commons.digester.Rule.begin(Rule.java:200)
>     at
> org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>     at 
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>     at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> (Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRo
> otElementHook(Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD
> ispatcher.dispatch(Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk
> nown
> Source)
>     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>     at org.apache.commons.digester.Digester.parse(Digester.java:1567)
>     at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl
> oyer.java:515)
> 
>     at
org.apache.catalina.core.StandardHost.install(StandardHost.java:866)
>     at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.ja
> va:529)
> 
>     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
>     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
>     at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:399)
>     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
> Support.java:166)
> 
>     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135)
>     at org.apache.catalina.core.StandardHost.start(StandardHost.java:792)
>     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
>     at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
>     at
> org.apache.catalina.core.StandardService.start(StandardService.java:519)
>     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)
> Sep 8, 2003 5:01:48 PM org.apache.catalina.startup.HostConfig
> deployDescriptors
> SEVERE: Error deploying configuration descriptor admin.xml
> java.io.IOException: java.io.IOException: The filename, directory 
> name, or volume label syntax is incorrect
>     at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl
> oyer.java:521)
> 
>     at
org.apache.catalina.core.StandardHost.install(StandardHost.java:866)
>     at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.ja
> va:529)
> 
>     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
>     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
>     at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:399)
>     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
> Support.java:166)
> 
>     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135)
>     at org.apache.catalina.core.StandardHost.start(StandardHost.java:792)
>     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
>     at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
>     at
> org.apache.catalina.core.StandardService.start(StandardService.java:519)
>     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)
> *********************************************
> 
> It is almost as if the appbase changes the context for the entire 
> server and not just that one host entry. The funny thing is if I place 
> a context entry, Tomcat will not even start. It is as though the 
> change in drive is not allowed or something. Have I come across a bug 
> or is this just beginner stupidity?
> 
> If I leave the appBase as the webapps folder, it all seems to work 
> just fine. the Admin and Manager XML files are processed fine. As soon 
> as I change the appBase or add an absolute path in the appBase or 
> contex entry, I get errors...
> 
> Thanks for your time and help...

This is a bug which has been reported recently, and is now fixed in 5.0.11.
Please look at the changelog and here: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22986

--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to