Re: Corona - Cocoon 3: SVN, Maven, namespaces

2008-09-22 Thread Rice Yeh
Yes, it works. Thanks, Rice On Mon, Sep 22, 2008 at 12:51 PM, Reinhard Pötz [EMAIL PROTECTED] wrote: Does plain http work for you? Rice Yeh wrote: The svn link seems not providing anonymous checkout now. Rice On Sat, Sep 20, 2008 at 3:36 PM, Reinhard Pötz [EMAIL PROTECTED

Re: Corona - Cocoon 3: SVN, Maven, namespaces

2008-09-22 Thread Rice Yeh
A small inconsistency is found in coocon3/trunk/README.txt where cocoon-samples is stated whereas what I find is cocoon-sample. Rice On Mon, Sep 22, 2008 at 3:37 PM, Rice Yeh [EMAIL PROTECTED] wrote: Yes, it works. Thanks, Rice On Mon, Sep 22, 2008 at 12:51 PM, Reinhard Pötz [EMAIL

Re: Corona - Cocoon 3: SVN, Maven, namespaces

2008-09-21 Thread Rice Yeh
The svn link seems not providing anonymous checkout now. Rice On Sat, Sep 20, 2008 at 3:36 PM, Reinhard Pötz [EMAIL PROTECTED] wrote: Reinhard Pötz wrote: I've just finished the Corona to Cocoon 3 renaming tasks (Java namespaces, Maven artifacts, XML namespaces). Cocoon 3 can be found

[jira] Created: (COCOON-2210) The field 'type' in GenerateNode in corona-sitemap should not be final

2008-06-14 Thread Rice Yeh (JIRA)
: Bug Components: Corona (experimental) Affects Versions: 2.2-dev (Current SVN) Reporter: Rice Yeh Fix For: 2.2-dev (Current SVN) The field 'type' in GenerateNode should not be final. Otherwise, the testObjectModelPipeline() in SitemapBuilderTest does

Re: [RT] Do we need URL/Source in SSF?

2008-03-28 Thread Rice Yeh
Hi, I have a guts feeling that Spring's Resource and ResourcePatternResolver have similar functions as Source and SourceResolver, hence we could just depend on Spring's Resource to achieve the same functionality in SSF. Regards, Rice On Sat, Mar 29, 2008 at 5:48 AM, Grzegorz Kossakowski [EMAIL

[jira] Commented: (COCOON-2150) Error on resetting response

2008-03-12 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12577744#action_12577744 ] Rice Yeh commented on COCOON-2150: -- I do not know whether I am naive to say just adding

RhinoInSpring and Cocoon-1425

2008-01-09 Thread Rice Yeh
Hi, Is there anyone having a study on RhinoInSpring http://rhinoinspring.sourceforge.net/. It seems handle flow states serialization quite well than cocoon-flowscript-impl (Cocooon-1425). Regards, Rice

[jira] Commented: (COCOON-1831) Passing parameters to sub calls

2007-12-28 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554795 ] Rice Yeh commented on COCOON-1831: -- In my mind, iterating the call stack form the first call frame to the last

[jira] Commented: (COCOON-1831) Passing parameters to sub calls

2007-12-28 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554802 ] Rice Yeh commented on COCOON-1831: -- Agree. But 'parentRequest' used in the code seems a little weird, my original

[jira] Commented: (COCOON-1831) Passing parameters to sub calls

2007-12-28 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554804 ] Rice Yeh commented on COCOON-1831: -- By the way, in the above post it is stated that there is some controversial

[jira] Updated: (COCOON-1831) Passing parameters to sub calls

2007-12-28 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-1831: - Attachment: BlockCallHttpServletRequest.patch Hi, After a more detail look at the code, I think

[jira] Commented: (COCOON-1831) Passing parameters to sub calls

2007-12-28 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554875 ] Rice Yeh commented on COCOON-1831: -- getValues() is used to implement ServletRequest.getParameterMap() which I

[jira] Commented: (COCOON-1831) Finish blocks-fw implementation

2007-12-27 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554654 ] Rice Yeh commented on COCOON-1831: -- Iteration over the whole call stack is my way to implement 'overriding' effect

Re: True OO for servlet service

2007-09-02 Thread Rice Yeh
Object Oriented approach implemented in upcoming[1] release of cocoon-servlet-service. The main task is tracked by COCOON-2038[2] where Rice Yeh has uploaded his patch implementing true OO behaviour in servlet-service-fw. According to Rice, this patch contains a bug-fix as well (details

[jira] Updated: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-09-02 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-2038: - Attachment: cocoon-servlet-service-impl.patch refer to mail http://www.mail-archive.com/dev

[jira] Updated: (COCOON-1831) Finish blocks-fw implementation

2007-09-02 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-1831: - Attachment: cocoon-servlet-service-impl.patch I think that Interblock communication mechanism is a must

[jira] Updated: (COCOON-1831) Finish blocks-fw implementation

2007-09-02 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-1831: - Attachment: cocoon-servlet-service-impl.patch The previous patch does not include the modification

Re: True OO for servlet service

2007-08-29 Thread Rice Yeh
implemented in upcoming[1] release of cocoon-servlet-service. The main task is tracked by COCOON-2038[2] where Rice Yeh has uploaded his patch implementing true OO behaviour in servlet-service-fw. According to Rice, this patch contains a bug-fix as well (details in the comments). After reviewing Rice's

Re: [jira] Assigned: (COCOON-2091) Move from HTMLArea to Xinha

2007-07-22 Thread Rice Yeh
Just wonder why not convert it to dojo's Editor2 since dojo is heavily used in cocoon. Rice On 7/22/07, Felix Knecht (JIRA) [EMAIL PROTECTED] wrote: [ https://issues.apache.org/jira/browse/COCOON-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel] Felix Knecht

[flowscript] cocoon.load() to load non-javascript file?

2007-07-16 Thread Rice Yeh
Hi, In flowscript, cocoon.load() is used for loading a javascript. Is there other way to load a source other than javascript? By studying the source code, the source reslover is stored in javascript intrepreter but not accessible to user's flow script. Given no modification to the flowscript

Re: [jira] Updated: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-07-14 Thread Rice Yeh
Greg, Ok, I will do it but it is not promised to finish it in these days. My schedule is quite tight in this month but I will try to find some time to complete this work. Rice On 7/12/07, Grzegorz Kossakowski (JIRA) [EMAIL PROTECTED] wrote: [

[jira] Commented: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-07-11 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511680 ] Rice Yeh commented on COCOON-2038: -- Grzegorz Kossakowski updated COCOON-2038

[jira] Commented: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-07-11 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511681 ] Rice Yeh commented on COCOON-2038: -- Actually in current implementation, the s0 is not shown on call stack when s1

Is it allowed to access a bean created in avalon in a spring bean definition?

2007-07-10 Thread Rice Yeh
Hi, Is it allowed to access a bean created in avalon in a spring bean definition? I try to access the FormManager in the following spring xml file, but it returns null. bean id=widgetDefinitionBuilderLoader class= xs.cocoon.forms.WidgetDefinitionBuilderLoader scope=singleton

Re: Is it allowed to access a bean created in avalon in a spring bean definition?

2007-07-10 Thread Rice Yeh
On 7/10/07, Carsten Ziegeler [EMAIL PROTECTED] wrote: Grzegorz Kossakowski wrote: Rice Yeh pisze: Hi, Is it allowed to access a bean created in avalon in a spring bean definition? Yes. I try to access the FormManager in the following spring xml file, but it returns null. Did you

Is it possible to write a new type cforms widget outside cocoon-forms-impl? How?

2007-07-10 Thread Rice Yeh
Hi, I am trying to write a new type of widget in my block. I have changed some code in cocoon-forms-impl to have my widget definition builder put into the SimpleServiceSelector, the implementation of WidgetDefinitionBuilderSelector. But now, I meet a problem. All widget definition builders

[jira] Updated: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-07-07 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-2038: - Attachment: cocoon-servlet-service-impl.patch Hi, I am sorry for delaying so long to reply your

[jira] Updated: (COCOON-2066) BlockCompletePathModule returns wrong path in scope of internal servlet call

2007-07-07 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-2066: - Attachment: cocoon-servlet-service-impl.patch Attached is a patch for BlockCallHttpServletRequest

Change the method getServletServiceContext() in ServletServiceContextAware to return ServletSerivceContext

2007-07-07 Thread Rice Yeh
Hi, I do not know why the method getServletServiceContext() in ServletServiceContextAware return ServletContext instead of ServletServiceContext. I think it is more reasonable to return ServletServiceContext and more meet to the name of the interface. Rice

[jira] Updated: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-06-27 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-2038: - Attachment: ServletServiceContext.java.patch I have changed ServletServiceContext.java to make

[jira] Updated: (COCOON-2038) Implement true Object Oriented approach for handling super calls

2007-06-27 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-2038: - Attachment: BlockCallHttpServletResponse.java.patch DispatcherServlet.java.patch

servlet: protocol cannot be used in xsl:include's href attribute in a xsl file?

2007-06-26 Thread Rice Yeh
Hi, Can the servlet: protocol can be used in xsl:include's href attribute in a xsl file? I keep get MalformedURLException in URLinit with servlet: protocol. I remember there is a discussion on writing URLStreamHandler for servlet: protocol. Is this problem related to that discussion? Regards,

Re: servlet: protocol cannot be used in xsl:include's href attribute in a xsl file?

2007-06-26 Thread Rice Yeh
After checking my code again, I find it is a error in my sitemap. Thank you guys. Rice On 6/26/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh pisze: Hi, Can the servlet: protocol can be used in xsl:include's href attribute in a xsl file? I keep get MalformedURLException

Re: hot redeployment mostly failed

2007-06-23 Thread Rice Yeh
Hi, My environment is the jetty from cocoon trunk. That is, I run jetty through mvn jetty:run. This problem does not happen every time doing redeployment. Rice On 6/23/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh pisze: Hi, I often met the following error during hot

hot redeployment mostly failed

2007-06-22 Thread Rice Yeh
Hi, I often met the following error during hot redeployment. This makes me have to restart server and this makes redeployment nonsense. Any clue? Here is the error: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected excep tion parsing XML document from ServletContext

Re: Interblock communication

2007-06-19 Thread Rice Yeh
The following is my understanding about the current and would-be functions of servlet-serivce: Servlet-serivce is to have a web application divided into many blocks but each of them behaves like a web application; It has its own context, request, response and session. When a block s1 calls

Re: Interblock communication

2007-06-18 Thread Rice Yeh
HttpSession when method getSession() is called. What is the basic idea in designing servlet-serivce in this way? Rice On 6/18/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh pisze: Hi, With current servlet-service implementation, inter-block communication become a hard problem. I have

Interblock communication

2007-06-17 Thread Rice Yeh
Hi, With current servlet-service implementation, inter-block communication become a hard problem. I have used servlet-serivce in my project. I use block inheritance and association. However, because each request passed to the associated block is a newly created (instead of the original one

Re: How to do dojo.registerModulePath without directly modifying forms-field-styling.xsl

2007-05-03 Thread Rice Yeh
On 5/3/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh napisał(a): Your answer seems to be what I need. But I am confused with how 'servlet://' in dojo.registerModulePath(cocoon.ajax, servlet://resource/external/ajax/js) in manifest.js is translated? It is translated

Re: How to do dojo.registerModulePath without directly modifying forms-field-styling.xsl

2007-05-03 Thread Rice Yeh
On 5/4/07, Rice Yeh [EMAIL PROTECTED] wrote: On 5/3/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh napisał(a): Your answer seems to be what I need. But I am confused with how 'servlet://' in dojo.registerModulePath(cocoon.ajax, servlet://resource/external/ajax/js

How to do dojo.registerModulePath without directly modifying forms-field-styling.xsl

2007-05-02 Thread Rice Yeh
Hi, I have a bock which provides some widgets based on dojo. Now, my problem is how to do dojo.registerModulePath without directly modifying forms-field-styling.xsl? Regards, Rice

Re: How to do dojo.registerModulePath without directly modifying forms-field-styling.xsl

2007-05-02 Thread Rice Yeh
Your answer seems to be what I need. But I am confused with how 'servlet://' in dojo.registerModulePath(cocoon.ajax, servlet://resource/external/ajax/js) in manifest.js is translated? Rice On 5/3/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh napisał(a): Hi, I have a bock which

Is block-path input module still supported?

2007-05-01 Thread Rice Yeh
Hi, Is block-path input module still supported in trunk. My ap, which used to work with block-path, is not working now. It has the following error message. Caused by: org.apache.cocoon.sitemap.PatternException: Cannot get module named 'block-path' in expression '{block-path:/resources}' at

Re: Is block-path input module still supported?

2007-05-01 Thread Rice Yeh
Solved. just not include cocoon-servlet-service-components.jar. Rice On 5/1/07, Rice Yeh [EMAIL PROTECTED] wrote: Hi, Is block-path input module still supported in trunk. My ap, which used to work with block-path, is not working now. It has the following error message. Caused

cannot build cocoon-forms from trunk

2007-04-28 Thread Rice Yeh
Hi, Just check cocoon 2.2 from trunk, cocoon-forms cannot compile because C:\apache\cocoon.home\svn\trunk\blocks\cocoon-forms\cocoon-forms-impl\src\main\j ava\org\apache\cocoon\forms\DefaultFormManager.java:[24,45] package org.apache.a valon.framework.container does not exist. Any clue? Rice

Re: cannot build cocoon-forms from trunk

2007-04-28 Thread Rice Yeh
Yes, you are right. After using maven 2.0.5, the problem is gone. Thank you. Rice On 4/28/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Rice Yeh pisze: Hi, Just check cocoon 2.2 from trunk, cocoon-forms cannot compile because C:\apache\cocoon.home\svn\trunk\blocks\cocoon-forms

Re: Circular deps in servlet connections (was Re: Servlet Services + Shielding)

2007-04-04 Thread Rice Yeh
On 4/4/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Alexander Klimetschek napisał(a): Grzegorz Kossakowski schrieb: We do need the circular dependency: the basic principle is a super block that runs cforms that are mainly defined in a child block - the model lies in the child block

Continuation looks for wrong interpreter when using servlet protocol

2007-04-04 Thread Rice Yeh
Hi, Here is another problem when using servlet protocol. A servlet S1 extends another servlet S2. A web continuation k is generated in S2. When k returns back, k is matched in S1 with match pattern *.continue which exists in S2 also. Then comes an error with message like k bound to S2, but

Re: Parameters in request get lost when using servlet: protocol

2007-04-04 Thread Rice Yeh
] wrote: Rice Yeh schrieb: Thank you for your solution. But I still feel weird for a brand new request being created for a called block (servlet), at least for a super block (servlet). Having a look at the source code, each new brand request and response are supposed to be stored in its call frame

Re: Parameters in request get lost when using servlet: protocol

2007-04-04 Thread Rice Yeh
frame stack. All I do is just having a quick-but-dirty implementation of the logic I stated earlier. Rice Alex Rice Yeh schrieb: Not only request.getParameter(String name) has problem but request.getLocale() has problem too. So I decide to modify some methods in BlockCallHttpServletRequest

Parameters in request get lost when using servlet: protocol

2007-04-02 Thread Rice Yeh
Hi, I find that all the parameters in a http request get lost when using servlet: in a sitemap like the following: map:read src=servlet:super:/{0}/ Any clue? Rice

Re: Parameters in request get lost when using servlet: protocol

2007-04-02 Thread Rice Yeh
After reading the source code of servlet service, I think I might need to access the request in a call frame to access its parameters. Is this feature available now? And how do I do it in a flowscript? Rice On 4/2/07, Rice Yeh [EMAIL PROTECTED] wrote: Hi, I find that all the parameters

Re: Parameters in request get lost when using servlet: protocol

2007-04-02 Thread Rice Yeh
attributes into an URL query string. In this case it will add all request parameters. Alex Rice Yeh schrieb: Hi, I find that all the parameters in a http request get lost when using servlet: in a sitemap like the following: map:read src=servlet:super:/{0}/ Any clue? Rice

Re: [cforms] How to get the LibraryManager?

2007-03-24 Thread Rice Yeh
it like in wicket. Rice On 3/24/07, Rice Yeh [EMAIL PROTECTED] wrote: Hi, I am writing some code to insert widgets into a form dynamically in the on-action event of an action widget. But I have the most code written in a java method first. Since my code is not in a Serviceable class, I don't have

[cforms] How to get the LibraryManager?

2007-03-23 Thread Rice Yeh
Hi, I am writing some code to insert widgets into a form dynamically in the on-action event of an action widget. But I have the most code written in a java method first. Since my code is not in a Serviceable class, I don't have access to a service manager. But I need to access the

Is it possible to modify the tree of widgets built from a form definition at runtime?

2007-03-18 Thread Rice Yeh
Hi, Is it possible to modify the tree of widgets built from a form definition at runtime? In my case, I like to add a tab to a tabs group in a on-action event (javascript) for a fd:action. I know that one solution is to make the tab to be added invisible at first and then have it visible. For my

[ajax] How to add a handler to the BUHandler in a AjaxForm?

2007-03-16 Thread Rice Yeh
Hi, How to add a handler to the BUHandler in AjaxForm? The BUhandler is AjaxFrom is created within the scope of a call object in method _handleBrowserUpdate, so i do not have any way to access it and add a handler to handle the returned result? Should not the BUhandler be a attribute of the

[jira] Created: (COCOON-2018) Use thread context class loader to load custom binding classes

2007-03-01 Thread Rice Yeh (JIRA)
Components: Blocks: Forms Affects Versions: 2.2-dev (Current SVN) Reporter: Rice Yeh Hi, In current implementation of org.apache.cocoon.forms.binding.CustomJXPathBindingBuilder, Class.forName() method is used to load custom binding classes. Class.forName(classname) method uses

[jira] Updated: (COCOON-2018) Use thread context class loader to load custom binding classes

2007-03-01 Thread Rice Yeh (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rice Yeh updated COCOON-2018: - Attachment: CustomJXPathBindingBuilder.java.patch Use thread context class loader to load custom

Re: [ajax] Could not locate widget implementation for replace in bu.widget registered to namespace bu

2007-02-28 Thread Rice Yeh
, bu:replace should also be rendered when ajax=true. So when is bu:repalce be rendered in the html. Or just bu:replace is outdated? Rice On 2/27/07, Rice Yeh [EMAIL PROTECTED] wrote: Hi, There are 2 files (manifest.js and bu.js) not found when i set ajax=true in cforms with the following

Re: [ajax] Could not locate widget implementation for replace in bu.widget registered to namespace bu

2007-02-28 Thread Rice Yeh
without any problems. HTH, Bart. Rice Yeh wrote: By playing around the samples in http://cocoon.zones.apache.org/demos/21branch, I observed all samples in branch 21 do not have bu:replace rendered in the result html and the ajax works. But for my case, the bu:place is rendered around a tree

[ajax] Could not locate widget implementation for replace in bu.widget registered to namespace bu

2007-02-27 Thread Rice Yeh
Hi, There are 2 files (manifest.js and bu.js) not found when i set ajax=true in cforms with the following portions of information: Caused by: org.apache.excalibur.source.SourceNotFoundException: resource://org/a pache/cocoon/bu/resources/manifest.js 2007-02-27 17:49:29.892::WARN:

when is blockcontext allowed?

2007-02-25 Thread Rice Yeh
Hi, I met the java.net.MalformedURLException for url blockcontext:/xs.party/ which is used for setting up a block bean. In the cocoon-servlet-service-sample, blockcontext is used for context-path in setting a block bean. When is blockcontext allowed? Rice 2007-02-25 20:10:21.684::WARN: Nested

version error in the pom.xml of cocoon-configuration-api

2007-02-23 Thread Rice Yeh
Hi, The version is 1.0.1.SNAPSHOT in the pom.xml of cocoon-configuration-api. I think it is a typo. Should it be 1.0.1-SNAPSHOT? Regards, Rice

[jira] Created: (COCOON-2012) Catch Throwable, instead of Exception, in org.apache.cocoon.servlet.RequestProcessor

2007-02-18 Thread Rice Yeh (JIRA)
: Cocoon Issue Type: Bug Components: * Cocoon Core Affects Versions: 2.2-dev (Current SVN) Reporter: Rice Yeh There are many catch-all-exceptions handling in org.apache.cocoon.servlet.RequestProcessor, where 'catch (Exception e)' is used. Hence, Error

cocoon-sitemap-1.0.xsd no more found in trunk

2007-02-13 Thread Rice Yeh
Hi, cocoon-sitemap-1.0.xsd seems no more exist in trunk. But org.apache.cocoon.components.treeprocessor.TreeProcessor's constructor still needs it. Is this intended? Rice

What should context:// be changed to in src attribute in 2.2 version (servlet service version)?

2007-02-07 Thread Rice Yeh
Hi, What should context:// be changed to in src attribute in a block like cocoon-forms-sample in 2.2 version (servlet service)? For example, how should I rewrite the following statement in th cocoon-forms-sample? map:transform src=context://samples/common/style/xsl/html/simple-

Error creating bean with name 'javax.servlet.http.HttpServletRequest/callstack'

2007-02-06 Thread Rice Yeh
Hi, Running the latest code from trunk, I get an error as the title described. The following is the exception stack: Caused by: org.springframework.beans.factory.BeanCreationException: Error creati ng bean with name 'javax.servlet.http.HttpServletRequest/callstack': Initializat ion of bean

Re: Error creating bean with name 'javax.servlet.http.HttpServletRequest/callstack'

2007-02-06 Thread Rice Yeh
-servlet-service-impl. It should be included in your cocoon-webapp dependencies by transitive dependency handling. It works for me. It might be that you need to clean and rebuild your cocoon-webapp or something. /Daniel Rice Yeh skrev: Hi, Running the latest code from trunk, I get an error

Re: Error creating bean with name 'javax.servlet.http.HttpServletRequest/callstack'

2007-02-06 Thread Rice Yeh
, the last line of the same method is this.proxy = pf.getProxy(cbf.getBeanClassLoader()); , where classloader is passed. Regards, Rice On 2/6/07, Daniel Fagerstrom [EMAIL PROTECTED] wrote: Any suggestion about what to do about it? /Daniel Rice Yeh skrev: I do have cglib-2.1_3.jar in the WEB/lib

parent-first URLClassLoader being the parent of ReloadingClassLoader seems not correct

2007-01-28 Thread Rice Yeh
Hi, I am studing the cocoon-rcl-webapp-wrapper. An instance of URLClassLoader with loading path setting from /WEB-INF/cocoon/rclwrapper.urlcl.conf (mostly is from local repository) is passed to as the parent of ReloadingClassLoader constructor in

[jira] Created: (COCOON-1989) Always exception thrown in init() method of StoreJanitorImpl

2007-01-26 Thread Rice Yeh (JIRA)
Components: * Cocoon Core Affects Versions: 2.2-dev (Current SVN) Reporter: Rice Yeh The if statement at line 222 (see the following) in the init() method of StoreJanitorImpl is very weird. if (!this.freeingAlgorithm.equals(ALG_ROUND_ROBIN) || !this.freeingAlgorithm.equals

compiler cannot delete a file in target/classes while running cocoon

2007-01-17 Thread Rice Yeh
Hi, I am running cocoon 2.2 from trunk. I find Eclipse cannot compile a file because the correspondent file in target/classes is locked by cocoon. Is it because RCL? or other reasons? Rice

Re: call a function not in global object in map:call

2007-01-13 Thread Rice Yeh
[EMAIL PROTECTED] wrote: On Jan 11, 2007, at 6:08 AM, Mark Lundquist wrote: On Jan 11, 2007, at 1:36 AM, Rice Yeh wrote: Does anyone know whether the function mentioned in http://www.mail-archive.com/dev@cocoon.apache.org/msg47930.html works now? phooey... I forgot to submit this patch

Re: call a function not in global object in map:call

2007-01-13 Thread Rice Yeh
, Mark Lundquist [EMAIL PROTECTED] wrote: On Jan 13, 2007, at 2:21 AM, Rice Yeh wrote: Do you have an example about how to pass the namespace object? I use it like the following: map:call function=xs.party.use map:parameter name=flowpath value={0}/ /map:call , but it does not work

Re: call a function not in global object in map:call

2007-01-13 Thread Rice Yeh
add in it? Rice On 1/14/07, Mark Lundquist [EMAIL PROTECTED] wrote: On Jan 13, 2007, at 11:11 AM, Rice Yeh wrote: The fun is not gotten by the code at line 591 in FOM_JavaScriptInterpreter.java Object fun = ScriptableObject.getProperty(thrScope, funName); hold on, I did not read the above

Re: call a function not in global object in map:call

2007-01-13 Thread Rice Yeh
And have a check at https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java . It is sured that this function is not in trunk. Rice On 1/14/07, Rice Yeh [EMAIL PROTECTED] wrote: I am sure my code

Re: call a function not in global object in map:call

2007-01-13 Thread Rice Yeh
Then, should I report this problem to JIRA. Or there is other concern not to include this function in trunk? Regards, Rice On 1/14/07, Mark Lundquist [EMAIL PROTECTED] wrote: On Jan 13, 2007, at 8:02 PM, Rice Yeh wrote: It is sured that this function is not in trunk. Bah, you are right

call a function not in global object in map:call

2007-01-11 Thread Rice Yeh
Hi, Does anyone know whether the function mentioned in http://www.mail-archive.com/dev@cocoon.apache.org/msg47930.html works now? Rice

Re: RFC: CForms Roadmap

2007-01-09 Thread Rice Yeh
Hi, Since namespace is employed now. Widgets' naming might start not to include namespace-purpose prefix. For example, CFormsSuggest is better to be just named Suggest. Rice On 1/7/07, Jeremy Quinn [EMAIL PROTECTED] wrote: Hi All Now that Cocoon 2.1.11-dev runs Dojo 0.4.1, I think we have a

How to install source code's jar to local repository during building also?

2006-12-20 Thread Rice Yeh
Hi, I use 'maven clean install' to build cocoon. Is there also a way to install source code's jar to local repository during building without changing present pom.xml? Rice

Re: many methods in BlockCallHttpServletRequest not supported yet.

2006-11-26 Thread Rice Yeh
Hi Daniel, I am sorry for asking such a schedule-related question. Please forget this question. Regards, Rice

many methods in BlockCallHttpServletRequest not supported yet.

2006-11-25 Thread Rice Yeh
Hi, There are many methods not supported in BlockCallHttpServletRequest yet, like getLocale(). We are converting our project to use cocoon-blocks-fw-impl but many of our sitemaps use LocaleAction which calls getLocale() in request. Just like to know whether these methods will be implemented

How to run the cocoon-blocks-fw-sample block?

2006-11-15 Thread Rice Yeh
Hi, In studying the document http://wiki.apache.org/cocoon-data/attachments/GT2006Notes/attachments/12-CocoonBlocks.pdf, I like to have a real feeling of it. So I try the cocoon-blocks-fw-sample block, but got no good luck. Can anyone give me some information on doing this? Rice

Re: call a function not in global object in map:call

2006-11-13 Thread Rice Yeh
Thank you. Will this patch go into the trunk eventually?RiceOn 11/13/06, Mark Lundquist [EMAIL PROTECTED] wrote:On Nov 12, 2006, at 1:31 AM, I wrote: [...snip] Here's a patch you can try.[...snip] Do'h. my bad!I didn't realize when I sent you that diff that I was inthe middle of changing the code

call a function not in global object in map:call

2006-11-11 Thread Rice Yeh
Hi, It seems for now the function attribute in map:call must be a function in the global object. I think it might be better if this function could be within a scope object because our project groups all _javascript_ objects like java packages (or just like what dojo does). There are more

[2.2] Couldn't find the sitemap /sitemap.xmap

2006-11-10 Thread Rice Yeh
Hi, Checkout the latest 2.2 trunk, build it, and then create a web app based on the webapp architect type. I can run the basic webapp well.But after I add a dependence on cocoon-forms-sample block in its pom.xml and run it, i get the following error: Caused by:

Re: Is catch (break | continue | return) supported?

2006-09-29 Thread Rice Yeh
I find it is because continuation does not support function call/apply yet in rhino bug 258844. So FOM_Cocoon.suicide() does not work.Rice On 9/29/06, Rice Yeh [EMAIL PROTECTED] wrote: Have a new trace by printing out each step, I find FOM_Cocoon.suicide() does get called but the _javascript_

Re: ClassCastException becuase of different classloaders for a bean weaving by springframework

2006-09-28 Thread Rice Yeh
The result is same as my patch and to have a new method loadClass(String name) in DefaultClassLoader seems more elegant in the code.RiceOn 9/28/06, Carsten Ziegeler [EMAIL PROTECTED] wrote: Rice Yeh wrote: I think it is the bug http://issues.apache.org/jira/browse/COCOON-1921 causing

Re: ClassCastException becuase of different classloaders for a bean weaving by springframework

2006-09-28 Thread Rice Yeh
It does make a big difference. loadClass(name, false) in DefaultClassLoader uses child-first loading strategy but loadClass(name, false) in ClassLoader uses parent-first loading strategy. Then, when an instance of DefaultClassLoader calls its paren's loadClass(name, false) and this parent is alos

Is catch (break | continue | return) supported?

2006-09-28 Thread Rice Yeh
Hi, By reading mail archives, I know there are catch (break | continue | return) stuff. Is it still supported. I cannot find any examples about them in trunk. In the http://marc.theaimsgroup.com/?l=xml-cocoon-devm=109528520325331w=2, it seems telling me that rhino's 'finally' now support catch

[jira] Created: (COCOON-1921) A bug in org.apache.cocoon.classloader.DefaultClassLoader

2006-09-27 Thread Rice Yeh (JIRA)
: * Cocoon Core Affects Versions: 2.2-dev (Current SVN) Reporter: Rice Yeh On the implementation of loadClass(String name, boolean resolve) in DefaultClassLoader , when there is no class found in child (that is, this classloader) classloader, the parent's loadClass() method

Re: ClassCastException becuase of different classloaders for a bean weaving by springframework

2006-09-27 Thread Rice Yeh
for WEB-INF/lib [DEBUG] Adding artifact commons-logging-1.0.4.jar for WEB-INF/lib [DEBUG] Adding artifact xs-persistence-hibernate-1.0-SNAPSHOT.jar for WEB-INF/lib On 9/20/06, *Rice Yeh* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: Hi, I have a bean created thru. springframeowrk in cocoon

[jira] Commented: (COCOON-1920) net.sf.ehcache.CacheException during hot deployment

2006-09-26 Thread Rice Yeh (JIRA)
[ http://issues.apache.org/jira/browse/COCOON-1920?page=comments#action_12437778 ] Rice Yeh commented on COCOON-1920: -- After a while of study, I find this issue happens only when I use hibernate with cocoon. If I change the setting

[jira] Created: (COCOON-1920) net.sf.ehcache.CacheException during hot deployment

2006-09-25 Thread Rice Yeh (JIRA)
Core Affects Versions: 2.2-dev (Current SVN) Reporter: Rice Yeh net.sf.ehcache.CacheException always happens during hot deployment in both Tomcat or Jetty environments. The error message is as follows: Caused by: org.springframework.beans.factory.BeanCreationException: Unable

ClassCastException becuase of different classloaders for a bean weaving by springframework

2006-09-20 Thread Rice Yeh
Hi, I have a bean created thru. springframeowrk in cocoon. The bean needs 3 arguments in its contructor to create it as below: bean id=platform class=xs.school.Platform scope=singleton constructor-arg type=java.lang.String value=development/ constructor-arg type=xs.persistence.Adapter

Re: ClassCastException becuase of different classloaders for a bean weaving by springframework

2006-09-20 Thread Rice Yeh
[DEBUG] Adding artifact excalibur-logger-2.1.jar for WEB-INF/lib[DEBUG] Adding artifact commons-logging-1.0.4.jar for WEB-INF/lib [DEBUG] Adding artifact xs-persistence-hibernate-1.0-SNAPSHOT.jar for WEB-INF/libOn 9/20/06, Rice Yeh [EMAIL PROTECTED] wrote:Hi, I have a bean created thru

Re: map:components cannot be in sitemap.xml anymore?

2006-09-19 Thread Rice Yeh
I find this problem is because of a bug at line 203 in org.apache.cocoon.core.container.spring.avalon.SitemapHelper, where classPathConfig shoud be passed as argument to method AvalonUtils.createConfiguration, intead of config. RiceOn 9/18/06, Rice Yeh [EMAIL PROTECTED] wrote: Hi, I tried

Re: map:components cannot be in sitemap.xml anymore?

2006-09-19 Thread Rice Yeh
Index: C:/apache/cocoon.home/svn/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/core/container/spring/avalon/SitemapHelper.java===---

Re: Unable to initialize Avalon component with role org.apache.cocoon.caching.Cache

2006-09-17 Thread Rice Yeh
Do you know how to use the cocoon:deploy on a specifice version? In my local repository, I have 1.0.0-M1, 1.0.0-M2-SNAPSHOT, 1.0.0-SNAPSHOT.On 9/17/06, Leszek Gawron [EMAIL PROTECTED] wrote: Rice Yeh wrote: I tried the 2.2.0-M2-SNAPSHOT (the trunk), but I get the following error message. It seems

  1   2   >