Hey folks. I'm attempting to integrate cocoon into my company's existing web publishing system, and encountering a few problems doing something that I would have expected to be fairly simple.
We're using resin (2.1.5) as our servlet engine, and we have an existing configuration management system for our existing applications that keeps everything in sync between all of our assorted servers. In its unaltered form, cocoon works fine, but I would like to merge its base configuration (web.xml) into resin's config (resin.conf), and put its other config files (cocoon.xconf, logkit.xconf, sitemap.xmap) into the same directory as all of our other local configuration files, i.e.: /usr/local/web/ WEB-INF/ classes/ lib/ (etc...)/ conf/ resin.conf local.cfg cocoon.xconf logkit.xconf sitemap.xmap htdocs/ logs/ webapps/ cocoon/ WEB-INF/ classes/ lib/ (etc...)/ (etc...)/ Merging web.xml into resin.conf is just a matter of specifying the proper app-dir for the cocoon webapp instance: <web-app id='/' app-dir='/usr/local/web/webapps/cocoon'> ...and I can specify the locations of cocoon.xconf and logkit.xconf apparently successfully: <init-param> <param-name>configurations</param-name> <param-value>file:///usr/local/web/conf/cocoon.xconf</param-value> </init-param> <init-param> <param-name>logkit-config</param-name> <param-value>file:///usr/local/web/conf/logkit.xconf</param-value> </init-param> ...and in cocoon.xconf, relocate the sitemap.xmap file: <sitemap check-reload="yes" class="org.apache.cocoon.sitemap.SitemapManager" file="file:///usr/local/web/conf/sitemap.xmap" logger="sitemap" reload-method="synchron"/> ...and in logkit.xconf, relocate all of the logfiles: <targets> <cocoon id="core"> <filename>file:///local/project/feedroom-releasepreview/webapps/cocoon/WEB-INF/logs/ core.log</filename> (...etc...) ...but when we actually start up resin, it never actually brings up the servlet runner or the http server, and we see the following in resin's stderr: Logging Error: Could not set up Cocoon Logger, will use screen instead java.net.MalformedURLException: java.lang.NullPointerException at java.net.URL.<init>(URL.java:496) at java.net.URL.<init>(URL.java:376) at java.net.URL.<init>(URL.java:330) at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:731) at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:676) at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:252) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:499) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:223) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:192) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:765) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262) at com.caucho.server.http.Application.createServlet(Application.java:3101) at com.caucho.server.http.Application.loadServlet(Application.java:3052) at com.caucho.server.http.Application.initServlets(Application.java:1915) at com.caucho.server.http.Application.init(Application.java:1828) at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853) at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698) at com.caucho.server.http.ServletServer.init(ServletServer.java:509) at com.caucho.server.http.ResinServer.init(ResinServer.java:375) at com.caucho.server.http.ResinServer.main(ResinServer.java:1131) at com.caucho.server.http.HttpServer.main(HttpServer.java:103) I've tried a number of different variations on this approach, none of which actually produce a working cocoon server. Is moving the config files such an unreasonable thing to want to do? Any hints that anyone could offer would be well appreciated at this point. Random relevant details: cocoon-2.0.3 resin-2.1.5 solaris 8/sparc mu4 java full version "1.3.1-b24" Thanks in advance, -n -----------------------------------------------------------<[EMAIL PROTECTED]> "`G.I. Jane' is a demeaning, violent, bloody workout video. Some brief nudity, bad language and a false sense of human resilience. Rated R." (--CNN) <http://blank.org/memory/>--------------------------------------------------- --------------------------------------------------------------------- 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]>