On Mon, Jul 13, 2009 at 11:42:01AM -0400, Mark H. Wood wrote: > Yup, we have that too now. This seems to be related to: > > http://www.mail-archive.com/us...@cocoon.apache.org/msg42803.html > > and the gist of it seems to be that the app. isn't a block and now > must be, but I don't see anything in that thread about how to make it > so. Can someone tell me where the servlet:context element is > documented? I've only found it mentioned in the schema so far, and > that contains no help at all.
Progress, of a sort: servlet:context is recognized by org.apache.cocoon.servletservice.spring.ServletDecorator. Anyway, the thread mentioned above says that the app. needs to be a block so that it has a block context. It appears that the way to do that is something like: Index: dspace-xmlui/dspace-xmlui-webapp/pom.xml =================================================================== --- dspace-xmlui/dspace-xmlui-webapp/pom.xml (revision 503) +++ dspace-xmlui/dspace-xmlui-webapp/pom.xml (working copy) @@ -46,6 +46,11 @@ <artifactId>maven-war-plugin</artifactId> <configuration> <archiveClasses>false</archiveClasses> + <archive> + <manifestEntries> + <Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name> + </manifestEntries> + </archive> <!-- In version 2.1-alpha-1, this was incorrectly named warSourceExcludes --> <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes> <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes> which *should* then allow us to write a context-path like "blockcontext:/dspace-xmlui-webapp/". However this then leads to: 2009-07-13 13:55:26,949 ERROR org.springframework.web.context.ContextLoader @ Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dspace.org.myApplication': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not create configuration for TreeProcesoor; nested exception is java.net.MalformedURLException: unknown protocol: blockcontext at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) which I haven't yet figured out. ... Oh, rot, the Cocoon-Block-Name doesn't seem to be copied into the actual installed webapp. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Friends don't let friends publish revisable-form documents.
pgpSQwSGmN90H.pgp
Description: PGP signature
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech