You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Pekka J Nieminen <pj...@cc.helsinki.fi> on 2003/05/26 15:11:53 UTC

Installation problem

Hi,

I am running j2sdk1.4.1_02 + Tomcat 4.1.24-LE-jdk14 under
Windows 2000, and I tried to install Lenya from the binary distribution
lenya-0.8-dev-bin-20030526044849.zip located at
http://cvs.wyona.org/nightly-builds/ .

I extracted lenya.war from the zip file over to my tomcat/webapps
directory and started Tomcat.  The first problem I encountered was
the following (as reported by Tomcat during startup):

-- cut --
. . . . .
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException:
..\..\build\tomcat\webapps\lenya\WEB-INF\logs\log4j.log
(The system cannot find the path specified)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:174)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
. . . . .
-- cut --

I located this to the file log4j.properties in the directory
\tomcat\webapps\lenya\WEB-INF\classes.  When i replaced the path
expression "..\..\build\tomcat" by "\tomcat" (the directory I have
Tomcat installed in), the exception disappeared.

However, the main problem still persists: pointing my browser to
http://localhost:8080/lenya/ yields only a blank page.

Does somebody here have any suggestions?  In an earlier posting
someone mentioned about updating the Xalan and Xerces libraries.
I tried this by copying xalan-20030506.jar, xercesImpl-2.4.0.jar
and xml-apis.jar files from the Cocoon 2.1M2 distribution to
\tomcat\common\endorsed, but it had no effect.

I find it somewhat confusing that there are quite a few inconsistencies
in the Lenya installation instructions.  For example, on page
http://www.lenya.org/installation/prerequisites.html it first speaks
about tomcat-4.1.24 and later about 4.1.21.  It also mentions J2SE 1.4.2
Beta, but on page http://www.lenya.org/installation/source_version.html
it refers to j2sdk1.4.1_01.  The instructions INSTALL-BIN.txt
accompanying the WAR file seem to be completely out-of-date.

Thanks in advance!

Regards,
Pekka

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Installation problem

Posted by Andreas Hartmann <an...@apache.org>.
Pekka J Nieminen wrote:

> Hi Andreas,
> 
> 
>>Did you enter an absolute path for install.dir in the build.properties
>>file?
> 
> No.  I was attempting to install from the binary distribution, simply
> by copying lenya.war to \tomcat\webapps.  Didn't build anything.

OK, that doesn't work this way. Unfortunately, log4j.properties
and cocoon.xconf must contain absolute paths to the log4j logfile
and the entity catalog, respectively. You solved the log4j problem,
but maybe your error is caused by cocoon.xconf.

If you look in WEB-INF/cocoon.xconf, you should find a section
called <entity-resolver>. It contains one or more paths that will be
relative paths in your case, but should be absolute ones. Please
try to replace them.

> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access
> its superclass
> org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase
> 	at java.lang.ClassLoader.defineClass0(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>  [..]

I haven't seen this one before.
Seems that there are some incompatiblities between some jars and
sources. Did you check out the mail archives?

HTH,
Andreas




---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Installation problem

Posted by Andreas Hartmann <an...@apache.org>.
Pekka J Nieminen wrote:

> Hi,
> 
> I am running j2sdk1.4.1_02 + Tomcat 4.1.24-LE-jdk14 under
> Windows 2000, and I tried to install Lenya from the binary distribution
> lenya-0.8-dev-bin-20030526044849.zip located at
> http://cvs.wyona.org/nightly-builds/ .

[...]

> expression "..\..\build\tomcat" by "\tomcat" (the directory I have
> Tomcat installed in), the exception disappeared.

Did you enter an absolute path for install.dir in the build.properties
file?

> 
> However, the main problem still persists: pointing my browser to
> http://localhost:8080/lenya/ yields only a blank page.

Could you attach your logfiles from webapps/lenya/WEB-INF/logs
and tomcat/logs?

> I find it somewhat confusing that there are quite a few inconsistencies
> in the Lenya installation instructions.  For example, on page
> http://www.lenya.org/installation/prerequisites.html it first speaks
> about tomcat-4.1.24 and later about 4.1.21.

It shouldn't matter if you use 21 or 24.

> It also mentions J2SE 1.4.2
> Beta, but on page http://www.lenya.org/installation/source_version.html
> it refers to j2sdk1.4.1_01.

You can use either one.

HTH,
Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org