I have downloaded the Lucidium platform from
Sourceforge. I'm still working on the installation path
for couple days now, without any success.
All the time I'm getting the following error in the
browser: "Error loading stylesheet: Parsing an XSLT
stylesheet failed."
Here are the details of my system configuration (local
computer):
- OS = WindowsXP Professional
- Java version = JDK 1.5.0
- Tomcat version = 4.1.27 and 5.5.9 (I've tried in
both, with the same results)
- Ant version = 1.6.5
- Browser = Firefox 1.0.6
Installation steps:
1. unpacked the distribution archive;
2. modified the build.xml in line 111 and chenged the
parameter of the 'antcall' tag from 'name' to 'target'
('name' attribute is throwing Ant execution error); 3.
created a 'build.bat' file to start the installation,
with the following structure:
set CATALINA_HOME=D:\Java\jakarta-tomcat-4.1.27
set MYSQL_HOME=D:\Database\MySQL Server 4.1
ant unpack
pause
4. started the installation. During the installation
process, the requested parameters (i.e. web server
addr, db server addr, db username, db password) were
introduced correctly.
5. the installation finishes correctly, with the
lucidium database created in my MySQL instance
6. started the Tomcat server
7. trying to load the lucidium system from:
http://localhost:8080/lucidium/
8. page does not work and I'm getting the above error
message.
After looking in the page sourcecode, I noticed that
the browser is supposed to load a XSL stylesheet,
'xsl/sy_global.xsl'. I've verified the request path of
the XSL file in the project deployment directory
(TOMCAT_HOME/webapps/lucidium/), where the files were
in their place, I've tried to point the browser
directly to that file like:
http://localhost:8080/lucidium/xsl/sy_global.xsl.
I'm getting the same error. After I looked again in the
page sourcecode, noticed that is the same page as the
first one from 'http://localhost:8080/lucidium/', more
specifically, the login page.
... which droves me to the conclusion that the file
access is automatically blocked by the Lucidium servlet
and redirected to the login page all the time. I have
tried te same approach with the help pages and the jsp
files. The bedhaviour is the same.
Next step was to port the project installation files to
an Eclipse project and to try to debug the system. I
did this, succesfully started the application, and
succesfully obtained the same error :) . After
debugging, I can say that the Lucidium servlet does not
implement any filtering to distinguish between the
different browser requests. In other words, when I
press enter in the browser location bar, there are
generated two requests to the server. On the first
request, a new session is created, the server
configuration is loaded for the new session, and the
user is "served" with the login page.
The browser parses this page and is making the second
call to the server, requesting the stylesheet needed to
display the previously loaded page. Unfortunatelly at
this point, the system fails, and is not allowing
direct access to that file.