Re: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML
a similar problem for me in the past. Geoff Howard --- Roger Ting [EMAIL PROTECTED] wrote: Hi thx for your response. The funny thing is below What works: 1. i read the XSP that uses ESQL with serverpages generator it will generate the xml file. 2. I save the xml file generated using the the XSP. 3. Do transformation with Xalan or Saxon (Tried both) and the output is correct. What doesn't works: 1. I read the same XSP. 2. pipe it into a XSLT transformer. 3. Serialize it in SVG or XML. 4. 60% of the output is gone. 2 processes are the same except for the first i save it before i transform and serialize the xml file generated from the XSP with ESQL. The second process i pipe the output from XSP directly into the XSLT transformer and it drop most of the output. Another user also faces the same problem. We are using 2 different computers. ===HERE IS MY XSLT = ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:icr=http://www.cs.mu.oz.au/340/s340gf; xmlns:svg=http://www.w3.org/2000/svg; xsl:output method=xml indent=yes/ xsl:template match=icr:report svg width=300 height=300 titleThe graphs for the dailyly section /title g transform=translate(100, 100) xsl:apply-templates select=icr:fall/ /g /svg /xsl:template xsl:template match=icr:fall g transform= translate(-20,-80) scale(2,2) text xsl:attribute name=font-size xsl:value-of select=6 / /xsl:attribute Patient falls record /text /g g transform=translate(0,100) scale(2,-2) !--drawing the axes-- line x1=0 y1=0 x2=140 y2=0 style=stroke: black;/ line x1=0 y1=0 x2=0 y2=80 style=stroke: black;/ /g !--- Doesn't transform from here onwards --- xsl:for-each select=icr:monthly xsl:call-template name=draw-bar xsl:with-param name=n select=@numerator/ xsl:with-param name=d select=@denominator/ xsl:with-param name=count select=position()/ xsl:with-param name=threshold select=@threshold/ xsl:with-param name=next select=following-sibling::icr:monthly/attribute::numerator/ xsl:with-param name=last select=count(icr:monthly)/ /xsl:call-template xsl:call-template name=write-text xsl:with-param name=count select=position()/ /xsl:call-template /xsl:for-each /xsl:template xsl:template name=draw-bar xsl:param name=n/ xsl:param name=d/ xsl:param name=count/ xsl:param name=threshold/ xsl:param name=next/ xsl:param name=last/ g transform=translate(0,100) scale(2,-2) !-- these are the bars in order -- rect style=fill:none; stroke:black; stroke-width=1 xsl:attribute name=y 0 /xsl:attribute xsl:attribute name=x xsl:value-of select=$count*5/ /xsl:attribute xsl:attribute name=width 5 /xsl:attribute xsl:attribute name=height xsl:value-of select=20*($n div $d) / /xsl:attribute /rect rect style=fill:red;stroke:red; xsl:attribute name=y xsl:value-of select=$threshold/ /xsl:attribute xsl:attribute name=x xsl:value-of select=$count*5+1/ /xsl:attribute xsl:attribute name=width 2 /xsl:attribute xsl:attribute name=height 2 /xsl:attribute /rect rect style=fill:blue;stroke:blue; xsl:attribute name=yxsl:value-of select=$n*10//xsl:attribute xsl:attribute name=xxsl:value-of select=$count*5+1//xsl:attribute xsl:attribute name=width 2
DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML
xsl:attribute name=height 2 /xsl:attribute /rect line style=stroke:red; stroke-width:0.4; xsl:attribute name=y1 xsl:value-of select=$threshold+1/ /xsl:attribute xsl:attribute name=x1 xsl:value-of select=(($count)*5)+2/ /xsl:attribute xsl:attribute name=y2 xsl:value-of select=$threshold+1/ /xsl:attribute xsl:attribute name=x2 xsl:value-of select=(($count)+1*5)+2/ /xsl:attribute /line xsl:if test=not($count=$last) line style=stroke:blue; stroke-width:0.4; xsl:attribute name=y1xsl:value-of select=($n)*10//xsl:attribute xsl:attribute name=x1xsl:value-of select=($count*5)+2//xsl:attribute xsl:attribute name=y2xsl:value-of select=($next)*10//xsl:attribute xsl:attribute name=x2xsl:value-of select=(($count+1)*5)+2//xsl:attribute /line /xsl:if /g /xsl:template xsl:template name=write-text xsl:param name=count/ g transform=translate(1,100) scale(2,2) text xsl:attribute name=font-size xsl:value-of select=5 * 2 div 3 / /xsl:attribute xsl:attribute name=x xsl:value-of select=$count*5/ /xsl:attribute xsl:attribute name=y6/xsl:attribute xsl:value-of select=$count/ /text /g /xsl:template /xsl:stylesheet I am suspecting there is something wrong with cocoon when it come to xsp with esql and do transformation using XSLT. The other user solve the problem by breaking down the XSLT stylesheet to a smaller chunk and it works. He also tried everything before using the last method. From: Joerg Heinicke [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Cocoon FAILS in transforming XML Date: Thu, 10 Oct 2002 02:57:32 +0200 If your Cocoon is working in general, I can only guess that the error is to search in your stylesheet. Cocoon itself uses XSLT more or less heavily (e.g. for creating sitemap_xmap.java). Can you show a bit code of your XSP, XSL and sitemap? You can post a minimum example, where your code gets already wrong. Regards, Joerg Roger Ting wrote: I kind of doubt that it has to do with XSP because if i serialize the output as XML and do the transformation later by reading the xml file generated from the XSP directly, it works fine . HOwever, if i generate the XSP directly, some of the output just missing Anyone use XSP with ESQL and use XSLT transformation faces the same problem? From: Ryan Agler [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Cocoon FAILS in transforming XML Date: Wed, 9 Oct 2002 00:20:19 -0400 Best guess is that something is wrong with the xsp. Can you post your log file? -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 11:48 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon FAILS in transforming XML I am using the latest binary distribution which is the 2.0.3. I just change the Xalan and Xerces to the latest version. This doesn't help. This only happens when i am using xsp with xslt to do transformation. The xsp are using esql logicsheet. This doesn't happen when i am using file generator to read xml and transform to SVG using XSLT. Any idea? Thx - 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] _ 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/faq/index.html To unsubscribe, e-mail
RE: Cocoon FAILS in transforming XML
I kind of doubt that it has to do with XSP because if i serialize the output as XML and do the transformation later by reading the xml file generated from the XSP directly, it works fine . HOwever, if i generate the XSP directly, some of the output just missing Anyone use XSP with ESQL and use XSLT transformation faces the same problem? From: Ryan Agler [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Cocoon FAILS in transforming XML Date: Wed, 9 Oct 2002 00:20:19 -0400 Best guess is that something is wrong with the xsp. Can you post your log file? -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 11:48 PM To: [EMAIL PROTECTED] Subject: Re: Cocoon FAILS in transforming XML I am using the latest binary distribution which is the 2.0.3. I just change the Xalan and Xerces to the latest version. This doesn't help. This only happens when i am using xsp with xslt to do transformation. The xsp are using esql logicsheet. This doesn't happen when i am using file generator to read xml and transform to SVG using XSLT. Any idea? Thx - 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] \ _ 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon FAILS in transforming XML
Hi all..Have anyone experience this problem before? Cocoon failing to transform the XML to HTML or SVG using XSLT. When i use Xalan alone to do the transformation, it works perfectly fine. But i do a transformation through cocoon. It lost most of the output. Another user said that he broke the XSLT stylesheet into smaller module, the whole things work again. Is it a known bug in cocoon??? Any way out of this ?? Thx! _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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]
Sorry Rephrase...
I apologize ..I want to rephrase my previous post.. The problem only occur when i am generating a serverpages XSP and do transformation that is map:match pattern=yearly type=wildcard-request-parameter map:generate type=xsp src=Xsp/quarterly.xsp/ map:transform type=xslt src=Xsl/quartery_fall.xslt/ map:serialize type=xml/ /map:match Is it because the XSP cannot give the XSLT input just in time?? Idea ?BTW,the XSP is getting information from a remote database _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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: Cocoon FAILS in transforming XML
I am using the latest binary distribution which is the 2.0.3. I just change the Xalan and Xerces to the latest version. This doesn't help. This only happens when i am using xsp with xslt to do transformation. The xsp are using esql logicsheet. This doesn't happen when i am using file generator to read xml and transform to SVG using XSLT. Any idea? Thx From: Joerg Heinicke [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Cocoon FAILS in transforming XML Date: Tue, 08 Oct 2002 22:10:26 +0200 Hi Roger, normally everything works okay in Cocoon. We use XSLT heavily in different applications (both HTML and SVG as output). Maybe your version of Cocoon or Xerces/Xalan version have some bugs. What versions are you used? Regards, Joerg Roger Ting wrote: Hi all..Have anyone experience this problem before? Cocoon failing to transform the XML to HTML or SVG using XSLT. When i use Xalan alone to do the transformation, it works perfectly fine. But i do a transformation through cocoon. It lost most of the output. Another user said that he broke the XSLT stylesheet into smaller module, the whole things work again. Is it a known bug in cocoon??? Any way out of this ?? Thx! - 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] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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: JDK 1.3.1 is driving me MAD!
Tried every thing i know. I downloaded the latest Tomcat and cocoon both built with jdk 1.4. Now Tomcat doesn't even run. cocoon just take up too much memory it keep throwing out of memory error. set catalina ops to 32 and 64 and it still doesn't work. does anyone know latest j-connector is built with what? jdk 1.4 let say the classes is built with jdk 1.4 it should run using jdk 1.3 right? From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! Date: Fri, 27 Sep 2002 15:43:59 -0400 As Booby pointed out ... did you try and rebuild C 2.0.3 with the new JDK 1.4? I had to rebuild and it worked for me. If you don't have the old mysql jdbc driver, I can dig it up and send to your email directly. Conrad Original Message: - From: Roger Ting [EMAIL PROTECTED] Date: Fri, 27 Sep 2002 19:29:10 + To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! yeah i agree.. i am using cocoon 2.0.3 built with jdk 1.3. So you are saying i can't use j-connector supplied by mysql? Is there any driver that i can use with cocoon built on jdk1.3? more specifically jdk1.3.1 This would help me a lot THX! From: Bobby Mitchell [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! Date: Fri, 27 Sep 2002 15:08:45 -0400 Roger Ting wrote: Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct instruction and cocoon just keep throwing me no suitable driver error. I have put in the j connector jar file into WEB-INF/lib directory. configure cocoon.xconf and web.xml. The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the unix server because it keep throwing java.lang.OutOfMemoryError error when i fire up tomcat. As it is a share machine each user have limited memory. I asked about this before Apparently, Tomcat is memory starved. Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as long we don't need to connect to mysql database. Anyone? According to http://xml.apache.org/cocoon/installing/index.html Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible to use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database connections. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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] mail2web - Check your email from the web at http://mail2web.com/ . - 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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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]
JDK 1.3.1 is driving me MAD!
Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct instruction and cocoon just keep throwing me no suitable driver error. I have put in the j connector jar file into WEB-INF/lib directory. configure cocoon.xconf and web.xml. The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the unix server because it keep throwing java.lang.OutOfMemoryError error when i fire up tomcat. As it is a share machine each user have limited memory. I asked about this before Apparently, Tomcat is memory starved. Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as long we don't need to connect to mysql database. Anyone? _ 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDK 1.3.1 is driving me MAD!
Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct instruction and cocoon just keep throwing me no suitable driver error. I have put in the j connector jar file into WEB-INF/lib directory. configure cocoon.xconf and web.xml. The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the unix server because it keep throwing java.lang.OutOfMemoryError error when i fire up tomcat. As it is a share machine each user have limited memory. I asked about this before Apparently, Tomcat is memory starved. Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as long we don't need to connect to mysql database. Anyone? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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: JDK 1.3.1 is driving me MAD!
yeah i agree.. i am using cocoon 2.0.3 built with jdk 1.3. So you are saying i can't use j-connector supplied by mysql? Is there any driver that i can use with cocoon built on jdk1.3? more specifically jdk1.3.1 This would help me a lot THX! From: Bobby Mitchell [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: JDK 1.3.1 is driving me MAD! Date: Fri, 27 Sep 2002 15:08:45 -0400 Roger Ting wrote: Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct instruction and cocoon just keep throwing me no suitable driver error. I have put in the j connector jar file into WEB-INF/lib directory. configure cocoon.xconf and web.xml. The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the unix server because it keep throwing java.lang.OutOfMemoryError error when i fire up tomcat. As it is a share machine each user have limited memory. I asked about this before Apparently, Tomcat is memory starved. Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as long we don't need to connect to mysql database. Anyone? According to http://xml.apache.org/cocoon/installing/index.html Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible to use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database connections. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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 testing
hi all Cocoon gurus, I got a question. How do you guys automate testing in Cocoon ? I mean let say i write some logicsheet or XSLT or XSP etc. How do 1 check that the script that i feed to cocoon is actually correct with an automated system? It would be great if someone can provide some clues here Thx A Million in advanced... _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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: cocoon KILLS Tomcat
Thx Vadim Got it working finally. Thx to all whole read any mail from me. From: Vadim Gritsenko [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: cocoon KILLS Tomcat Date: Fri, 30 Aug 2002 09:49:41 -0400 Roger Ting wrote: Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) You should use same JDK version to run Cocoon as version you used to compile Cocoon. And you *can* *not* use older JDK version when compiled Cocoon with newer JDK version. They are *not* compatible. (as you can see from the error message). Vadim at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? ... - 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] _ 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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon KILLS Tomcat
Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? From: Luca Morandini [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: cocoon KILLS Tomcat Date: Wed, 28 Aug 2002 17:46:31 +0200 Roger, have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ? Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: cocoon KILLS Tomcat I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor.java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector.java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone have any idea? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com - 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: cocoon KILLS Tomcat
Hi Babara What do you mean by jdk and jre not right? I am currently logged into a Solaris 5.X system. I installed Cocoon in Windows and it is fine. Just that installing on the Solaris Unix without root perm giving me a hell of time.Can you tell me what exactly happen you last time and how you solved it? BTW, just set catalina_opts=-Xmx128m to give Tomcat more memory to use Cocoon. That's how i got away for my problem From: Barbara Post [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: cocoon KILLS Tomcat Date: Thu, 29 Aug 2002 15:44:23 +0200 Hi Roger, Maybe your jasp compiler has a problem or if you use Windows (I guess not) check out the registry : maybe your Current Version of JDK and JRE is not right... key : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and subkeys. java -fullversion should be right too. This was a reason why I ran into major/minor troubles too, but not exactly the same. Babs - Original Message - From: Roger Ting [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 2:13 PM Subject: RE: cocoon KILLS Tomcat Dear Luca, Thnx for your help. Your advice makes sense. Therefore, i add another line catalina_opts=-Xmx128m to my bash profile. Unfortunately, i run into yet another problem when i want to start Tomcat with Cocoon. The following is the error message: java.lang.UnsupportedClassVersionError: org/apache/cocoon/servlet/CocoonServlet (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1643) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:937) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1372) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1254) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:867) . I am using jdk 1.3.1 and Tomcat 4.0.4 and cocoon 2.0.3. Anyone any idea? Anyone encounter this problem before? From: Luca Morandini [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: cocoon KILLS Tomcat Date: Wed, 28 Aug 2002 17:46:31 +0200 Roger, have you tried to raise the memory (setting -Xmx in CATALINA_OPTS) ? Keep in mind that Cocoon uses a lot of memory at startup (mainly for XSP compilation). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Roger Ting [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: cocoon KILLS Tomcat I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor. java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1 225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector .java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1 158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone have any idea? _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com
cocoon KILLS Tomcat
I think there is something wrong with Cocoon ..I installed Tomcat and it run perfectly. However, when i put in the cocoon.war file into Tomcat webapps and try to connect to Tomcat again,Tomcat die. Of course i shutdown Tomcat before trying to install Cocoon. When i start Tomcat, it just won't start anymore.. It keep throwing me : Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError: unable to create n ew native thread at java.lang.Thread.start(Native Method) at org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor.java: 1152) at org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1225) at org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector.java :920) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.java:1158) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone have any idea? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com - 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]
Can't solve installation probem
Hi all ... I have tried everything i know to solve the installation problem...but i still can't currently installed sdk/jdk 1.4 with Forte and cocoon 2.0.2 and TomCat 4.0.4 ...win98 second edition TomCat runs perfectly when i type in http://localhost:8080 But cocoon is giving me a bad time when i type in http://localhost:8080/cocoon It keeps throwing me the following error messages type: Exception report message: Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:946) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 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:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 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.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 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.StandardEngineValve.invoke(StandardEngineValve.java:174) 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.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1209) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 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:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 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.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
Installation Problem
Hi I am awfully new to Cocoon.. It took me 1 day to setup the TomCat Servlet 4.0.3 properly. Now i run into the problem for Cocoon. I am currently using cocoon 2.0.2. I tried to connect to http://localhost:8080/cocoon but it keep throwing me this whole chunk of error. === type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ path-info stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoClassDefFoundError at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.NoClassDefFoundError at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source) at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86) at org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:88) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(DefaultSitemapComponentSelector.java:181) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponent(DefaultSitemapComponentSelector.java:188) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:275) at org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(C:\cocoon-2.0.2-bin\jakarta-tomcat-4.0.3\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1129) at org.apache.cocoon.www.sitemap_xmap.configure(C:\cocoon-2.0.2-bin\jakarta-tomcat-4.0.3\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:470) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) ... 1 more java.lang.NoClassDefFoundError at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source) at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86) at org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80) at