Re: Problems with ContextListener

2008-07-10 Thread Kjetil Kjernsmo
On Wednesday 09 July 2008 17:15:13 Barbara Slupik wrote:
 I had similar problem. I fixed it by adding:

Wow, that worked! Thanks a lot! But I don't understand what it does, could 
anyone explain...?

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]



Re: Problems with ContextListener

2008-07-10 Thread Barbara Slupik
I don't really know. It looks like some requests have to be forwarded  
to cocoon. I had this problem with tomcat authentication. It was just  
stopping like yours.  I found the solution here: http://www.mail- 
archive.com/[EMAIL PROTECTED]/msg43933.html


Barbara

On 10 Jul, 2008, at 10:05 am, Kjetil Kjernsmo wrote:


On Wednesday 09 July 2008 17:15:13 Barbara Slupik wrote:

I had similar problem. I fixed it by adding:


Wow, that worked! Thanks a lot! But I don't understand what it  
does, could

anyone explain...?

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]





Re: Problems with ContextListener

2008-07-09 Thread Barbara Slupik

I had similar problem. I fixed it by adding:

filter
filter-namespringRequestContextFilter/filter-name
		filter-classorg.springframework.web.filter.RequestContextFilter/ 
filter-class

/filter

filter-mapping
filter-namespringRequestContextFilter/filter-name
url-pattern/*/url-pattern
dispatcherFORWARD/dispatcher
dispatcherREQUEST/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