On 2012-03-06 11:07, Leszek Gawron wrote:
b) block1, block2: opened eclipse projects
webapp uses block1, block2 exported classpaths directly. No
dependency on jar. Cocoon block deployer is unable to properly
initialize the application:
Still talking to myself... :)
Let me rephrase the question.
How do I override the context-path property of:
<bean id="com.mobilebox.smart.mobile.block"
class="org.apache.cocoon.sitemap.SitemapServlet">
<servlet:context mount-path="/mobile"
context-path="blockcontext:/smart-mobile/" />
</bean>
So it points to a fixed location like
"file:/c:/dev/smart/web/mobile/src/main/resources"
without touching the xml file.
I tried:
com.mobilebox.smart.smart-mobile.service/contextPath=file:/c:/dev/smart/web/mobile/src/main/resources
com.mobilebox.smart.smart-central.service/contextPath=file:/c:/dev/smart/web/central/src/main/resources
com.mobilebox.smart.smart-mobile.block/contextPath=file:/c:/dev/smart/web/mobile/src/main/resources
com.mobilebox.smart.smart-central.block/contextPath=file:/c:/dev/smart/web/central/src/main/resources
No luck
--
Leszek Gawron http://www.mobilebox.pl/krs.html
CTO at MobileBox S.A.