cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Duddleston" <da...@i2a.com>
Subject RE: WAR file
Date Thu, 01 Jun 2000 01:05:15 GMT

> 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?

Yeah, it would be good to fix this. I just manualy created the directory
like you did.

>  - 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?

That is because C2 uses the sitemap and there is no entry for that. Try
url/cocoon/hello



For adding .jar files... the order is important. Xerces should be called
first due to reasons explained in the install docs.

set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_0_3.jar
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\cocoon.jar
set CLASSPATH=%TOMCAT_HOME%\classes
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jaxp.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\parser.jar
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar


This problem is fixed by having xerces.jar called before other xml related
jar files... see order above.

>
> 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.AbstractMarkupLanguag
> e.generate
> Code(AbstractMarkupLanguage.java:265)
> 	at
> org.apache.cocoon.components.language.generator.ProgramGeneratorIm
> pl.load(Pr
> ogramGeneratorImpl.java:185)
> 	at
> org.apache.cocoon.generators.ServerPagesGenerator.generate(ServerP
> agesGenera
> tor.java:123)
> 	at
> org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcesso
> r.java:161
> )
> 	at
> org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartitio
> n.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.processConnec
> tion(HttpC
> onnectionHandler.java:160)
> 	at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoin
> t.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(Directory
> Generator.
> java:135)
> 	at
> org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcesso
> r.java:161
> )
> 	at
> org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartitio
> n.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.processConnec
> tion(HttpC
> onnectionHandler.java:160)
> 	at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoin
> t.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