error compiling cvs snapshots

2002-06-07 Thread rainer_burgstaller

Hi all

I downloaded the cvs snapshots from the website (I dont have cvs access due
to firewalls), and try to compile it with jdk1.3.1 and/or jdk1.4.0
with both jdks I get LOTS of errors when I try to compile.

snip
 [echo] Compiling with Java 1.3, debug on, optimize off, deprecation
off
[javac] Compiling 633 source files to C:
\java\xml-cocoon2\build\cocoon\class
es
[javac] C:
\java\xml-cocoon2\build\cocoon\src\org\apache\cocoon\components\la
nguage\programming\java\Jikes.java:68: cannot resolve symbol
[javac] symbol  : class AbstractJavaCompiler
[javac] location: class
org.apache.cocoon.components.language.programming.ja
va.Jikes
[javac] public class Jikes extends AbstractJavaCompiler {
[javac]^
[javac] C:
\java\xml-cocoon2\build\cocoon\src\org\apache\cocoon\components\la
nguage\programming\java\Javac.java:71: cannot resolve symbol
[javac] symbol  : class AbstractJavaCompiler
[javac] location: class
org.apache.cocoon.components.language.programming.ja
va.Javac
[javac] public class Javac extends AbstractJavaCompiler {
[javac]^
[javac] C:
\java\xml-cocoon2\build\cocoon\src\org\apache\cocoon\components\la
nguage\programming\java\JavaLanguage.java:64: cannot resolve symbol
[javac] symbol  : class CompiledProgrammingLanguage
[javac] location: package programming
[javac] import
org.apache.cocoon.components.language.programming.CompiledPro
grammingLanguage;
[javac]  ^
[javac] C:
\java\xml-cocoon2\build\cocoon\src\org\apache\cocoon\components\la
nguage\programming\java\JavaLanguage.java:80: cannot resolve symbol
[javac] symbol  : class CompiledProgrammingLanguage
[javac] location: class
org.apache.cocoon.components.language.programming.ja
va.JavaLanguage
[javac] public class JavaLanguage extends CompiledProgrammingLanguage
[javac]   ^
[javac] C:
\java\xml-cocoon2\build\cocoon\src\org\apache\cocoon\components\tr
eeprocessor\sitemap\ActNodeBuilder.java:58: cannot resolve symbol
[javac] symbol  : class AbstractParentProcessingNodeBuilder
[javac] location: package treeprocessor
/snip

can anybody help me there?

regards


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




problem with deli

2002-04-09 Thread rainer_burgstaller

Hi

I am trying to get deli working with cocoon 2.0.2/tomcat 4.0.1 jdk1.3.1/win
xp
I modified the cocoon.xconf (removed the comments) to enable deli
and tried to request http://localhost:8080/cocoon/deli.html

but then I get this error message

   
   
   
   
   
   
   
   
 org.apache.cocoon.ProcessingException: Could not read resource 
file:/C:/java/jakarta-tomcat-4.0.1/webapps/cocoon/docs/samples/hello-page.xml:
 java.lang.RuntimeException: Can not convert #STRING to a NodeList!
   
 at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:155)
   
 at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
 
 at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
   
 at org.apache.cocoon.www.sitemap_xmap.matchN1061F(C:  
   
 
\java\jakarta-tomcat-4.0.1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:7334)
  
 at org.apache.cocoon.www.sitemap_xmap.process(C:  
   
 
\java\jakarta-tomcat-4.0.1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3449)
  
 at org.apache.cocoon.www.sitemap_xmap.process(C:  
   
 
\java\jakarta-tomcat-4.0.1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3085)
  
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
   
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) 
   
 at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)  
   
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)  
   
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
   
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)   
   
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)  
   
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
   
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)  
   
 at 

problems with encodeURL transformer

2002-03-28 Thread rainer_burgstaller

Hi

I am trying to get the encodeURL transformer working with Tomcat 4.0.1 and
JDK 1.3.1 (Cocoon 2.0.2)

in my sitemap I have following entries

map:transformers
...
 map:transformer logger=sitemap.transformer.encodeURL name
=encodeURL src=org.apache.cocoon.transformation.EncodeURLTransformer/
/map:transformers


map:match pattern=*.xsp
 map:generate type=serverpages src=docs/{1}.xsp/
 map:transform type=encodeURL/
 map:select type=browser
  map:when test=opera
   map:transform src=stylesheets/page2wml.xsl/
   map:serialize type=wml/
  /map:when
  map:when test=wap
   map:transform src=stylesheets/page2wml.xsl/
   map:serialize type=wml/
  /map:when
  map:otherwise
   map:transform src=stylesheets/page2html.xsl/
   map:serialize/
  /map:otherwise
 /map:select
/map:match



as far as I understand this transformer it parses the whole xml for
attributes like href,... and replaces them with a url encoded version.

my xml generates something like this

link href=somlink.xsplink/link

which is then transformed by the page2html.xsl into an actual link.
However, the transformer never gets to work.
1. it does not recognize the session when I disable cookies.
 in setup:
final Request request =
ObjectModelHelper.getRequest(objectModel);
this.session = request.getSession( false );
 session is always null

2. if I enable cookies. then there is a session but with cookies url
encoding is not necessary :(


can anybody help?

best regards



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]