RE: Preloading Parts of Cocoon (Interpreted Sitemap)

2003-02-05 Thread Julian Klein
Geoff,

 Robert, the sitemap engine can be configured in
 cocoon.xconf and there have
 been two different implementations to date --
 interpreted and compiled.
 Interpreted is newer and seems to have general
 consensus that it's
 faster/better

I think you are right about the interpreted sitemap,
but still I am not sure how one tackles this issue. 
As you said:

it may be possible to trigger the reload when the
servlet is
reloaded rather
than the request coming in.  I've been meaning to dig
back into
CocoonServlet
for a different issue, so I'll take a look into that
as well.

I would love this to happen, but am not sure how to
implement such a config.  Would this be done with
cocoon.xconf?  Perhaps this load time could be
minimized via management of the caching setup?  I know
it is only the first request, but when that one user
gets the first request, they will be highly
discouraged (esp in a demo situation).

-Julian


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re:Presloading Parts of Cocoon

2003-01-29 Thread Julian Klein
http://xml.apache.org/cocoon/faq/faq-sitemap.html

-see the first FAQ on this page

-Julian


In reply to:


Greetings. Whenever I change a page in my sitemap and
redeploy, I notice that the first time I hit a page it
takes cocoon a few seconds to start the page. Is there
any way we can get cocoon to preprocess this stuff at
deployment time so that the users only see instant
results ?
 
-- Robert


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: AW: Action Not Adding Values to Sitemap or is it?

2003-01-25 Thread Julian Klein
Marco,


Thanks a lot, I must have overlooked that in the
how-to on the website.  I was wondering if you know
whether or not the new version of Xindice (1.1 Beta)
works over the pseudo protocol.  I have tried, but to
no avail.  The new version must run in Tomcat's
servlet container.  I want to upgrade b/c Xindice does
not reliably send all the documents in a given
collection to the sitemap pipeline.  It seems to throw
a DocumentCache error (I attached the stack trace in
case you may recognize this error).  Also, I attached
my final sitemap snippet b/c it was slightly different
then what you sent (the sitemap parameter reference
for the xindice url/collection had to move back one
map).  Anyway, I really appreciate the help.

-Julian

final-sitemap-snippet
   map:match pattern=view/**
map:act type=task
  map:parameter name=method
value=doAddSubjectsAndMyCategories/
  map:parameter name=task-subject-node
value=Global/
  map:match type=request-parameter
pattern=xpath
map:generate
src=xmldb:xindice://localhost:4080/db/tasks/{../../1}#{1}/
map:transform src=stylesheets/task.xsl

map:parameter name=users value={../subjNodes}/
map:parameter name=categories
value={../categories}/
/map:transform
map:serialize type=html/
 /map:match
map:generate
src=xmldb:xindice://localhost:4080/db/tasks/{1}/
map:transform src=stylesheets/task.xsl/
map:serialize type=html/
/map:act
   /map:match
/final-sitemap-snippet

**Xindice 1.0 DocumentCache
Error

stacktrace
java.lang.NullPointerException
at
org.apache.xindice.core.DocumentCache$CacheKey.equals(DocumentCache.java:171)
at
java.util.WeakHashMap.eq(WeakHashMap.java:248)
at
java.util.WeakHashMap.get(WeakHashMap.java:340)
at
org.apache.xindice.core.DocumentCache.getDocument(DocumentCache.java:79)
at
org.apache.xindice.core.Collection.getDocument(Collection.java:711)
at
org.apache.xindice.core.query.XPathQueryResolver$ResultSet.prepareNextNode(XPathQueryResolver.java:1003)
at
org.apache.xindice.core.query.XPathQueryResolver$ResultSet.getNextNode(XPathQueryResolver.java:1042)
at
org.apache.xindice.client.corba.CollectionServant.queryWrapper(CollectionServant.java:385)
at
org.apache.xindice.client.corba.CollectionServant.queryCollection(CollectionServant.java:425)
at
org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.java:332)
at
org.openorb.adapter.poa.POA.dispatch(POA.java:975)
at
org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:750)
at
org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
at
org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
at
org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
at
org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)
/stacktrace

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: A documents repository......

2003-01-25 Thread Julian Klein
Antonio,

Although my install seems a bit buggy, it may be worth
your while to look into Slide and the slide webapp
that is in the cocoon scratchpad.  I am sure it will
be up to par shortly.  Besides, using different tools
(e.g. POI), you could convert all your files into XML
and then transform them as you please.

-Julian

--- Antonio Gallardo
[EMAIL PROTECTED] wrote:
 Yesterday, I was asked to find a solution for
 document repository and as a
 Open Source fan I went to sourceforge.net and found
 Owl Intranet Engine:
 http://owl.sourceforge.net/
 
 But as a Cocoon addict I thinked it is a fine
 opportunity to test the
 directory generator and a FileWriter interface that
 currently is in
 Cocoon.
 
 Can someone point me if this can be really easily
 done in Cocoon?
 
 Best Regards,
 
 Antonio Gallardo
 
 
 
 

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


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Cocoon is complex, but worth it! Some Answers to your dilemma

2003-01-25 Thread Julian Klein
First off I made some suggestions to your
questions/problems below...skip ahead if you don't
want my commentary on Cocoon.

Well it seems to me that when I started with Cocoon, I
was hoping to jump right on in.  Unfortunately, it was
not that easy, but not b/c of Cocoon, rather my
limited knowledge of xpath and xsl functions.  Anyway,
I tackled these problems by studying the applications
samples packaged with cocoon and reading the
documentation.  It may be discouraging, but anything
worthwhile can't be done overnight, right?  Anyway, as
I work more and more with Cocoon, I am amazed by the
genius of it's architecture.  Cocoon is certainly a
tribute to Open Source and the greatness of those out
there working on and contributing to it.  Stick to it
and you will be repaid.




It seems if you have a servlet working, you must be
looking to upgrade.  So you should not be looking for
an overnight solution, which is easy with all the
options out there.  Overall, the advice I can give is
you must consider:

1)Are you going to use Cocoon for more than just a
replacement for your servlet?

2)What technologies do you want to use: XSP,XSLT,etc.

3)You do not need to build from the CVS source, you
can just download a pre-built version from the site
(nightly or major release)
http://xml.apache.org/dist/cocoon/

4)You may not need to create a new transformer, but
perhaps just make an action.
http://xml.apache.org/cocoon/userdocs/concepts/actions.html

5)You prob need a minimal sitemap(see below) to match
your url requests to your data.  No need to worry
about the endless options now.  The beauty is you will
learn them as you go and find that Cocoon has almost
everything you could ever need.

6)Look over the user's guide and study some of the
sitemaps packages with Cocoon.

I hope this makes some sense. If not, I 'm sorry, but
I feel as if Cocoon is a great way to go if you want
to do more than just replace your serlvlet.  With all
the users, developers, wiki, documentation, and
mailing lists...you will almost always get an answer. 
Whether or not it makes sense ;-) !  I attached a
basic sitemap to get you going...

-Julian

?xml version=1.0?
map:sitemap
xmlns:map=http://apache.org/cocoon/sitemap/1.0;

!-- === Components
=== --

 map:components
  map:generators default=file/

  map:transformers default=xslt/

  map:readers default=resource/

  map:serializers default=html
   map:serializer logger=sitemap.serializer.xml
mime-type=text/xml name=xml
  
src=org.apache.cocoon.serialization.XMLSerializer/

   map:serializer logger=sitemap.serializer.html
mime-type=text/html name=html 
   pool-grow=4 pool-max=32
pool-min=4 
  
src=org.apache.cocoon.serialization.HTMLSerializer
buffer-size1024/buffer-size
   /map:serializer
  /map:serializers

  map:matchers default=wildcard/

  map:selectors default=browser/

 /map:components


!-- === Pipelines
= --
 map:pipelines
  map:pipeline
   map:match pattern=**
   !-- = Dynamic Content
--
   map:match pattern=viewHTML/**
map:generate src=myXMLDataSource/
map:transform src=myXSLSheet/
map:serialize type=html/
   /map:match
   map:match pattern=viewXML/**
map:generate src=myXMLDataSource/
map:transform src=myXSLSheet/
map:serialize type=xml/
   /map:match
   !-- = Static Content
=--
   map:match pattern=viewStaticHTML
 map:read src=static.html/
   /map:match

   map:match pattern=**images/*.png
map:read src=images/{2}.png
mime-type=image/png/
   /map:match

   map:match pattern=**images/*.jpg
map:read src=images/{2}.jpg
mime-type=image/jpeg/
   /map:match

   map:handle-errors
map:transform
src=context://task/stylesheets/error2html.xsl/
map:serialize status-code=500/
   /map:handle-errors

  /map:pipeline
/map:pipelines
/map:sitemap

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: AW: AW: Action Not Adding Values to Sitemap or is it?

2003-01-25 Thread Julian Klein
MArco,

Thanks, but it is not the action.  Before I even put
it in, I had this problem.  So it seems to be the
pseudo-protocol of Cocoon or the Xindice db.  I will
look into it more, but for now I will stick to what I
have going...a working app!  Thanks again.

-Julian

--- Marco Rolappe [EMAIL PROTECTED] wrote:
 hi julian,
 
 sorry, I haven't worked with XIndice yet. but from
 looking at the XIndice
 sources the NPE seems to be caused by the key being
 null. as already
 mentionend, I'm not into XIndice so I don't know
 where that key is being
 specified (created by your action, maybe?), but
 perhaps this info helps you
 finding the problem.
 
 
 -Ursprungliche Nachricht-
 Von:

[EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]Im
 Auftrag von Julian Klein
 Gesendet: Samstag, 25. Januar 2003 19:08
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: Action Not Adding Values to Sitemap
 or is it?
 
 
 Marco,
 
 
 Thanks a lot, I must have overlooked that in the
 how-to on the website.  I was wondering if you know
 whether or not the new version of Xindice (1.1 Beta)
 works over the pseudo protocol.  I have tried, but
 to
 no avail.  The new version must run in Tomcat's
 servlet container.  I want to upgrade b/c Xindice
 does
 not reliably send all the documents in a given
 collection to the sitemap pipeline.  It seems to
 throw
 a DocumentCache error (I attached the stack trace in
 case you may recognize this error).  Also, I
 attached
 my final sitemap snippet b/c it was slightly
 different
 then what you sent (the sitemap parameter reference
 for the xindice url/collection had to move back one
 map).  Anyway, I really appreciate the help.
 
 -Julian
 
 final-sitemap-snippet
map:match pattern=view/**
   map:act type=task
 map:parameter name=method
 value=doAddSubjectsAndMyCategories/
 map:parameter name=task-subject-node
 value=Global/
   map:match type=request-parameter
 pattern=xpath
 map:generate

src=xmldb:xindice://localhost:4080/db/tasks/{../../1}#{1}/
 map:transform
 src=stylesheets/task.xsl
 
   map:parameter name=users
 value={../subjNodes}/
   map:parameter name=categories
 value={../categories}/
   /map:transform
 map:serialize type=html/
  /map:match
 map:generate
 src=xmldb:xindice://localhost:4080/db/tasks/{1}/
 map:transform src=stylesheets/task.xsl/
 map:serialize type=html/
 /map:act
/map:match
 /final-sitemap-snippet
 
 **Xindice 1.0 DocumentCache
 Error
 
 stacktrace
 java.lang.NullPointerException
 at

org.apache.xindice.core.DocumentCache$CacheKey.equals(DocumentCache.java:171
 )
 at
 java.util.WeakHashMap.eq(WeakHashMap.java:248)
 at
 java.util.WeakHashMap.get(WeakHashMap.java:340)
 at

org.apache.xindice.core.DocumentCache.getDocument(DocumentCache.java:79)
 at

org.apache.xindice.core.Collection.getDocument(Collection.java:711)
 at

org.apache.xindice.core.query.XPathQueryResolver$ResultSet.prepareNextNode(X
 PathQueryResolver.java:1003)
 at

org.apache.xindice.core.query.XPathQueryResolver$ResultSet.getNextNode(XPath
 QueryResolver.java:1042)
 at

org.apache.xindice.client.corba.CollectionServant.queryWrapper(CollectionSer
 vant.java:385)
 at

org.apache.xindice.client.corba.CollectionServant.queryCollection(Collection
 Servant.java:425)
 at

org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.java:
 332)
 at
 org.openorb.adapter.poa.POA.dispatch(POA.java:975)
 at

org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:75
 0)
 at

org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
 at

org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:14
 10)
 at

org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
 at

org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557
 )
 /stacktrace
 
 =
 Live simply so others may simply live.
 
 -Ghandi
 
 Pluralitas non est ponenda sine neccesitate.
 Entities should not be multiplied unneccesarily
 
 -William of Occam
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 

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

-
 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

Re: WYSIWYG XSLT Editors?

2003-01-25 Thread Julian Klein
Ckeck out these XML editors:

http://xopus.org/index.jsp?menu=info

http://bitfluxeditor.org/

-Julian

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Xindice1.1b and Pseudo-Protocol: HELP NEEDED

2003-01-25 Thread Julian Klein
HI,

I am trying to implement the psuedo-protocol for
xindice 1.1 beta in cocoon cvs version.  My previous
code however no longer works to access the database. 
I used to use xindice 1.0 as a standalone, but now I
have it mounted in Tomcat as a webapp running on port
8080.  I am running on red hat 8.0, tomcat 4.1.12,
cocoon cvs version, and java 1.4.  My code is as
below...thanks in advance,

Julian


cocoon.xconf-snippet
!-- xmldb pseudo protocol --
component-instance
class=org.apache.cocoon.components.source.impl.SourceFactoryWrapper
name=xmldb
source-factory
class=org.apache.cocoon.components.source.XMLDBSourceFactory
!-- Xindice driver --
driver
class=org.apache.xindice.client.xmldb.DatabaseImpl
type=xindice/
!-- Add here other XML:DB compliant
databases drivers --
/source-factory
/component-instance
/cocoon.xconf-snippet

sitemap-snippet
   map:match pattern=view/**
 map:match type=request-parameter
pattern=xpath
map:generate
src=xmldb:xindice://localhost:8080/db/tasks/{../1}#{1}/
map:transform
src=stylesheets/task.xsl/
map:serialize type=html/
 /map:match
   /map:match
/sitemap-snippet

STACK TRACE THROWN WHEN ACCESSING THIS URL 
ATTACHED***

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

Could not read resource xmldb:xindice://localhost:8080/db/

More precisely:

org.apache.cocoon.ProcessingException: Could not read resource 
xmldb:xindice://localhost:8080/db/: org.xmldb.api.base.XMLDBException: A connection to 
the Database instance 'db' could not be created. Error: Server returned HTTP response 
code: 500 for URL: http://localhost:8080/db_bootstrap.ior 



Original exception : org.xmldb.api.base.XMLDBException: A connection to the Database 
instance 'db' could not be created. Error: Server returned HTTP response code: 500 for 
URL: http://localhost:8080/db_bootstrap.ior
at org.apache.xindice.client.xmldb.DatabaseImpl.init(DatabaseImpl.java:386)
at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:205)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
at 
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.java:265)
at org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:214)
at 
org.apache.cocoon.components.source.impl.CocoonToAvalonSource.toSAX(CocoonToAvalonSource.java:149)
at 
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:532)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:513)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at 

Action Not Adding Values to Sitemap or is it?

2003-01-24 Thread Julian Klein
Hi All,

I am trying to add a paramater to the sitemap through
an Action extended from the MultiAction Class, but
when I try to access it in my sitemap, it is empty.  I
am certain there should be a value coming out of the
Action b/c it prints the value to my log from inside
the action.  Any help would be greatly appreciated.  I
attached my Action code and sitemap code snippets.  I
am running Cocoon 2.1 dev and java 1.4 on Red Hat 8.0.
 The reason for the action is to get collection names
from the Xindice database, which translate to client's
of the webapp.

Thanks,
Julian

sitemap-snippet
   map:match pattern=view/**
map:act type=task
  map:parameter name=method
value=doAddSubjectsAndMyCategories/
  map:parameter name=task-subject-node
value=Global/
/map:act
 map:match type=request-parameter
pattern=xpath
map:generate
src=xmldb:xindice://localhost:4080/db/wEMR/tasks/{../1}#{1}/
map:transform src=stylesheets/task.xsl

map:parameter name=users value={subjNodes}/
map:parameter name=categories
value={categories}/
/map:transform
map:serialize type=html/
 /map:match
map:generate
src=xmldb:xindice://localhost:4080/db/wEMR/tasks/{1}/
map:transform src=stylesheets/task.xsl/
map:serialize type=html/
   /map:match
/sitemap-snippet
*
CocoonMultiActionCode
  /*Places all the user's into a sitemap parameter.*/
public Map doAddSubjNodes (Redirector redirector,
   SourceResolver resolver,
   Map objectModel,
   String src,
   Parameters parameters) throws
Exception {

   
Request request =
ObjectModelHelper.getRequest(objectModel);
Map sitemapParams = new HashMap();

//determine dest of task to be created
String subjectNode =
parameters.getParameter(task-subject-node,
 
request.getParameter(task-subject-node));

TaskManager taskManager = new TaskManager();
   
//get all available subjectNode's
String[] subjNodes =
taskManager.getSubjectNodes();
String subjStr = ;
//add all user's to sitemap
for(int x=0;xsubjNodes.length;x++) {
subjStr = subjStr + / + subjNodes[x];
}
System.out.println(subjNodes=+subjStr);
sitemapParams.put(subjNodes, subjStr);

return sitemapParams;
  }
/CocoonMultiActionCode

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Xindice1.1b and Pseudo-Protocol: HELP NEEDED

2003-01-23 Thread Julian Klein
HI,

I am trying to implement the psuedo-protocol for
xindice 1.1 beta in cocoon cvs version.  My previous
code however no longer works to access the database. 
I used to use xindice 1.0 as a standalone, but now I
have it mounted in Tomcat as a webapp running on port
8080.  I am running on red hat 8.0, tomcat 4.1.12,
cocoon cvs version, and java 1.4.  My code is as
below...thanks in advance,

Julian


cocoon.xconf-snippet
!-- xmldb pseudo protocol --
component-instance
class=org.apache.cocoon.components.source.impl.SourceFactoryWrapper
name=xmldb
source-factory
class=org.apache.cocoon.components.source.XMLDBSourceFactory
!-- Xindice driver --
driver
class=org.apache.xindice.client.xmldb.DatabaseImpl
type=xindice/
!-- Add here other XML:DB compliant
databases drivers --
/source-factory
/component-instance
/cocoon

sitemap-snippet
   map:match pattern=view/**
 map:match type=request-parameter
pattern=xpath
map:generate
src=xmldb:xindice://localhost:8080/db/tasks/{../1}#{1}/
map:transform
src=stylesheets/task.xsl/
map:serialize type=html/
 /map:match
   /map:match
/sitemap-snippet

STACK TRACE THROWN WHEN ACCESSING THIS URL
ATTACHED***

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

Could not read resource xmldb:xindice://localhost:8080/db/

More precisely:

org.apache.cocoon.ProcessingException: Could not read resource 
xmldb:xindice://localhost:8080/db/: org.xmldb.api.base.XMLDBException: A connection to 
the Database instance 'db' could not be created. Error: Server returned HTTP response 
code: 500 for URL: http://localhost:8080/db_bootstrap.ior 



Original exception : org.xmldb.api.base.XMLDBException: A connection to the Database 
instance 'db' could not be created. Error: Server returned HTTP response code: 500 for 
URL: http://localhost:8080/db_bootstrap.ior
at org.apache.xindice.client.xmldb.DatabaseImpl.init(DatabaseImpl.java:386)
at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:205)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
at 
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.java:265)
at org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:214)
at 
org.apache.cocoon.components.source.impl.CocoonToAvalonSource.toSAX(CocoonToAvalonSource.java:149)
at 
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:532)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:513)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 

Re: AW: newbie: creating a cocoon action and Sleep Deprivation

2003-01-21 Thread Julian Klein
Hi,

  Thanks for the help yesterday, but after getting
some sleep I found my problem.  It is at its basic
level attributed to my stupidity, but it was that I
had the class in the wrong package when I placed it
into the cocoon jar.  Thanks for the help guys, sorry
for wasting your time.

all apologies,
-Julian

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Julian Klein
Hi all,

I am currently trying to create my own action for
cocoon 2.  Moreover, I am trying to use the
AbstractMultiAction class so I can call methods on the
action via a http post form field.  Unfortunately I
have been able to compile it, but get a Class Not
Found Exception when I try access the URL that points
to the sitemap with the mounted action.  I am not
trying to use the action, I just have the action
mounted.  Below is my java action code and I have
attached my stack trace/sitemap as one text file.  Any
help would be appreciated.  I am using red hat 8.0,
j2sdk 1.4, and a cocoon 2.x build from about a month
ago.

Thanks in Advance


*ACTION JAVA CODE**
/*
 * TaskAction.java
 *
 * Created on January 14, 2003, 12:16 PM
 */
package org.apache.cocoon.acting;
/**
 *
 * @author  Julian
 */ 

import org.apache.avalon.framework.context.Context;
import
org.apache.avalon.framework.context.ContextException;
import
org.apache.avalon.framework.context.Contextualizable;
import
org.apache.avalon.framework.parameters.ParameterException;
import
org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.thread.ThreadSafe;

import org.apache.cocoon.Constants;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.acting.AbstractMultiAction;
import
org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;

import java.util.Map;

import com.ethidium.wEMR.classes.Task;
import com.ethidium.wEMR.classes.TaskManager;
import com.ethidium.wEMR.classes.TaskGroup;

public class TaskAction extends AbstractMultiAction
implements ThreadSafe {

  public static final String TASK_ACTION =
task-action;
  public static final String SUBJECT_NODE =
task-subject-node;
  public static final String CATEGORY =
task-category;
  public static final String DEST_CATEGORY =
task-dest-category;
  public static final String DEST_SUBJECT_NODE =
task-dest-subject-node;
  public static final String TASK_TITLE =
task-title;
  public static final String TASK_DESCRIPTION =
task-description;
  public static final String TASK_DUE_DATE =
task-due-date;
  public static final String TASK_PRIORITY =
task-priority;
  public static final String TASK_STATUS =
task-status;
  public static final String TASK_URI = task-uri;
  public static final String TASK_OWNER =
task-owner;
  
  /*public Map act (Redirector redirector, 
  SourceResolver resolver, 
  Map objectModel, 
  String source, 
  Parameters params) {
Map sitemapParams = new HashMap();
sitemapParams.put(world, hello);

Request request =
ObjectModelHelper.getRequest(objectModel);

action = request.getAttribute(action);

return sitemapParams;
  }*/
  
  public Map doCreateTask(Redirector redirector,
   SourceResolver resolver,
   Map objectModel,
   String src,
   Parameters parameters) throws
Exception {
   
Request request =
ObjectModelHelper.getRequest(objectModel);

//determine dest of task to be created
String subjectNode =
parameters.getParameter(SUBJECT_NODE,
 
request.getParameter(SUBJECT_NODE));
String category =
parameters.getParameter(CATEGORY,
 
request.getParameter(CATEGORY));
//get task values
String taskTitle =
parameters.getParameter(TASK_TITLE,
 
request.getParameter(TASK_TITLE));
String taskDescription =
parameters.getParameter(TASK_DESCRIPTION,
 
request.getParameter(TASK_DESCRIPTION));
String taskDueDate =
parameters.getParameter(TASK_DUE_DATE,
 
request.getParameter(TASK_DUE_DATE));
String taskPriority =
parameters.getParameter(TASK_PRIORITY,
 
request.getParameter(TASK_PRIORITY));
String taskStatus =
parameters.getParameter(TASK_STATUS,
 
request.getParameter(TASK_STATUS));
String taskURI =
parameters.getParameter(TASK_URI,
 
request.getParameter(TASK_URI));
String taskOwner =
parameters.getParameter(TASK_OWNER,
 
request.getParameter(TASK_OWNER));

getLogger().info(create task +taskTitle+ at
+subjectNode+/+category);

TaskManager taskManager = new TaskManager();
Task task = new Task(taskOwner, taskTitle,
taskDescription, taskURI, taskDueDate, taskPriority,
taskStatus);
taskManager.storeTask(subjectNode, category,
task);

return EMPTY_MAP;
  }
}

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Re: newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Julian Klein
Hey Marcus,
 Yeah I'm sorry, but I had fixed that (I jsut sent the
old sitemap DUH).  You see I tried it in the original
package of com.ethidium, but then thought my class
should be in the cocoon dev jar so I moved it to
org.apache.cocoon.acting and changed the sitemap.
Unfortunately neither worked eventhough the sitemap
matched the location of the class.  I know it is
accessing the class since it is looking for the
AbstractMultiAction class (it's superclass).  I am
running also the slide sample from the scratchpad
which has actions that use the AbstractMultiAction
class as well...but they works fine.  I am boggled
about this...could it have something to do with Thread
safety from the Avalon framework or some funny
classloading issue?

Thanks Again,
Julian


--- Marcus Crafter
[EMAIL PROTECTED] wrote:
 Hi Julian,
 
   Not sure what the problem is exactly, but your
 source file has
   your action in the package
 'org.apache.cocoon.acting', whereas your
   sitemap.xmap file says that is under
 'com.ethidium.cocoon.action'.
   
   Perhaps that's causing things to go a bit pear
 shaped. Hope that
   helps.
   
   Cheers,
   
   Marcus
   
 On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian
 Klein wrote:
  
  *ACTION JAVA
 CODE**
  /*
   * TaskAction.java
   *
   * Created on January 14, 2003, 12:16 PM
   */
  package org.apache.cocoon.acting;
 
 ...snip/...
 
 

***SITEMAP
 
 ...snip/...
 
map:actions
 map:action name=eTask
 src=com.ethidium.cocoon.action.TaskAction/
 
 -- 
 .
  ,,$,  Marcus Crafter
 ;$'  ':Computer Systems Engineer
 $: :   ManageSoft GmbH
  $   o_)$$$:   82-84 Mainzer Landstrasse
  ;$,_/\ :'   60327 Frankfurt Germany
' /( 
\_'
   .
 :
 

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


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: AW: newbie: creating a cocoon action using AbstractMultiAction

2003-01-20 Thread Julian Klein
Thanks, but the class is in the cocoon-2.1-dev.jar
under $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib.  I
tried moving it into $TOMCAT_HOME/common/lib, but
after that Cocoon would not even start...so based on
that result I did not put it on the machine's
CLASSPATH and just let TOMCAT load the classes from
the jar.

Thanks,
Julian

--- Marco Rolappe [EMAIL PROTECTED] wrote:
 the stacktrace says that the AbstractMultiAction
 can't be found.
 
 make sure that this class is in the classpath (it
 should be in the cocoon
 JAR, but you better check that out).
 
 -Ursprungliche Nachricht-
 Von:

[EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]Im
 Auftrag von Julian Klein
 Gesendet: Montag, 20. Januar 2003 22:27
 An: [EMAIL PROTECTED]
 Betreff: Re: newbie: creating a cocoon action using
 AbstractMultiAction
 
 
 Hey Marcus,
  Yeah I'm sorry, but I had fixed that (I jsut sent
 the
 old sitemap DUH).  You see I tried it in the
 original
 package of com.ethidium, but then thought my class
 should be in the cocoon dev jar so I moved it to
 org.apache.cocoon.acting and changed the sitemap.
 Unfortunately neither worked eventhough the sitemap
 matched the location of the class.  I know it is
 accessing the class since it is looking for the
 AbstractMultiAction class (it's superclass).  I am
 running also the slide sample from the scratchpad
 which has actions that use the AbstractMultiAction
 class as well...but they works fine.  I am boggled
 about this...could it have something to do with
 Thread
 safety from the Avalon framework or some funny
 classloading issue?
 
 Thanks Again,
 Julian
 
 
 --- Marcus Crafter
 [EMAIL PROTECTED] wrote:
  Hi Julian,
 
  Not sure what the problem is exactly, but your
  source file has
  your action in the package
  'org.apache.cocoon.acting', whereas your
  sitemap.xmap file says that is under
  'com.ethidium.cocoon.action'.
 
  Perhaps that's causing things to go a bit pear
  shaped. Hope that
  helps.
 
  Cheers,
 
  Marcus
 
  On Mon, Jan 20, 2003 at 01:06:09PM -0800, Julian
  Klein wrote:
  
   *ACTION JAVA
  CODE**
   /*
* TaskAction.java
*
* Created on January 14, 2003, 12:16 PM
*/
   package org.apache.cocoon.acting;
 
  ...snip/...
 
  
 

***SITEMAP**
 **
 
  ...snip/...
 
 map:actions
  map:action name=eTask
  src=com.ethidium.cocoon.action.TaskAction/
 
  --
  .
   ,,$,  Marcus Crafter
  ;$'  ':Computer Systems Engineer
  $: :   ManageSoft GmbH
   $   o_)$$$:   82-84 Mainzer Landstrasse
   ;$,_/\ :'   60327 Frankfurt Germany
 ' /( 
 \_'
.
  :
 
 

-
  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]
 
 
 
 =
 Live simply so others may simply live.
 
 -Ghandi
 
 Pluralitas non est ponenda sine neccesitate.
 Entities should not be multiplied unneccesarily
 
 -William of Occam
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
 http://mailplus.yahoo.com
 

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

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


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Sync. Coccon with Slide - NEED HELP!

2003-01-09 Thread Julian Klein
Hi All,

  As I have looked into the cocoon slide
implementation, it seems as if the createCollection,
delete, and upload actions are mostly cocoon classes
(xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting.SourceUpload
and
xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting.MultiUpload
Action) and not based on any of the slide content
stores, etc.
I was wondering if anyone has managed to get
versioning or any of the other features of the coccon
impl of slide working.  It seems that most of the
actions are temporary (active until TC is restarted). 

question
Do I need to alter these actions to notify the slide
store of the correct action to take or are there some
other classes I need to alter?
/question

Finally, I have resetBeforeStarting to false in the
slide conf files.  All these are recent builds with
java 1.4 and Red Hat Linux 8.0.


Thanks in Advance.
Julian

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Slide/Cocoon Domain Sharing

2003-01-08 Thread Julian Klein
Hi all,

I am currently trying to integrate slide content with
the publishing content of Cocoon.  I have the built
the latest and greatest cocoon version on Red Hat 8,
java 1.4.  I was wondering if anyone has been able to
get the slide webapp and the webdav servlet to run all
in the same servlet container with cocoon.  I have set
up the slide-webdavservlet.jar in
$TC/webapps/cocoon/WEB-INF/lib
and added the servlet config to the web.xml in
$TC/webapps/cocoon/WEB-INF/.  I originally used the
slide-servlet and web.xml that came with cocoon
scratchpad, but then switched to my
slide-webdavservlet.jar from a recent slide 2.x build.
 I have tried changing settings in cocoon.xconf and
the web.xml, but I can never get both to  share the
same org.apache.slide.Domain instance...therefore they
do not run in unison...or at all.  Any suggestions
would be greatly appreciated.

-Julian

=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Slide Cocoon Impl **XML_PARSER_JARS**

2002-12-20 Thread Julian Klein
Martin,

Thanks, worked like a charm.  Unfortunately, I now
find out that although I have mulipart uploads
working, versioning does not work via HTTP.  Have you
found a workaround to this?   I have not implemented
the webdav-servlet yet, but I am sure that works just
the same via WebDav.  It seems as though the
slide.xconf (formerly Domain.xml) makes no difference
via HTTP. I will hack at this and see what I can do.

*one more thing*
Stephan Michels points out in the read me file of
$CATALINA_HOME/webapps/cocoon/samples/slide/README 

quote
Some things must be fixed:

* The base directory for the content stores should be
set, but don't know how.
/quote
,but I was able to set this properly.  Did you have
this problem?  I will contact Stephan and let him know
as well.

Thanks again,
Julian

--- Martin Holz [EMAIL PROTECTED] wrote:
 I had the same problem. I do not really understand
 it, but moving
 xerces, xalan and xmlapis.jar to
 $CATALINA_HOME/common/endorsed 
 solved it. I suspect the reason is, that a
 incompatible version of Trax 
 is shipped with java 1.4

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Slide Cocoon Impl **XML_PARSER_JARS**

2002-12-20 Thread Julian Klein
Martin,

--- Martin Holz [EMAIL PROTECTED] wrote:
 Julian Klein [EMAIL PROTECTED] writes:
 
  Thanks, worked like a charm.  Unfortunately, I now
  find out that although I have mulipart uploads
  working, versioning does not work via HTTP.  Have
 you
  found a workaround to this?   I have not
 implemented
  the webdav-servlet yet, but I am sure that works
 just
  the same via WebDav.  It seems as though the
  slide.xconf (formerly Domain.xml) makes no
 difference
  via HTTP. I will hack at this and see what I can
 do.
 
 Have a look, how the Domain is initialized. It might
 cause
 difficulties, if you run Cocoon and the
 Webdav-Servlet
 in parallel.  Stephan an me will work this out next
 year. Also Authentication is not properly forwarded.
 

 I am not running the webdav-servlet and the
slide-sample at the same time (in parallel).  I am
just running cocoon with the slide sample and this is
not versioning. I have set my slide.xconf to
version=true and resetBeforeStarting=false...as well
as the delta-V parameters.  Despite this the
versioning is not working.  I used the same conf from
my standalone slide  webapp (which is no longer
running since I am working on the cocoon slide
sample).

  *one more thing*
  Stephan Michels points out in the read me file of
  $CATALINA_HOME/webapps/cocoon/samples/slide/README
 
  
  quote
  Some things must be fixed:
  
  * The base directory for the content stores should
 be
  set, but don't know how.
  /quote
 
 
  ,but I was able to set this properly.  Did you
 have
  this problem?  I will contact Stephan and let him
 know
  as well.
 
 I guess Stephan meant, which directory the files
 stores use.
 I think, the best way to do this, is to use a
 absolute path in
 slide.xconf.   

I had set the filestores root path absolutely. it
works great. thanks.

*other issues*
I wrote Stephan to let him know of some issues I have
with the current implementation.  I would like to
improve the download and lock capabilities since they
do not seem to work via the web interface.  Moreover,
the create new collection action does not work either.
 The new collection is created, but the collection is
not persisted.  I am not a cocoon nor slide expert,
but would be more than happy to attempt these patches.
 let me know what you think about this and about the
status of versioning.

Frohe Weihnachten fur dich auch,
Julian

  
 Merry Christmas
 Martin
 
 

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


=
Live simply so others may simply live.
 
-Ghandi
 
Pluralitas non est ponenda sine neccesitate.
Entities should not be multiplied unneccesarily
 
-William of Occam

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Slide Cocoon Impl

2002-12-19 Thread Julian Klein
Hi all,

I am trying to implement slide with cocoon via the
slide source and slide source factory available in the
scrathpad.  I built cocoon with jdk1.4, tomcat 4.1.12,
and the cocoon cvs snapshot from 12/19/2002.  I got it
to run at first, but when i fooled around a bit with
the samples, cocoon would not start up again.  so i
did  a clean install and i get the following error:

error
org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
/error

  at first i thought this to be the xalan jar i am
using, but still upgraded this in my classpath (to
xalan 2.4.1 as well as xerces 2.1.0)resulting in
no change.  I am running on Redhat 8.0.  any comments
as to why i may be receiving the stack strace below
would be greatly appreciated!

-Julian

stack
Cocoon 2 - Internal server error

type fatal

message Failed to execute pipeline.

description org.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/documents/index.html

path-info

documents/index.html

stack-trace

org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:519)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:192)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at