cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <gkossakow...@apache.org>
Subject Re: Forms migration problems
Date Thu, 03 May 2007 10:37:24 GMT
Felix Knecht napisaƂ(a):
>>> Using any of the two variants in my own flowscripts gives me an error:
>>>
>>> "Must be used in a block context
>>>     
>> servlet:forms:/resource/internal/flow/javascript/Form.js"
>>
>> Can you show configuration of servlet bean from your block? It's located
>> at src/main/resources/META-INF/cocoon/spring. I believe problem is there.
>>
>>   
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:servlet="http://cocoon.apache.org/schema/servlet"
>     xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://cocoon.apache.org/schema/servlet
> http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">
>     <bean id="com.myApp" class="org.apache.cocoon.sitemap.SitemapServlet">
>         <servlet:context mount-path="my-app"
> context-path="blockcontext:/my-app/">

@mount-path should be prefixed with "/" sign.

>             <servlet:connections>
>                 <entry key="ajax"
> value-ref="org.apache.cocoon.ajax.impl.servlet" />
>                 <entry key="forms"
> value-ref="org.apache.cocoon.forms.impl.servlet" />
>             </servlet:connections>
>         </servlet:context>
>     </bean>
> </beans>

The rest seems to be ok. How do you start and access your webapp? The problem is that servlet-service-fw
machinery is
not properly initialized for some reason. One can be that you access your servlet bypassing
dispatcher servlet.

-- 
Grzegorz Kossakowski

Mime
View raw message