Re: best Java for RedHat?
On Thu, Mar 13, 2003 at 01:31:16PM -0500, Brian McCallister wrote: Sun has binary and rpm distributions for 1.4.1 on linux that work well on RH. BEA's JRockit is absurdly fast, and seems stable while running, but has some issues stopping. It is supported by BEA if you are running RedHat AS and don't mind forking over a couple thousand dollars, otherwise it is simply available an unsupported. We have seen substantial speed benefits using it in development, but haven't been brave enough to put it into production because of the shutdown issues. IBM's JRE/JDK has had similar performance characteristics for us to Sun's. It works fine. It gets brownie points for installing to /opt via rpm. -Brian On Thursday, March 13, 2003, at 12:44 PM, Jeremy Quinn wrote: Have anyone tried using Eclipse with JRockit? Does it add some speed? -- Lenya Khachaturov mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon and Eclipse
On Sun, Feb 16, 2003 at 09:32:16PM -0600, Sean McKaharay wrote: I found the website that talked about building Cocoon so it will work with eclipse, but the parameters don't work. I try to do build eclipse-project but it says that eclipse-project is not a good parameter. Does anyone have any idea how to make cocoon work with eclipse? Thanks I guess, the eclipse-project build target only exists in a recent CVS. -- Lenya Khachaturov mailto:[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]
Re: Passing User-Agent as a map:parameter
On Fri, Jan 31, 2003 at 07:20:39PM +0100, Marco Rolappe wrote: hi lenya, I haven't yet really been into input modules, but I think you could use something like: map:transform src=blog/blog.xsl type=xslt map:parameter name=browser value=header:user-agent/ /map:transform Thanks for the hint! Actually, the parameter's value should be request-header:user-agent. It works great! -- Lenya Khachaturov mailto:[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]
Passing User-Agent as a map:parameter
Hello, I'd like to know if it's possible. I would like to do the following: map:transform src=blog/blog.xsl type=xslt map:parameter name=browser value=USERAGENT/ /map:transform So that in my XSL I could write the following: xsl:if test=$browser='ie' link rel=stylesheet href=ie.css type=text/css/ /xsl:if xsl:if test=another browser link to another CSS /xsl:if The example in the Browser Selector docs is not what I really want - I don't need different XSLs for different browser. -- Lenya Khachaturov mailto:[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]
Newbie questions about Actions
Hello, I've read through userdocs/concepts/actions.html, but still I dont't get the following (and the docs do not explain this): I've got Java code of an action. HOW do I compile this and WHERE should I put the resulting .class file after this. -- Lenya Khachaturov mailto:[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]
Re: Cocoon Portal Framework Question
On Wed, Jan 15, 2003 at 08:50:15AM +0100, Carsten Ziegeler wrote: Hi, there are two problems with JDK 1.4.x: First, you have to copy the versions of Xalan and Xerces provided with Cocoon to the endorsed directory of your JDK as explained in the installation guide of Cocoon. Second, you have to turn of xsltc! Change the setting in the main sitemap for the default transformer and turn off xsltc and then the portal should work. fix: the endorsed directory of your Tomcat distribution, not JDK. -- Lenya Khachaturov mailto:[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]
Request: XSP for quering Google Web API
Hello, I've discovered that there exists an XSP for quering Google Web API. It was posted to this list by Ugo Cei at 04.19.2002. Could someone please send it to me? Or maybe there exist more advanced variants? -- Lenya Khachaturov mailto:[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]
Inserting form data into DB using ESQL - doesn't work
Hello, I have a form, with action=admin.xsp, a sitemap entry: map:match pattern=admin/admin.xsp map:generate src=admin/admin.xsp type=serverpages/ map:serialize/ /map:match and an XSP page: ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp=http://apache.org/xsp; xmlns:sql=http://apache.org/cocoon/SQL/2.0; page xsp:logic String title = xsp-request:get-parameter name=title/; String date = xsp-request:get-parameter name=date/; String content = xsp-request:get-parameter name=content/; String category = xsp-request:get-parameter name=category/; String posted_by = xsp-request:get-parameter name=posted_by/; execute-query xmlns=http://apache.org/cocoon/SQL/2.0; queryINSERT INTO blog_data (title, date, content, category, posted_by) VALUES parametertitle/parameter, parameterdate/parameter, parametercontent/parameter, parametercategory/parameter, parameterposted_by/parameter/query /execute-query /xsp:logic /page /xsp:page The fields' names in the form are the same as in the DB. I'm having no error messages, everything seems fine, but the output I get is: INSERT INTO blog_data (title, date, content, category, posted_by) VALUES title, date, content, category, posted_by If we look at the page's code, it's: page xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:sql=http://apache.org/cocoon/SQL/2.0; execute-query xmlns=http://apache.org/cocoon/SQL/2.0; queryINSERT INTO blog_data (title, date, content, category, posted_by) VALUES parametertitle/parameter, parameterdate/parameter, parametercontent/parameter, parametercategory/parameter, parameterposted_by/parameter/query /execute-query /page So, the code got through the Server Pages generator fine, but not through ESQL. Also, parameters, such as parametercontent/parameter weren't substituted with their real values from the request. What's wrong with my code? -- Lenya Khachaturov mailto:[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]
Does disable-output-escaping work?
Hello, I've got several Cocoon installations, one of them has a weird bug - seems like disable-output-escaping is not working. The code is the same everywhere. In more detail: XML contains content ![CDATA[ some html code ]] /content XSL contains xsl:value-of select=content disable-output-escaping=yes/ Working installations are: Cocoon 2.0.3, Tomcat 3.3.1, JDK 1.3.0_01 and Cocoon 2.0.3, Tomcat 3.3.1, JDK 1.4.0_01 Buggy installation is: Cocoon 2.0.3, Resin 2.1.6, JDK 1.4.0_01 Is it a bug of Cocoon? How can I workaround this? -- Lenya Khachaturov mailto:[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]
Re: Passing request parameters - and making use of them in the XS L
On Wed, Dec 18, 2002 at 03:25:04PM +0800, Kirchhoff, Lars wrote: hi you have to reference the param with a $. In your case xsl:value-of select=$param Thanks everyone for responding so quickly, that was really simple :-) -- Lenya Khachaturov mailto:[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]
Passing request parameters - and making use of them in the XSL
Hello, It seems like everybody knows how to do this, at least the docs mention this so briefly, that it must be dead simple. Anyway, I didn't get it :-) Please help me on this: map:match pattern=archives/** ... map:transform src=my.xsl type=xslt map:parameter name=param value={1} /map:transform ... /map:match Now, when I point the browser to http://mysite/archives/december, the parameter named param with the december value should be passed to the stylesheet. In the stylesheet I have: xsl:param name=param / As far as I understood, xsl:value-of select=param should print december - right? Well, it doesn't. What am I doing wrong? -- Lenya Khachaturov mailto:[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]
Transforming several XMLs (Request Generator component)
Hello, I need to produce a transformation based on two XML files. The first is my XML file, the second is the output of the Request Generator, produced by map:generate type=request map:parameter name=generate-attributes value=true/ /map:generate I need to grab a couple of keys from this output, combine it with my XML and transform it. How should I do this? -- Lenya Khachaturov mailto:[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]
Re: problem with the sitemap and patterns
On Wed, Dec 11, 2002 at 03:05:57PM -0500, Timothy Larson wrote: Try map:match pattern=mysite/** Notice the two asterisks. Tim [EMAIL PROTECTED] 12/11/02 12:44PM Is there a way to specify a GENERAL pattern? I know, the wildcards exists for this reason, but if I write in my sitemap: map:match pattern=mysite/* and the user write something like: http://localhost:8080/cocoon/mysite/dir1/dir2/file1.html then my pattern doesn't match Furthermore, if the user writes: http://localhost:8080/cocoon/mysite/dir1/ my pattern doesn't match again I'd like to know if there's a way to match everything that begins with mysite. Thanks in advance That will be map:match pattern=mysite/** -- Lenya Khachaturov mailto:[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]
Cocoon authentication - anyone got samples?
Hello, I want to protect a single page with Cocoon. How do I provide an authentication dialog and check user's input? Would you point me to a basic sample? -- Lenya Khachaturov mailto:[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]
How should I do this?
Hello, I'm writing a weblog application with Cocoon and I've got stuck with a problem: the common weblog application features are Categories and Permanent links. Say, the blog resides at http://myhost/blog. If you point your browser there, the latest entries entered are displayed there, these entries belong to different categories. Then if you point the browser to http://myhost/blog/archives/software/linux, you'll see all entries belonging to software/linux category. And if you'll point your browser to http://myhost/blog/archives//MM/DD#software/linux - you'll see entries belonging to software/linux whose date is DD.MM. - that's what is called permanent links. Could someone give me a clue on how to handle this behaviour with Cocoon? I can catch these requests with map:match pattern=blog/archives/**, but I've got absolutely no idea of what to do then. How do I pass, say /MM/DD#software/linux to the stylesheet where I can handle it? Or maybe, I've got to do something different? Your help would be greatly appreciated. -- Lenya Khachaturov mailto:[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]
Cocoon performance tuning
Hello, Are there any hints on making Cocoon perform better? I've been using Cocoon for a couple of weeks and I can't call it blazing fast :-) As I understood, it's performance greatly depends on the Java compiler and the XSLT processor used. Which compiler and processor would you recommend? As far as I know, Cocoon 2.0.3 uses Pizza and Xalan. Is Jikes and Saxon (or, maybe, XSLTC) a better choice? I also use Resin 2.1.6 and Sun JDK 1.4.0_01 - any recommendations here? -- Lenya Khachaturov mailto:[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]
XSLTC doesn't work with Cocoon 2.0.3
Hello, I am trying to enable XSLTC in Cocoon 2.0.3, I've read http://outerthought.net/wiki/Wiki.jsp?page=XSLTC and followed these steps. The result I'm getting is Cocoon confusion - Cocoon was unable to process the request :-( Should it work out of the box? -- Lenya Khachaturov mailto:[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]
Re: Cocoon@Oracle 9iAS/Linux
On Tue, Nov 26, 2002 at 10:00:46AM +0300, Pavel Ivanov wrote: Hi there! Hi Pavel, I'm not an OC4J guru :-) but won't putting the libraries for each application into it's own WEB-INF/lib help? I mean, do not keep xerces/xalan in Tomcat's lib directory. Question for Linux and OC4J gurus: There is a following problem. We have installed Oracle 9iAS (release 2) on top of Red Hat Linux (kernel 2.4.7). We have our app, which uses Cocoon 2.02 as framework. Everything worked fine while we were using: 1) Various Tomcats/Catalinas 2) JBOSS with and w/o Catalina 3) OC4J (aka Oracle 9iAS containers) for Windows 4) Weblogic 5.1, 6.1, 7.0 Now we can't handle Cocoon start to work. Problem is known: conflict of XML/XSL parsers (xalan/xerces.jar) Trace is following: == org.apache.cocoon.ProcessingException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:204) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:278) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi ngEventPipeline.java:141) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:317) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectN ode.java:136) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(ContainerNod e.java:70) at org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallNode. java:122) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:140) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:144) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:328) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:293) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.ja va:59) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa tcher.java:523) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq uestDispatcher.java:269) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle r.java:735) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64) java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:1 18) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:9 6) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate Code(AbstractMarkupLanguage.java:377) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:370) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:333) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:292) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:198) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.java:202) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:278) at
Re: mod_jk and CocoonII
On Mon, Nov 18, 2002 at 02:09:54PM -0500, Dwayne Kemp wrote: Im using: Apache-1.3.23 Tomcat4-4.1.12 Cocoon2.0.3 mod_jk Cocoon II works fine from http://localhost:8080/my app but using the mod_jk when i go to http://locatlhost/my app only static content is served it will not render my xml. any suggestions would be appreciated. It must be a misconfiguration of mod_jk. Read the HOWTO in the Tomcat distribution, mod_jk works fine for me. -- Lenya Khachaturov mailto:[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]
Re: PLs HELP me ASAP
On Tue, Nov 19, 2002 at 01:58:39PM +0530, Dhiman Paul wrote: Dear All, I m trying to connect oracle from cocoon through XSP files, when I m getting a error like No connection in the pool. I have made changes to the cocoon.xconf file for the datasource tag. I m using oracle.jdbc.thin driver for this connectivity. Pls say me the necessery steps to come out from this Erronious condition. Thanks. Dhiman Paul. Your question has been answered already, didn't you receive it? -- Lenya Khachaturov mailto:[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]