Re: [Dspace-tech] AJP Errors
Hi, I tried this patch to see if it would help dealing with a overzealous web crawler. Trouble is, when I apply this patch, XMLUI breaks when I start my Jetty (6.1.19) servlet container. I'm running XMLUI as root webapp by making a symlink root in [jetty]/webapps to [dspace]/webapps/xmlui/. I've attached the stacktrace that Jetty spat out during startup. Cheers, T 2009/7/11, Mark Diggory mdigg...@atmire.com: I spent a little more time organizing the dependencies in xmlui-wing and cleared up a small conflict in the dependency tree, here is a patch for 1.5.2 that does this. Cheers, Mark -- Mark R. Diggory @mire - http://www.atmire.com -- 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 -- -- Timo Aalto Planning Officer University of Helsinki Library Coordination Unit timo dot j dot aalto at helsinki dot fi 2009-07-13 10:29:03.848::INFO: jetty-6.1.19 2009-07-13 10:29:04.158::INFO: Extract file:/home/dspace/jetty-6.1.19/webapps/cometd.war to /tmp/Jetty_0_0_0_0_8080_cometd.war__cometd__.t2qfkl/webapp 0[main] INFO org.dspace.core.ConfigurationManager - Loading provided config file: /home/dspace/tuotanto/dspace/config/dspace.cfg 14 [main] INFO org.dspace.core.ConfigurationManager - Using dspace provided log configuration (log.init.config) 14 [main] INFO org.dspace.core.ConfigurationManager - Loading: /home/dspace/tuotanto/dspace/config/log4j.properties 2009-07-13 10:29:05.344::INFO: Initializing Spring root WebApplicationContext 2009-07-13 10:29:06.656::INFO: Apache Cocoon Spring Configurator v1.0.2 is running in mode 'prod'. Loading catalog: file:/tmp/Jetty_0_0_0_0_8080_xmlui___.j2q33b/cocoon_xml_resolver_entities/catalog 2009-07-13 10:29:07.753::WARN: Failed startup of context org.mortbay.jetty.webapp.webappcont...@457414c8{,file:/home/dspace/jetty-6.1.19/webapps/root/} 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: no protocol: / at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239) at
Re: [Dspace-tech] AJP Errors
On Mon, Jul 13, 2009 at 10:53:58AM +0300, Timo Aalto wrote: Hi, I tried this patch to see if it would help dealing with a overzealous web crawler. Trouble is, when I apply this patch, XMLUI breaks when I start my Jetty (6.1.19) servlet container. I'm running XMLUI as root webapp by making a symlink root in [jetty]/webapps to [dspace]/webapps/xmlui/. [...] 2009-07-13 10:29:07.753::WARN: Failed startup of context org.mortbay.jetty.webapp.webappcont...@457414c8{,file:/home/dspace/jetty-6.1.19/webapps/root/} 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: no protocol: / 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. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Friends don't let friends publish revisable-form documents. pgpVU3NYKLoM0.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
Re: [Dspace-tech] AJP Errors
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 @@ artifactIdmaven-war-plugin/artifactId configuration archiveClassesfalse/archiveClasses + archive +manifestEntries + Cocoon-Block-Name${pom.artifactId}/Cocoon-Block-Name +/manifestEntries + /archive !-- In version 2.1-alpha-1, this was incorrectly named warSourceExcludes -- packagingExcludesWEB-INF/lib/*.jar/packagingExcludes warSourceExcludesWEB-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
Re: [Dspace-tech] AJP Errors
On Tue, Jun 23, 2009 at 08:24:43AM +0200, Sean Carte wrote: 2009/6/18 Mark H. Wood mw...@iupui.edu: On Thu, Jun 18, 2009 at 03:12:34PM +0200, Sean Carte wrote: And if it is this that's causing the problem, why do I seem to be the only one affected? And thanks also to Jason, who responded off-list, it's a great comfort to know I'm not the only one affected by this. You are definitely not alone. We just noticed that we've been having this problem or something like it since we upgraded to 1.5.2. I think an aggressive new spider found us and made it bad enough to notice. But now, having downloaded the patch from: https://issues.apache.org/jira/secure/attachment/12385608/HttpServletResponseBufferingWrapper-empty-response.patch ... I can't figure out what to do with it. I had hoped to find a file with a similar name somewhere in the dspace-src, to which I could apply the patch and then rebuild DSpace. No luck. It's a patch to Cocoon, not DSpace. You won't find it in [DSpace-src]. Has anybody applied this patch or know what I should do with it? Not yet. My best guess so far is to check out a copy of Cocoon 2.2 as released (which is huuge!), apply the patch, build it, 'mvn install' it into my local repository, maybe tweak a 'pom.xml' to ensure it will be used, and rebuild DSpace. I'm open to less strenuous methods, if anybody has one. Right now I've joined the us...@cocoon list and asked them how one builds a release version, since it has no POM in the top directory and the developer instructions thus don't work. Egad! what a load of work for a 4-line patch. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Friends don't let friends publish revisable-form documents. pgppmiKImXo5h.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
Re: [Dspace-tech] AJP Errors
2009/6/12 Sean Carte sean.ca...@gmail.com: 2009/6/12 Graham Triggs gra...@biomedcentral.com: Looks like a known (now fixed) bug in Cocoon 2.2 http://www.mail-archive.com/d...@cocoon.apache.org/msg57582.html G Is cocoon a part of tomcat? The problem does *seem* to go away if I use tomcat 6. Apparently not. How do I get an updated version of cocoon? I'm using Ubuntu 8.04. I tried rebuilding DSpace from a fresh checkout of the repository, but that hasn't helped either. I suppose restarting the server every hour or so would work, but that's a *really* ugly solution. Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] AJP Errors
2009/6/12 Van Ly v...@library.usyd.edu.au: # this looks suspect in the stacktrace $Proxy10.service(Unknown Source) I thought so too. But searching for that on Google doesn't turn up anything useful. I changed the proxy from ajp to proxy_http, but the same errors still occur. I'm starting to wonder if this isn't related to using tomcat5.5 with DSpace 1.5.2. Is nobody else seeing anything like this? I wouldn't be too worried about it, but, if the load is high enough, it does eventually cause the server to stop responding. And this is on 3 production servers. Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] AJP Errors
Looks like a known (now fixed) bug in Cocoon 2.2 http://www.mail-archive.com/d...@cocoon.apache.org/msg57582.html G From: Sean Carte [mailto:sean.ca...@gmail.com] Sent: Fri 12/06/2009 07:01 To: Van Ly Cc: dspace-tech Subject: Re: [Dspace-tech] AJP Errors 2009/6/12 Van Ly v...@library.usyd.edu.au: # this looks suspect in the stacktrace $Proxy10.service(Unknown Source) I thought so too. But searching for that on Google doesn't turn up anything useful. I changed the proxy from ajp to proxy_http, but the same errors still occur. I'm starting to wonder if this isn't related to using tomcat5.5 with DSpace 1.5.2. Is nobody else seeing anything like this? I wouldn't be too worried about it, but, if the load is high enough, it does eventually cause the server to stop responding. And this is on 3 production servers. Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] AJP Errors
2009/6/12 Graham Triggs gra...@biomedcentral.com: Looks like a known (now fixed) bug in Cocoon 2.2 http://www.mail-archive.com/d...@cocoon.apache.org/msg57582.html G Is cocoon a part of tomcat? The problem does *seem* to go away if I use tomcat 6. Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] AJP Errors
[ where I should be looking ] # this explains the NullPointerException http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NullPointerException.html # this looks suspect in the stacktrace $Proxy10.service(Unknown Source) Perhaps, look in the vicinity of lines in all those java files in the stacktrace for the chance of a null object coming into play. -- Van Ly -Original Message- From: Sean Carte [mailto:sean.ca...@gmail.com] Sent: Thu 6/11/2009 10:26 PM To: dspace-tech Subject: [Dspace-tech] AJP Errors Since upgrading to 1.5.2 I've noticed a lot of exceptions that seem to be related to the Apache proxy ajp connector: 2009-06-11 14:16:30,877 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[Cocoon] @ Servlet.service() for servlet Cocoon threw exception java.lang.NullPointerException at org.apache.cocoon.servletservice.HttpServletResponseBufferingWrapper.flushBufferedResponse(HttpServletResponseBufferingWrapper.java:245) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:481) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443) at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.service(Unknown Source) at org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:106) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:142) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:244) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:131) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) Does anybody know what I've got configured wrong or where I should be looking. Sean -- Sean Carte esAL Library Systems Manager +27 72 898 8775 +27 31 373 2490 fax: 0866741254 http://esal.dut.ac.za/ -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Crystal Reports - New Free Runtime and 30 Day Trial Check