Re: Axis as Cocoon component?
Hi Alexander, On Thu, Mar 13, 2003 at 10:20:52AM +0100, Alexander Enns wrote: Hi Markus, ignore my last email. I got it. The problem was the lack namespace in method invokation. Ok. ...snip/... Your help is realy appreciated! No problems, glad that it's working for you now. :) Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Wed, Mar 12, 2003 at 11:26:07AM +0100, Alexander Enns wrote: Hi Markus, I'm trying to invoke services on the SoapServer but get every time AxisFault. Ok. Axis can not find the Service. The same behaviour if I invoke the service from remote Axis client. But the status.xsp is working properly. It seems that only the AdminService is known to Axis. Ok. Couple of admin questions then, do you something like: soap-server logger=core.axis.soapserver managed-services descriptor src=resource://org/apache/cocoon/webservices/memory/DeploymentDescriptor.wsdd/ descriptor src=resource://org/apache/cocoon/webservices/system/DeploymentDescriptor.wsdd/ descriptor src=resource://org/apache/cocoon/webservices/cache/DeploymentDescriptor.wsdd/ descriptor src=resource://org/apache/cocoon/webservices/instrument/DeploymentDescriptor.wsdd/ /managed-services /soap-server In your cocoon.xconf file ? This should deploy the services at startup time. Then, in your core.log there should be something like: DEBUG (2003-03-12) 14:05.54:160 [core.axis.soapserver] (Unknown-URI) Unknown-thread/SoapServerImpl: Deployed Descriptor: ?xml version=1.0 encoding=UTF-8? deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; service name=Cocoon-JVM-System provider=java:RPC parameter name=allowedMethods value=getProperties getArchitecture getCPUInfo getNumProcessors getOperatingSystem getOperatingSystemVersion/ parameter name=className value=org.apache.cocoon.webservices.system.System/ /service /deployment If this is all fine, then the Cocoon-JVM-System service should be visible on the status page, and should work fine via a remote request. Does that help at all ? Are those things present in your log and configuration mate ? Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Tue, Mar 11, 2003 at 11:54:46AM +0100, Alexander Enns wrote: Java 1.3.1 ... java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp (Unsupported major.minor version 48.0) I suspect the XSP files have been compiled using jdk 1.4.x and you're attempting to run them using jdk 1.3.1. Could that be the case ? I'd clean out your work directory (ie. remove the xsp class files) and see then if the problem persists. Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, Thanks for the report - I've taken this up on the dev list and we'll come up with a solution soon. Cheers, Marcus On Tue, Mar 11, 2003 at 03:01:40PM +0100, Alexander Enns wrote: Hi Markus, the problem was realy the compiler settings. I have changed the compiler setting to Javac. Now all working properly. At last I can begin to play with SoapServer. :-) Thanks for Your help, Alexander Marcus Crafter [EMAIL PROTECTED] Tuesday, 11. March 2003 14:10:05 On Tue, Mar 11, 2003 at 01:38:07PM +0100, Stephan Michels wrote: On Tue, 11 Mar 2003, Marcus Crafter wrote: Hi Alexander, On Tue, Mar 11, 2003 at 11:54:46AM +0100, Alexander Enns wrote: Java 1.3.1 ... java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp (Unsupported major.minor version 48.0) I suspect the XSP files have been compiled using jdk 1.4.x and you're attempting to run them using jdk 1.3.1. Could that be the case ? I'd clean out your work directory (ie. remove the xsp class files) and see then if the problem persists. I got the same exception, but I doesn't use a 1.4 jdk. Can it be that we currently using a XSP compiler, which targets at 1.4? Could be. The default XSP compiler was changed recently from javac to Eclipse. There's no chance that the XSP pages were compiled with jdk 1.4 sometime in the past and are left over in your work directory ? (it's happened to me :) ) If not, can you perform your same test using the Javac compiler (the settings can be modified in your cocoon.xconf), and report back your results ? Thanks! Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Mon, Mar 10, 2003 at 03:44:26PM +0100, Alexander Enns wrote: Hi Markus, I'm trying to get running Your SoapServer and have problems. ok. I was trying to integrate the Server in my existing Cocoon (v. 2.0.3) application, but have problems with Excalibur libraries, because You are using the latest one. Yes, there are some differences between the libraries in CVS HEAD and 2.0.3. From memory I think the use of the sourceresolver needs to be modified if you want to get the soap server working with 2.0.3. I have checked out the latest CVS version of Cocoon, but the version is buggy and I was unable to compile. Do you mean the soap server isn't compiling or Cocoon itself ? Can you send in a log of the errors you are receiving ? I have Cocoon CVS working fine in my environment here. (Note, I recently moved the soap server to a 'block' last week) What is Your configuration for using SoapServer? I use it with a snapshot from 2.1 CVS HEAD. I had used a modified version with 2.0.3, but we upgraded our Cocoon version recently and now it's 2.1 all the way. Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Thu, Feb 27, 2003 at 05:57:24PM +0100, Alexander Enns wrote: Hi Markus, Thank You for quickly answer! No problems. Your Soap Server for Cocoon is the piece I looked for. Great. Glad it's of use. How intensive it is already tested? And when it is planed to add the component to the main distribution of Cocoon? I've tested the reader in our environment, but essentially it's been implemented as a wrapper around Axis 1.0 which was tested by the Axis team. At the moment scratchpad is being refactored, so the component will probably move to a block soon. That will make it a more pluggable Cocoon component with it's own status (alpha, etc) - and as long as there are users of it around it should continue to exist and be supported. Let me know if you have any problems with the reader/soap server. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Wed, Feb 26, 2003 at 02:20:08PM +0100, Alexander Enns wrote: Hi all, is there any trial to integrate Axis engine in Cocoon? Axis is integrated into Cocoon via the AxisRPCReader, which exists currently in Cocoon's CVS scratchpad. Essentially, it allows Cocoon to serve SOAP requests, via Axis. To have possibility to use Cocoon component model from web services code? Do you mean utilize the Avalon component model from within your web services code ? This is possible with and without Cocoon, depending on what you want to do. Have a look at the sample webservices in scratchpad, especially the instrument service which uses an Avalon component as a webservice object. Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about instrumentation client.
Hi Antonio! On Mon, Jan 20, 2003 at 06:10:13PM -0600, Antonio Gallardo wrote: Hi Marcus! Thanks again! No problem :) I am back for some advise from the instruments guru. ;-) Where I can find some explaination about the aditional info in the instrument manager? For example the authentication manager has: authentication-manager pool - The pool of the manager blocks - ? creates - Create() a component in the pool decommissions - Destroy() components in the pool gets- Already created and getted? puts- Already in the pool and returned? ready-size - ? size- ? in KB or number of components? gets - ? puts - ? references- Sum of the calls to manager.lock(auth-manager.ROLE) in the code. I know that the components must be declared as instrumentable. But I think currently there are no many components declared as needed. Yes, you're right. Components wishing to report instrumentation data to the client need to implement the Avalon 'instrumentable' interface, which allows the them to define instruments that can be sampled from. At the moment there aren't many components (none in Cocoon) that support instrumentation except for ECM, Instrument Manager, and the Avalon datasource, and pool subprojects. What you are seeing above is reporting from instruments that are registered automatically from the above list of projects (ie. ECM's component handlers, which for example use pool for Poolable components, etc). Here's a brief breakdown of what you listed above: authentication-manager - The authentication manager component handler (not the component itself). pool - The pool used within the authentication manager's component handler blocks - threads blocking till a poolable becomes available creates - Create() a component in the pool decommissions - Destroy() components in the pool gets- Poolables accessed puts- Poolables returned ready-size - number of pooolables currently available size- total number of poolables this pool has gets - number of gets (ie. lookups) of this component puts - number of puts (ie. releases) of this component references- number of references to this component Hope that makes things a bit clearer, unfortunately this isn't yet documented anywhere, I obtained the above info from browsing the Avalon source for the ComponentHandler and ResourceLimitingPool classes. The job now (apart from docs) is to write a more wider set of instruments to report Cocoon specific data. I've made a start to this, but there's still a ways to go. Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: Running instrumentation-client....
Hi Antonio, On Mon, Jan 20, 2003 at 02:19:22PM -0600, Antonio Gallardo wrote: Hi. Can someone help me to make run again the instrumentation client? Yes, I'll help you get it running. :) I had it running before the lastest CVS updates (end of dic-2002). I downloaded the new excalibur CVS, because the once that is in Cocoon CVS run for me, but does not connect to the servlet. Your configuration looks ok, but according to the avalon-dev archives, you'll need to run the instrumentation client from the Cocoon CVS in tools/instrumentation when connecting to the Cocoon webapp. The issue lies in the altrmi jars. According to the archives the -common.jar needs to be the same on both the server and client, which is the change I made recently (and an update to the latest code). Does the instrumentation client work correctly when you run the runclient.sh script from tools/instrumentation/bin in Cocoon CVS ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: Running instrumentation-client....
On Mon, Jan 20, 2003 at 03:04:43PM -0600, Antonio Gallardo wrote: Really I dont know what happened but after reading your mail and starting Tomcat I runned again the CVS version and it works! Great :) I dont know why yesterday it does not work. I think Java sometimes retain the jars on memory and this cause some errors. hmm.. strange. I have had problems in the past, but as in my previous post, after finding out about the altrmi common jar it's been working ok for me ever since. Glad that it's now working fine for you. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: newbie: creating a cocoon action using AbstractMultiAction
Hi Julian, Not sure what the problem is exactly, but your source file has your action in the package 'org.apache.cocoon.acting', whereas your sitemap.xmap file says that is under 'com.ethidium.cocoon.action'. Perhaps that's causing things to go a bit pear shaped. Hope that helps. Cheers, Marcus On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian Klein wrote: *ACTION JAVA CODE** /* * TaskAction.java * * Created on January 14, 2003, 12:16 PM */ package org.apache.cocoon.acting; ...snip/... ***SITEMAP ...snip/... map:actions map:action name=eTask src=com.ethidium.cocoon.action.TaskAction/ -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: [2.1 CVS] - Build error
Hi Antonio, This should be fixed in HEAD now. There was a problem in the modules.xconf file which I repaired this morning. Cheers, Marcus On Tue, Dec 03, 2002 at 04:10:38PM +0700, Antonio Gallardo wrote: Hi! I was currently downloading the lastest CVS of 2.1. I made a ./build.sh clean after download. Now I am getting this error: Error in: xml-cocoon2/build/cocoon/blocks/databases/dest/db-modules-input.xconf BUILD FAILED file:xml-cocoon2/build.xml:1310: IOException: java.io.IOException: XPath (/cocoon/input-modules) returned not one node, but 0 nodes Regards, Antonio Gallardo. - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: pipeline result through SOAP?
Hi Josema, On Tue, Nov 19, 2002 at 11:59:00AM +0100, Josema Alonso wrote: I've just took a look. It is using the AxisRPCReader. I thought a reader was something like a complete pipeline. I mean, it gets the request, and makes the needed steps to generate, transform and serialze. Yes, a Reader is a sitemap component that performs generation and serialization in one stage. There were discussions on the list as to why a Reader was chosen, essentially, ease of use and to take more advantage of the Axis server component. I'm using a transformer that already generates the wanted XML response. How could I embed the result in that reader? Ok, the AxisRPCReader essentially wraps an Axis SOAP server, and makes it available in the sitemap to handle incoming requests. This means that webservices are typically written Axis-style, with a deployment descriptor (have a look in src/scratchpad/src/org/apache/cocoon/webservices/*). In fact, you should be able to deploy any Axis webservice inside the reader, as its basically the same code. You should also be able to access pipelines from within an Axis webservice by making an internal request via the cocoon:/ protocol. Note, I haven't yet done this, but all that should be required is to write a component that implements Composable, lookup the source resolver, and resolve a uri containing the pipeline you want to resolve. This should let you use pipelines to write SOAP services. The method of having to lookup the source resolver, and resolve the uri manually could probably be better streamlined somehow, perhaps similar to how the AvalonProvider is written. I'm more than open to any suggestions. Btw, any step by step example on how to use that reader? I can see the XSL and XSP but can't figure out how to feed it with a SOAP request and get a SOAP response from it. You can send a SOAP request by using the XSP SOAP tag library in Cocoon, the Axis SOAP client library, or any other SOAP client. The input and output XML fragments are IIRC logged to the sitemap.log, so you should be able to see everything that is going on. The XSP page that shows the server status (in scratchpad/webapp/samples/soap-server) uses the XSP SOAP tag library to make a request to the local Cocoon instance to get the server configuration. Hope that helps mate! :) Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: pipeline result through SOAP?
Hi Josema, On Thu, Nov 21, 2002 at 03:00:44PM +0100, Josema Alonso wrote: Ouch...Avalon again. When I try to do this kind of 'advanced' things with Cocoon I always find the Avalon wall. I think I should get into it the sooner the better if I want to develop powerful things. Yes, understanding Avalon is an important part of understanding Cocoon as it's the framework Cocoon is built upon. You'll need an Avalon component to access the sourceresolver. (alternatively you could extend the AbstractComposableService class which is in o.a.c.webservices under scratchpad, but if the class gets complex and you need access to other Avalon components, writing a true Avalon component is probably best). Great, but couldn't make the reader work. All I get are SOAP errors from it when making any call. What I've doe is to develop a Axis service. This one is served directly from Axis. It makes a request to the Cocoon URL and gets the XML document, then returns this document after serializing it in a DOM Element. I have it working though I know this is just a quick workaround and not the best approach. Hope I could amke the reader work soon. I'd like experimenting with it. Ok, what you've done above should be possible within Cocoon using the Reader, as it's essentially the same operation, just on the one system. I'd recommend getting the soap-server sample working in the Cocoon webapp (remember to use the -Dinclude.scratchpad.libs=yes directive) and then start modifying it to do what you need. I need to think about writing a CocoonProvider or similar for the AxisRPCReader to allow one to specify a pipeline in the deployment descriptor for creating the SOAP service content hmmm... You can always send in the error messages you're getting and we can look at them, Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: java.lang.IndexOutOfBoundsException
Hi Gernot, I've located the problem but aren't 100% sure about what the proper fix is as I think Carsten is still working on the code. I've already contacted him about the problem so I'm sure it will be fixed soon. In the meantime you can change the removeLastSitemapConfiguration() method in CocoonComponentManager to look like: void removeLastSitemapConfiguration() { if (this.sitemapConfigurations.size() 0) this.sitemapConfigurations.remove(this.sitemapConfigurations.size()-1); } and it will let you continue working. A proper fix will appear shortly. Hope that helps. Cheers, Marcus On Thu, Nov 21, 2002 at 06:52:28PM +0100, Gernot Koller wrote: Hi! Trying to use the current cvs version of cocoon with tomcat version 4.1.12 I experience the following problem After building and installing cocoon (./build.bat -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true webapp ; ./build.bat - Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true - Dinstall.war=C:/ent/jakarta-tomcat-4.1.12/webapps installwar) and starting tomcat server enterint the URl http://localhost:8080/cocoon/; correctly redirects to http://localhost:8080/cocoon/documents/index.html but then brings an error page containing: type fatal message Index: -1, Size: 0 description java.lang.IndexOutOfBoundsException: Index: -1, Size: 0 sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace java.lang.IndexOutOfBoundsException: Index: -1, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:491) at java.util.ArrayList.remove(ArrayList.java:375) at org.apache.cocoon.components.EnvironmentDescription.removeLastSitemapConfiguration(CocoonComponentManager.java:548) at org.apache.cocoon.components.CocoonComponentManager.leaveEnvironment(CocoonComponentManager.java:156) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308) at org.apache.cocoon.Cocoon.process(Cocoon.java:596) at org.apache.cocoon.servlet.CocoonServlet.service [...] Directly jumping to one of the samples (e.g. http://localhost:8080/cocoon/samples/ or http://localhost:8080/ cocoon/samples/portal-fw/sunspotdemofree- portal) seems to work. So my guess is I'm just missing the documentation html files ? Looking in the $TOMCAT/webApps/cocoon/ documentation directory actually does not contain an index.html file, is this correct ? What am I doing wrong ? Any hints, please ? thanks, Gernot. - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: R: Strings to SAX events
. 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] We are protected from the virus by Norton Antivirus Corporate Edition - 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] We are protected from the virus by Norton Antivirus Corporate Edition - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: Build Fail ?
Hi There, This should now be fixed in the lastest CVS. If there's any other problems please let me know. Cheers, Marcus On Wed, Nov 06, 2002 at 02:22:19PM +0530, sandhu@terra-firma wrote: Anyone experiencing same ? Since yesterday's CVS , building as thus : build.bat -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes webapp I get this : [javac] Compiling 110 source files to C:\xml-cocoon2\build\cocoon\scratchpad \classes [javac] C:\xml-cocoon2\build\cocoon\scratchpad\src\org\apache\cocoon\ant\Del ayedFileOutputStream.java:105: cannot resolve symbol [javac] symbol : constructor FileOutputStream (java.io.File,boolean) [javac] location: class java.io.FileOutputStream [javac] fos = new FileOutputStream(file, append); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 1 error BUILD FAILED file:C:/xml-cocoon2/build.xml:1009: Compile failed; see the compiler error outpu t for details. Total time: 4 minutes 56 seconds - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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 user-roles=failure
On Tue, Nov 05, 2002 at 10:06:30PM +0100, Kjetil Kjernsmo wrote: On Tuesday 05 November 2002 21:44, Phil Shafer wrote: Peter Royal writes: Did you try /WEB-INF/ ? Nope, that did it. Cool. I was thinking the /localhost/jtk/ was part of the problem, but appearantly this is handled internally by something (jndi?). Hm, I posted a patch for this at Bugzilla after having spent a week in intense agony over this problem, and while my bug report as far from a piece of art, it would save many people some headaches if it was applied... Patch applied. Thanks for the reminder :) Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: simpel cocoon question
Hi Kasper, You wouldn't need to write a custom transformer for this. One solution would be to use aggregation to aggregate both files together. Then using xsl you can extract the necessary data for output. Hope that helps. Cheers, Marcus On Tue, Nov 05, 2002 at 02:27:17PM +0100, Kasper Nielsen wrote: Just started using Cocoon and I have a rather simple question: Lets say i have a document with all my data (projects.xml) projects project id=A1 name RailwayTrack DF/name responsible kni /responsible economy_actual123/economy_actual economy_estimate456/economy_estimate schedule_estimate789/economy_estimate /project project id=B4 name Digital Transmission /name responsible pjc /responsible economy_actual987/economy_actual economy_estimate654/economy_estimate schedule_estimate321/economy_estimate /project /projects And i also have a definition of some views of the data (views.xml) views view name=estimate columns measure name=schedule_estimate/ measure name=economy_estimate/ /columns /view view name=overview columns measure name=name/ measure name=responsible/ /columns /view /views Now I want to given the name of the view, lets say estimate to combine it into another xml document, that is extract only the data mentioned in the view, in this case it would be the schedule_estimate column and the economy_estimate column The resulting document should look something like this table columndefs columndef column-nameschedule_estimate/column-name /columndef columndef column-nameeconomy_estimate/column-name /columndef /columndefs tabledata row entry456/entry entry789/entry /row row entry654/entry entry321/entry /row /tabledata /table Can I merge 2 documents in that way with xslt? Or do I need a custom transformer? regards Kasper Nielsen - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: SOAP server - Need Marcus help
Hi Dario, On Mon, Oct 07, 2002 at 12:59:56PM -0300, Dario Liberman wrote: Hello, I sent a message the other day asking for some architect guru to help me, titled Re: Servlet-Ouput as Cocoon-Input I have read the mailing list trying to find an answer by myself since then. Did you find your answer ? You may have to write a custom generator to do this - or use the WebServicesProxyGenerator if your servlet output is xml. I found mails talking about SOAP cocoon from Marcus. How should I get into this? What would you like to know ? :) Are there some examples working to start with? There are 2 sets of examples, one for the client and one for the server. The client examples (using the soap xsp taglib) are under ./src/webapp/samples/docs/samples/soap and the server examples (in scratchpad) are under ./src/scratchpad/webapp/samples/soap-server and ./src/scratchpad/src/org/apache/cocoon/webservices/ Does it support soap-ATTACHMENTS? and soap-RPC ? RPC via SOAP is no problem as the SOAP server is essentially Apache AXIS, wrapped as a reader. AFAIK AXIS supports attachments to some degree. Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: PERFUME PROPOSAL: SOAP FOR COCOON
? Is this the type of soap implementation you would like to see? b) Are any of the existing cocoon soap related software suitably reusable and appropriate here. c) Is apache soap/axis suitable for use here? My preliminary examination of these packages are they overlap too much with existing cocoon to be easily integrated. d) It seems like the generator and serializer need potentially an out-of-pipeline connection with each other. Or that some method of the generator conveying forward a soap related error to the serializer is needed. e) Should WSDL be incorporate into this proposal? Please someone correct me if I'm wrong, but don't WSDL and XmlSchema do almost the same thing? It seems like most of WSDL was a early solution before XmlSchema became ready. I think ebXml also makes no reference to WSDL. f) Should the soap-client transformer be able to execute multiple soap request to different services and not just one action? Probably so. SHORT-CIRCUIT: NED INPUT! Steven P. Punte Candlelight Software [EMAIL PROTECTED] http://www.candlelightsoftware.com __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: how to prevent logging passwords in request and sessionparams?
Hi Timothy, On Fri, Sep 20, 2002 at 11:43:48AM -0400, Timothy Larson wrote: It would be helpfull if the request parameters and session attributes were logged, but with certain ones not showing their values. For example: SESSION ATTRIBUTES: PARAM: 'username' VALUE: 'tdlarson' PARAM: 'password' VALUE: '*' Ideally, I would want to be able to specify which sensitive parameters and attributes to hide the values of, possibly using wildcards. Any ideas how to do this? To do this you probably need to write your own logkit filter to check the LogEvent for these strings and modify them if needed: http://jakarta.apache.org/avalon/logkit/api/org/apache/log/filter/package-summary.html Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: How can I log in non-Cocoon Java classes?
Hi Alan, On Wed, Sep 11, 2002 at 04:21:21PM +, Alan Hodgkinson wrote: Can someone give me a hint on how to implement Cocoon logging in Java classes that don't extend from the 'Abstract{Cocoon} classes (I.e. AbstractAction, AbstractReader, etc.)? For example, how would I implement logging in a really simple Java Bean, that otherwise wouldn't have to know anything about cocoon? Is this class to be used from within Cocoon, or is it a completely separate application ? If it's within Cocoon, read on, if not, then have a look at the logkit examples on jakarta.apache.org. I had hoped that I could 'extend AbstractLogEnabled' and 'implement LogEnabled' in my class. I've searched for clues in all the examples, but they always extend some Cocoon-specific class (that magically make the logging work). My code is roughly the following: import org.apache.avalon.framework.logger.AbstractLogEnabled; import org.apache.avalon.framework.logger.LogEnabled; import org.apache.avalon.framework.logger.Logger; public class MyClass extends AbstractLogEnabled implements LogEnabled { private Logger logger; public void enableLogging(Logger logger) { this.logger = logger; } you don't need this method and variable if you extend from AbstractLogEnabled, as they are already provided for you in the AbstractLogEnabled class. public void myMethod() { getLogger().debug( msg.. ); // -- getLogger() returns null! } } The problem is that getLogger() always returns null. I suspect that I need to implement some other interface too. Yes, getLogger() returns null if logging hasn't been enabled on that object. :) LogEnabled is actually an Avalon Component lifecycle stage and the method enableLogging() is automatically invoked on components that implement this interface by the Avalon component manager (thats the magic part you're referring to). That may sound confusing if you've never heard of Avalon before :) so if you're not writing a Component, and simply want to do some logging in your object from within your Cocoon application, call the enableLogging() method on your object (defined in AbstractLogEnabled) and pass into it a Logger object retrieved from Cocoon somewhere (ie. sitemap component, logkit manager, etc). Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: bug ? latest build and xml serializer in views /
Found it. build.xml doesn't copy across *-block.jar files for webapp-local (which invokes copy-webapp-libs rather than prepare-webapp-libs). I'll submit a patch via bugzilla. Cheers, Marcus On Tue, Sep 03, 2002 at 05:53:40PM +0200, Marcus Crafter wrote: Hi Carsten, Did you try the webapp-local build from latest CVS ? From what I can see, it doesn't copy the fop-block.jar file across from build into the WEB-INF/lib directory causing a stacktrace when using the webapp. When copying it across manually I can get the webapp up and running. Was this what you tested ? Cheers, Marcus On Tue, Sep 03, 2002 at 05:35:15PM +0200, Carsten Ziegeler wrote: Are you sure you're using the latest code? I think this bug was fixed three or four weeks ago. The latest cvs works for me without any problems. Do you have an older avalon framework or excalibur in your classpath? HTH Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 5:04 PM To: [EMAIL PROTECTED] Subject: bug ? latest build and xml serializer in views / org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/e:/tomcat404/webapps/cocoon/samples/sitemap.xmap:92:31 map:views map:view from-label=content name=content -- map:serialize type=xml/ /map:view What's wrong ? today's cvs, jdk 1.3.1. XML serializer is defined and exists in cocoon.jar. (and works outsode of views). - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: SOAP xsp taglib with Axis ?
Hi Steven, Some success! On Fri, Aug 30, 2002 at 11:55:26AM -0400, Steven Cummings wrote: I haven't really found the answer, but after some comparison between 2.0.3 and 2.1-HEAD I have found that: * The only change has been in soap.xsl, not SOAPHelper (but I can't determine what in the stylesheet would cause a request to hang). * The SOAP XSP tag library uses neither the Apache SOAP nor Axis libraries for it's calls, it uses the Jakarta-Commons httpclient component and sends SOAP requests that it constructs itself. Yes, after some digging around I noticed that the commons httpclient library was changed in 2.1. When I used the httpclient jar from 2.0.3, everything worked fine. Also, using the latest httpclient from commons CVS works too, so it seems to be a problem only with the version of httpclient in Cocoon HEAD CVS. I'll file a bug in Bugzilla asking to have the library updated. Thanks for your help mate. Much appreciated! :) Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: SOAP xsp taglib with Axis ?
Hi Steven, Thanks for your response mate, much appreciated. I'm using Cocoon CVS head, jdk 1.3.1 under Debian with Axis from CVS a few days ago. Unfortunately I still get no response from the Axis server when making a request using the soap xsp tag lib. The request just hangs and after a while times out. My soap message is identical to yours (the second one) but with a different service. The same request using the Axis client utils works fine. Hmm... strange. I'll try 2.0.3 and see if it works there. Cheers, Marcus On Thu, Aug 29, 2002 at 02:14:43PM -0400, Steven Cummings wrote: Marcus, I have gotten it to work. I'm using Cocoon 2.0.3, Axis b3, and Tomcat 4.0.4 on Sun JDK 1.4.0_01 on Redhat 7.2. After some investigation into the sources for the soap logicsheet I discovered that you can provided just the method call and it will be encapsulated in a correct SOAP envelope. If you want to include headers, you have to construct a pseudo envelope with elements soap:header and soap:body. Note that these elements are lower case, whereas in the SOAP spec they are Header and Body. This is just how the SOAP logicsheet happens to be written though. Heres an example of a soap call I'm running from cocoon: soap:call url=http://myhost:8080/lims/services/urn:XMLDataService; soap:header usernamexsp:exprusername/xsp:expr/username passwordxsp:exprpassword/xsp:expr/password /soap:header soap:body ns1:authenticate xmlns:ns1=urn:XMLDataService soap:enc/ /ns1:authenticate /soap:body /soap:call Without headers it could simply be: soap:call url=http://myhost:8080/lims/services/urn:XMLDataService; ns1:authenticate xmlns:ns1=urn:XMLDataService soap:enc/ !-- perhaps username/password are now arguments here... -- /ns1:authenticate /soap:call I hope this helps. /S Marcus Crafter [EMAIL PROTECTED] wrote: Hi All, Hope all is well. Was just wondering if anyone has had success using the soap taglib that comes with Cocoon CVS, with Axis CVS ? For some reason I can't seem to get any response from my AxisServlet when using this taglib. Some debugging seems to show that Axis can't quite understand the message the taglib sends it. There are some differenecs in the headers between what the soap taglib generates, and what Axis' client utilities generate (axis client utils set the content length and the 'Host' header includes the port number if its not 80), but the soap-envelopes are the same. Just thought I make a quick sanity check to see if it's just my environment ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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] -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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
Re: SOAP xsp taglib with Axis ?
FYI, with 2.0.3 everything works fine. The plot thickens :) I'll dig a bit deeper with 2.1. Cheers, Marcus On Fri, Aug 30, 2002 at 03:31:23PM +0200, Marcus Crafter wrote: Hi Steven, Thanks for your response mate, much appreciated. I'm using Cocoon CVS head, jdk 1.3.1 under Debian with Axis from CVS a few days ago. Unfortunately I still get no response from the Axis server when making a request using the soap xsp tag lib. The request just hangs and after a while times out. My soap message is identical to yours (the second one) but with a different service. The same request using the Axis client utils works fine. Hmm... strange. I'll try 2.0.3 and see if it works there. Cheers, Marcus On Thu, Aug 29, 2002 at 02:14:43PM -0400, Steven Cummings wrote: Marcus, I have gotten it to work. I'm using Cocoon 2.0.3, Axis b3, and Tomcat 4.0.4 on Sun JDK 1.4.0_01 on Redhat 7.2. After some investigation into the sources for the soap logicsheet I discovered that you can provided just the method call and it will be encapsulated in a correct SOAP envelope. If you want to include headers, you have to construct a pseudo envelope with elements soap:header and soap:body. Note that these elements are lower case, whereas in the SOAP spec they are Header and Body. This is just how the SOAP logicsheet happens to be written though. Heres an example of a soap call I'm running from cocoon: soap:call url=http://myhost:8080/lims/services/urn:XMLDataService; soap:header usernamexsp:exprusername/xsp:expr/username passwordxsp:exprpassword/xsp:expr/password /soap:header soap:body ns1:authenticate xmlns:ns1=urn:XMLDataService soap:enc/ /ns1:authenticate /soap:body /soap:call Without headers it could simply be: soap:call url=http://myhost:8080/lims/services/urn:XMLDataService; ns1:authenticate xmlns:ns1=urn:XMLDataService soap:enc/ !-- perhaps username/password are now arguments here... -- /ns1:authenticate /soap:call I hope this helps. /S Marcus Crafter [EMAIL PROTECTED] wrote: Hi All, Hope all is well. Was just wondering if anyone has had success using the soap taglib that comes with Cocoon CVS, with Axis CVS ? For some reason I can't seem to get any response from my AxisServlet when using this taglib. Some debugging seems to show that Axis can't quite understand the message the taglib sends it. There are some differenecs in the headers between what the soap taglib generates, and what Axis' client utilities generate (axis client utils set the content length and the 'Host' header includes the port number if its not 80), but the soap-envelopes are the same. Just thought I make a quick sanity check to see if it's just my environment ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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] -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany
SOAP xsp taglib with Axis ?
Hi All, Hope all is well. Was just wondering if anyone has had success using the soap taglib that comes with Cocoon CVS, with Axis CVS ? For some reason I can't seem to get any response from my AxisServlet when using this taglib. Some debugging seems to show that Axis can't quite understand the message the taglib sends it. There are some differenecs in the headers between what the soap taglib generates, and what Axis' client utilities generate (axis client utils set the content length and the 'Host' header includes the port number if its not 80), but the soap-envelopes are the same. Just thought I make a quick sanity check to see if it's just my environment ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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]
[Summary] Re: Serving soap with Cocoon ?
Hi All, Summary of this thread is available: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=102942182827006w=2 Comments, questions, etc, much appreciated. Cheers, Marcus On Thu, Aug 08, 2002 at 12:25:32PM -0400, Geoff Howard wrote: Can you post back your progress with this? I'm sure there are a few of us who would like to know if it really turns out to be that easy. Geoff Howard -Original Message- From: Marcus Crafter [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: Serving soap with Cocoon ? On Thu, Aug 08, 2002 at 12:06:31PM -0400, Vadim Gritsenko wrote: From: Marcus Crafter [mailto:[EMAIL PROTECTED]] Hi All, Hope all is well. I've just been looking through the soap examples in HEAD, which look really great for requesting data from a soap server somewhere. Has anyone done the opposite ? ie. have Cocoon act as the soap server ? eg. to make a soap request from a Cocoon app, and have it deliver the result. soap request -- | Cocoon Application | soap response --- -- (or have I missed something here ?) AFAIU, SOAP request is just HTTP post with text/xml body. You can use (IIRC) stream generator to read it. SOAP response is just HTTP response with XML payload - that's the thing Cocoon is best at. Thats exactly what I thought. Do I miss something? I don't think so, but I haven't really played with soap much up till now, hence my q. So we could have something like: map:match pattern=soap-server map:generate type=stream/ map:transform type=soap-transformer/ map:serialize type=xml/ /map:match Would be perfect (for what I need) actually... Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - 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: cannot install Cocoon 2 in Redhat linux
Hi Jennifer, On Wed, Dec 19, 2001 at 09:54:48PM +0800, Jennifer Ho wrote: dear sir, I have downloaded cocoon 2 and try to install in Redhat linux 7 but unsuccessful. It causes by segmentation fault when compiling using ant when i run the script build.sh. What should i do to solve the problem and install the tool successfully ? Sounds like you have Sun's 1.3.1 jdk installed. If you can upgrade to 1.3.1_01 everything should be fine (that's what we use here, without any segfaults). If you can't upgrade java, then have a look this patch: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=99409556211391w=2 Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: Stuck with Cocoon 2.0 installation
Hi Andreas, On Thu, Dec 20, 2001 at 03:02:21PM +0100, Andreas Rittershofer wrote: HTML works, WML works, Simple XSP works, Simple Internationalization works, XSP Internationalization works, and so on. BUT SVG or C2 Docs (probably some SVG built in the latter one) and tomcat dies without any log entry. The browser shows the typically Das Dokument enthielt keine Daten (should be The document contained no data or so) and that's it. Can you run Tomcat in the foreground, and let us know what is printed out when it crashes ? ie. do a: $ catalina.sh run instead of a startup.sh or 'catalina start'. You should see something like: Using CLASSPATH: bin/../bin/bootstrap.jar:/usr/local/jdk/lib/tools.jar Using CATALINA_BASE: bin/.. Using CATALINA_HOME: bin/.. Using JAVA_HOME: /usr/local/jdk Starting service Tomcat-Standalone Apache Tomcat/4.0.1 What's printed after this when it crashes ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: Where is the FAQ?
Hi Avi, On Tue, Dec 18, 2001 at 08:19:56PM +0200, Avi Kivity wrote: Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html How can I? I get a 404 on this URL. wget http://xml.apache.org/cocoon/faqs.html --20:17:51-- http://xml.apache.org/cocoon/faqs.html = `faqs.html' Connecting to xml.apache.org:80... connected! HTTP request sent, awaiting response... 404 Not Found 20:17:52 ERROR 404: Not Found. Quite strange. I just tried it from here and it worked fine. BTW - the faq is also included with the cocoon source under xml-cocoon2/documentation/xdocs/faq.xml Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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 failure to compile sitemap
Hi Todd, On Sat, Dec 15, 2001 at 10:50:56AM -0700, Todd Wright wrote: ProcessingException The sitemap handler's sitemap is not available. I have STW found very little help. The log exception says the sitemap compilation fails. The logs must have more information that ? Is there a stacktrace ? or something else listed in the logs which mention a problem ? Without the tomcat/cocoon logs, it's a little hard to debug what happened - can you send the relevant parts in ? Any Ideas? BTW works fine on tomcat4.0.1 on win2000 Could be the famous X11 problem. Does your SuSE system have X installed on it with a DISPLAY variable set ? Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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] The sitemap handler's sitemap is not available
Hi Christian, This appears to be a bug in the Debian packages. The Debian Cocoon package does not bundle with Xalan2, and relys on it to be installed via dependancies. This dependancy is broken as the Cocoon package says it requires Xalan, ie version 1, not version 2. You could install the libxalan2-java package and copy the xalan2.jar file from /usr/share/java into the /var/lib/tomcat/webapps/cocoon2/WEB-INF/lib directory. Hopefully that will let you get a bit further. I'll file a bug against the Debian Cocoon package so it gets fixed. Cheers, Marcus On Wed, Dec 12, 2001 at 08:54:32AM +0100, Christian Joelly wrote: Hello! i want to run C2 on Debian unstable w/ tomcat 3.3-2 and j2sdk1.3 but run into troubles w/ the sitemap. i have carefully read all related threads on the mailarchive, installed the Xvfb in the cocoonhost because many ppl have reported that this should be a solution to this problem. Unfortunately i havent found a solution for my problem ... I have installed j2sdk, tomcat, apache, c2 and c2-example using debians apt and have made no extra stuff. i have attached the logfile data from the cocoon-log, if anyone can point me to the right direction i would be very happy :o) Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz DEBUG 73680 [cocoon ] (Thread-4): Beginning sitemap regeneration DEBUG 73680 [cocoon ] (Thread-4): Making URL from file:/var/lib/tomcat/webapps/cocoon2/sitemap.xmap DEBUG 73684 [cocoon ] (Thread-24): The instance was not accessible, creating it now. DEBUG 73684 [cocoon ] (Thread-24): ComponentFactory creating new instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. ERROR 73685 [cocoon ] (Thread-24): Error compiling sitemap java.lang.NoClassDefFoundError: javax/xml/transform/TransformerConfigurationException at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:169) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:117) at org.apache.avalon.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:107) at org.apache.avalon.component.DefaultComponentHandler.get(DefaultComponentHandler.java:191) at org.apache.avalon.component.DefaultComponentSelector.select(DefaultComponentSelector.java:176) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:166) at org.apache.cocoon.sitemap.Handler.run(Handler.java:190) at java.lang.Thread.run(Thread.java:484) DEBUG 73686 [cocoon ] (Thread-4): Changing Cocoon context(sitemap.xmap) to prefix() DEBUG 73686 [cocoon ] (Thread-4):from context(file:/var/lib/tomcat/webapps/cocoon2/) and prefix() DEBUG 73686 [cocoon ] (Thread-4):at URI DEBUG 73686 [cocoon ] (Thread-4): New context is file:/var/lib/tomcat/webapps/cocoon2/ ERROR 73686 [cocoon ] (Thread-4): Problem with servlet org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:187) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:98) at org.apache.cocoon.Cocoon.process(Cocoon.java:258) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:426) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) INFO73687 [cocoon ] (Thread-4): '' Processed by Apache Cocoon 2.0a5 in 70 milliseconds. -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200
Re: I18n
Hi Gustav, I've just sent in a patch to cocoon-dev. Let me know how it goes in your environment. Cheers, Marcus On Thu, Dec 06, 2001 at 03:29:58PM +0100, Marcus Crafter wrote: Hi Gustav, On Tue, Dec 04, 2001 at 09:10:20AM +0100, Gustav Lidén wrote: Other than that, we'd probably need to look at some code changes, I'm open to suggestions ? :-) Ok, I'll try a quick suggestion: How about the ability to override the catalog's name and location at transformation time? Something that would look more like the old sitemap entry: map:transform type=i18n map:parameter name=catalogue-name value={../1}_sectionmenu_dict.xml/ map:parameter name=catalogue-location value=other_translations//map:transform The catalogue-location parameter is there only for the sake of consequence, catalogue-name is the parameter that would be useful to change in the pipeline. Yes, I agree, being able to override the configuration values in a pipeline would be useful. Sounds good. I'll take a look at it. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: I18n
Hi Gustav, On Tue, Dec 04, 2001 at 09:10:20AM +0100, Gustav Lidén wrote: Other than that, we'd probably need to look at some code changes, I'm open to suggestions ? :-) Ok, I'll try a quick suggestion: How about the ability to override the catalog's name and location at transformation time? Something that would look more like the old sitemap entry: map:transform type=i18n map:parameter name=catalogue-name value={../1}_sectionmenu_dict.xml/ map:parameter name=catalogue-location value=other_translations//map:transform The catalogue-location parameter is there only for the sake of consequence, catalogue-name is the parameter that would be useful to change in the pipeline. Yes, I agree, being able to override the configuration values in a pipeline would be useful. Sounds good. I'll take a look at it. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: I18n
Hi Gustav, On Mon, Dec 03, 2001 at 11:28:59AM +0100, Gustav Lidén wrote: From what I understand, the new I18nTransformer (which used to be I18nTransformer2) uses a grouping (in files) of language strings by language instead of by content. Yes, Konstantin and I changed the grouping from content to language. The intention was to enhance maintennance - for example, at Dresdner Bank we have a department dedicated to translating message cataloges. They can now send us individual message files ordered by language one at a time, rather than needing to edit one large file that contains all languages. It was also done to take advantage of the new XMLResourceBundle class in the Avalon project, which supports loading of message cataloges from a language/country/variant hierarchy. The earliler organization of language strings suits me better, should I stay with an old version of Cocoon, or is it OK to use an old version of I18nTransformer with the final Cocoon2.0 release? AFAIK the old one should still work, but is out dated. One other option would be to use an XSL stylesheet to transform your single message cataloge into the new format at build time. Have a look at the convert.xsl stylesheet I wrote in xml-cocoon2/webapp/i18n/translation. Other than that, we'd probably need to look at some code changes, I'm open to suggestions ? :-) Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: Connection refused after installing Cocoon
Hi Tilman, On Mon, Dec 03, 2001 at 06:22:24PM +0100, Tilman Rassy wrote: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused ...snip... hmm. looks like your Tomcat crashed just after startup for some reason. The Cocoon version is 2.0, my servlet container is Tomcat 4.0.1, my java is sun's SDK 1.3.1, and I work on a Linux machine (kernel 2.4.4-4GB). Obviously, the cocoon.war file was extracted (I found a cocoon subdirectory in webapps, and a lot of Cocoon-related messages in the Tomcat log files). Without Cocoon, Tomcat works well. I think those messages in the tomcat logs are probably useful for diagnosing what's going on. Without them it's a bit difficult. Can you send them in ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: Can't connect to X11 window server exception...
Hi Aaron, This one's in the FAQ. Essentially Batik requires an X-Server to run, and it's trying to initialize itself using milhouse:0.0 as the server which it can't connect to due to some reason (eg. no permissions, no X-server actually there). To fix this either use a valid DISPLAY variable or if this is not possible have a look at Xvfb. There's more info under http://xml.apache.org/cocoon/faq.html#faq-24 and in the mailing list archives. Hope that helps. Cheers, Marcus On Mon, Dec 03, 2001 at 12:54:12PM -0600, SANSONE, AARON M [Non-Pharmacia/1000] wrote: All, I am trying to deploy cocoon to a Sun Ultra-4 Sparc runining SunOS 5.8. When trying to hit the opening page the compliation of the sitemap occurs and generates the following stacktrace: java.lang.InternalError: Can't connect to X11 window server using 'milhouse:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:59) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment .java:58) at sun.awt.motif.MToolkit.clinit(MToolkit.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:500) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:491) at java.awt.SystemColor.updateSystemColors(SystemColor.java:342) at java.awt.SystemColor.clinit(SystemColor.java:335) at org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSy stemColorResolver.java:27) at org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75) at org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMa p.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:3 9) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:3 2) at org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.ja va:79) at org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation. java:59) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory. java:59) at org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44) at org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:53) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Un known Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unknown Source) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Un known Source) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen t(Unknown Source) at org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(Sitem apComponentSelector.java:91) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav a:232) at org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_xmap .java:777) at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:192) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(Un known Source) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( Unknown Source) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat or(GeneratorSelector.java:135) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp iledComponent(ProgramGeneratorImpl.java:345) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:179) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:484) Anyone know how to solve this? Thanks, Aaron - 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] -- . ,,$, Marcus Crafter
Re: Connection refused after installing Cocoon
Hi Carlos, Tilman, Can you guys do a: $ bin/catalina.sh run -config conf/server.xml in your Tomcat 4.0.1 directory (or equivalent, ie. run Tomcat in the foreground) and send in the output that's printed to the screen (hopefully it will display an error message of some sort) ? I'm getting: .1]:98bin/catalina.sh run -config conf/server.xml Using CLASSPATH: /home/crafterm/workarea/jakarta-tomcat-4.0.1/bin/bootstrap.jar:/usr/local/jdk/lib/tools.jar Using CATALINA_BASE: /home/crafterm/workarea/jakarta-tomcat-4.0.1 Using CATALINA_HOME: /home/crafterm/workarea/jakarta-tomcat-4.0.1 Using JAVA_HOME: /usr/local/jdk Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Loading catalog: /localhost/cocoon/resources/entities/catalog Server 1.6 is running Press [Ctrl]+[C] to abort With the Cocoon webapp working fine under my Linux system (Debian, Kernel 2.4.6, SUN JDK 1.3.1_01). Thanks, Marcus On Mon, Dec 03, 2001 at 09:59:11AM -0800, Carlos wrote: Marcus: I'm having the same problem but the logs are clean. It doesn't seem like it's logging anything. Catalina.out, catalina.log and root.log don't have any information relevant to the crash other than the connection refused message. If you still think it's useful, I'll post the logs Carlos -- Carlos E. Araya ---+ WebCT Administrator/Trainer G | California Virtual Campus - | C/O De Anza College P | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 Paradoxically, a refusal to 'put a monetary value on life' means that life is often undervalued. -- Artificial Intelligence: A Modern Approach From: Marcus Crafter [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 3 Dec 2001 18:22:09 +0100 To: [EMAIL PROTECTED] Subject: Re: Connection refused after installing Cocoon Hi Tilman, On Mon, Dec 03, 2001 at 06:22:24PM +0100, Tilman Rassy wrote: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused ...snip... hmm. looks like your Tomcat crashed just after startup for some reason. The Cocoon version is 2.0, my servlet container is Tomcat 4.0.1, my java is sun's SDK 1.3.1, and I work on a Linux machine (kernel 2.4.4-4GB). Obviously, the cocoon.war file was extracted (I found a cocoon subdirectory in webapps, and a lot of Cocoon-related messages in the Tomcat log files). Without Cocoon, Tomcat works well. I think those messages in the tomcat logs are probably useful for diagnosing what's going on. Without them it's a bit difficult. Can you send them in ? Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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] -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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]
Using Avalon in Cocoon apps
Hi All, Hope all is is well around the Cocoon globe! I have a question regarding the use of the Avalon component management system within Cocoon2 applications for custom components, namely, how do people best recommend to do it ? Lets say that I develop some Components which are related to the business logic of my application - how would people recommend managing these components and using them from within Cocoon constructs. My thoughts were to create a second Component manager, separate from the Cocoon one, and to populate it with my componets, but then how do I access these components from within Cocoon actions for example ? If I implement Composable, I get a reference to Cocoon's component manager and not to the second one managing the third party components ? If I used the Cocoon ComponentManager, then I have to modify Cocoon's config and role files, increasing the effort required to update Cocoon from time to time. What do others recommend ? Create a Singleton ? or some other approach ? Any ideas would be greatly appreciated. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : Managesoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' Email : [EMAIL PROTECTED] .Business Hours : +49 69 9757 200 : - 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: Locale-Action
Hi Mario, On Tue, 11 Sep 2001, Mario Brust wrote: I'm using cocoon2b2 and want to use the Locale-Action. But I did not found any way to extract the language out of the uri. I want to have a uri like http://bla.bla/cocoon/bla/sitemaproot/de_DE/site.html. If I extract the locale I don't know what to do with. map:match pattern=*_*/** map:act type=locale !-- This way don't work -- map:parameter name=language value={1}/ map:parameter name=country value={2}/ !-- But how to set the locale here without using the CGI-Parameter ?locale={1}_{2} -- map:redirect-to uri={3} uri-prefix={1}_{2}// /map:act /map:match I'm not 100% sure what you're trying to do there, but is this what you're trying to achieve ? : map:match pattern=site.html map:act type=locale map:generate type=file src=sitemaproot/{language}_{country}/site.xml/ map:serialize type=html/ /map:act /map:match The only issue this the generate line above is that the 'country' field might not be set (eg. if the user has only 'de' specified as their preferred langauge, and not de_DE). An alternative would be to use {locale} instead, but make sure you have some technique for handling locales you do not yet support. For more complete internationalization have a look at the I18nTransformer. It's been recently added to the cocoon2.0 branch, and is also in trunk. 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 : - 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: Tried just about everything
Hi Matt, Have a look at xml-cocoon2/xdocs/faq.xml, line 600. Hope that helps. Cheers, Marcus On Thu, 30 Aug 2001, Matt Jezorek wrote: I dont see the Xvfb stuff in the FAQ on how to fix it i did download a Xvfb rpm and had to get all of XFree86 stuff though but still Someone put in the mailling list the other day something to add to the startup script for Xvfb anyone remember it i cant find it in my mail now. -Matt - Original Message - From: Marcus Crafter [EMAIL PROTECTED] To: Matt Jezorek [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 10:32 AM Subject: Re: Tried just about everything Hi Matt, I've just looked in your cocoon.log file. The exception thrown just after startup are expected if you don't have a database connection and can be safely ignored. The exception at the bottom of the file (http://dev.bluelinux.org/cocoon.log) is also a known issue. The svg renderer needs an X11 server to work, that's why you're seeing this error message. The fix is documented in the FAQ, basically you need to set the DISPLAY variable to some X server location, or if that's not possible install xvfb which is an off screen x server what runs in memory (good for systems that do not have display hardware). Check the faq for details. Apart from that it looks ok. After fixing the above problem, I would be expecting it to work. Let me know how it goes. Cheers, Marcus On Thu, 30 Aug 2001, Matt Jezorek wrote: I have uploaded my log files to http://dev.bluelinux.org there are to many to send to list i guess i dont like list attachments. -Matt - Original Message - From: Marcus Crafter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 9:14 AM Subject: Re: Tried just about everything Hi Matt, I've just checked my installation. Cocoon 2.0 works out of the box with Tomcat 4.0b7, without need to modify the web.xml. The documentation needs to be clarified here. If you are still having problems, then please send in your cocoon.log and tomcat servlet log files so we can take a look at them to help diagnosis. Cheers, Marcus On Wed, 29 Aug 2001, Marcus Crafter wrote: Hi Matt, Thanks for the pointer, with Tomcat 4.0b7 this was not needed for me, Cocoon worked out of the box. I'll test this a bit further and clarify the Cocoon documentation. Cheers, Marcus On Wed, 29 Aug 2001, Matt Jezorek wrote: Yes but it says in the cocoon instructions to add it to the cocoon/webapps/WEB-INF/web.xml Quote: Tomcat 4.0 does not expose the servlet.jar file to Apache Cocoon by default, so before you build the Apache Cocoon webapp you will need to add the following to the Apache Cocoon servlet definition in the web.xml file so I did that I did exactly what it states on the install at http://xml.apache.org/cocoon2/install.html - Original Message - From: Marcus Crafter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 12:22 PM Subject: Re: Tried just about everything Hi Matt, On Wed, 29 Aug 2001, Matt Jezorek wrote: edited the web.xml in the webapps/WEB-INF from the cvs checkout to include the path to the servlet.jar This shouldn't be necessary as tomcat comes with it's own servlet.jar, which is available to all webapps, putting your own one there can only cause problems. 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 : - 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: Tried just about everything
Hi Matt, On Wed, 29 Aug 2001, Matt Jezorek wrote: edited the web.xml in the webapps/WEB-INF from the cvs checkout to include the path to the servlet.jar This shouldn't be necessary as tomcat comes with it's own servlet.jar, which is available to all webapps, putting your own one there can only cause problems. 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 : - 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: Tried just about everything
Hi Matt, Thanks for the pointer, with Tomcat 4.0b7 this was not needed for me, Cocoon worked out of the box. I'll test this a bit further and clarify the Cocoon documentation. Cheers, Marcus On Wed, 29 Aug 2001, Matt Jezorek wrote: Yes but it says in the cocoon instructions to add it to the cocoon/webapps/WEB-INF/web.xml Quote: Tomcat 4.0 does not expose the servlet.jar file to Apache Cocoon by default, so before you build the Apache Cocoon webapp you will need to add the following to the Apache Cocoon servlet definition in the web.xml file so I did that I did exactly what it states on the install at http://xml.apache.org/cocoon2/install.html - Original Message - From: Marcus Crafter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 12:22 PM Subject: Re: Tried just about everything Hi Matt, On Wed, 29 Aug 2001, Matt Jezorek wrote: edited the web.xml in the webapps/WEB-INF from the cvs checkout to include the path to the servlet.jar This shouldn't be necessary as tomcat comes with it's own servlet.jar, which is available to all webapps, putting your own one there can only cause problems. 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 : - 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] -- . ,,$, 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 : - 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: RV: newcomer: desperately impossible getting Cocoon Started
On Fri, 24 Aug 2001, Enric Staromiejski wrote: We attatch cocoon.log where is the log ? :-) embedded exception stacktrace) because aparently is trying to use jaxp to parse instead of Xerces. The problem now is that if we move jaxp.jar and rename parser.jar as zz_parser.jar (or even remove both)from/in the Tomcat/lib directory, then Tomcat is unable to start (Violacion de segmento, that means Segmentation Fault). So what? which version of the jdk are you using ? this sounds like the token jdk1.3.1 error. Next we've retrieved jaxp.jar and parser.jar (and kept xerces in tomcat/lib), modified cocoon.xconf and uncomented the line parser class=org.apache.cocoon.components.parser.XercesParser/ Here's what I have on my system: Standard tomcat 3.2.3 install with xerces jar in the lib directory, and no parser.jar or jaxp.jar. fztig938[/home/crafterm/workarea]:6ls -l jakarta-tomcat-3.2.3/lib total 2732 -rw-r--r--1 crafterm crafterm 295934 Aug 17 17:58 ant.jar -rw-r--r--1 crafterm crafterm 214074 Aug 17 17:58 jasper.jar -rw-r--r--1 crafterm crafterm40813 Aug 17 17:58 servlet.jar drwxr-sr-x3 crafterm crafterm 4096 Aug 17 17:58 test/ -rw-r--r--1 crafterm crafterm 428372 Aug 17 18:09 webserver.jar -rw-r--r--1 crafterm crafterm 1787796 Aug 17 18:00 xerces_1_4_1.jar cvs cocoon2 checked out, without changes context in conf/server.xml: Context path=/cocoon docBase=/home/crafterm/workarea/xml-cocoon2/build/cocoon/webapp crossContext=true debug=0 reloadable=true trusted=false /Context And that is it. I simply start it with 'bin/startup.sh -f conf/server.xml', and it works fine. If you're using jdk1.3.1 under linux, then add '-classic' to your TOMCAT_OPTS environment variable. This is a known problem with that jdk. Hope that helps, keep trying :-) 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 : - 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: RV: newcomer: desperately impossible getting Cocoon Started
On Fri, 24 Aug 2001, K wrote: Marcus, thank you, you've saved me from certain later-stages of insanity : *smile*.. then I'm glad it helped! :-) But do you know where I can find more information about this bug in jdk1.3.1? I found out about the problem a while back when the problem first surfaced with jakarta-ant. Have a look at the thread: http://marc.theaimsgroup.com/?l=ant-devm=99237384532273w=2 How exactly do I set TOMCAT_OPTS to add '-classic'? Just set an environment variable at the command line: $ export TOMCAT_OPTS=-classic or add the above line to your tomcat startup scripts. I have Tomcat 4 b7 and Tomcat 3.22 (rather than 3.23 as you have)--should this make a difference? Or is it strictly a jdk error? I think the problem is independant from tomcat versions, for a whie it was also present when trying to build cocoon. 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 : - 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: Frustrated by Tomcat4 Cocoon2
Hi Mark, The problem you are experiencing is a known problem with jdk1.3.1. It does not occur with jdk1.3.0. Nevertheless, there is a fix. Which is to add the string '-classic' to your $CATALINA_OPTS environment variable. This should fix the issue. Hope that helps mate. Cheers, Marcus On Thu, 23 Aug 2001, Lamb, Mark wrote: Hi All, I am getting really frustrated trying to get Cocoon2 to run under Tomcat4. I have a Linux Mandrake 8.0 machine with Java 1.3.1 installed. Tomcat 4.0-b7 has been downloaded, installed and I have confirmed that it works correctly. Jakarta Ant 1.4.1 Beta 1 has been installed and is working. Cocoon2-b2 was downloaded. I modified cocoon2/webapp/WEB-INF/web.xml so that the following lines appear init-param param-nameextra-classpath/param-name param-value/usr/jakarta/jakarta-tomcat-4.0-b7/common/lib/servlet.jar/para m-value /init-param I then built the cocoon app with the command ant -Dinclude.webapp.libs=yes webapp Finally I copy cocoon.war into $TOMCAT_HOME/webapp and start tomcat with the command 'catalina.sh run'. After a few moments, tomcat crashed with the following error: ./catalina.sh: line:170 16997 Segmentation fault (core dumped) $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP -Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap $@ start I have had a look at catalina.sh and line 170 is the very last line in the script, so that doesnt help much. Has anyone seen this before or can anyone help me ... Thanks, Mark. - 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] -- . ,,$, 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 : - 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: Must be logged on the Solaris Server to run C2 ?
On Wed, 25 Jul 2001, Christophe de Kerviler wrote: Hi, I am running C2 with Tomcat 3.2 on Solaris 2.7. Cocoon doesn't work if I am not logged on the server running Tomcat. If I am logged and have a DISPLAY variable set to localhost:0.0, it works. The production server is hosted by an ISP, so it's not possible to be logged on. I can only telnet this server to start/stop Tomcat. Is there a specific solution on solaris to avoid this problem? Thanks for any help. This is now in the cocoon faq. Have a look at the following link for more information: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=99443960404429w=2 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 : - 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] What parameters are available to the sitemap?
On Thu, 19 Jul 2001, Ugo Cei wrote: Are there any other parameters available, e.g.: - original URI - query string - query string parameters These 3 are available via the RequestParamAction at the moment. - server name - remote user? I'm going to be updating the RequestParamAction soon, and can add these values if you like ? 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 : - 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
Hi Ulrich, I've found that over time, my sitemap testing has moved from focusing on technical nitty gritty to focusing on concepts. Its a subtle difference, but it makes conditional checking for your examples below a little easier. On Wed, 11 Jul 2001, Ulrich Mayring wrote: But how to do that conditionally then? Here's some code from one of my Cocoon1 apps: String param = request.getParameter(param); if (param == null||param.equals()) response.sendRedirect(error.xml?apperror=1526); You could do this in the sitemap testing the value of param for null or , and then using map:redirect-to. map:select type=param-test map:when test= map:redirect-to uri=error.xml?apperror=1526/ /map:when !-- and so on -- /map:select All you need there is a selector which will bring the request parameter 'param' into scope for testing. Not to difficult to write (I posted an interpreter based param selector to the list october/november last year). Generically speaking, you can do this kind of test/redirect with any resource. Selectors can test anything. Note, for parameter testing, I might not follow this approach - if you need to test 10 form values for example. (as you can see, you'll end up with an extensive sitemap containing too much detail - this is what I was describing above, with my shift from describing technical detail in sitemap pipelines, to concepts). I would write a validation action. map:match ... map:act type=validate/ !-- and so on, assuming validation works -- /map:match And use the Redirector element of the action API. Then your code above goes into the validation action you write (almost exactly as it is above), with the call being redirector.redirect(..); instead of response.sendRedirect(..). What you've done above will work, you just need to relocate the code out of your xsp page, into an action class. Optionally, you could also write a c2 generic or application specific validator class to reuse code. (there's already a generic formvalidatoraction in the c2 source now). Now, be aware there is a trade off here, sending a redirect from within an action will mean you'll have control flow code outside of the sitemap. An alternative is to return a value from your action to the sitemap for testing and then sitemap redirection. map:match ... map:act type=validate/ map:select type=validatortester map:when test=invalid map:redirect-to uri=.../ /map:when map:otherwise !-- and so on, assuming validation works -- /map:otherwise map:select /map:match In this case you'll need to write an action and a selector. As you can see, the trade off here is in sitemap size, complexity and readability. I am not baised to either, as I see benefits in both approaches. The other developers might see this differently. The choice is up to you. This redirects the user to an error page, if his input is not ok. I have lines like this in most of my XSP pages. Another example: if (status.startsWith(active)) { // Send notification mail response.sendRedirect(mail/NOTIFY_CUSTOMER.xml); else if (status.startsWith(begin)) { // Send error fax response.sendRedirect(fax/NOTIFY_CUSTOMER.xml); Doing a 'grep -r sendRedirect * | wc -l' on the above app I get 104. Does this mean I have to write 104 actions? Or is it possible to write a generic redirect action If they are all totally different sendRedirect tests, used only once in individual xsp pages, you may need to write a comprehensive set of actions. But I expect in reality it will be a lot less than 104. (without seeing your application. :-) ) 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 : - 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
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]
Re: Cocoon-2.0 with Tomcat-3.2.2 on Sun/Solaris
Hi Joseph, We have a similar configuration here, but its with Solaris 2.6. What's happening when you start tomcat ? What's in the servlet and cocoon2 logfiles ? Cheers, Marcus On Tue, 3 Jul 2001, Rajkumar, Joseph wrote: Hi Folks Does any one have this combination working on a Sun/Solaris-2.7 box. I have tried high and low to get it to work, but I am having lots of problems. I have been able to create the cocoon.war file, but I am unable to proceed further. Thanks Joseph Rajkumar PS: Please note that I have successfully installed and run Cocoon-2.0B1 with Tomcat-3.2.2 on Windows/98 and a laptop running Linux-Mandrake-8.0, but I just cannot figure out the problem running this on a standalone Sun/Sparc-20 running Solaris-2.7. I have JDK-1.3 on the Sun box which is running an Xserver and I do get response for xdpyinfo command. - 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] -- . ,,$, 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]
Re: Segmentation fault on install
On Mon, 2 Jul 2001, Ben Young wrote: Whenever I try to install Cocoon 2 on my RedHat 7.0 box I get a segmentation fault. Could this be a problem with my Java or Ant installs or a problem with Cocoon2? I was getting a segfault yesterday when using jdk 1.3.1 on my debian box at c2 build time (right at the beginning when ant is invoked). Is this the segfault you're getting too ? In the office we've still got jdk 1.3.0_02 on our systems which builds c2 fine. 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]
Re: Segmentation fault on install
Hi Ben, On Mon, 2 Jul 2001, Ben Young wrote: Sounds identical. I'm using jdk 1.3.1. The segfault happens at the very beginning of install. Do you think backing up to jdk 1.3.0_02 would fix this? Do the developers know about this yet? Backing up will fix it - We're using jdk 1.3.0_02 at the moment at work and it builds cocoon2 fine. I don't think the developers know about it yet, perhaps we should resolve whether its a cocoon or ant issue. Have you attempted building c2 with the CVS version of ant/jdk1.3.1 ? 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]