[HELP]Language Exception
Very simple but does not work logicsheet : ?xml version="1.0"?xsl:stylesheet xmlns:xsp="http://apache.org/xsp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:qwiz="http://apache.org/query/arcwiz/2.0"version="1.0"xsl:template match="xsp:page"xsl:copy xsl:apply-templates select="@*"/ xsl:apply-templates//xsl:copy/xsl:templatexsl:template match="qwiz:tit" xsp:logicString msg = "titletext";/xsp:logicxsp:exprmsg/xsp:expr/xsl:template/xsl:stylesheet xsp : ?xml version="1.0" encoding="UTF-8"?xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:qwiz="http://apache.org/query/arcwiz/2.0"xsp:logicsheet location="arcwiz/logicsheet/dene.xsl"/ root titleqwiz:tit/ /title/root/xsp:page Error Description:org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling dene_xsp:Line 3, column 12: illegal start of identifierLine 45, column 18: identifier expectedLine 0, column 0: 2 errors brgs
RE: [HELP]Language Exception
From: c [mailto:[EMAIL PROTECTED]] Description:org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\mysample3\greeting_xsp' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.mysample3.greeting_xsp hello, I'm michio mailing from Japan. I'm in trouble abou LnaguageException. I try logicsheet sample of http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html. I changed the java code in xsl file. and when it returns all,I encountered LanguageException. I use Cocoon2.0.3 ,JDK1.4. Try the following: 1. Check your logicsheet that it is valid XSLT. 2. Check file org\apache\cocoon\www\mysample3\greeting_xsp.java for Java errors. This file usually will be somewhere under tomcat/work directory. 3. Check log files for other errors preceding LanguageException. Log files are (usually) in WEB-INF/logs. 4. Turn off incremental processing mode of Xalan: In cocoon.xconf, find parameter name=incremental-processing value=true/ and change value to false. This should give better error reporting. Vadim I'm sorry for writing wrong English. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]Language Exception
Hello Friends, I m using cocoon 2.0.2 ,Tomcat 4.0.4 and Jdk1.3.When i m writing Systen.out.println() inside xsp:logic tag, i m getting following error.Can u please help me on this Description:org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling employee_xsp: Line 63, column 26: identifier expected Line 63, column 19: cannot access class println; file System\out\println.class not found Line 0, column 0: 2 errors - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Language Exception
Thanks very much. That solved the problem real quick :) Cheers Dan Vadim Gritsenko wrote: From: Dan Jones [mailto:[EMAIL PROTECTED]] Hi I'm a total newbie with cocoon and am getting this error when I try to access http://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080), using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional. I've installed it on another machine using the same OS, servlet engine and cocoon version, but with JDK1.3.0 and I'm presented with the cocoon homepage when I enter the previous URL. Here is the error message I'm receiving. Is there a quick fix for this? Didn't seem to be any mention of it in the FAQ. Many thanks Dan type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in G:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. Quick fix: either upgrade compiler to version 1.4, or use rt.jar from the JDK of the compiler. Explanation: you can't use JDK1.4 libraries (rt.jar) with older compiler (say, 1.3). Compiler resides in WEB-INF, and its name is javac.jar. When in JDK, this is lib/tools.jar file. JDK and compiler must match (unless you are using alternate compiler - pizza - default in latest cocoon releases) Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : Language Exception
hi, that means that you've something wrong in your sitemap.xmap... try to use the default sitemap of cocoon2 before using your own one.. hope it helps ---Message original--- De : [EMAIL PROTECTED] Date : mercredi 10 juillet 2002 03:27:09 A : [EMAIL PROTECTED] Sujet : Language Exception HiI'm a total newbie with cocoon and am getting this error when I try to accesshttp://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080),using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional.I've installed it on another machine using the same OS, servlet engine and cocoonversion, but with JDK1.3.0 and I'm presented with the cocoon homepage when Ienter the previous URL.Here is the error message I'm receiving. Is there a quick fix for this? Didn'tseem to be any mention of it in the FAQ.Many thanksDantype fatalmessage Language Exceptiondescription org.apache.cocoon.ProcessingException:Language Exception:org.apache.cocoon.components.language.LanguageException:Error compiling sitemap_xmap:Line 0, column 0: could not parse error message:error: Invalid class file format inG:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class).The major.minor version '48.0' is too recent for this tool to understand.-Please check that your question has not already been answered in theFAQ before posting. http://xml.apache.org/cocoon/faq/index.htmlTo unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici
Re: Réf. : Language Exception
Thanks Othman but I am actually using the default cocoon sitemap. I haven't changed anything at all in the configuration or setup as yet. Merely trying to get the initial Cocoon welcome page up. I guess maybe Cocoon is still a little buggy when it comes to JDK1.4, as 1.3 seems to work fine. Might go back to an earlier JDK. Cheers Dan Othman Haddad wrote: hi,that means that you've something wrong in your sitemap.xmap...try to use the default sitemap of cocoon2 before using your own one..hope it helps ---Message original--- De : [EMAIL PROTECTED] Date : mercredi 10 juillet 2002 03:27:09 A : [EMAIL PROTECTED] Sujet : Language Exception Hi I'm a total newbie with cocoon and am getting this error when I try to access http://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080), using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional. I've installed it on another machine using the same OS, servlet engine and cocoon version, but with JDK1.3.0 and I'm presented with the cocoon homepage when I enter the previous URL. Here is the error message I'm receiving. Is there a quick fix for this? Didn't seem to be any mention of it in the FAQ. Many thanks Dan type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in G:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Language Exception
From: Dan Jones [mailto:[EMAIL PROTECTED]] Hi I'm a total newbie with cocoon and am getting this error when I try to access http://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080), using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional. I've installed it on another machine using the same OS, servlet engine and cocoon version, but with JDK1.3.0 and I'm presented with the cocoon homepage when I enter the previous URL. Here is the error message I'm receiving. Is there a quick fix for this? Didn't seem to be any mention of it in the FAQ. Many thanks Dan type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in G:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. Quick fix: either upgrade compiler to version 1.4, or use rt.jar from the JDK of the compiler. Explanation: you can't use JDK1.4 libraries (rt.jar) with older compiler (say, 1.3). Compiler resides in WEB-INF, and its name is javac.jar. When in JDK, this is lib/tools.jar file. JDK and compiler must match (unless you are using alternate compiler - pizza - default in latest cocoon releases) Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Language Exception
Hi I'm a total newbie with cocoon and am getting this error when I try to access http://localhost/cocoon (I've set up Tomcat so I don't need to use the :8080), using cocoon 2 and Tomcat 4.03 with JDK1.4, under Windows 2000 professional. I've installed it on another machine using the same OS, servlet engine and cocoon version, but with JDK1.3.0 and I'm presented with the cocoon homepage when I enter the previous URL. Here is the error message I'm receiving. Is there a quick fix for this? Didn't seem to be any mention of it in the FAQ. Many thanks Dan type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in G:\JDK1.4\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon.war Language Exception on WebLogic6.1 sp2
Hi, I need your help! The first cocoon welcome page is displayed properly. Now, the problem I am facing is, bea is not loading sub sitemaps. I am getting the following error: message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling welcome_index_xsp: nullLine 0, column 0: error: java.io.IOException: read error 1 error Thanx. Helena - 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]
Internal Server Error - Language Exception -- Help Me Please
hi. i am trying to have cocoon compile from the .war file and i get a language exception. i am using j2sdk1.4.0, tomcat4.0, apache1.3, and cocoon2.0.1. can anyone help? Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:12: Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/io/IOException.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:13: Class java.io.IOException not found in import. import java.io.IOException; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/List.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:15: Class java.util.List not found in import. import java.util.List; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/ArrayList.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:16: Class java.util.ArrayList not found in import. import java.util.ArrayList; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/Map.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:17: Class java.util.Map not found in import. import java.util.Map; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/HashMap.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:18: Class java.util.HashMap not found in import. import java.util.HashMap; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/Stack.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:19: Class java.util.Stack not found in import. import java.util.Stack; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/StringTokenizer.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:20: Class java.util.StringTokenizer not found in import. import java.util.StringTokenizer; ^ Line 0, column 0: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand. error: Class java.lang.Object not found in class org.apache.avalon.framework.logger.AbstractLoggable. 18 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ path-info _ Send and receive Hotmail on your mobile device: http://mobile.msn.com - 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]
Re: Internal Server Error - Language Exception -- Help Me Please
Wait a minute, are you trying to compile FROM the .war file. The .war file is what you drop into your servlet engine for Cocoon to Run. On 03/22/02 6:57, Jeremy Beeler [EMAIL PROTECTED] wrote: hi. i am trying to have cocoon compile from the .war file and i get a language exception. i am using j2sdk1.4.0, tomcat4.0, apache1.3, and cocoon2.0.1. can anyone help? Cocoon 2 - Internal server error -- -- type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:12: Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/io/IOException.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:13: Class java.io.IOException not found in import. import java.io.IOException; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/List.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:15: Class java.util.List not found in import. import java.util.List; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/ArrayList.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:16: Class java.util.ArrayList not found in import. import java.util.ArrayList; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/Map.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:17: Class java.util.Map not found in import. import java.util.Map; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/HashMap.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:18: Class java.util.HashMap not found in import. import java.util.HashMap; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/Stack.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:19: Class java.util.Stack not found in import. import java.util.Stack; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/util/StringTokenizer.class). The major.minor version '48.0' is too recent for this tool to understand. C:\ApacheTomcat4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\si temap_xmap.java:20: Class java.util.StringTokenizer not found in import. import java.util.StringTokenizer; ^ Line 0, column 0: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand. error: Class java.lang.Object not found in class org.apache.avalon.framework.logger.AbstractLoggable. 18 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ path-info _ Send and receive Hotmail on your mobile device: http://mobile.msn.com - 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] -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http
RE: Internal Server Error - Language Exception -- Help Me Please
RTFM: http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/in stalling/index.xml?rev=1.16content-type=text/vnd.viewcvs-markup Get also http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/build.bat?rev=1.18content -type=text/vnd.viewcvs-markup Vadim From: Jeremy Beeler [mailto:[EMAIL PROTECTED]] hi. i am trying to have cocoon compile from the .war file and i get a language exception. i am using j2sdk1.4.0, tomcat4.0, apache1.3, and cocoon2.0.1. can anyone help? Cocoon 2 - Internal server error -- -- type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in c:\j2sdk1.4.0\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. - 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]
AW: newbie: install error Language Exception
-Ursprungliche Nachricht- Von: charles gebhard [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 16. Marz 2002 08:13 An: [EMAIL PROTECTED] Betreff: newbie: install error Language Exception cocoon 2.0.1 - binary version sun j2sdk1.4.0 tomcat 4.0.3 linux howdy, i get the following error when hitting http://localhost/cocoon/ type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in /usr/java/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. (more errors omitted) i've looked over the mail archive and couldn't find an answer. i've tried downgrading to jdk1.3 and tomcat 4.0.1 (got different errors) and still no luck. i'd appreciate any help. on a side note, is there an easier way to get cocoon running than what is stated in the cocoon install guide? thanks. -chuck - 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] Hi! Have you edited the sitemap or is it the fresh one from the download? Because I also got a LanguageException and the reason was I wrote map:seriliaze/ instead of map:serialize/. So check your spelling, maybe it has nothing to do with java-versions. best wishes Axel - 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]
RE: newbie: install error Language Exception
From: charles gebhard [mailto:[EMAIL PROTECTED]] cocoon 2.0.1 - binary version sun j2sdk1.4.0 You have to follow instructions from the HOWTO: JDK1.4 email tomcat 4.0.3 Installation on this one is a known PITA. See instructions published one the list (Correction: [SOLUTION]...) for Tomcat 4.0.3 and JDK1.3.1. THE EASIEST WAY: 1. FRESH Cocoon 2. FRESH Tomcat 4.0.1 3. JDK 1.3.1 4. http://xml.apache.org/cocoon/installing/index.html Vadim linux howdy, i get the following error when hitting http://localhost/cocoon/ type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in /usr/java/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class ). The major.minor version '48.0' is too recent for this tool to understand. (more errors omitted) i've looked over the mail archive and couldn't find an answer. i've tried downgrading to jdk1.3 and tomcat 4.0.1 (got different errors) and still no luck. i'd appreciate any help. on a side note, is there an easier way to get cocoon running than what is stated in the cocoon install guide? thanks. -chuck - 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]
newbie: install error Language Exception
cocoon 2.0.1 - binary version sun j2sdk1.4.0 tomcat 4.0.3 linux howdy, i get the following error when hitting http://localhost/cocoon/ type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in /usr/java/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. (more errors omitted) i've looked over the mail archive and couldn't find an answer. i've tried downgrading to jdk1.3 and tomcat 4.0.1 (got different errors) and still no luck. i'd appreciate any help. on a side note, is there an easier way to get cocoon running than what is stated in the cocoon install guide? thanks. -chuck - 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]
Re: strange Language Exception
Thank you very much for the explanation and solution of my problem! Michael Vadim Gritsenko wrote: ... And here is the solution: xsp:expr can not be used this way when it immediately netsted in xsp:logic, and this is done so to enable interoperability with other stylesheets. An example of correct usage would be something like: result xsp:logic String result = ; if(result.equals()){ i18n:date/ }else{ result = xsp-request:get-header name=user-agent/; }else{ result = xsp:exprresult/xsp:expr; } /xsp:logic xsp:exprresult/xsp:expr /result Hope I described this clear enough, Vadim ... - 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]
Re: strange Language Exception
This happened with Cocoon0730041508 Regards, Michael Vadim Gritsenko wrote: Do you have this problem with latest CVS version? I think that this is already fixed in CVS. Thanks, Vadim -Original Message- From: Enke Michael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:56 PM To: [EMAIL PROTECTED] Subject: xsp: strange Language Exception Hi folks, I have a question which I cann't answer myself and maybe it is an error I have found? Lock at this few lines: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; encoding=UTF-8 page xsp:logic String result = _d; if(result.equals(_d)) { result i18n:date/ /result } else { result xsp:exprresult/xsp:expr /result } /xsp:logic /page /xsp:page It is without much sense but I wanted to concentrate on the effect. In the if and else branch (in real life I have much more else if branches) I must repeat the result and /result elements in each branch. My idea was to put only one result before xsp:logic and only one /result behind /xsp:logic But than I get these Exception: DEBUG 99660 [cocoon ] (/calypso/test_error) Thread-22/ProgramGeneratorImpl: Language Exception org.apache.cocoon.components.language.LanguageException: Error compiling test_error_xsp: Line 107, column 6: Invalid expression statement. Line 107, column 14: ';' expected. at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:203) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage .java:140) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146) ... Does anybody know if this is my problem because I didn't read deep enough into the documentation or is this a cocoon problem? Regards, Michael - 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] - 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] - 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]
RE: strange Language Exception
It does not correlate with XML file you sent before... It looks like this java file was generated from different XML, something like this: result xsp:logic if(...){ i18n:date/ }else{ xsp:exprresult/xsp:expr } /xsp:logic /result With this XML I'm able to reproduce your problem (XML file you sent before was compiling with no problems). And here is the solution: xsp:expr can not be used this way when it immediately netsted in xsp:logic, and this is done so to enable interoperability with other stylesheets. An example of correct usage would be something like: result xsp:logic String result = ; if(result.equals()){ i18n:date/ }else{ result = xsp-request:get-header name=user-agent/; }else{ result = xsp:exprresult/xsp:expr; } /xsp:logic xsp:exprresult/xsp:expr /result Hope I described this clear enough, Vadim -Original Message- From: Enke Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: Re: strange Language Exception Vadim Gritsenko wrote: Send your test_error_xsp.java which is found under Cocoon's work directory. Vadim -Original Message- From: Enke Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 5:10 AM To: [EMAIL PROTECTED] Subject: Re: strange Language Exception This happened with Cocoon0730041508 Regards, Michael ... Here it comes. Greetings, Michael - 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]
xsp: strange Language Exception
Hi folks, I have a question which I cann't answer myself and maybe it is an error I have found? Lock at this few lines: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; encoding=UTF-8 page xsp:logic String result = _d; if(result.equals(_d)) { result i18n:date/ /result } else { result xsp:exprresult/xsp:expr /result } /xsp:logic /page /xsp:page It is without much sense but I wanted to concentrate on the effect. In the if and else branch (in real life I have much more else if branches) I must repeat the result and /result elements in each branch. My idea was to put only one result before xsp:logic and only one /result behind /xsp:logic But than I get these Exception: DEBUG 99660 [cocoon ] (/calypso/test_error) Thread-22/ProgramGeneratorImpl: Language Exception org.apache.cocoon.components.language.LanguageException: Error compiling test_error_xsp: Line 107, column 6: Invalid expression statement. Line 107, column 14: ';' expected. at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:203) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146) ... Does anybody know if this is my problem because I didn't read deep enough into the documentation or is this a cocoon problem? Regards, Michael - 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]
RE: strange Language Exception
Do you have this problem with latest CVS version? I think that this is already fixed in CVS. Thanks, Vadim -Original Message- From: Enke Michael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:56 PM To: [EMAIL PROTECTED] Subject: xsp: strange Language Exception Hi folks, I have a question which I cann't answer myself and maybe it is an error I have found? Lock at this few lines: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; encoding=UTF-8 page xsp:logic String result = _d; if(result.equals(_d)) { result i18n:date/ /result } else { result xsp:exprresult/xsp:expr /result } /xsp:logic /page /xsp:page It is without much sense but I wanted to concentrate on the effect. In the if and else branch (in real life I have much more else if branches) I must repeat the result and /result elements in each branch. My idea was to put only one result before xsp:logic and only one /result behind /xsp:logic But than I get these Exception: DEBUG 99660 [cocoon ] (/calypso/test_error) Thread-22/ProgramGeneratorImpl: Language Exception org.apache.cocoon.components.language.LanguageException: Error compiling test_error_xsp: Line 107, column 6: Invalid expression statement. Line 107, column 14: ';' expected. at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:203) at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage .java:140) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146) ... Does anybody know if this is my problem because I didn't read deep enough into the documentation or is this a cocoon problem? Regards, Michael - 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] - 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]