I had similar problem. I fixed it by adding:
<filter>
<filter-name>springRequestContextFilter</filter-name>
<filter-class>org.springframework.web.filter.RequestContextFilter</
filter-class>
</filter>
<filter-mapping>
<filter-name>springRequestContextFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
to my application web.xml file.
Barbara
On 9 Jul, 2008, at 4:01 pm, Kjetil Kjernsmo wrote:
Hi all,
We have a Cocoon 2.2-application that is deployed on Tomcat 5.5.
Right now, it
is doing a lot of processing, mainly indexing of strings with
Lucene, at
startup. This is taking a lot of time, but needs doing in some form
or the
other. The problem now is that it appears to do everything it
should be
doing, but then just sits there.
This is implemented with a ContextListener, and while this is not
directly
Cocoon code, I assume that it is something people here use
frequently, so I
figured it is worth a try. The current calling code is this:
https://submarine.computas.com/sublima/trunk/blocks/sublima-app/src/
main/java/com/computas/sublima/app/listener/ContextListener.java
I've inserted a log message after
indexService.createInternalResourcesMemoryIndex();
too, and I see this message. So, everything indicates our code has
finished
running.
But then, it just stops. I get no message that indicates the server
has
started. Now, I cannot connect, but previously I was just getting a
404. I've
tried to restart all relevant servers (including the database),
remove the
deployed directory, removed the war. Rebuilt the war oh-so-many
times. But
I'm really not getting anywhere. And there are no further errors.
There is
zero CPU usage, and the amount of RAM consumed doesn't increase.
Also, this only happens on my Ubuntu 8.04 development environment,
not on
Windows. I haven't tried to deploy it on the Linux production box.
When I first start the server, I get an exception, but this happens
in the
first second, and then things seem to run OK, so I have sort of
discounted it
as irrelevant, but perhaps it is relevant, so for completeness, I
include it:
ContainerBackgroundProcessor[StandardEngine[Catalina]] ERROR
[/sublima-webapp-1.0-SNAPSHOT] - Exception sending context
initialized event
to listener instance of class
com.computas.sublima.app.listener.ContextListener
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at EDU.oswego.cs.dl.util.concurrent.BoundedBuffer.take
(Unknown Source)
at com.hp.hpl.jena.graph.query.BufferPipe.fetch
(BufferPipe.java:43)
at com.hp.hpl.jena.graph.query.BufferPipe.hasNext
(BufferPipe.java:69)
at
com.hp.hpl.jena.graph.query.SimpleQueryEngine$1.hasNext
(SimpleQueryEngine.java:59)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH
$StagePattern.hasNextBinding(QueryIterBlockTriplesQH.java:97)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBin
ding(QueryIterRepeatApply.java:59)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterDefaulting.hasNextBind
ing(QueryIterDefaulting.java:45)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBin
ding(QueryIterRepeatApply.java:59)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert.hasNextBinding
(QueryIterConvert.java:47)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBin
ding(QueryIteratorWrapper.java:29)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.ResultSetStream.hasNext
(ResultSetStream.java:62)
at
com.computas.sublima.app.service.IndexService.getFreetextToIndex
(IndexService.java:366)
at
com.computas.sublima.app.service.IndexService.createInternalResourcesM
emoryIndex(IndexService.java:62)
at
com.computas.sublima.app.listener.ContextListener.contextInitialized
(ContextListener.java:31)
at
org.apache.catalina.core.StandardContext.listenerStart
(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check
(HostConfig.java:1206)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:293)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.backgroundProcess
(ContainerBase.java:1306)
at
org.apache.catalina.core.ContainerBase
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at
org.apache.catalina.core.ContainerBase
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at
org.apache.catalina.core.ContainerBase
$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Thread.java:595)
com.hp.hpl.jena.graph.query.BufferPipe$BoundedBufferTakeException:
rethrew:
java.lang.InterruptedException
at com.hp.hpl.jena.graph.query.BufferPipe.fetch
(BufferPipe.java:44)
at com.hp.hpl.jena.graph.query.BufferPipe.hasNext
(BufferPipe.java:69)
at
com.hp.hpl.jena.graph.query.SimpleQueryEngine$1.hasNext
(SimpleQueryEngine.java:59)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH
$StagePattern.hasNextBinding(QueryIterBlockTriplesQH.java:97)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBin
ding(QueryIterRepeatApply.java:59)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterDefaulting.hasNextBind
ing(QueryIterDefaulting.java:45)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBin
ding(QueryIterRepeatApply.java:59)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert.hasNextBinding
(QueryIterConvert.java:47)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBin
ding(QueryIteratorWrapper.java:29)
at
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext
(QueryIteratorBase.java:69)
at
com.hp.hpl.jena.sparql.engine.ResultSetStream.hasNext
(ResultSetStream.java:62)
at
com.computas.sublima.app.service.IndexService.getFreetextToIndex
(IndexService.java:366)
at
com.computas.sublima.app.service.IndexService.createInternalResourcesM
emoryIndex(IndexService.java:62)
at
com.computas.sublima.app.listener.ContextListener.contextInitialized
(ContextListener.java:31)
at
org.apache.catalina.core.StandardContext.listenerStart
(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check
(HostConfig.java:1206)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:293)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.backgroundProcess
(ContainerBase.java:1306)
at
org.apache.catalina.core.ContainerBase
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at
org.apache.catalina.core.ContainerBase
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at
org.apache.catalina.core.ContainerBase
$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at EDU.oswego.cs.dl.util.concurrent.BoundedBuffer.take
(Unknown Source)
at com.hp.hpl.jena.graph.query.BufferPipe.fetch
(BufferPipe.java:43)
... 34 more
What directions should I go to resolve this?
Kind regards
Kjetil Kjernsmo
--
Senior Knowledge Engineer
Direct: +47 6783 1136 | Mobile: +47 986 48 234
Email: [EMAIL PROTECTED]
Web: http://www.computas.com/
| SHARE YOUR KNOWLEDGE |
Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47
6783 1000 |
Fax:+47 6783 1001
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]