cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stevenson, Chris (SSABSA)" <ch...@ssabsa.sa.gov.au>
Subject RE: WAR file
Date Thu, 01 Jun 2000 00:50:38 GMT
> I've updated the CVS to get the build system create a cocoon.war by
> default. Please could someone with a win$ system check if the
> installation instruction for the tomcat installation works.

My comments follow

Install works beautifully, and the hello sample works. So does the URL
 http://localhost:8080/cocoon/samples/
 
but if you click on the links errors start appearing...
Summary:
 - simple-page.xsp tries to create files in /tmp which may not exist 
   ?should use File.createTempFile() (1.2 specific) - are you now 
   targeting for 1.2 JVMs?
 - README causes an error Cannot read directory from 
   file:/E:/dev/jakarta-tomcat/webapps/cocoon/samples/README
   ?is this caused by the lack of an extension, some strange 
   mime-type problem?

(Details below...)

Also, to save us (mis)typing you might want to put in a note after:

"Note that if you are running Tomcat on a Windows operating system 
you have to adjust the classpath to include all jar files copied so 
far in the [path-to-Tomcat]/bin/tomcat.bat file"

to say something like:

that is, add the following lines just before the line 
"if "%cp%" == "" goto next"

set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop_0_12_1.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\js.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jstyle.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\svgv_0_8.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_0_1.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_0_3.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cocoon.jar

--

the documents directory works, as does the hello page, but if you 
click on simple-page.xsp, then you get the following Exception (I
am running on my E: drive, so I presume XSP Processor is trying 
to create a file in /tmp?? naughty!! :-)

org.apache.cocoon.ProcessingException: Error creating store directory
'E:\tmp\repository\': 
	at
org.apache.cocoon.generators.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:126)
	at
org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcessor.java:161
)
	at
org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartition.java:102
)
	at org.apache.cocoon.sitemap.Sitemap.process(Sitemap.java:95)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:179)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)

--

If I create the /tmp directory I get the following:

java.lang.NoSuchMethodError
	at
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage.quoteStri
ngs(XSPMarkupLanguage.java:141)
	at
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage.quoteStri
ngs(XSPMarkupLanguage.java:148)
	at
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage.preproces
sDocument(XSPMarkupLanguage.java:97)
	at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:265)
	at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:185)
	at
org.apache.cocoon.generators.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:123)
	at
org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcessor.java:161
)
	at
org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartition.java:102
)
	at org.apache.cocoon.sitemap.Sitemap.process(Sitemap.java:95)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:179)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)

--

http://localhost:8080/cocoon/samples/README

causes

Class: java.io.IOException
Message: Cannot read directory from
file:/E:/dev/jakarta-tomcat/webapps/cocoon/samples/README"

java.io.IOException: Cannot read directory from
file:/E:/dev/jakarta-tomcat/webapps/cocoon/samples/README"
	at
org.apache.cocoon.generators.DirectoryGenerator.generate(DirectoryGenerator.
java:135)
	at
org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcessor.java:161
)
	at
org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartition.java:102
)
	at org.apache.cocoon.sitemap.Sitemap.process(Sitemap.java:95)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:179)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)

-- Chris Stevenson ----------------------- SSABSA --
Senior Secondary Assessment Board of South Australia
60 Greenhill Road, Wayville SA 5034, Australia
email: chris@ssabsa.sa.gov.au
phone: (08) 8372 7515
  fax: (08) 8372 7590
----------------------------------------------------


Mime
View raw message