Problems with Java1.4 and svg2png
Hi , I tryed that, but it doesn't solve my problem. If you look to the first line of the attached picture (sample SVG from coocon), you will see that I seem to be a problem with Anti-Aliasing. The first letter O appers a second time 20 pixels to the right, a little bit softer (see the zoomed file). I am totaly confused about this effect. I hadn't that proble with JDK 1.3.0_03. Does anybody know how to solve it or how can I disable anti-aliasing, that would be a good workaround. Thanks in advance and sorry for posting attachements Christoph Gaffga [EMAIL PROTECTED] From: Robert J. Lebowitz [EMAIL PROTECTED] When I experimented with jdk 1.4, I would up grabbing the latest 1.5 batik beta distribution and compiling batik-all and substituting that for the batik.jar file that came with cocoon 2.0. It cleared up a lot of errors I was getting earlier. Maybe this one will clear up too. Rob From: C. Gaffga [EMAIL PROTECTED] Hi, Since i upgraded my System I have Problems with the svg2png serializer in cocoon. I'm using Redhat 7.2, Java1.4, Tomcat 4.0.1, Cocoon 2.0.1 When I serialize a SVG-file to PNG using the Batik libraries there are some problems with rendering text. When I output a Text, saying Test, and another text, say Test2, it write Test correct, but it writes Test under the output of Test2. It's a little bit difficult to explain, so I attached the Image. I tryed with a rebuild version of Batik agains JDK1.4, but it's still the same effect. Does anybody know, why this happens or if there are same problems whith JDK1.4?? How can I solve this?? Thanks in advance Christoph Gaffga [EMAIL PROTECTED] P.S.: Im using no XServer, only Xvfb or java with -Djava.awt.headless=true, both has the same effect. P.P.S.: The SVG-File, I used for the attached Picture: svg width=300 height=390 text x=50 y=100 font-size=16 fill=black text-rendering=optimizeLegibilityTest2/text !-- Legende -- rect x=3 y=379 width=8 height=8 fill=chartreuse stroke=black stroke-width=0.1 shape-rendering=geometricPrecision/ text x=13 y=387 font-size=9 fill=black text-rendering=optimizeLegibilityfrei/text rect x=37 y=379 width=8 height=8 fill=tomato stroke=black stroke-width=0.1 shape-rendering=geometricPrecision/ rect x=85 y=379 width=8 height=8 fill=silver stroke=black stroke-width=0.1 shape-rendering=geometricPrecision/ !-- Copyright -- text x=196 y=387 font-size=9 fill=blue text-rendering=optimizeLegibility#169; 2001 triplemind.com/text /svg henryV-zoomed.png Description: PNG image - 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]
Problems with Java1.4 and svg2png
Hi, Since i upgraded my System I have Problems with the svg2png serializer in cocoon. I'm using Redhat 7.2, Java1.4, Tomcat 4.0.1, Cocoon 2.0.1 When I serialize a SVG-file to PNG using the Batik libraries there are some problems with rendering text. When I output a Text, saying Test, and another text, say Test2, it write Test correct, but it writes Test under the output of Test2. It's a little bit difficult to explain, so I attached the Image. I tryed with a rebuild version of Batik agains JDK1.4, but it's still the same effect. Does anybody know, why this happens or if there are same problems whith JDK1.4?? How can I solve this?? Thanks in advance Christoph Gaffga [EMAIL PROTECTED] P.S.: Im using no XServer, only Xvfb or java with -Djava.awt.headless=true, both has the same effect. P.P.S.: The SVG-File, I used for the attached Picture: svg width=300 height=390 text x=50 y=100 font-size=16 fill=black text-rendering=optimizeLegibilityTest2/text !-- Legende -- rect x=3 y=379 width=8 height=8 fill=chartreuse stroke=black stroke-width=0.1 shape-rendering=geometricPrecision/ text x=13 y=387 font-size=9 fill=black text-rendering=optimizeLegibilityfrei/text rect x=37 y=379 width=8 height=8 fill=tomato stroke=black stroke-width=0.1 shape-rendering=geometricPrecision/ rect x=85 y=379 width=8 height=8 fill=silver stroke=black stroke-width=0.1 shape-rendering=geometricPrecision/ !-- Copyright -- text x=196 y=387 font-size=9 fill=blue text-rendering=optimizeLegibility#169; 2001 triplemind.com/text /svg calendar-avail.png Description: PNG image - 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]
[C2] JVM memory usage is growing and growing util OutOfMemory-Exception
Hi! Im using Tomcat4.b5, JDK1.3.1 and Cocoon2.b2 The memory usage of the VM, cocoon is running on, is growing an growing with each request. Aprox. 200K more by each request. This is going on until a OutOfMemory-Eception occures and the VM is using about 500 to 600 MB of memory. During generating my XSP pages, i store large Objects in the request-Atrributes to mak them available to other parts in the aggregate, because the need so much time to calculate. Is it possible that these objects are not released after the request had been processed completly? How can I check, witch object allocate how mutch of memory? Thanks in advance. Christoph Gaffga [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]
[C2] JVM memory usage is growing and growing util OutOfMemory-Exception
I have still the same Problem, Cocoon consumes all my memory over a short period of time. I did a few checks, so I could see that all instances of my Java Classes (some need very much memory) a released correctly. I overwrote the finalize method for that, and printed something to stdout, to see if they are released. So, I think it's a Problem of Cocoon. How can I disable the cache, to check wether that's the reason. Has anybody an Idea what's going on here? If we wan't to release our site like this, we need a script to restart tomcat every five minutes!! no way! I hope somebody can help Christoph Hi! Im using Tomcat4.b5, JDK1.3.1 and Cocoon2.b2 on SuSeLinux 7.1 The memory usage of the VM, cocoon is running on, is growing and growing with each request. Aprox. 200K more by each request. This is going on until a OutOfMemory-Eception occures and the VM is using about 500 to 600 MB of memory. During generating my XSP pages, i store large Objects in the request-Atrributes to mak them available to other parts in the aggregate, because the need so much time to calculate. Is it possible that these objects are not released after the request had been processed completly? How can I check, witch object allocate how mutch of memory? Thanks in advance. Christoph Gaffga [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]
[C2] Problem: Checking XML before including it (XSPUtil.include)
I have some XML stored in the database an want to include in in my page. Im using the following code in my XSP-page: try { ... org.apache.cocoon.components.language.markup.xsp.XSPUtil.include( __is, this.contentHandler, newParser); } catch (Exception e) { blockquote XML-Error XML: xsp:expre.getMessage()/xsp:expr /blockquote } that work's fine if the XML is wellformed, but if it's not, it's the problem that not just the error message is outputted but also all XML that has been processed before the Error occured. How can I check the XML before? I tried to start the parser with no conumer but that throws an exception every time parser.setConsumer(null); parser.parse(__is); Is the a dummy consumer? something like dev/null ? Christoph Gaffga P.S.: It's no performence Problem for my Application if the XML is processed twice. - 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]
cocoon: url and caching - Problem with MRUMemoryStore
Hi ! I have same problems with the latest version of coocon2. (But I need that version because of cocoon: url) When I load my page one, two or three times, there ar no problems. But if I load the page some more times, press the browsers refresh butten, say, every 10 sec., after two or three minutes I get an error that the requested recource could not be found. (processing time is about 600ms/per page) After the error (requested page could not be found), no other page could be found, not the cocoon welcome page or any samples, or the error page. And the coponent selectors for the hints xsp an so on couldn't be found either. What's going wrong with cocoon2 and caching of cocoon: url? Do you have any ideas, or how can I disable caching for that? Christoph Gaffga P.S.: My exception DEBUG 99540 [cocoon ] (HttpProcessor[8080][4]): Making URL from file:///opt/tomcat4-b5/webapps/cocoon/url DEBUG 99540 [cocoon ] (HttpProcessor[8080][4]): MRUMemoryStore holding object in memory. Key: file:/opt/t WARN99540 [cocoon ] (HttpProcessor[8080][4]): Configuration Error: null java.lang.NullPointerException at org.apache.cocoon.components.store.MRUMemoryStore.checkSeriazable(MRUMemoryS tore.java:351) at org.apache.cocoon.components.store.MRUMemoryStore.free(MRUMemoryStore.java:3 40) at org.apache.cocoon.components.store.MRUMemoryStore.hold(MRUMemoryStore.java:2 44) at org.apache.cocoon.components.store.MRUMemoryStore.store(MRUMemoryStore.java: 229) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configur e(AbstractMarkupLanguag at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.j at org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultCom ponentHandler.java:92) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca liburComponentSelector. at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:153) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.jav at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:246) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi ngEventPipeline.java:10 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:279) at org.apache.cocoon.www.urlaubstage.sitemap_xmap.wildcardMatchN3E(sitemap_xmap .java:546) at org.apache.cocoon.www.urlaubstage.sitemap_xmap.process(sitemap_xmap.java:301 ) at org.apache.cocoon.www.urlaubstage.sitemap_xmap.process(sitemap_xmap.java:252 ) - 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]
How can I set the charset/encoding in coocon2
How can I set the output encoding/charset for coocon2? My xml-file, and my xsl-file as well, use ISO-8859-1 (Latin-1), but my output is UTF-8! Why? Christoph Gaffga - 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]
[C2] denial of service made easy
How stable is the current 2.b1-dev ? If have a page that runs, but if I press my browsers refresh button, say 5 times (fast), I get an error Cocoon 2 - Resource not found for all pages (including coocon welcome page and samples). The page, that generates the error, uses cinclude. Could it be the reason? Does anybody know the release date of a stable version of c2 (a usable)? I have the following Exception in my log: java.lang.NullPointerException at org.apache.cocoon.components.store.MRUMemoryStore.checkSeriazable(MRUMemoryS tore.java:351) at org.apache.cocoon.components.store.MRUMemoryStore.free(MRUMemoryStore.java:3 40) at org.apache.cocoon.components.store.MRUMemoryStore.hold(MRUMemoryStore.java:2 44) at org.apache.cocoon.transformation.TraxTransformer.putTemplates(TraxTransforme r.java:236) at org.apache.cocoon.transformation.TraxTransformer.getTransformerHandler(TraxT ransformer.java:175) at org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTransformer .java:423) at org.apache.cocoon.components.pipeline.CachingEventPipeline.connectPipeline(C achingEventPipeline.java:3 at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:213) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:361) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN228(sitemap_xmap.java:2832) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2146) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1983) at org.apache.cocoon.sitemap.Handler.process(Handler.java:160) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103) at org.apache.cocoon.Cocoon.process(Cocoon.java:354) - 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: [C2] use-request-parameters=true
Thanks for answering. My Problem is still the same, it doesn't matter if I use the request-taglib or code it directly in an xsp:logic-tag. The result is the same, it should output the request parameter but doesn't. I've same problem (as in dynamic xsp generation) when I use aggregate in the sitemap. The request parameters are not available to the parts (not with request-taglib nor by using the request-Variable directly). Is that a known Problem? I need to use the request parameter during the generation of every dynamic page. Christoph Gaffga - Original Message - From: Sergio Carvalho [EMAIL PROTECTED] To: C. Gaffga [EMAIL PROTECTED] Sent: Sunday, July 15, 2001 1:00 AM Subject: Re: [C2] use-request-parameters=true Ok, now I get it. Set up the XSLT producing pipeline, just as if it were any other pipeline. You can access the request parameters using the request XSP taglib. You'll need to declare the request taglib namespace: xmlns:xsp-request=http://apache.org/xsp/request/2.0; and then you can use: xsp-request:get-parameter name=fgcolor / on your XSP. Have a look at the file /docs/samples/xsp/request-test.xsp on your cocoon distribution. You may also gain some insight from the source of the request taglib: src/org/apache/cocoon/components/language/markup/xsp/java/request.xsl available either in the cocoon source files, or in the cocoon.jar file under cocoon/WEB-INF/lib. Another alternative to generating a new stylesheet with the required parameters, is to have a static stylesheet that processes the parameters itself, with no XSP involved. This is the simpler solution, and I thought you were going for it, It would look something like: map:match pattern=test.html map:generate type=serverpages src=page.xsp/ map:transform src=test.xsl / map:serialize type=html/ /map:match Just don't forget step 1 on my previous e-mail, or parameters won't get passed to the XSLT. Instead of having the transformer pass the parameters, you could also do it on the pipeline using the request action (CVS version/upcoming beta) and sitemap substitution, in which case you don't need to do the referred step 1: map:match pattern=test.html map:act type=request map:generate type=serverpages src=page.xsp/ map:transform src=est.xsl map:parameter name=color value={fgcolor} / /map:transform map:serialize type=html/ /map:act /map:match On Sat, 14 Jul 2001 13:36:55 +0200, C. Gaffga [EMAIL PROTECTED] wrote: -- Oh sorry, I want to use the parameters during stylesheet generation. My stylesheet is a xsp-page looking for some request parameters and session variables to get the colors customized by the user from the database. So, the stylesheet is dynamicly generated depending on the request. But I had the problem that the request Variable doesn't contain the parameters! I had the same problem during using aggregate, the request is not available in the part generators. Is it my mistake or not the way cocoon works? (I need the current request in every phase of generation, i thought that is for what the cocoon:// protocol is for!?) Christoph Gaffga - Original Message - From: Sergio Carvalho [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 13, 2001 7:34 PM Subject: Re: [C2] use-request-parameters=true Do you want to use the request parameter *in* the XSLT or *producing* the XSLT? You mentioned using it in the XSLT but your sample uses it in XSP instead. You sample should work, even without the map:parameter name=use-request-parameters value=true/. On the other hand, if you want to use the parameters in the XSLT, then what you need to do is this: 1) Edit sitemap.xmap; change map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-storefalse/use-store use-request-parameterstrue/use-request-parameters to map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-storetrue/use-store use-request-parameterstrue/use-request-parameters 2) Declare the parameter in your XSLT. e.g: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=siteSection//xsl:param 3) Use the parameter, available as $siteSection in the example. e.g: xsl:when test=$siteSection = '/frontPage' Hope this helps, On Fri, 13 Jul 2001 15:24:12 +0200, C. Gaffga [EMAIL PROTECTED] wrote: -- I'm using cocoon 2.1-dev (12.07.2001). I want to use the request in a dynamic generated Stylesheet using the following sitemap: map:match pattern=test.xsl map:generate type=serverpages src=stylesheet.xsp/ map:serialize type=xml/ /map:match map:match pattern=test.html map:generate type=serverpages src=page.xsp/ map:transform src=cocoon://test.xsl
Re: Re: [C2] use-request-parameters=true
Oh sorry, I want to use the parameters during stylesheet generation. My stylesheet is a xsp-page looking for some request parameters and session variables to get the colors customized by the user from the database. So, the stylesheet is dynamicly generated depending on the request. But I had the problem that the request Variable doesn't contain the parameters! I had the same problem during using aggregate, the request is not available in the part generators. Is it my mistake or not the way cocoon works? (I need the current request in every phase of generation, i thought that is for what the cocoon:// protocol is for!?) Christoph Gaffga - Original Message - From: Sergio Carvalho [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 13, 2001 7:34 PM Subject: Re: [C2] use-request-parameters=true Do you want to use the request parameter *in* the XSLT or *producing* the XSLT? You mentioned using it in the XSLT but your sample uses it in XSP instead. You sample should work, even without the map:parameter name=use-request-parameters value=true/. On the other hand, if you want to use the parameters in the XSLT, then what you need to do is this: 1) Edit sitemap.xmap; change map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-storefalse/use-store use-request-parameterstrue/use-request-parameters to map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-storetrue/use-store use-request-parameterstrue/use-request-parameters 2) Declare the parameter in your XSLT. e.g: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=siteSection//xsl:param 3) Use the parameter, available as $siteSection in the example. e.g: xsl:when test=$siteSection = '/frontPage' Hope this helps, On Fri, 13 Jul 2001 15:24:12 +0200, C. Gaffga [EMAIL PROTECTED] wrote: -- I'm using cocoon 2.1-dev (12.07.2001). I want to use the request in a dynamic generated Stylesheet using the following sitemap: map:match pattern=test.xsl map:generate type=serverpages src=stylesheet.xsp/ map:serialize type=xml/ /map:match map:match pattern=test.html map:generate type=serverpages src=page.xsp/ map:transform src=cocoon://test.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize type=html/ /map:match I have the following im my stylesheet.xsp for testing: Request Parameter: ulxsp:logic { java.util.Enumeration x = request.getParameterNames(); while(x.hasMoreElements()) { String s = (String) x.nextElement(); xsp:content lixsp:exprs/xsp:expr = xsp:exprrequest.getParameter(s)/xsp:expr/li /xsp:content } } /xsp:logic/ul But there are no parameters outputted! Is it a bug or my mistake? Please help. Christoph Gaffga - 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] -- Sergio Carvalho --- [EMAIL PROTECTED] If at first you don't succeed, skydiving is not for you - 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: [C2] a pair of errors instantiating C2
Trying to load class: com.ibm.servlet.classloader.Handler Disable the IBM Webshere Appserver in cocoon.xconf. java.sql.SQLException: File input/output error: ${install.war}/cocoon/WEB- you can ignore that Exception, does't disturb the function of coocon. (only SQL, bur repair it later) lack of an X-server. Marcus Crafter wrote: If you don't have an xserver on your system, and can't set the DISPLAY variable to one, then try out xvfb. xvfb gives you an 'in-memory' xserver, which doesn't require any display hardware to run. $ Xvfb :1 -screen 0 800x600x8 $ export DISPLAY=:1 $ $TOMCAT_HOME/bin/startup.sh -f server.xml you can download Xvfb from redhat. Christoph Gaffga - Original Message - From: Mike Haarman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 13, 2001 9:58 PM Subject: [C2] a pair of errors instantiating C2 Okay, I am clear of errors regarding antique jars and the lack of an X-server. This is next in line. Machine: debian potato/stable (2.2.17), IBMJava2-13, Apache 1.3.#, Tomcat 3.2.1, C2.0b1 Most of cocoon's dynamic classes have been generated by the time this exception is thrown. The second one is even later. Is it necessary to be running a DB in order to instantiate cocoon!? From $TOMCAT_HOME/logs/servlet.log (also reported in $TOMCAT_HOME/webapps/cocoon/WEB-INF/logs/cocoon.log): DEBUG 18 [cocoon ] (Thread-32): Trying to load class: com.ibm.servlet.classloader.Handler WARN86 [cocoon ] (Thread-32): Could not force-load class: com.ibm.servlet.classloader.Handler java.lang.ClassNotFoundException: com.ibm.servlet.classloader.Handler at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at java.lang.ClassNotFoundException.init(ClassNotFoundException.java:71) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:325) at java.lang.ClassLoader.loadClass(ClassLoader.java:257) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46) at org.apache.cocoon.servlet.CocoonServlet.forceLoad(CocoonServlet.java:399) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:119) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection (Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:498) DEBUG 35897 [cocoon ] (Thread-37): org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated. java.sql.SQLException: File input/output error: ${install.war}/cocoon/WEB-INF/db/cocoondb.properties at java.sql.SQLException.init(SQLException.java:66) at org.hsqldb.Trace.getError(Trace.java:180) at org.hsqldb.Trace.getError(Trace.java:144) at org.hsqldb.Trace.error(Trace.java:205) at org.hsqldb.Log.saveProperties(Log.java:621) at org.hsqldb.Log.create(Log.java:512) at org.hsqldb.Log.open(Log.java:159) at org.hsqldb.Database.init(Database.java:96) at org.hsqldb.jdbcConnection.openStandalone(jdbcConnection.java:926) at org.hsqldb.jdbcConnection.init(jdbcConnection.java:682) at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:116) at java.sql.DriverManager.getConnection(DriverManager.java:523) at java.sql.DriverManager.getConnection(DriverManager.java:183) at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb cConnectionFactory.java:56) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java: 70) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardRe sourceLimitingPool.java:87) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcCo nnectionPool.java:54) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL imitingPool.java:82) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnection Pool.java:119) at java.lang.Thread.run(Thread.java:498) TIA, Mike - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe,
[C2] use-request-parameters=true
I'm using cocoon 2.1-dev (12.07.2001). I want to use the request in a dynamic generated Stylesheet using the following sitemap: map:match pattern=test.xsl map:generate type=serverpages src=stylesheet.xsp/ map:serialize type=xml/ /map:match map:match pattern=test.html map:generate type=serverpages src=page.xsp/ map:transform src=cocoon://test.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize type=html/ /map:match I have the following im my stylesheet.xsp for testing: Request Parameter: ulxsp:logic { java.util.Enumeration x = request.getParameterNames(); while(x.hasMoreElements()) { String s = (String) x.nextElement(); xsp:content lixsp:exprs/xsp:expr = xsp:exprrequest.getParameter(s)/xsp:expr/li /xsp:content } } /xsp:logic/ul But there are no parameters outputted! Is it a bug or my mistake? Please help. Christoph Gaffga - 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]
[C2] Problem using request parameters
Hi ! Is it possible to use the same context for all parts of a processing pipeline. I want to use the request parameters in the parts of aggregate.xml, but it doesn't work. I thought that is for what the cocoon: protocol is for, isn't it? How can I use the request in all XSP files? I want it also to be used in a dynamicly generated XSL file. Is that possible in cocoon2. I'm using cocoon2.1-dev (12.7.2001) Christoph Gaffga From my sitemap: map:match pattern=request.xml map:generate type=serverpages src=request.xsp/ map:serialize type=xml/ /map:match map:match pattern=aggregate.xml map:aggregate element=page map:part src=cocoon:/request.xml element=a/ map:part src=cocoon:/request.xml element=b/ /map:aggregate map:serialize type=xml/ /map:match request.xsp: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; request xsp:logic java.util.Enumeration x = request.getParameterNames(); while(x.hasMoreElements()) { String s = (String) x.nextElement(); parameter name xsp:exprs/xsp:expr /namevalue xsp:exprrequest.getParameter(s)/xsp:expr /value /parameter } /xsp:logic /request /xsp:page - 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]
[C2] Using XSP inside XSL
Why can't I use dynamicly generated Stylesheets in Cocoon 2. I tryed with the following configuration (sitemap): map:match pattern=test.xsl map:generate type=serverpages src=test-stylesheet.xsp/ map:serialize type=xml/ /map:match map:match pattern=test.html map:generate type=serverpages src=test.xsp/ map:transform src=test.xsl/ map:serialize/ /map:match But I got a File not Found exception. Will this be fixed? Will this feature (using pipelines) be integrated in a future Version of C2? When I use a URL with transform: map:transform src=http://myserver:8080/myapp/test.xsl/ it works, of course, but this, I think, will bring a lack of performence. Christoph Gaffga - 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: AW: Re: [C2] Using XSP inside XSL
That's realy nice, but I have still the Problem that the stylesheet depends on the request parameters, but they are not available! Is it a bug, not the way it should work or my mistake? I did the following (from my sitemap): map:match pattern=test.xsl map:generate type=serverpages src=stylesheet.xsp/ map:serialize type=xml/ /map:match map:match pattern=test.html map:generate type=serverpages src=page.xsp/ map:transform src=cocoon://test.xsl/ map:serialize type=html/ /map:match using the latest cocoon2 from the CVS. The request parameter should be processed in stylesheet.xsp If somebody know about that, please let me know. Please help me, Carsten!! Christoph Gaffga - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 4:05 PM Subject: AW: [C2] Using XSP inside XSL Hi, with the beta2 of cocoon2 which will be available in some weeks, this should be possible by using the new cocoon: protocol: You can refer to the stylesheet with the following line: map:transform src=cocoon:/test.xsl/ The cocoon: protocol loads a pipeline from the sitemap. (You could also test this right now with the current cvs version of cocoon2) Carsten Open Source GroupsunShine - b:Integrated Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn www.sundn.de mailto: [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: C. Gaffga [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Juli 2001 15:20 An: [EMAIL PROTECTED] Betreff: Re: [C2] Using XSP inside XSL Oh, I forgot to say that it is very importent for us to use the same request (inc. Parameters, etc...) in the stylesheet generating XSP, that is not possible with the solution below. Christoph Gaffga - Original Message - From: C. Gaffga [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 1:50 PM Subject: [C2] Using XSP inside XSL Why can't I use dynamicly generated Stylesheets in Cocoon 2. I tryed with the following configuration (sitemap): map:match pattern=test.xsl map:generate type=serverpages src=test-stylesheet.xsp/ map:serialize type=xml/ /map:match map:match pattern=test.html map:generate type=serverpages src=test.xsp/ map:transform src=test.xsl/ map:serialize/ /map:match But I got a File not Found exception. Will this be fixed? Will this feature (using pipelines) be integrated in a future Version of C2? When I use a URL with transform: map:transform src=http://myserver:8080/myapp/test.xsl/ it works, of course, but this, I think, will bring a lack of performence. Christoph Gaffga - 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] - 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: AW: [C2] Redirects
What's the Problem about flow. It's also very simple with coocon. Because a page that redirect doesn't output anything, why you dont't use a simple JSP page. from there you can redirect to an XML/XSP page with output. Christoph Gaffga - Original Message - From: Ulrich Mayring [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 3:37 PM Subject: Re: AW: [C2] Redirects Berin Loritsch wrote: Oh, you aren't being fair. Just because it is too easy to do in scripting frameworks, doesn't mean we should allow the same abuse of redirects in Cocoon. You just have to think harder. Well, it's a design decision. I expect from a web publishing framework that it allows me to build web applications. And redirects are IMHO a big part of it, they provide program flow. I don't see how a framework could suffer, if it offers redirects - nobody is forced to use the redirects, but it should be possible. If you know of another way to do program flow, please tell me. But web apps are based on HTTP requests and thus, if I want to do a new thing, I have to make a new HTTP request. Regarding logic in the sitemap, I whole-heartedly agree. Business logic does not belong in the sitemap. Period. If you do that, your business logic is at the mercy of the sitemap administrator. Program flow is a large part of business logic :) Regarding the proprietary format: there was no standard for this type of thing. If you show us a standard on URI space management that keeps the filesystem and the URI space orthagonal, we will definitely look at integrating it. Unfortunately, this is something that is up to whatever framework you use. Cocoon1 provides a simple way to code program flow into the XML pages themselves. This is not proprietary if done with logicsheets, because the XML files themselves are just an interface, that could be implemented differently if moving outside the Cocoon world. URI space management should not get in the way of program flow, these are IMHO two different issues. Also regarding the proprietary format: Cocoon can be used accross many servlet engines. This reduces the risk of using Cocoon. If you decide to switch frameworks, well you have the overhead of removing one infrastructure and implementing a new one. I don't care how standard something is--there is always some point of a little rework that needs to be done. It's not up to me what framework our business partners use. But I have to able to communicate with them - the Sitemap is an inappropriate format for this communication. It's too low-level, we need to think in concepts :-) I believe redirects as a result of business logic belong in Actions. That logic can be a result of a parameter or whatever--but I don't think the sitemap is the place for it. But given your previous arguments that you would argue that Actions are also proprietary. Not if they provide a neutral interface like XSP taglibs do. Hey, Avalon is full of interfaces :) Does the solution I provided above work for you? By tying your logic to session beans, you have a portable infrastructure that minimizes dependance on some aspects of Cocoon. I like XSP taglibs, because XML is more a standard than Beans. I can't give Beans to folks not using Java, but I can give them XML. Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - 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]
Merge multiple files to one XSP-File
Hi ! I split up my xsp files to keep them small and for reusebility. With Cocoon 1.8 ist wasn't a problem to merge them BEFORE the xsp-file is translated to a class. I used xinclude. But now with cocoon 2 that is not possible. XInclude works only as a postprocessor. So my question: Is there a way to merge files to one xsp-file before comiling? It's urgent. Please help Thanks in advance. Christoph Gaffga - 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]
[C2]You cannot select a Component from a disposed ComponentSelector
Hi ! What meens: org.apache.cocoon.ResourceNotFoundException: You cannot select a Component from a disposed ComponentSelector:java.lang.IllegalStateException: You cannot select a Component from a disposed ComponentSelector at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:156) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.java:164) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:255) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi ngEventPipeline.java:110) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:273) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3627) I get this exception when I want to call the Simple XSP example in cocoon2. Christoph Gaffga - 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: How to run cocoon2 without X11
Now it works, clever and simple idea. Thank you very much Christoph Gaffga - Original Message - From: Marcus Crafter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 7:13 PM Subject: Re: How to run cocoon2 without X11 On Fri, 6 Jul 2001, C. Gaffga wrote: How can I run cocoon 2 without X11. Why is a Display needed??? An Xserver is needed due to the batik library fop uses. batik uses java's graphics code, which in turn requires the Xserver. If you don't have an xserver on your system, and can't set the DISPLAY variable to one, then try out xvfb. xvfb gives you an 'in-memory' xserver, which doesn't require any display hardware to run. eg: $ Xvfb :1 -screen 0 800x600x8 $ export DISPLAY=:1 $ $TOMCAT_HOME/bin/startup.sh -f server.xml Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Open Software Associates GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : After Hours: +49 69 49086750 - 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]