You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Berin Loritsch <bl...@apache.org> on 2001/01/12 21:24:17 UTC
Re: Can't display XML files correctly using XSLT when they're outside
Mercier Xavier wrote:
> Hey ya, Cocooners!
>
>
>
> First of all, a quick word about my current configuration...
The problem you are facing is one dealing with Servlets. Servlets
and webapps are designed to be self-contained entities, therefore
everything has to be part of the same webapp--otherwise the Servlet
Engine is _supposed_ to deny you access.
If you can tell Tomcat that your webapp is installed in the
MatrixProject root, then Tomcat will treat that as a context
root--and everything should be happy again.
>
>
>
>
>
> I'm working with the following softwares:
>
>
>
> Microsoft Windows NT 4.00.1381 (NT 4)
>
> Internet Explorer 5.50.4522.1800 (IE 5.5)
>
> Sun java SDK 1.3
>
> Apache 1.3.11
>
> Tomcat 3.1
>
> Cocoon 1.8
>
>
>
>
>
> So that you can make sense of my files, here are the paths of the roots I'm
>
> using:
>
>
>
> - The tomcat root is C:\tomcat.
>
> - The MatrixProject root is C:\tomcat\webapps\cocoon\servlets\MatrixProject
>
> (notice that it's well under the tomcat root).
>
> - The matrix root is
>
> C:\InternetTechnologiesGroup\webroot\htdocs\itg\projects\matrix (this one is
>
> completely independent of the tomcat root).
>
>
>
>
>
> I installed Cocoon a few months ago, strictly following the steps shown by
>
> the documentation. I've been working with Cocoon for 3 months now and I must
>
> say that except for a few trifles, it's been working just fine. Especially,
>
> I had put my XML files, along with the corresponding DTDs, entities and
>
> style sheets, all properly organized in folders, in a subdirectory of my
>
> tomcat "webapps/cocoon" directory. And it was perfect: when I tried to
>
> access one of these XML files from my Matrix Project, calling for instance a
>
> URL like http://localhost/cocoon/servlets/MatrixProject/xml/letter.xml, my
>
> browser displayed brilliantly the corresponding HTML version after
>
> processing by XSLT. The HTML version displayed a table and a picture among
>
> other things as I expected it (it's a very important piece of information
>
> for what will follow).
>
>
>
>
>
> Last week, I tried to move my work files. Not only under the tomcat
>
> "webapps/cocoon" directory but even worse: outside of the root directory of
>
> tomcat!!! Lastly, as I'm sure you've guessed, I tried to move them inside
>
> of the matrix root... After all, the Cocoon documentation never says it is a
>
> forbidden thing, or does it? Of course, I made a few changes in some of my
>
> configuration files, notably:
>
>
>
> - in server.xml (a tomcat configuration file), which now contains:
>
> <Context path="/matrix"
>
>
>
> docBase="C:\InternetTechnologiesGroup\webroot\htdocs\itg\projects\matrix"
>
> debug="9"
>
> reloadable="true" >
> </Context>
>
> - in tomcat-apache.conf (another tomcat configuration file), which now
>
> contains:
>
> Alias /matrix
>
> C:\InternetTechnologiesGroup\webroot\htdocs\itg\projects\matrix
>
> <Directory
>
> "C:\InternetTechnologiesGroup\webroot\htdocs\itg\projects\matrix">
> Options Indexes FollowSymLinks
>
> </Directory>
> ApJServMount /matrix/servlet /matrix
>
> <Location /matrix/WEB-INF/ >
> AllowOverride None
>
> deny from all
>
> </Location>
>
>
> These changes being made, I tried to launch Apache and Tomcat and access the
>
> URL http://localhost/matrix/xml/letter.xml. Then, something funny happened:
>
> an HTML version of my XML file was indeed processed by XSLT but the result
>
> displayed was limited only to the table without the text, as if the contents
>
> of the XML nodes couldn't be read, and to the text that appears when the
>
> picture can't be displayed in the browser.
>
>
>
>
>
> So, obviously, I forgot something. Perhaps in the configuration files or
>
> elsewhere. But what? And where?
>
>
>
> Thanks in advance for your help :)
>
>
>
> Xavier
>
> (Galway, Ireland)
>
>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>
> For additional commands, e-mail: cocoon-users-help@xml.apache.org