Courses on Cocoon 2.2 in Europe

2008-01-03 Thread Kjetil Kjernsmo
Hi all!

We're just getting started on a free software project that will use Semantic 
Web technologies. We have opted to use Cocoon 2.2 for this project.  

However, we are all inexperienced with Cocoon, that is, I worked a bit with 
Cocoon back in 2002 before I went on to work with AxKit for a few years. 

We are very interested in a course on Cocoon 2.2 if someone could give one 
somewhere in Europe in near future. Are there any courses given nowadays?

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

(sorry about the disclaimer)

IMPORTANT NOTICE:
This message may contain confidential information. If you have received this 
e-mail in error, do not use, copy or distribute it. Do not open any 
attachments. Delete it immediately from your system and notify the sender 
promptly by e-mail that you have done so. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon Sparql Transformer ?

2008-02-26 Thread Kjetil Kjernsmo
On Tuesday 26 February 2008 13:59:55 Chabot Bernard wrote:
> Is there any Sparql Transformer to handle xml-rdf document ?

We're doing some work in that area, but the answer to that question depends on 
what you want to achieve. Do you want to take RDF/XML-data, parse it, then do 
a SPARQL SELECT query on it to get the SPARQL Result set, or a DESCRIBE or 
CONSTRUCT query to get more RDF/XML, or something completely different?


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: Cocoon Sparql Transformer ?

2008-02-26 Thread Kjetil Kjernsmo
On Tuesday 26 February 2008 15:08:05 Chabot Bernard wrote:
> In fact, I have some RDF triples in a Sesame repository.
> I want treat some of those triples in a sort of "semantic pipe" (
> http://pipes.deri.org/) with cocoon
> So I'm looking for a Sparql Cocoon Transformer both to extract triples with
> a SELECT query ...

Actually, that's a good idea, I've been thinking along those lines, but 
without coming to the conclusion that this was the way to do it. If someone 
else has done the experimentation (and DERI is one of the formost in this 
field).

> ... or to build others triples tith a CONSTRUCT query ...
> ... to be able to send this result to a XSLT transformer for exemple ...
> ... and then produce some Web Page

Yup, it would be a nice thing to have. We haven't done it, though. I would be 
interested in hearing more about it if it comes to existence, and it is not 
unthinkable that we will do it and release it at some point, but not 
yet... :-) (We're working on a Semantic Web project for libraries in Norway, 
based on Cocoon and SPARQL).

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: Cocoon, JX Temaplte and UTF-8

2008-02-27 Thread Kjetil Kjernsmo
On Wednesday 27 February 2008 21:21:09 Martin Heiden wrote:
> MHA> It's vital that the UTF-8 encoding is kept, and Java String doesn't
> MHA> support that.
>
> AFAIK Java Strings are UTF-8 too. If you deal with different
> character sets, you've got to convert the data when constructing or
> outputting a string. Java assumes the platform standard encoding, if
> you don't specify another one.
>
> Did you try:
>
> byteArrayOutputStream.toString("UTF-8")?

Magnus is my colleague, sitting just beside me, and I'm not sure, but I think 
he did just that. The funny thing is that it works well on my Linux box, but 
not on his Windows box. I think he did investigate the standard encoding too, 
are there other possible points of failure that might be windows-specific?

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: Cocoon 2.2: Accessing resources (images, css)

2008-03-26 Thread Kjetil Kjernsmo
On Wednesday 26 March 2008 12:11:15 [EMAIL PROTECTED] wrote:
> The easy answer is always use absolute URLs (which start with a slash):
> 

That won't work very well, since a development environment may not have the 
same root URL as a production environment.

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: Cocoon 2.2: Accessing resources (images, css)

2008-03-26 Thread Kjetil Kjernsmo
On Wednesday 26 March 2008 14:26:34 Patrick Heiden wrote:
> Vadim Gritsenko wrote:
> > And downside is polluted cache and proxies.

Yeah, and the general evilness of URI Aliasing: 
http://www.w3.org/TR/webarch/#uri-aliases

> > It's much better to just parameterize XSLT with absolute context path,  
> > or with relative path to the context root. Better yet is to move  
> > static resources out to httpd server.

Is the way of doing that in 2.1 still valid for 2.2? We found only 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/ContextPathModule.html

> Well, that is right, but what should one do inside development-environment
> where there is no such httpd?

Come to think of it, is it possible, or rather, is it easy, to get the context 
into the hostname part of the URL rather than the path? That could 
potentially ease many of these problems.

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]



Getting the request query parameters in the XML

2008-03-27 Thread Kjetil Kjernsmo
All,

I need to access the query parameters from a GET request in my XSLT, and I 
have thought of several ways to do this, but all seems cumbersome, so I'm 
supposing I've lost something trivial.

What would have been neat is something ol' AxKit's QueryParam could be done:
http://search.cpan.org/~nachbaur/AxKit-XSP-QueryParam-0.02/lib/AxKit/XSP/QueryParam.pm#
i.e., just say in the JX that I want all query parameters, and there they are.

If there is no way to do that, I could do something like it in a controller we 
allready have. We allready do stuff like
bizData.put("result-list", queryResult);
res.sendPage("xml/sparql-result", bizData);
and it would be OK if I could just dump the query parameters here, but it 
seems there is no other way than build the XML manually by looping over the 
queryparameters, which again seems unnecessarily cumbersome.

What am I missing here?

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: Getting the request query parameters in the XML

2008-03-27 Thread Kjetil Kjernsmo
On Thursday 27 March 2008 15:40:39 Reinhard Poetz wrote:
> You could use JXTemplate here:
>
>   
>     ${p}=${cocoon.request.getParameter(p)}
>   

Ah, thanks, I think that's the nearest to what I was looking for, even though 
Luca's solution was shorter to write.

I modified it to
  
  

  ${v}

  

which seems to do what I want.

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]



Setting a pipeline for true XHTML

2008-05-20 Thread Kjetil Kjernsmo
All,

I much prefer to work with XHTML, and do so sending application/xhtml+xml, but 
when sending to browsers, certain clients fail. 

So, I should send proper XHTML to clients that supports it, and dumb it down 
to HTML and use text/html to clients that don't. Cocoon seems ideally suited 
to do this.

The dumbing down is probably easy enough, AFAICS, this stylesheet will do the 
trick: http://www.stylusstudio.com/xsllist/24/post10360.html

Now, I just need to append this to the pipeline, but only for the clients that 
doesn't support application/xhtml+xml. So, my question is, how do I do that? 

I tried to google for this, since it is a pain that almost everybody has, but 
it was hard to come up with proper keywords, so I didn't find anything...


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: Setting a pipeline for true XHTML

2008-05-21 Thread Kjetil Kjernsmo
On Tuesday 20 May 2008 19:54:11 David Legg wrote:
> If you're interested, there is a very good classic article [1] of the
> reasons why using XHTML is considered harmful.


Yup, I know hixie both personally and technically (we worked together at 
Opera), and I think all his arguments are invalid, and frameworks like Cocoon 
prove it. In modern web frameworks, it is trivial to serialize to different 
formats, and while there are subtle differences, they are trivially resolved 
with a few lines of XSLT and a simple pipeline. I know that Cocoon can do it 
too, but not quite how yet.  :-) Hixie was never exposed to a proper 
framework, so he is of the faulty impression that these things are hard, thus 
the statement "Steps 1 to 5 have been seen by every single person I have 
spoken to who has switched to using the XHTML MIME type."

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: Setting a pipeline for true XHTML

2008-05-21 Thread Kjetil Kjernsmo
On Tuesday 20 May 2008 19:49:27 Askild Aaberg Hofsøy Olsen wrote:
> If you already know the list of "dumb" browsers, the BrowserSelector[*]
> should do the trick.
> Add a  statement for the browsers that need text/html, and
> use the refered xsl an the html-serializer.

OK! I found that 2.2 has it, but no documentation...? Anybody have a more 
elaborate example for 2.2?


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: Exception in thread "Store cocoon-ehcache Spool Thread" java.lang.NullPointerException

2008-05-22 Thread Kjetil Kjernsmo
On Thursday 22 May 2008 10:05:41 Magnus Haraldsen Amundsen wrote:
> We've got a Cocoon 2.2 webapp using the Cocoon Authentication 1.0 block
> to authenticate users. A short period of time after logging in we
> sometimes get a Exception in thread "Store cocoon-ehcache Spool Thread"
> java.lang.NullPointerException.

Just to add that this is RC2, not the latest release. :-)

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]



[2.2] Configuring LocaleAction

2008-05-22 Thread Kjetil Kjernsmo
Hi there!

I need to get to the user's language, partly based on a request parameter, 
partly the Accept-Languages HTTP header. LocaleAction is not documented in 
2.2, but looking into the code, it seems like it can do this. Correct?

Now, I want to stuff this into a parameter interface-language that I have 
allready coded in many places. I have e.g. this:

  

  
  

  

But since all pages are localised, this parameter should be sent to everything 
in the sitemap. 

Is there an easy way to do this, so that I can set it in just one place? 

if not, do I need to put

   
 
   
 
into every map:match I have? If so, would I need to code the above example 
like this:

 
   
 


  


  
  

  

?

BTW, there are lots of XML errors in the 2.1 docs for 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]



Re: [2.2] Configuring LocaleAction

2008-05-26 Thread Kjetil Kjernsmo
All,

My longest example for LocaleAction worked. Also, it seems like LocaleAction 
works well, but I don't quite understand all aspects of configuring it. I 
have it working for the situation where I call a function, but not where I 
call and XSLT transform.

The simplest possible would be something like:
  

  
  


  
  

  

I've tried moving around where the map:act element is, but it always crashes 
with a java.lang.UnsupportedOperationException. 

How is this supposed to be done?


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: Setting a pipeline for true XHTML

2008-05-27 Thread Kjetil Kjernsmo
On Tuesday 20 May 2008 19:49:27 Askild Aaberg Hofsøy Olsen wrote:
> If you already know the list of "dumb" browsers, the BrowserSelector[*]
> should do the trick.
> Add a  statement for the browsers that need text/html, and
> use the refered xsl an the html-serializer.

Just to clarify this, I intend to use the HTTP Accept header. Browsers that 
reliably do this send application/xhtml+xml in the Accept header. 

Does this imply the use of the RegexpHeaderSelector or is there a better 
suited selector? 

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]



LocaleAction to preserve settings

2008-05-28 Thread Kjetil Kjernsmo
All,

I'm struggling with LocaleAction. I've set it up, and so far, using the 
default and Accept-Languages through use-locale works well. 

Now, I'd like to provide the user with a simple way (i.e. simpler than setting 
browser settings, people don't tend to use it, unfortunately). 

The application is RESTful, so I was hoping to keep it that way and avoid 
cookies. Thus, store-in-request looked like the right thing. I was hoping 
using this was as simple as adding ?locale=no to some URIs to have it set, 
and then LocaleAction would take over and ensure it would be appended to all 
internal links or the page, but it was apparently not the intention. 

Am I overlooking something obvious here, is there a way to do this easily?

So, I tried setting   true, thus abandoning 
the REST design goal. A session seems to be created now, I get a session 
cookie, even though I didn't really ask for that. Also, I see that even 
though I manage to get one request to see the new locale I give it, the next 
request does not retain this information. So, apparently, the session cookie 
set has no influence on the locale set by the request. 

My code correctly uses the locale, so the problem here is only that the locale 
is not retained across requests. 

How can I use Cocoon to do 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]



Get the SVN revision number into the sitemap on 2.2

2008-07-04 Thread Kjetil Kjernsmo
All,

We're in a system test phase, and it would be useful for the testers to know 
which Subversion revision they are testing. Thus, I'd like to get this into 
the XSLT as a variable, which is easy if the sitemap can get hold of it 
somehow. 

So, I figured maven could get the revision number somehow at build time, but I 
couldn't find any concrete way of doing it. Is there a way?


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: Get the SVN revision number into the sitemap on 2.2

2008-07-04 Thread Kjetil Kjernsmo
On Friday 04 July 2008 13:27:32 Bertrand Delacretaz wrote:
> <[EMAIL PROTECTED]> wrote:
> > ...So, I figured maven could get the revision number somehow at build
> > time, but I couldn't find any concrete way of doing it. Is there a
> > way?...
>
> The maven buildnumber plugin does this, see
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Ah, great, cool! But how do I communicate the ${buildNumber} to the sitemap, 
then? 

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: Get the SVN revision number into the sitemap on 2.2

2008-07-07 Thread Kjetil Kjernsmo
On Saturday 05 July 2008 21:17:57 Grzegorz Kossakowski wrote:
> Anyway, you can easily create a simple XML file in your resources directory
> containing ${buildNumber}. Then you need to enable filtering for that
> resource as shown here:
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Ah, OK. That sounds feasible indeed. 


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]



Problems with ContextListener

2008-07-09 Thread Kjetil Kjernsmo
nfig.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.hasNextBinding(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.hasNextBinding(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.hasNextBinding(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.hasNextBinding(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.createInternalResourcesMemoryIndex(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]



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]



Get the URL of the originating client into XSLT

2008-07-11 Thread Kjetil Kjernsmo
Hi all,

I've been trying to figure out how to get the URL of the originating client, 
i.e. the URL that the end user has in his address bar when he gets the 
response. I want to have access to this URL in my XSLT, preferably through a 
param variable. I've been experimenting a bit, but I cannot find a single 
simple solution to this problem, I usually end up with the URL of the 
stylesheet, or a variation thereof, or some more speculative concatenation of 
things like hostname, port, and so on, which is fragile against changing 
conditions. 

Is there a simple way to do 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]



Rewriting EncodeURLTransformer to encode the locale parameter

2008-07-31 Thread Kjetil Kjernsmo
Hi all,

I've been struggling a few days with adding a locale parameter to the local 
URLs in pages I serve. It should be really simple, just add the parameter to 
all hrefs that points to a resource within the site. I've tried to do it with 
XSLT through various approaches, but all unsuccessful, it is either very 
fragile string matching, too fragile to be useful, or too complicated, in 
that it breaks my architecture. 

However, I see that the EncodeURLTransformer is doing almost the same thing. 
It add a session-id parameter if it is doesn't exist, mine should add a 
locale parameter if it doesn't exist. 

EncodeURLTransformer are 400 lines of code though, some of which I don't 
understand, so I'm hesitant to hack based on it. For one thing, I don't 
understand if it restricts the URL rewriting to URLs that point to resources 
on the same site, and if so, how it does it.

So, I was wondering if someone has time to hold my hand while doing this? 
Also, this might be useful for the Cocoon project, as I think it is really 
important for LocaleAction to be useful, it's request feature is really quite 
useless without such a transformer. 

Please?


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: Rewriting EncodeURLTransformer to encode the locale parameter

2008-08-01 Thread Kjetil Kjernsmo
On Thursday 31 July 2008 20:11:10 Robin Wyles wrote:
> Maybe you could use the LinkRewriterTransformer [1] to achieve this  
> along with your own custom InputModule to add the locale parameter.

Oh, OK. Actually, I looked at that but realised that I didn't quite understand 
what it did, I thought it more did something like mod_rewrite, i.e. rewrite 
incoming URLs.

> That said, the LinkRewriterTransformer looks up the InputModule based  
> on the url scheme, so you would have to use a custom scheme (e.g.  
> locale:) for all the 'schemeless' (e.g. "/path/to/some/page.html")  
> links you wanted rewritten.

H, OK. I'll look into it, but I think I found an XSLT way that sort of 
works too.

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]



Redirecting with 303

2008-08-07 Thread Kjetil Kjernsmo
Hi all!

I want to do a 303 redirect, to satisfy the httpRange-14 TAG finding, with its 
popular form http://www.w3.org/TR/cooluris/#r303gendocument

I was hoping something like this might work:

  


  

where the URI needs to be the whole thing, including the hostname and all. I 
guess that the latter can be fixed some way by concatenating some parameters. 

And I hope the 303 would be fixed by the 
but it doesn't, it does a 302. 

Is there a simple way to achieve this? 

If no simple way, what would the difficult way be?

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: Redirecting with 303

2008-08-11 Thread Kjetil Kjernsmo
On Friday 08 August 2008 16:23:43 Jasha Joachimsthal wrote:
> After a map:redirect-to the pipeline ends its execution. The
> map:serialized will not be called. Setting status-code="303" on the
> map:redirect-to is not (yet) supported.

OK!

> Doesn't a 302 do what you want to achieve?

Nope. The semantics of 302 is very different, with 302, both URIs deal with 
the same resource, it is just that they are temporarily the same. What we are 
doing here is dealing with URIs for things that are not network-retrievable, 
such as people. In this context, a 303 means "you cannot retrieve a person 
through the network, but here is a description of the person". This is a key 
concept in the Semantic Web.

So, what would the simplest way to do this with Cocoon be?

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: Deployment of cocoon 2.2 application on production tomcat 5.5 fails

2008-09-03 Thread Kjetil Kjernsmo
On Wednesday 03 September 2008 10:52:00 Enrico Ballarin Dolfin wrote:
> log4j:WARN Please initialize the log4j system properly.
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Sep 2, 2008 5:17:52 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/getReceivers-1.0.0] startup failed due to previous  
> errors

Actually, I had exactly the same messages for some time. After much agony, 
gnashing of teeth and tearing of hair, the problem just vanished. We never 
understood neither why it happened, nor why it disappeared. And thus, I 
cannot tell for sure it is the same problem, but...

> - I'm missing something in the production tomcat 5.5 environment ?
>    I thougth that everythng needed should be contained in the WAR  
> package...

Yup.

> - Do I need to install maven also in the production environment, to  
> be able to run there the WAR application on tomcat ?

No, I'm pretty sure that's not the case.

>
> I have also tried to increase the debug level to get more information  
> about the "listenerStart" problem in the log file, but without success.

Yeah, the warn there is about log4j, which was the source of most of the 
problems. A logging infrastructure should never require configuration to get 
basic debugging information, that's the whole idea of logging, but this one 
does. You have to initialise it properly, but I never found any really good 
documentation how you would do it.

One of the things that we did was to move the config around, responding to 
conflicting advices from different parties, but now it half-works, and I've 
placed it in 
src/main/webapp/WEB-INF/log4j.xml

I cannot tell for sure, but I think log4j was responsible for the problems we 
had. It still throws an exception so that I have to restart tomcat every time 
I deploy, but I can live with that. 

I guess this isn't encouraging nor very helpful, but since you haven't any 
other answers that did the trick, that's my wild guess, have a log4j config 
that you move around in likely and unlikely locations.

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]



Tomcat loops indefinitely

2008-09-04 Thread Kjetil Kjernsmo
Hi all!

I'm struggling with a really weird problem. I have a Cocoon 2.2 application 
that runs on Tomcat 5.5.25-5ubuntu1 and Java 1.5.0. My (semi-)production 
system, my test system and my development system are Ubuntu 8.04 boxes, and 
they differ very little, with the exception that the production environment 
is a Vmware slice, the others are not. The application runs fine on the 
development and test systems, but it is not at all working on the production 
box.

What's happening is that I deploy the war, restart the server. I then GET a 
URL on the system, apparently, any URL will do. The application starts doing 
its thing. In my log, I see messages like 
http-8180-Processor230 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher 
connected to Joseki.
http-8180-Processor229 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher 
connected to Joseki.
http-8180-Processor228 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher 
connected to Joseki.

which my application emits. The problem is that the application has apparently 
gone into a loop, as this appears to be different threads. Eventually, it 
runs out of threads, and comes to a halt:

Sep 4, 2008 3:36:52 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads 
(250) or check the servlet status

I've tried to debug this in several ways: My gut reaction was that the client 
was actually throwing tons of requests at it. I falsified this by 
telnet 127.0.0.1 8180
GET http://127.0.0.1:8180/detektor/

(/detektor/ is the application context). This reproduced the problem and 
telnet would not follow a redirect. So, it is entirely a server side problem.

Then, I installed the "standard" sample.war application, and that told 
me "hello world", so I guess Tomcat is not entirely to blame either, though I 
suspect of somewhat foul play for some reason... :-) 

I've rebuilt and deleted the application many times, stopped and restarted the 
server many times, generally performed the rituals that needs doing now and 
then.  I've also copied over the war that works on my development box (I tend 
to package on the production box from a SVN tag). 

So, it can't be the client. It can't be just Tomcat, it can't be just my 
application... It doesn't sound very likely that it is VMware. I suspect that 
I have made some deity rather upset since I'm actually a Perl guy ;-)

Does anybody have any idea where I can start?

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: Send status code with error handler

2008-10-17 Thread Kjetil Kjernsmo
On Friday 17 October 2008 11:50:36 Jasha Joachimsthal wrote:
> > This works great, except for one thing: I still want to send
> > the 500 HTTP code, even though the user gets a pretty page.
> > I've tried to set the status-code attribute on both
> > map:serialize elements, but it doesn't work.
> >
> > How is this supposed to work?
>
> 

As I said, I tried that first, and it didn't work. 

Any other ideas?


Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: [EMAIL PROTECTED]   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  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]



Send status code with error handler

2008-10-17 Thread Kjetil Kjernsmo
Hi all!

I have a very simple exception handler in my sitemap:


  

  


so that the user will never see a stacktrace.

We have a servlet service listening in a different sitemap, the setup looks 
like this:

  


  

   
  

This works great, except for one thing: I still want to send the 500 HTTP 
code, even though the user gets a pretty page. I've tried to set the 
status-code attribute on both map:serialize elements, but it doesn't work. 

How is this supposed to work?

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: [EMAIL PROTECTED]   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  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: Send status code with error handler

2008-10-17 Thread Kjetil Kjernsmo
On Friday 17 October 2008 12:58:03 Jasha Joachimsthal wrote:
> Strange, we've been using this for a long time. Can you see in
> map:components which class the html serializer is. Which Cocoon version
> are you using?

It is org.apache.cocoon.serialization.HTMLSerializer, and this is Cocoon 
2.2.0.


Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: [EMAIL PROTECTED]   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  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]



Sending different responses based on some conditions

2008-10-29 Thread Kjetil Kjernsmo
Hi all,

I have a StatelessAppleController which does some simple checking on the data 
it receives. In most cases, it should sendPage, but there are a few rare 
situations where it should redirect or return a 502 HTTP code. 

This part of the code looks like this:

  if ("explain".equalsIgnoreCase(operation) || 
req.getCocoonRequest().getParameters().size() == 0) {
  // We only need to retrieve the explain record, which is best done 
by a redirect to the server
  res.redirectTo(query);
  }

  DOMParser parser = new DOMParser();

  try {
  parser.parse(query);
  } catch (Exception e) {
  //logger.fatal("SRUClient received an invalid response from the 
server.");
  res.sendStatus(502);
  e.printStackTrace();
  }

but I get
java.lang.IllegalStateException: It's not possible to call redirectTo() and 
sendStatus() at the same response object.

Surely, this must be possible to achieve, I guess I just did it the wrong way. 
How can I do this?


Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: [EMAIL PROTECTED]   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  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]



{language} sitemap parameters

2009-01-26 Thread Kjetil Kjernsmo
All,

I've been using LocaleAction for a while, but it hasn't worked very well, and 
now I needed to resolve some bugs in the application in the language 
handling. Basically, all I want to do is turn off the feature that looks in 
the Accept-Language header (since it doesn't do a full language negotiation 
process as specified in HTTP) and set the default locale to Norwegian 
language. This should be trivially configureable, but I have never gotten it 
working, so eventually, I had to realise that I simply don't understand how 
LocaleAction works. 

So, I started to read the code, and I forked it to add more debug information 
and to hardcode our desired locale whenever possible. What I found was that 
the configuration method of the code does run OK and all the correct 
parameters are set. 

In my sitemap, which can be found at 
https://submarine.computas.com/sublima/trunk/blocks/sublima-app/src/main/resources/COB-INF/sitemap.xmap
I have sections like 

  

  




  

  

So, I set the interface-language parameter to {language}. So the critical 
issue here is how {language} is set. LocaleAction seems to be the right way 
to do this.

With my slightly modified LocaleAction this is what I see in my logs when it 
is enabled:

http-8180-Processor25 DEBUG action.LocaleAction - will set values in request
http-8180-Processor25 DEBUG action.LocaleAction - won't create session
http-8180-Processor25 DEBUG action.LocaleAction - won't set values in session
http-8180-Processor25 DEBUG action.LocaleAction - won't set values in cookies
http-8180-Processor25 DEBUG action.LocaleAction - Locale attribute name is 
locale
http-8180-Processor25 DEBUG action.LocaleAction - won't use request locale
http-8180-Processor25 DEBUG action.LocaleAction - default locale no_NO
http-8180-Processor25 TRACE controller.SearchController - SearchController: 
Language from sitemap is en

So, everything looks fine up to the final line. The final line stems from the 
controller, which uses the interface-language parameter. I have confirmed 
that this language is set to the Accept-Languages header, regardless of the 
default locale and regardless of that I have explicitly disabled it.

Furthermore, the interesting thing is what is not in the logs: There's nothing 
from the act method, so it appears that act is actually never run. 

However, if I send a locale query parameter, things look much better, e.g. if 
I send ?locale=sv,  I get:

http-8180-Processor25 DEBUG action.LocaleAction - won't use request locale
http-8180-Processor25 DEBUG action.LocaleAction - default locale no_NO
http-8180-Processor25 TRACE controller.SearchController - SearchController: 
Language from sitemap is sv

i.e. it works as intended. 

So, the problem is only that the Accept-Languages header override the default 
even if disabled, it works nicely if a query parameter is used.

Now, I did another interesting exercise: I commented out the LocaleAction 
matcher.

The log now confirms that LocaleAction is not run at all. To my great 
surprise, it has exactly the same behaviour as before. I.e. query params 
work, but the Accept-Languages header is still what is used. 

I haven't seen this behaviour documented anywhere. I thought that LocaleAction 
was required to even use the {languages} variable, but now it appears that 
there is something in Cocoon core that does this. 

So, is there any way I can disable Accept-Languages and hard-code a default 
that is used whenever a locale query parameter is not given?



Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: kjetil.kjern...@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 
1001


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: war update doesn't update COB-INF

2009-02-09 Thread Kjetil Kjernsmo
On Saturday 07 February 2009 17:36:53 Mathias Reem wrote:
> Is anybody having similar problems?

Yeah. I used a lot of time trying to figure it out, but gave up. 

Sometimes I have to stop the server, delete the deployed application 
alltogether, copy in the new war and start the server. This appears 
completely random, and yeah, it sucks.

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: kjetil.kjern...@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 
1001


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org