RE: authentication framework and bea weblogic

2002-08-21 Thread Carsten Ziegeler

This error is caused by an older parser in your classpath - you have
to make BEA use the Xerces version shipped with Cocoon.

Carsten

Carsten Ziegeler Chief Architect Open Source Group, SN AG
--
 Cocoon Consulting, Training and Projects
--
mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
http://ziegeler.bei.t-online.de


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 6:37 PM
 To: [EMAIL PROTECTED]
 Subject: authentication framework and bea weblogic


 Hello,

after trying out the Authentication Framework on Tomcat and everything
 worked fine,
we now deployed on BEA Weblogic 6.1 SP1 on Solaris.
There, we unfortunately get the following error message, where we
 couldn´t find out
where the error is coming from.
We think that we get the error when the application tries to access the
 xml which gets
written into the session context (either authentication or temporary
 context) by the
authentication resource.
Maybe someone else has had problems with this and is able to give us a
 hint
where to start.

Thanx again for any help,

miHam


   java.lang.NullPointerException
  at
 org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XML
 Util.java:871)

  at
 org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XML
 Util.java:873)

  at
 org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XML
 Util.java:873)

  at
 org.apache.cocoon.webapps.session.xml.XMLUtil.getNodeListFromPath(
 XMLUtil.java:838)

  at
 org.apache.cocoon.webapps.session.context.SimpleSessionContext.get
 XML(SimpleSessionContext.java:173)

  at
 org.apache.cocoon.webapps.authentication.context.SessionContextImp
 l.addParametersFromAuthenticationXML(SessionContextImpl.java:225)

  at
 org.apache.cocoon.webapps.authentication.context.SessionContextImp
 l.createParameters(SessionContextImpl.java:829)

  at
 org.apache.cocoon.webapps.authentication.components.Authentication
 Manager.createParameters(AuthenticationManager.java:1457)

  at
 org.apache.cocoon.webapps.authentication.components.Authentication
 Manager.createParameters(AuthenticationManager.java:1400)

  at
 org.apache.cocoon.webapps.authentication.components.Authentication
 Manager.createMap(AuthenticationManager.java:1422)

  at
 org.apache.cocoon.webapps.authentication.acting.AuthAction.act(Aut
 hAction.java:124)

  at
 org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.inv
 oke(ActTypeNode.java:127)

  at
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
 gNode.invokeNodes(AbstractParentProcessingNode.java:83)

  at
 org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
 Node.invoke(PreparableMatchNode.java:157)

  at
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
 gNode.invokeNodes(AbstractParentProcessingNode.java:107)

  at
 org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in
 voke(PipelineNode.java:158)

  at
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
 gNode.invokeNodes(AbstractParentProcessingNode.java:107)

  at
 org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i
 nvoke(PipelinesNode.java:152)

  at
 org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
 reeProcessor.java:327)

  at
 org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
 reeProcessor.java:309)

  at org.apache.cocoon.Cocoon.process(Cocoon.java:587)
  at
 org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStu
 bImpl.java:265)

  at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStu
 bImpl.java:200)

  at
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAp
 pServletContext.java:2456)

  at
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletReques
 tImpl.java:2039)

  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)






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




Xindice - Pipeline to db

2002-08-21 Thread praktikant

Hi,
now I can use Xindice in Cocoon.
I've had a wrong idea from using Xindice.

Thanks Roman! :o)

But I haven't found something about a pipeline to Xindice.
How can I build a pipeline to Xindice?
How can I write back to Xindice?
How to use XUpdate?
Has someone simple examples for it?

My db is on .../xindice/db/dvd
The resources named
mi.xml
mi2.xml
mib.xml
mib2.xml

   map:pipeline 
map:match pattern=dvd/mi2 type=wildcard 
 map:generate src=xmldb/xpath/dvd/mi2.xml type=serverpages/ 
 map:transform src=dvd/film.xsl type=xslt/ 
 map:serialize type=xml/ 
/map:match 
   /map:pipeline

Sorry, but no idea how to use XUpdate. :-(

I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x), Xindice 1.0, Java SDK
1.3.1_04

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




SVG trouble!

2002-08-21 Thread Raúl Wild-Spain

Hi! my name is Raul. I've recently installed Resin with Cocoon and when I
try to see an example of Cocoon based in SVG-generator it launch me the
following error (I cutpaste all):

java.lang.UnsatisfiedLinkError:
/usr/local/j2sdk1.4.0_01/jre/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file: No such file or directory
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1396)
 at java.lang.Runtime.loadLibrary0(Runtime.java:772)
 at java.lang.System.loadLibrary(System.java:832)
 at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Toolkit.loadLibraries(Toolkit.java:1397)
 at java.awt.Toolkit.clinit(Toolkit.java:1418)
 at java.awt.Color.clinit(Color.java:250)
 at org.apache.batik.transcoder.image.JPEGTranscoder.init(Unknown Source)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:296)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.cocoon.components.transcoder.ExtendableTranscoderFactory.createTr
anscoder(ExtendableTranscoderFactory.java:102)
 at
org.apache.cocoon.serialization.SVGSerializer.configure(SVGSerializer.java:1
43)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:185)
 at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLi
mitingPool.java:629)
 at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPo
ol.java:359)
 at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(Poolabl
eComponentHandler.java:186)
 at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.
java:139)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:277)
 at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
mapComponentSelector.java:101)
 at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setSerializer(A
bstractStreamPipeline.java:158)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.setSerializer(Ca
chingStreamPipeline.java:115)
 at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.setSerializer(A
bstractStreamPipeline.java:149)
 at
org.apache.cocoon.www.sitemap_xmap.matchG9051960(/var/local/www/webapps/coco
on/WEB-INF/tmp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:4810)
 at
org.apache.cocoon.www.sitemap_xmap.process(/var/local/www/webapps/cocoon/WEB
-INF/tmp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2822)
 at
org.apache.cocoon.www.sitemap_xmap.process(/var/local/www/webapps/cocoon/WEB
-INF/tmp/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2504)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
 at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
 at com.caucho.server.http.Invocation.service(Invocation.java:311)
 at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
 at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
 at java.lang.Thread.run(Thread.java:536)

My system is:
* a Linux Debian 2.4.18
* latest ResinEE (resin 2.1.2)
* Cocoon 2
* J2sdk1.4.1 and j2sdkee1.3.1

I don't know if this error is relationed with but I' ve not installed the X
server (and I don't want to install if possible)

thanks 4 your help!

Best regards,

Raúl
[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]




send redirect response from an XSP?

2002-08-21 Thread MTiffany71

 

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




How to send redirect from an XSP?

2002-08-21 Thread MTiffany71
hello all,

i'm trying to check to see if a user is in a session, and if not, redirect them to a login page...

my (rather sloppy) code so far goes like so...

?xml version="1.0" encoding="ISO-8859-1"?
xsp:page language="java"
 xmlns:session="http://apache.org/xsp/session/2.0"
 xmlns:xsp="http://apache.org/xsp"
 xmlns:xsp-request="http://apache.org/xsp/request/2.0"
 create-session="false"

xsp:logic

protected void checkUser()
{
 if(!getSession())
 { 
 //SEND REDIRECT...
 }
}

protected boolean getSession()
{
 Session session=request.getSession(false);
if(session == null)
return false;
else
return true;

}
/xsp:logic

so, anyone care to share with me the secret of sending a redirect? I've checked out the response stylesheet and that was of no help, and the action stylesheet is apparently "not for use in Generators"...

any and all help (exlcuding RTFM) welcome


Re: Dynamic XSP resource

2002-08-21 Thread Carles Canellas

I think ( for my experience) you need to have
map:match pattern=menu.xsp in another pipeline,
not in the same thar the other match pattern. the
cocoon:/ references to another pipeline in the same
sitemap, not the same pipeline.

Carles.

 --- Tuomo Lesonen [EMAIL PROTECTED] escribió:  
 
 On Tue, 20 Aug 2002, Roger I Martin PhD wrote:
 
  Just from a quick look, the map:generate src for
 menu.html has cocoon: as
  a part of it relative path; do you have such a
 path and can such an animal
  be part of a url?
 
 I use cocoon:/ protocol to tell cocoon, that
 menu.xsp in not directly
 located on my hard drive, but it's a resource in the
 current sitemap. cocoon://
 would mean the parent sitemap. Generators in Cocoon
 (including the
 serverpages generator) can use the new cocoon:
 protocol, right?
 
 -Tuomo
 
 
  --Roger
  - Original Message -
  From: Tuomo Lesonen [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, August 20, 2002 4:57 AM
  Subject: Dynamic XSP resource
 
 
   Hi all!
  
   I have an XSP page which is extended with the
 Session Transformer before
   it is used as an resource for the serverpages
 generator. Here's my
   sitemap:
  
   map:match pattern=menu.xsp
 map:generate src=docs/menu.xsp/
 map:transform type=session/
 map:serialize type=xml/
   /map:match
  
   map:match pattern=menu.html
 map:generate type=serverpages
 src=cocoon:/menu.xsp/
 map:transform
 src=stylesheets/menu-html.xsl/
 map:serialize type=html/
   /map:match
  
   If I open menu.xsp in browser, everything
 looks ok. Session Transformers
   does the job and everything. But when opening
 menu.html Cocoon gives a
   NullPointerException.
  
   Seems like a bug, not sure though.
  
   Thanks in advance,
  
   -Tuomo
  
   org.apache.cocoon.ProcessingException: Exception
 during source resolving.:
   org.apache.excalibur.source.SourceException:
 Exception during processing
   of cocoon://intranet/menu.xsp:
 org.apache.cocoon.ProcessingException:
   Failed to execute pipeline.:
 java.lang.NullPointerException
   at
  

org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:136)
   at
  
 

org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.jav
  a:161)
   at
  
 

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
  eSourcecode(ProgramGeneratorImpl.java:438)
   at
  
 

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
  ogramGeneratorImpl.java:285)
   at
  
 

org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
  .java:209)
   at
  
 

org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
  ne(AbstractProcessingPipeline.java:368)
   at
  
 

org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
 

.setupPipeline(AbstractCachingProcessingPipeline.java:297)
   at
  
 

org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
  tractProcessingPipeline.java:475)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
  alizeNode.java:142)
   at
  
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
  keNodes(AbstractParentProcessingNode.java:83)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
  e(PreparableMatchNode.java:163)
   at
  
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
  keNodes(AbstractParentProcessingNode.java:83)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
  eNode.java:155)
   at
  
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
  keNodes(AbstractParentProcessingNode.java:83)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
  e(PreparableMatchNode.java:163)
   at
  
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
  keNodes(AbstractParentProcessingNode.java:107)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
  ineNode.java:157)
   at
  
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
  keNodes(AbstractParentProcessingNode.java:107)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
  linesNode.java:155)
   at
  
 

org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
  or.java:327)
   at
  
 

org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
  or.java:309)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
  e.java:131)
   at
  
 

org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
  keNodes(AbstractParentProcessingNode.java:83)
   at
  
 

org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
  e(PreparableMatchNode.java:163)
   at
  
 


The Sitemap is null, this should never be!

2002-08-21 Thread KOZLOV Roman

Hi,
There was a thread concerning the same problem but it was blocked.
After some memory consuming work Cocoon crashes. To get it work again I
have to restart Tomcat.
Just after crash the java.exe process of Tomcat uses about 17 K of
memory.
JVM has the following setting:
CATALINA_OPTS= -Xmx256M
Amount of system memory at the crash time:
used - about 435 M
total - about 1500M
physical - 524M
My configuration is Cocoon 2.0.3,  JDK 1.4, Tomcat 4.0.4., Win NT 4.0 SP
6a.

Could, somebody help to clarify the meaning/reason of this crash and how
to avoid it. The exception is the following:
Cocoon 2 - Internal server error


type fatal
message The Sitemap is null, this should never be!
description java.lang.RuntimeException: The Sitemap is null, this should
never be!
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/
path-info
stack-trace

java.lang.RuntimeException: The Sitemap is null, this should never be!
 at org.apache.cocoon.sitemap.Handler.checkSanity(Handler.java:249)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:219)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)

 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 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
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)

 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)

 at java.lang.Thread.run(Thread.java:536)

--

Thank you in advance,
Roman


-
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: How to send redirect from an XSP?

2002-08-21 Thread Christian Haul

On 21.Aug.2002 -- 04:07 AM, [EMAIL PROTECTED] wrote:
 hello all,
 
 i'm trying to check to see if a user is in a session, and if not, redirect 
 them to a login page...

You shouldn't do it. Use an action for this. There are already a
number of actions that perform this job. Use one of them, modify one
of them, write a new one, or write an XSP action that does it.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: Dynamic XSP resource

2002-08-21 Thread Tuomo Lesonen

I tried that already, but no luck. If I remove the session:getxml tags
in the XSP file, everything works ok, which means that the path
(cocoon:/menu.xsp) is good.
This is weird!

This is what I have in the XSP file:

xsp:logic
  if(session:getxml context=authentication 
path=/authentication/data/access/==true){
xsp:content
  some-tags-here/
/xsp:content
  }
/xsp:logic

And after SessionTransformer this really becomes (I checked):

xsp:logic
  if(true==true){
xsp:content
  some-tags-here/
/xsp:content
  }
/xsp:logic

But when I use this as a source for the ServerPagesGenerator,
the NullPointerException occurs! :-(

Thanks for your answer, Carles.

-Tuomo

On Wed, 21 Aug 2002, Carles Canellas wrote:

 I think ( for my experience) you need to have
 map:match pattern=menu.xsp in another pipeline,
 not in the same thar the other match pattern. the
 cocoon:/ references to another pipeline in the same
 sitemap, not the same pipeline.

 Carles.

  --- Tuomo Lesonen [EMAIL PROTECTED] escribió: 
 
  On Tue, 20 Aug 2002, Roger I Martin PhD wrote:
 
   Just from a quick look, the map:generate src for
  menu.html has cocoon: as
   a part of it relative path; do you have such a
  path and can such an animal
   be part of a url?
 
  I use cocoon:/ protocol to tell cocoon, that
  menu.xsp in not directly
  located on my hard drive, but it's a resource in the
  current sitemap. cocoon://
  would mean the parent sitemap. Generators in Cocoon
  (including the
  serverpages generator) can use the new cocoon:
  protocol, right?
 
  -Tuomo
 
  
   --Roger
   - Original Message -
   From: Tuomo Lesonen [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, August 20, 2002 4:57 AM
   Subject: Dynamic XSP resource
  
  
Hi all!
   
I have an XSP page which is extended with the
  Session Transformer before
it is used as an resource for the serverpages
  generator. Here's my
sitemap:
   
map:match pattern=menu.xsp
  map:generate src=docs/menu.xsp/
  map:transform type=session/
  map:serialize type=xml/
/map:match
   
map:match pattern=menu.html
  map:generate type=serverpages
  src=cocoon:/menu.xsp/
  map:transform
  src=stylesheets/menu-html.xsl/
  map:serialize type=html/
/map:match
   
If I open menu.xsp in browser, everything
  looks ok. Session Transformers
does the job and everything. But when opening
  menu.html Cocoon gives a
NullPointerException.
   
Seems like a bug, not sure though.
   
Thanks in advance,
   
-Tuomo
   
org.apache.cocoon.ProcessingException: Exception
  during source resolving.:
org.apache.excalibur.source.SourceException:
  Exception during processing
of cocoon://intranet/menu.xsp:
  org.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
  java.lang.NullPointerException
at
   
 
 org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:136)
at
   
  
 
 org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.jav
   a:161)
at
   
  
 
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
   eSourcecode(ProgramGeneratorImpl.java:438)
at
   
  
 
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
   ogramGeneratorImpl.java:285)
at
   
  
 
 org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
   .java:209)
at
   
  
 
 org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
   ne(AbstractProcessingPipeline.java:368)
at
   
  
 
 org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
  
 
 .setupPipeline(AbstractCachingProcessingPipeline.java:297)
at
   
  
 
 org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
   tractProcessingPipeline.java:475)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
   alizeNode.java:142)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
   keNodes(AbstractParentProcessingNode.java:83)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
   e(PreparableMatchNode.java:163)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
   keNodes(AbstractParentProcessingNode.java:83)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
   eNode.java:155)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
   keNodes(AbstractParentProcessingNode.java:83)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
   e(PreparableMatchNode.java:163)
at
   
  
 
 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
   keNodes(AbstractParentProcessingNode.java:107)
at
   
  
 
 

Websphere Datasources Cocoon

2002-08-21 Thread Michael Zehrer

Hi List,

does anybody know if I can use datasources created in my Websphere
(3.5.5) container with Cocoon?

Michael

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




catalog-demo

2002-08-21 Thread Raúl Wild-Spain

Hi! I've installed latest Cocoon with Resin-ee-2.1.2 and java 1.4 and I'm
trying to see the Cocoon included exemple catalog-demo. It launch me the
following error:

---
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Exception in creating Transform Handler

More precisely:

org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler: com.caucho.xml.XmlParseException:
file:/var/local/www/webapps/cocoon/docs/samples/catalog/style.xsl:24:
`frac14;' is an unknown entity. XML predefines only `lt;', `amp;',
`gt;', `apos;' and `quot;'. All other entities must be defined in an
lt;!ENTITY definition in the DTD.
-

 is it normal? what should I do?

regards,

Raúl Cruz
[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]




container-encoding

2002-08-21 Thread Amir Rosen

Hi,

What is 'container-encoding' initialization parameter used for ?
What does it affect ?

Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
 

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




AW: Xindice - Pipeline to db

2002-08-21 Thread praktikant

how can I write for example this

http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2
')
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
2') ]

into the sitemap.xmap?

thanks

-Ursprüngliche Nachricht-
Von:praktikant [mailto:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 21. August 2002 08:52
An: [EMAIL PROTECTED]
Betreff:Xindice - Pipeline to db

Hi,
now I can use Xindice in Cocoon.
I've had a wrong idea from using Xindice.

Thanks Roman! :o)

But I haven't found something about a pipeline to Xindice.
How can I build a pipeline to Xindice?
How can I write back to Xindice?
How to use XUpdate?
Has someone simple examples for it?

My db is on .../xindice/db/dvd
The resources named
mi.xml
mi2.xml
mib.xml
mib2.xml

   map:pipeline 
map:match pattern=dvd/mi2 type=wildcard 
 map:generate src=xmldb/xpath/dvd/mi2.xml
type=serverpages/ 
 map:transform src=dvd/film.xsl type=xslt/ 
 map:serialize type=xml/ 
/map:match 
   /map:pipeline

Sorry, but no idea how to use XUpdate. :-(

I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x), Xindice 1.0,
Java SDK
1.3.1_04


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




HTTP Status 503 - Servlet Cocoon2 is currently unavailable

2002-08-21 Thread Murray Cumming

I'm trying to install cocoon2 in the most standard way possible, with
standalone Tomcat 4.0.4 (I've given up on Apache integration for now).
I'm _trying_ to  follow these instructions:
http://xml.apache.org/cocoon/installing/index.html

When accessing the :8080/cocoon page I see an error page with this text:
HTTP Status 503 - Servlet Cocoon2 is currently unavailable

When I delete the unpacked /var/tomcat4/webapps/cocoon directory,
restart tomcat and try to access the page again, I see an error in my
/var/tomcat4/logs/localhost_log.2002-08-21.txt file. Here is the
relevant part Any ideas?

2002-08-21 09:55:51 StandardHost[localhost]: Installing web application
at context path /cocoon from URL
jar:file:/var/tomcat4/webapps/cocoon.war!/
2002-08-21 09:55:56 WebappLoader[/cocoon]: Deploying class repositories
to work directory /var/tomcat4/work/Standalone/localhost/cocoon
2002-08-21 09:55:56 StandardManager[/cocoon]: Seeding random number
generator class java.security.SecureRandom
2002-08-21 09:55:56 StandardManager[/cocoon]: Seeding of random number
generator has been completed
2002-08-21 09:55:57 ContextConfig[/cocoon]: Added certificates -
request attribute Valve
2002-08-21 09:55:57 StandardWrapper[/cocoon:Cocoon2]: Marking servlet
Cocoon2 as unavailable
2002-08-21 09:55:57 StandardContext[/cocoon]: Servlet /cocoon threw
load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.cocoon.servlet.CocoonServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)


The tomcat examples do work.
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.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]




how to add a white space in i18n?

2002-08-21 Thread kavitha ramesh

Hi,

I have something like FrauKavitha in the browser.Frau
comes from the messages_de.xml file and kavitha comes
from the main xml file.Iam using i18n and my
messages_de.xml is as follows:

message key=femaleFrau/message

and my xml file is as follows:

namekavitha/name

and my stylesheet combines Frau and kavitha i get
FrauKavitha in the browser.Now I would like to add a
WHITESPACE between Frau and Kavitha.If someone knows
please help me,,,

Kavitha



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.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: how to add a white space in i18n?

2002-08-21 Thread Piroumian Konstantin

 From: kavitha ramesh [mailto:[EMAIL PROTECTED]] 
 
 Hi,
 
 I have something like FrauKavitha in the browser.Frau
 comes from the messages_de.xml file and kavitha comes
 from the main xml file.Iam using i18n and my
 messages_de.xml is as follows:
 
 message key=femaleFrau/message
 
 and my xml file is as follows:
 
 namekavitha/name
 
 and my stylesheet combines Frau and kavitha i get
 FrauKavitha in the browser.Now I would like to add a
 WHITESPACE between Frau and Kavitha.If someone knows
 please help me,,,

Again it seems that your question has nothing to do with i18n. The problem
is in your stylesheet that does not place WHITESPACE between Frau and
Kavitha. Try to use nbsp; between the names.

Konstantin

 
 Kavitha
 
 
 __
 __
 Want to sell your car? advertise on Yahoo Autos Classifieds. 
 It's Free!!
visit http://in.autos.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]




[SUMMARY]RE: how to add a white space in i18n?

2002-08-21 Thread kavitha ramesh

Hi Konstantin,

I used the following in my stylesheet.I got the space
between Frau and Kavitha.

xsl:text#x20;/xsl:text

Thanks a lot!

Kavitha


 --- Piroumian Konstantin [EMAIL PROTECTED]
wrote:   From: kavitha ramesh
 [mailto:[EMAIL PROTECTED]] 
  
  Hi,
  
  I have something like FrauKavitha in the
 browser.Frau
  comes from the messages_de.xml file and kavitha
 comes
  from the main xml file.Iam using i18n and my
  messages_de.xml is as follows:
  
  message key=femaleFrau/message
  
  and my xml file is as follows:
  
  namekavitha/name
  
  and my stylesheet combines Frau and kavitha i get
  FrauKavitha in the browser.Now I would like to add
 a
  WHITESPACE between Frau and Kavitha.If someone
 knows
  please help me,,,
 
 Again it seems that your question has nothing to do
 with i18n. The problem
 is in your stylesheet that does not place WHITESPACE
 between Frau and
 Kavitha. Try to use nbsp; between the names.
 
 Konstantin
 
  
  Kavitha
  
  
 

__
  __
  Want to sell your car? advertise on Yahoo Autos
 Classifieds. 
  It's Free!!
 visit http://in.autos.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]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.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: [SUMMARY]RE: how to add a white space in i18n?

2002-08-21 Thread Barbara Post

You also have #160; I guess ?

- Original Message - 
From: kavitha ramesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 11:47 AM
Subject: [SUMMARY]RE: how to add a white space in i18n?


 Hi Konstantin,
 
 I used the following in my stylesheet.I got the space
 between Frau and Kavitha.
 
 xsl:text#x20;/xsl:text
 
 Thanks a lot!
 
 Kavitha
 
 
  --- Piroumian Konstantin [EMAIL PROTECTED]
 wrote:   From: kavitha ramesh
  [mailto:[EMAIL PROTECTED]] 
   
   Hi,
   
   I have something like FrauKavitha in the
  browser.Frau
   comes from the messages_de.xml file and kavitha
  comes
   from the main xml file.Iam using i18n and my
   messages_de.xml is as follows:
   
   message key=femaleFrau/message
   
   and my xml file is as follows:
   
   namekavitha/name
   
   and my stylesheet combines Frau and kavitha i get
   FrauKavitha in the browser.Now I would like to add
  a
   WHITESPACE between Frau and Kavitha.If someone
  knows
   please help me,,,
  
  Again it seems that your question has nothing to do
  with i18n. The problem
  is in your stylesheet that does not place WHITESPACE
  between Frau and
  Kavitha. Try to use nbsp; between the names.
  
  Konstantin
  
   
   Kavitha
   
   
  
 
 __
   __
   Want to sell your car? advertise on Yahoo Autos
  Classifieds. 
   It's Free!!
  visit http://in.autos.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]
   
 
 
 Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit http://in.autos.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]




ESQL clob inserts

2002-08-21 Thread Carlo Pescetelli

I've problem inserting a CLOB object in a Oracle DB.

I retrieve the object storing it in a java Vector using:

   esql:results
  esql:row-results
xsp:logic
  texts.addElement(esql:get-ascii column=TEXT/);
/xsp:logic
  /esql:row-results
/esql:results

The problem arises when I try to insert this data as a CLOB using:

   insert into MY_TB
  values
( ...
, xsp:expr(CLOB)texts.elementAt(i)/xsp:expr
, ...)

Data are not inserted and in the sitemap.log i find a 
  java.lang.ClassCastException: java.lang.String
message with a long stacktrace.

I think that ClassCastException occours on the CLOB cast because using
a String cast in place of the CLOB one, INSERTs are correctly 
executed *but* 2000 characters (max varchar2 size) is the upper
limit of handlable data.

I miss something?

I'm using
 - tomcat 4.0.4
 - cocoon 2.0.3
 - jdk1.4
 - classes12.jar (delivered with Oracle)

thanks in advance

carlo

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




Howto-Wizard-Example

2002-08-21 Thread Harald Lucke

Hi all,

the HowTo-Wizard-Example in the cvs has some mistakes. Here are the
corrections:
- all forms in the *.xml have the id=form-howto (defined in the
  sitemap!)
- in the sitemap is the source of the action not wright. Replace
  the 'howton' against 'howto'
- in the sitemap is the transformer source incorrect. Here must stay
  'context://samples/styles'

The project ist very interresting for me!

Harald Lucke

-
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: Xindice - Pipeline to db

2002-08-21 Thread KOZLOV Roman

Hi,

praktikant wrote:

 how can I write for example this

 http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
 http://localhost:8080/cocoon/xmldb/dvd/mi2.xml

 http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
 http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film

 http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2
 ')
 http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
 2') ]

 into the sitemap.xmap?

What for? If you want to get your XML data from Xindice db, then you just add to
your sitemap a matcher with an appropriate generator source. For example:
map:match pattern=dvd/**
map:generate src=cocoon:/xmldb/dvd/{1}/
map:serialize type=xml/
/map:match

Then you can get XML data by URL's you have pointed above.

Note, that the sitemap has to contain also the matcher for xmldb/** (default
cocoon's sitemap contains it already):
   map:match pattern=xmldb/**
map:match type=request-parameter pattern=xpath
 map:generate src=xmldb:xindice://localhost:4080/{../1}#{1}/
 map:serialize type=xml/
/map:match

map:generate src=xmldb:xindice://localhost:4080/{1}/
map:serialize type=xml/
   /map:match


By the way, did you read this:
http://cocooncenter.de/cc/documents/resources/xindice/index.html

Best regards,
Roman




 thanks

 -Ursprüngliche Nachricht-
 Von:praktikant [mailto:[EMAIL PROTECTED]]
 Gesendet am:Mittwoch, 21. August 2002 08:52
 An: [EMAIL PROTECTED]
 Betreff:Xindice - Pipeline to db

 Hi,
 now I can use Xindice in Cocoon.
 I've had a wrong idea from using Xindice.

 Thanks Roman! :o)
 
 But I haven't found something about a pipeline to Xindice.
 How can I build a pipeline to Xindice?
 How can I write back to Xindice?
 How to use XUpdate?
 Has someone simple examples for it?
 
 My db is on .../xindice/db/dvd
 The resources named
 mi.xml
 mi2.xml
 mib.xml
 mib2.xml

map:pipeline
 map:match pattern=dvd/mi2 type=wildcard
  map:generate src=xmldb/xpath/dvd/mi2.xml
 type=serverpages/
  map:transform src=dvd/film.xsl type=xslt/
  map:serialize type=xml/
 /map:match
/map:pipeline

 Sorry, but no idea how to use XUpdate. :-(

 I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x), Xindice 1.0,
 Java SDK
 1.3.1_04


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


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




whitespace problem with sunShine transformer

2002-08-21 Thread Barbara Post

C2.0.3...

Hello,

I have a A with a circumflexe accent onto that appears in my xml output...

Barbara Post
instead of
Barbara Post.

I use UTF-8 encoding everywhere.

The problem comes from getting info from sunRise context :

In the browser (IE 5.5) I have :

fullnameBarbara Post/fullname

when I look at the source I see :
fullnameBarbara Post/fullname

xml encoding of this is of course UTF-8.

When I wrote into fullname tag I used :

fullname
 xsl:value-of select=firstname/#160;xsl:value-of select=name/
/fullname

What is wrong ? Is there a bug in sunShine transformer ? Or maybe I have to
configure
something ?
I have the same problem when request parameters contain spaces in their
value.

Thanks a lot. Gotta have lunch...

Barbara

PS :
On the contrary, another page gets info from the session context and here I
see nbsp; in the html output (added  xsl:output method=html
encoding=iso-8859-1/ in the xsl but it does not solve my problem yet).




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




Question on forms

2002-08-21 Thread Hahn Kurt (CHA)

Hi,
I'm trying to build a form in Cocoon.

My first question: I'm a complete newbie concerning forms (meaning passing
the parameter in GET/POST requests and all that stuff), but I'm getting to
know Cocoon better. Should I first work my way through forms in a neutral
environnement, or is it not more difficult to start writing them directly in
Cocoon, using xsp and actions etc.?

My second: In the pipeline below (which I copied from the samples), I
couldn't figure out what the parameter name view-source does. In the
transformer documentation, there's no reference to this one. Can anybody
help me with this?

Thanks in advance

map:match pattern=forms/*
 map:generate type=serverpages src=docs/samples/forms/{1}.xsp/
 map:transform src=stylesheets/dynamic-page2html.xsl
map:parameter name=view-source
value=docs/samples/forms/{1}.xsp/
 /map:transform
 map:serialize/
   /map:match

-
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: Internal references for sendmail

2002-08-21 Thread Themba Mbatha

A while back I had a similar requirement, except that I wanted to send a
multipart message. In order to use cocoon's internal capabilities I had
to write an Action that read the pipeline from the descriptor. 

I would suggest you write a simple mailer action for this.

On Sun, 2002-08-18 at 17:58, Paul Pattison wrote:
 I'm writing a small web app that sends users an email with either an HTML or
 PDF attachment.  This attachment is generated by Cocoon.  I've been using
 the sendmail logicsheet to send the email, but it requires an absolute path
 to the attachment.  Since my attachment is generated by Cocoon, I would like
 to use an internal reference like cocoon:/somefile.html.  Is this possible?
 I'm willing to work on this, but haven't developed anything with Cocoon yet.
 Does anyone have any tips or clues for me?
 
 Thanks,
 
 Paul
 
 
 -
 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]




Re: AW: Xindice - Pipeline to db

2002-08-21 Thread KOZLOV Roman

Just one mistake:

KOZLOV Roman wrote:

 Hi,

 praktikant wrote:

  how can I write for example this
 
  http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
  http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
 
  http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
  http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
 
  http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2
  ')
  http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
  2') ]
 
  into the sitemap.xmap?

 What for? If you want to get your XML data from Xindice db, then you just add to
 your sitemap a matcher with an appropriate generator source. For example:
 map:match pattern=dvd/**
 map:generate src=cocoon:/xmldb/dvd/{1}/
 map:serialize type=xml/
 /map:match

 Then you can get XML data by URL's you have pointed above.

without /xmldb substring, for example http://localhost:8080/cocoon/dvd/mi2.xml

Roman



 Note, that the sitemap has to contain also the matcher for xmldb/** (default
 cocoon's sitemap contains it already):
map:match pattern=xmldb/**
 map:match type=request-parameter pattern=xpath
  map:generate src=xmldb:xindice://localhost:4080/{../1}#{1}/
  map:serialize type=xml/
 /map:match

 map:generate src=xmldb:xindice://localhost:4080/{1}/
 map:serialize type=xml/
/map:match

 By the way, did you read this:
 http://cocooncenter.de/cc/documents/resources/xindice/index.html

 Best regards,
 Roman

 
 
  thanks
 
  -Ursprüngliche Nachricht-
  Von:praktikant [mailto:[EMAIL PROTECTED]]
  Gesendet am:Mittwoch, 21. August 2002 08:52
  An: [EMAIL PROTECTED]
  Betreff:Xindice - Pipeline to db
 
  Hi,
  now I can use Xindice in Cocoon.
  I've had a wrong idea from using Xindice.
 
  Thanks Roman! :o)
  
  But I haven't found something about a pipeline to Xindice.
  How can I build a pipeline to Xindice?
  How can I write back to Xindice?
  How to use XUpdate?
  Has someone simple examples for it?
  
  My db is on .../xindice/db/dvd
  The resources named
  mi.xml
  mi2.xml
  mib.xml
  mib2.xml
 
 map:pipeline
  map:match pattern=dvd/mi2 type=wildcard
   map:generate src=xmldb/xpath/dvd/mi2.xml
  type=serverpages/
   map:transform src=dvd/film.xsl type=xslt/
   map:serialize type=xml/
  /map:match
 /map:pipeline
 
  Sorry, but no idea how to use XUpdate. :-(
 
  I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x), Xindice 1.0,
  Java SDK
  1.3.1_04
 
 
  -
  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]

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




how to hand over parameter to an url?

2002-08-21 Thread Jens Grote

hi,

i have a webpage, where one link opens a new webpage. this link is a url
with a parameter including. 

it seems, that cocoon cut the parameter off. the page can not be shown. (the
parameter is something like a session number.)

my sidemap entry is:


map:match pattern=*.jsp type=wildcard
map:generate src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
type=html
/map:generate   
map:serialize/
/map:match

the .jsp sides are generated into xml by an other servlet. therefore i need
the whole url. 

can i hand over dynamic parameters?

i tried something like this:

map:parameter name=* value={2}/
in the generator tag, but it doesn't work.

error message is 'resource not found' strange to say. 

thanks and greets

jens



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
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: Portal question [ the request parameters are available from insidethe coplets?]

2002-08-21 Thread Ramy Mamdouh

Hi Carsten,

Yes, I'm using the internal protocol ( cocoon:raw:/ ) in getting my 
coplets displayed.
But when I changed to cocoon:/ without the raw, the portal displays the 
(The content is not avilable now) message !

Here's one of my coplets defintion.

coplet id=menu
 resource uri=cocoon:raw:/menu/
 configuration 
   mandatorytrue/mandatory
   sizableflase/sizable
   activetrue/active
timeout5000/timeout
/configuration
titleMenu/title
status
customizefalse/customize
visibletrue/visible
sizemax/size
/status
/coplet

where menu is a normal pipeline.

Does the change from cocoon:raw:/ to cocoon:/ requires any other 
changes, maybe in the coplet pipeline?

Actually, I don't know exactly what raw adds to cocoon: as a 
protocol, and I didn't find any information regarding this point (even 
in your very nice book with Matthew).
Maybe you could tell me where can I find any information about that?

Best Regards.

Carsten Ziegeler wrote:

Ramy Mamdouh wrote:

Thanks for replying, but handlesParameters just handles the parameters 
of the portal engine (like size, customize, etc).

True.

And handlesParameters is true by default.

Yes.

What I'm asking about is handling any other parameters passed with the 
main portal uri.
handlesParameters has no effect as -it seems to me- regarding these 
parameters, it just handles the portal engine parameters.

What URI protocol do you use to invoke your coplets? I assume
you use the internal cocoon: protocol - if you simply use cocoon:/coplet,
the parameters are passed from the main pipeline to the coplet 
pipeline.
If you use cocoon:raw:/coplet, then the parameters are not passed.

Carsten 

Carsten Ziegeler Chief Architect Open Source Group, SN AG
--
 Cocoon Consulting, Training and Projects
--
mailto:[EMAIL PROTECTED]  http://www.s-und-n.de
http://ziegeler.bei.t-online.de


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




-- 
Ramy Mamdouh Kamel
Software Engineer
Ute Imkenberg
[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]




RE: Portal question [ the request parameters are available from inside the coplets?]

2002-08-21 Thread Carsten Ziegeler

Ramy Mamdouh wrote:
 
 Yes, I'm using the internal protocol ( cocoon:raw:/ ) in getting my 
 coplets displayed.
 But when I changed to cocoon:/ without the raw, the portal displays the 
 (The content is not avilable now) message !
 
 Here's one of my coplets defintion.
 
 coplet id=menu
  resource uri=cocoon:raw:/menu/
  configuration 
mandatorytrue/mandatory
sizableflase/sizable
activetrue/active
 timeout5000/timeout
 /configuration
 titleMenu/title
 status
 customizefalse/customize
 visibletrue/visible
 sizemax/size
 /status
 /coplet
 
 where menu is a normal pipeline.
 
 Does the change from cocoon:raw:/ to cocoon:/ requires any other 
 changes, maybe in the coplet pipeline?
Hmmm, usually not - but without raw: all parameters that where send
to the main pipeline are send to the coplet as well, perhaps there is
a problem?

 
 Actually, I don't know exactly what raw adds to cocoon: as a 
 protocol, and I didn't find any information regarding this point (even 
 in your very nice book with Matthew).
;) - Yes, the cocoon:raw protocol is very new and was added to Cocoon
after we wrote the book, so
The one and only distinction is, that with the subprotocol raw no
request parameters are passed on to the called internal pipeline and
without raw all are passed.

Carsten

-
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: how to hand over parameter to an url?

2002-08-21 Thread kavitha ramesh

I guess the following sitemap would work,,,


map:match pattern=*.jsp type=wildcard
 map:generate

src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
 type=html
 /map:generate   
 map:serialize/
 /map:match 


Kavitha




--- Jens Grote [EMAIL PROTECTED] wrote:  hi,
 
 i have a webpage, where one link opens a new
 webpage. this link is a url
 with a parameter including. 
 
 it seems, that cocoon cut the parameter off. the
 page can not be shown. (the
 parameter is something like a session number.)
 
 my sidemap entry is:
 
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 the .jsp sides are generated into xml by an other
 servlet. therefore i need
 the whole url. 
 
 can i hand over dynamic parameters?
 
 i tried something like this:
 
 map:parameter name=* value={2}/
 in the generator tag, but it doesn't work.
 
 error message is 'resource not found' strange to
 say. 
 
 thanks and greets
 
 jens
 
 
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 

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


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.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]




encoding serious (basic) problems

2002-08-21 Thread Barbara Post

C2.0.3...

I have troubles with whitespaces and accentued letters. I tried to set my
xsl encoding to iso-8859-1 (as it is html output encoding) but nope, neither
both set to UTF-8. I get weird characters.

These characters are in words retrieved from http request (request
generator) and session context (sunshine).

This is really buggish since I need to achieve my project asap... Thanks to
any guru ;-)

Babs


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




AW: AW: Xindice - Pipeline to db

2002-08-21 Thread praktikant

Hi,
it works! Pretty cool!

And yes, I have already read the tutorials in the cocooncenter. Weeks ago
and x-times.
But it's not enough to unsterstand Cocoon.
Now I've found CocoonWiki seems to be interesting.
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon 
But nothing found about Xindice yet.

Allow me one more question. :o)

To write xml data into my Xindice db what do I use for?
Xupdate? - and can I use Cocoon that for?

-Ursprüngliche Nachricht-
Von:KOZLOV Roman [mailto:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 21. August 2002 13:22
An: [EMAIL PROTECTED]
Betreff:Re: AW: Xindice - Pipeline to db

Just one mistake:

KOZLOV Roman wrote:

 Hi,

 praktikant wrote:

  how can I write for example this
 
  http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
  http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
 
  http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
  http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
 
 
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2
  ')
 
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
  2') ]
 
  into the sitemap.xmap?

 What for? If you want to get your XML data from Xindice db, then
you just add to
 your sitemap a matcher with an appropriate generator source. For
example:
 map:match pattern=dvd/**
 map:generate src=cocoon:/xmldb/dvd/{1}/
 map:serialize type=xml/
 /map:match

 Then you can get XML data by URL's you have pointed above.

without /xmldb substring, for example
http://localhost:8080/cocoon/dvd/mi2.xml

Roman



 Note, that the sitemap has to contain also the matcher for
xmldb/** (default
 cocoon's sitemap contains it already):
map:match pattern=xmldb/**
 map:match type=request-parameter pattern=xpath
  map:generate
src=xmldb:xindice://localhost:4080/{../1}#{1}/
  map:serialize type=xml/
 /map:match

 map:generate src=xmldb:xindice://localhost:4080/{1}/
 map:serialize type=xml/
/map:match

 By the way, did you read this:
 http://cocooncenter.de/cc/documents/resources/xindice/index.html

 Best regards,
 Roman

 
 
  thanks
 
  -Ursprüngliche Nachricht-
  Von:praktikant [mailto:[EMAIL PROTECTED]]
  Gesendet am:Mittwoch, 21. August 2002 08:52
  An: [EMAIL PROTECTED]
  Betreff:Xindice - Pipeline to db
 
  Hi,
  now I can use Xindice in Cocoon.
  I've had a wrong idea from using Xindice.
 
  Thanks Roman! :o)
  
  But I haven't found something about a pipeline to
Xindice.
  How can I build a pipeline to Xindice?
  How can I write back to Xindice?
  How to use XUpdate?
  Has someone simple examples for it?
  
  My db is on .../xindice/db/dvd
  The resources named
  mi.xml
  mi2.xml
  mib.xml
  mib2.xml
 
 map:pipeline
  map:match pattern=dvd/mi2 type=wildcard
   map:generate src=xmldb/xpath/dvd/mi2.xml
  type=serverpages/
   map:transform src=dvd/film.xsl type=xslt/
   map:serialize type=xml/
  /map:match
 /map:pipeline
 
  Sorry, but no idea how to use XUpdate. :-(
 
  I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x),
Xindice 1.0,
  Java SDK
  1.3.1_04
 
 
 
-
  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 

Slide Demo (ComponentException)

2002-08-21 Thread reinhard_poetz

Hi Stephan,

I wanted to try out your slide examples but I always get a
ComponentException at the login:

ERROR   (2002-08-21) 13:40.28:729   [sitemap.generator.principallist]
(/samples/slide/login) HttpProcessor[8080][4]/PrincipalListGenerator: Could not
lookup for component.
org.apache.avalon.framework.component.ComponentException: component:
ComponentSelector could not access the Component for hint: slide
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:216)
at
org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedComponentSelector.java:293)
at
org.apache.cocoon.generation.PrincipalListGenerator.generate(PrincipalListGenerator.java:135)

Do you have any ideas? I'm using cocoon2.1dev - the last nightly build.

Regards,
Reinhard

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
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: ESQL clob inserts

2002-08-21 Thread Christian Haul

On 21.Aug.2002 -- 11:59 AM, Carlo Pescetelli wrote:
 I've problem inserting a CLOB object in a Oracle DB.

CLOBs is a difficult and complex application. Try the DatabaseActions, 
they support CLOBs to some extent.

 The problem arises when I try to insert this data as a CLOB using:
 
insert into MY_TB
   values
 ( ...
 , xsp:expr(CLOB)texts.elementAt(i)/xsp:expr
 , ...)

Try a prepared statement (you'll get one if you use
esql:parameter). If you do all the CLOB stuff manually (i.e. create an
instance conforming to java.sql.Clob), you can set it alright.

You could use the setCharacterStream method as well -- and provide a
Reader object. esql currently doesn't allow to set the length so you'd
need to fiddle with the esql.xsl for that a bit.

 I miss something?

No.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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 Demo (ComponentException)

2002-08-21 Thread Stephan Michels




On Wed, 21 Aug 2002 [EMAIL PROTECTED] wrote:

 Hi Stephan,

 I wanted to try out your slide examples but I always get a
 ComponentException at the login:

 ERROR   (2002-08-21) 13:40.28:729   [sitemap.generator.principallist]
 (/samples/slide/login) HttpProcessor[8080][4]/PrincipalListGenerator: Could not
 lookup for component.
 org.apache.avalon.framework.component.ComponentException: component:
 ComponentSelector could not access the Component for hint: slide
   at
 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:216)
   at
 
org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedComponentSelector.java:293)
   at
 
org.apache.cocoon.generation.PrincipalListGenerator.generate(PrincipalListGenerator.java:135)

 Do you have any ideas? I'm using cocoon2.1dev - the last nightly build.


Do you have the following entry in your
build/cocoon/webapp/WEB-INF/cocoon.xconf?

 component class=org.apache.cocoon.components.ExtendedComponentSelector
default=slide logger=core.repositories.principalprovider
   role=org.apache.cocoon.components.repository.PrincipalProviderSelector

  component-instance
 class=org.apache.cocoon.components.repository.impl.SlidePrincipalProvider
 logger=core.repositories.principalprovider.slide name=slide
 namespace=myrepository repository=slide/

 /component

Thanks for testing, Stephan.

___
 Stephan Michels   EMail: [EMAIL PROTECTED]
 ICQ: 115535699Tel: +49-030-314-21583
+|+|+|+|+|+|+|-|


-
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: Portal question [ the request parameters are available from insidethe coplets?]

2002-08-21 Thread Ramy Mamdouh

Hello Carsten,

It seems I don't have any problems in my coplets.
And to be sure, I just tried to remove the raw sub-protocol from the 
sample portal (Sunsoptdemo), and it didn't work as well, giving the same 
message (The coplet is currently not available) in the coplets I 
removed the raw from its definition.

here what I've done :
resource uri=cocoon:raw:/sunspotdemosunlet-onlinesundn.xml/
changed to
resource uri=cocoon:/sunspotdemosunlet-onlinesundn.xml/

Also, a tiny error in the log

ERROR   (2002-08-21) 15:57.25:601   [core.portal-manager] 
(/last/samples/portal/sunspotdemo-portlets) Thread-13/CopletThread: 
Exception during processing of coplet: sundnnews
org.apache.cocoon.ProcessingException: Relative cocoon: URIs currently 
not supported.
at 
org.apache.cocoon.webapps.session.connector.Resource.init(Resource.java:93)
at 
org.apache.cocoon.webapps.portal.components.CopletThread.run(CopletThread.java:157)
at java.lang.Thread.run(Thread.java:484)


Currently, to come over this problem, I use the cocoon:raw: but with 
adding a little action that store certain parameters in session for the 
coplets, but clearly that would be overkill if the requests should be 
available to the coplets.
You have any ideas about that?

And thanks for the quick info about the raw subprotocol.

Best Regards.

Carsten Ziegeler wrote:

Ramy Mamdouh wrote:

Yes, I'm using the internal protocol ( cocoon:raw:/ ) in getting my 
coplets displayed.
But when I changed to cocoon:/ without the raw, the portal displays the 
(The content is not avilable now) message !

Here's one of my coplets defintion.

coplet id=menu
 resource uri=cocoon:raw:/menu/
 configuration 
   mandatorytrue/mandatory
   sizableflase/sizable
   activetrue/active
timeout5000/timeout
/configuration
titleMenu/title
status
customizefalse/customize
visibletrue/visible
sizemax/size
/status
/coplet

where menu is a normal pipeline.

Does the change from cocoon:raw:/ to cocoon:/ requires any other 
changes, maybe in the coplet pipeline?

Hmmm, usually not - but without raw: all parameters that where send
to the main pipeline are send to the coplet as well, perhaps there is
a problem?

Actually, I don't know exactly what raw adds to cocoon: as a 
protocol, and I didn't find any information regarding this point (even 
in your very nice book with Matthew).

;) - Yes, the cocoon:raw protocol is very new and was added to Cocoon
after we wrote the book, so
The one and only distinction is, that with the subprotocol raw no
request parameters are passed on to the called internal pipeline and
without raw all are passed.

Carsten

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




-- 
Ramy Mamdouh Kamel
Software Engineer
Ute Imkenberg
[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]




RE: Portal question [ the request parameters are available from inside the coplets?]

2002-08-21 Thread Carsten Ziegeler


Ramy Mamdouh wrote:

 Hello Carsten,

 It seems I don't have any problems in my coplets.
 And to be sure, I just tried to remove the raw sub-protocol from the
 sample portal (Sunsoptdemo), and it didn't work as well, giving the same
 message (The coplet is currently not available) in the coplets I
 removed the raw from its definition.

 here what I've done :
 resource uri=cocoon:raw:/sunspotdemosunlet-onlinesundn.xml/
 changed to
 resource uri=cocoon:/sunspotdemosunlet-onlinesundn.xml/

 Also, a tiny error in the log

 ERROR   (2002-08-21) 15:57.25:601   [core.portal-manager]
 (/last/samples/portal/sunspotdemo-portlets) Thread-13/CopletThread:
 Exception during processing of coplet: sundnnews
 org.apache.cocoon.ProcessingException: Relative cocoon: URIs currently
 not supported.
 at
Ahh, great, you found a bug! - Ok, I will try to fix it asap - so
currently you don't have a choice: you have to use cocoon:raw until
the bug is fixed.

Thanks!
Carsten

 org.apache.cocoon.webapps.session.connector.Resource.init(Resour
 ce.java:93)
 at
 org.apache.cocoon.webapps.portal.components.CopletThread.run(Cople
 tThread.java:157)
 at java.lang.Thread.run(Thread.java:484)


 Currently, to come over this problem, I use the cocoon:raw: but with
 adding a little action that store certain parameters in session for the
 coplets, but clearly that would be overkill if the requests should be
 available to the coplets.
 You have any ideas about that?

 And thanks for the quick info about the raw subprotocol.

 Best Regards.

 Carsten Ziegeler wrote:

 Ramy Mamdouh wrote:
 
 Yes, I'm using the internal protocol ( cocoon:raw:/ ) in getting my
 coplets displayed.
 But when I changed to cocoon:/ without the raw, the portal displays the
 (The content is not avilable now) message !
 
 Here's one of my coplets defintion.
 
 coplet id=menu
  resource uri=cocoon:raw:/menu/
  configuration
mandatorytrue/mandatory
sizableflase/sizable
activetrue/active
 timeout5000/timeout
 /configuration
 titleMenu/title
 status
 customizefalse/customize
 visibletrue/visible
 sizemax/size
 /status
 /coplet
 
 where menu is a normal pipeline.
 
 Does the change from cocoon:raw:/ to cocoon:/ requires any other
 changes, maybe in the coplet pipeline?
 
 Hmmm, usually not - but without raw: all parameters that where send
 to the main pipeline are send to the coplet as well, perhaps there is
 a problem?
 
 Actually, I don't know exactly what raw adds to cocoon: as a
 protocol, and I didn't find any information regarding this point (even
 in your very nice book with Matthew).
 
 ;) - Yes, the cocoon:raw protocol is very new and was added to Cocoon
 after we wrote the book, so
 The one and only distinction is, that with the subprotocol raw no
 request parameters are passed on to the called internal pipeline and
 without raw all are passed.
 
 Carsten
 
 -
 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]
 
 


 --
 Ramy Mamdouh Kamel
 Software Engineer
 Ute Imkenberg
 [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]



-
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: Xindice - Pipeline to db

2002-08-21 Thread John Moylan

You should not need too. Look at the sitemap for Cocoon 2.03. - It has a 
matcher for xmldb xpath queries.

praktikant wrote:

how can I write for example this

http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2
')
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
2') ]

into the sitemap.xmap?

thanks

   -Ursprüngliche Nachricht-
   Von:praktikant [mailto:[EMAIL PROTECTED]]
   Gesendet am:Mittwoch, 21. August 2002 08:52
   An: [EMAIL PROTECTED]
   Betreff:Xindice - Pipeline to db

   Hi,
   now I can use Xindice in Cocoon.
   I've had a wrong idea from using Xindice.

   Thanks Roman! :o)
   
   But I haven't found something about a pipeline to Xindice.
   How can I build a pipeline to Xindice?
   How can I write back to Xindice?
   How to use XUpdate?
   Has someone simple examples for it?
   
   My db is on .../xindice/db/dvd
   The resources named
   mi.xml
   mi2.xml
   mib.xml
   mib2.xml

  map:pipeline 
   map:match pattern=dvd/mi2 type=wildcard 
map:generate src=xmldb/xpath/dvd/mi2.xml
type=serverpages/ 
map:transform src=dvd/film.xsl type=xslt/ 
map:serialize type=xml/ 
   /map:match 
  /map:pipeline

   Sorry, but no idea how to use XUpdate. :-(

   I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x), Xindice 1.0,
Java SDK
   1.3.1_04

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

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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




AW: AW: Xindice - Pipeline to db

2002-08-21 Thread praktikant

I thought xpath is only read-only in Xindice!?

-Ursprüngliche Nachricht-
Von:John Moylan [mailto:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 21. August 2002 15:25
An: [EMAIL PROTECTED]
Betreff:Re: AW: Xindice - Pipeline to db

You should not need too. Look at the sitemap for Cocoon 2.03. - It
has a 
matcher for xmldb xpath queries.

praktikant wrote:

how can I write for example this

http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 


http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
2
')

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'m
i
2') ]

into the sitemap.xmap?

thanks

   -Ursprüngliche Nachricht-
   Von:praktikant [mailto:[EMAIL PROTECTED]]
   Gesendet am:Mittwoch, 21. August 2002 08:52
   An: [EMAIL PROTECTED]
   Betreff:Xindice - Pipeline to db

   Hi,
   now I can use Xindice in Cocoon.
   I've had a wrong idea from using Xindice.

   Thanks Roman! :o)
   
   But I haven't found something about a pipeline to Xindice.
   How can I build a pipeline to Xindice?
   How can I write back to Xindice?
   How to use XUpdate?
   Has someone simple examples for it?
   
   My db is on .../xindice/db/dvd
   The resources named
   mi.xml
   mi2.xml
   mib.xml
   mib2.xml

  map:pipeline 
   map:match pattern=dvd/mi2 type=wildcard 
map:generate src=xmldb/xpath/dvd/mi2.xml
type=serverpages/ 
map:transform src=dvd/film.xsl type=xslt/ 
map:serialize type=xml/ 
   /map:match 
  /map:pipeline

   Sorry, but no idea how to use XUpdate. :-(

   I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x),
Xindice 1.0,
Java SDK
   1.3.1_04

   

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

  







**
The information in this e-mail is confidential and may be legally
privileged.
It is intended solely for the addressee. Access to this e-mail by
anyone else
is unauthorised. If you are not the intended recipient, any
disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to
the Freedom
of Information Act 1997 and may be liable to disclosure.


**


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




Re: AW: AW: Xindice - Pipeline to db

2002-08-21 Thread John Moylan

Xupdate seems to very buggy in Xindice 1.0, I had problems getting the 
Xindice Xupdate examples to work. If you search the xindice mail list 
you'll find lots of other  people have had problems.

praktikant wrote:

Hi,
it works! Pretty cool!

And yes, I have already read the tutorials in the cocooncenter. Weeks ago
and x-times.
But it's not enough to unsterstand Cocoon.
Now I've found CocoonWiki seems to be interesting.
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon 
But nothing found about Xindice yet.

Allow me one more question. :o)

To write xml data into my Xindice db what do I use for?
Xupdate? - and can I use Cocoon that for?
  




**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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




WebDav, DavFS, Slide and else ....

2002-08-21 Thread ROSSEL Olivier

Here is a crazy idea I have had.
Linux has a WebDav FileSystem. 
So accessing/updating files via WebDAV is completely transparent to Cocoon.

WebDAV servers can have versionning, revision systems.

So, without changing the way you work inside Cocoon, you can have WebDAV 
capabilities. If the WebDAV server allows to access the extra features
(older versions,
number of the current version,metadata) in a filesystem way, you can have
full
WebDAV management without doing nothing inside Cocoon.

Is it dumb?

Note: my initial problem is to have CVS capabilities on my XML data files,
that are
updated via Cocoon (it's for Wikiland).

-
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: Xindice - Pipeline to db

2002-08-21 Thread John Moylan

Yes that is correct.

praktikant wrote:

I thought xpath is only read-only in Xindice!?

   -Ursprüngliche Nachricht-
   Von:John Moylan [mailto:[EMAIL PROTECTED]]
   Gesendet am:Mittwoch, 21. August 2002 15:25
   An: [EMAIL PROTECTED]
   Betreff:Re: AW: Xindice - Pipeline to db

   You should not need too. Look at the sitemap for Cocoon 2.03. - It
has a 
   matcher for xmldb xpath queries.

   praktikant wrote:

   how can I write for example this
   
   http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
   http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 
   
   http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
   http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 
   
   
  

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi


2
   ')
   
  

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'m


i
   2') ]
   
   into the sitemap.xmap?
   
   thanks
   
  -Ursprüngliche Nachricht-
  Von:praktikant [mailto:[EMAIL PROTECTED]]
  Gesendet am:Mittwoch, 21. August 2002 08:52
  An: [EMAIL PROTECTED]
  Betreff:Xindice - Pipeline to db
   
  Hi,
  now I can use Xindice in Cocoon.
  I've had a wrong idea from using Xindice.
   
  Thanks Roman! :o)
  
  But I haven't found something about a pipeline to Xindice.
  How can I build a pipeline to Xindice?
  How can I write back to Xindice?
  How to use XUpdate?
  Has someone simple examples for it?
  
  My db is on .../xindice/db/dvd
  The resources named
  mi.xml
  mi2.xml
  mib.xml
  mib2.xml
   
 map:pipeline 
  map:match pattern=dvd/mi2 type=wildcard 
   map:generate src=xmldb/xpath/dvd/mi2.xml
   type=serverpages/ 
   map:transform src=dvd/film.xsl type=xslt/ 
   map:serialize type=xml/ 
  /map:match 
 /map:pipeline
   
  Sorry, but no idea how to use XUpdate. :-(
   
  I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x),
Xindice 1.0,
   Java SDK
  1.3.1_04
   
  
   
  

-


  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]
   
 
   




   

**
   The information in this e-mail is confidential and may be legally
privileged.
   It is intended solely for the addressee. Access to this e-mail by
anyone else
   is unauthorised. If you are not the intended recipient, any
disclosure,
   copying, distribution, or any action taken or omitted to be taken in
reliance
   on it, is prohibited and may be unlawful.
   Please note that emails to, from and within RTÉ may be subject to
the Freedom
   of Information Act 1997 and may be liable to disclosure.
   

**

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

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail 

Re: WebDav, DavFS, Slide and else ....

2002-08-21 Thread Stephan Michels



On Wed, 21 Aug 2002, ROSSEL Olivier wrote:

 Here is a crazy idea I have had.
 Linux has a WebDav FileSystem.
 So accessing/updating files via WebDAV is completely transparent to Cocoon.

 WebDAV servers can have versionning, revision systems.

 So, without changing the way you work inside Cocoon, you can have WebDAV
 capabilities. If the WebDAV server allows to access the extra features
 (older versions,
 number of the current version,metadata) in a filesystem way, you can have
 full
 WebDAV management without doing nothing inside Cocoon.

 Is it dumb?

 Note: my initial problem is to have CVS capabilities on my XML data files,
 that are
 updated via Cocoon (it's for Wikiland).

Do have run davfs anytime? It's the hell. I never got this to work.

Stephan.


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




Chinese Cocoon developers ?

2002-08-21 Thread jamin rubio


Hi all,

I have some question : Is there some chinese developers who developed a
website in chinese language using cocoon ?



-
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: Chinese Cocoon developers ?

2002-08-21 Thread Argyn Kuketayev
Title: RE: Chinese Cocoon developers ?





I did some experiements with PDF publishing in chinese with Cocoon 2.0.3. I'm not chinese, and don't speak any chinese though.

 -Original Message-
 From: jamin rubio [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 9:41 AM
 To: [EMAIL PROTECTED]
 Subject: Chinese Cocoon developers ?
 
 
 
 Hi all,
 
 I have some question : Is there some chinese developers who 
 developed a
 website in chinese language using cocoon ?
 
 
 
 -
 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: WebDav, DavFS, Slide and else ....

2002-08-21 Thread ROSSEL Olivier

 Do have run davfs anytime? It's the hell. I never got this to work.

I MUST install Slide and test its functionnalities.
But I like very much the idea of having no stuff on the client side.
Just a filesystem with (for example) naming conventions for accessing 
older versions or metadata. 
And all the dirty work is done by the filesystem abstraction and
the WebDAV server.

So when a user destroys a topic in wikiLand, I go to the
(WebDAV) filesystem, make a move of .topic.xml__revisions/topic.xml__last
to topic.xml and everything works again.
See what I mean?

Could Slide be the WebDAV server that does all that?



-
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: Portal question [ the request parameters are available from inside the coplets?]

2002-08-21 Thread Carsten Ziegeler

Hi Ramy,

I just checked-in a fix - could you please test, if it now works for
you?

Thanks
Carsten

 -Original Message-
 From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 3:15 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Portal question [ the request parameters are available from
 inside the coplets?]



 Ramy Mamdouh wrote:
 
  Hello Carsten,
 
  It seems I don't have any problems in my coplets.
  And to be sure, I just tried to remove the raw sub-protocol from the
  sample portal (Sunsoptdemo), and it didn't work as well, giving the same
  message (The coplet is currently not available) in the coplets I
  removed the raw from its definition.
 
  here what I've done :
  resource uri=cocoon:raw:/sunspotdemosunlet-onlinesundn.xml/
  changed to
  resource uri=cocoon:/sunspotdemosunlet-onlinesundn.xml/
 
  Also, a tiny error in the log
 
  ERROR   (2002-08-21) 15:57.25:601   [core.portal-manager]
  (/last/samples/portal/sunspotdemo-portlets) Thread-13/CopletThread:
  Exception during processing of coplet: sundnnews
  org.apache.cocoon.ProcessingException: Relative cocoon: URIs currently
  not supported.
  at
 Ahh, great, you found a bug! - Ok, I will try to fix it asap - so
 currently you don't have a choice: you have to use cocoon:raw until
 the bug is fixed.

 Thanks!
 Carsten

  org.apache.cocoon.webapps.session.connector.Resource.init(Resour
  ce.java:93)
  at
  org.apache.cocoon.webapps.portal.components.CopletThread.run(Cople
  tThread.java:157)
  at java.lang.Thread.run(Thread.java:484)
 
 
  Currently, to come over this problem, I use the cocoon:raw: but with
  adding a little action that store certain parameters in session for the
  coplets, but clearly that would be overkill if the requests should be
  available to the coplets.
  You have any ideas about that?
 
  And thanks for the quick info about the raw subprotocol.
 
  Best Regards.
 
  Carsten Ziegeler wrote:
 
  Ramy Mamdouh wrote:
  
  Yes, I'm using the internal protocol ( cocoon:raw:/ ) in getting my
  coplets displayed.
  But when I changed to cocoon:/ without the raw, the portal
 displays the
  (The content is not avilable now) message !
  
  Here's one of my coplets defintion.
  
  coplet id=menu
   resource uri=cocoon:raw:/menu/
   configuration
 mandatorytrue/mandatory
 sizableflase/sizable
 activetrue/active
  timeout5000/timeout
  /configuration
  titleMenu/title
  status
  customizefalse/customize
  visibletrue/visible
  sizemax/size
  /status
  /coplet
  
  where menu is a normal pipeline.
  
  Does the change from cocoon:raw:/ to cocoon:/ requires any other
  changes, maybe in the coplet pipeline?
  
  Hmmm, usually not - but without raw: all parameters that where send
  to the main pipeline are send to the coplet as well, perhaps there is
  a problem?
  
  Actually, I don't know exactly what raw adds to cocoon: as a
  protocol, and I didn't find any information regarding this point (even
  in your very nice book with Matthew).
  
  ;) - Yes, the cocoon:raw protocol is very new and was added to Cocoon
  after we wrote the book, so
  The one and only distinction is, that with the subprotocol raw no
  request parameters are passed on to the called internal pipeline and
  without raw all are passed.
  
  Carsten
  
  -
  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]
  
  
 
 
  --
  Ramy Mamdouh Kamel
  Software Engineer
  Ute Imkenberg
  [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]
 


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




Non XSP Sessions ...

2002-08-21 Thread Todd Densmore

Has anyone implemented sessions in cocoon that dont use the session
logicsheet? I really dont want to use an XSP logicsheet (just like I dont
want to use JSP or ASP) at all, and I was wondering if anyone had an easy
way to do it.

-
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: Non XSP Sessions ...

2002-08-21 Thread Carsten Ziegeler

The cocoon.webapps.session package provides a session action for
creating/terminating a session and a session transformer to
store XML data in  a session and retrieve this data from a 
session.
You don't need XSP for this.

HTH
Carsten

 -Original Message-
 From: Todd Densmore [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 4:14 PM
 To: '[EMAIL PROTECTED]'
 Subject: Non XSP Sessions ...
 
 
 Has anyone implemented sessions in cocoon that dont use the session
 logicsheet? I really dont want to use an XSP logicsheet (just like I dont
 want to use JSP or ASP) at all, and I was wondering if anyone had an easy
 way to do it.
 
 -
 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]




sunRise-logout : Null Pointer Exception

2002-08-21 Thread Barbara Post

C2.0.3.

I am logged in. I click on disconnect link, I get a NPE. I have to keep
using 2.0.3 version of cocoon, how can I update the sunRise part ? It seems
I read that there is a patch for this exception ?

!-- disconnect --
   map:match pattern=disconnect
map:act type=sunRise-logout
 map:parameter name=handler value=baepp-handler/
 map:redirect-to uri=login/
/map:act
   /map:match

???

Babs


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




Problems installing Cocoon 2.0.3

2002-08-21 Thread Derek Hohls

According to the installation guide, deploying C2 under
Tomcat 4.0.4 is simple ;-) i.e.

Copy cocoon.war into tomcat/webapps directory.
Start Tomcat: Go to the tomcat/bin directory, and run the startup
script. 
Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
Congratulations! You should see the Cocoon welcome page. 

 My setup is:
 Java 1.3.1
 Tomcat 4.0.4 (examples are running fine)
 Cocoon 2.0.3
 
And when I invoke
 http://localhost:8080/cocoon/
 I get:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error

--
 type Exception report

 message Internal Server Error
 
 description The server encountered an internal error (Internal Server

 Error) that prevented it from fulfilling this request.

javax.servlet.ServletException: 
  Servlet.init() for servlet Cocoon2 threw exception
 at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.java:946)
 etc 



-
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: sunRise-logout : Null Pointer Exception

2002-08-21 Thread Carsten Ziegeler

*If* this NPE is fixed, you have to update to the cvs version
of 2.0.3 branch or at least you have to update all classes
under the org.apache.cocoon.webapps package.

Can you please provide a stacktrace?

Thanks
Carsten

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 4:18 PM
 To: [EMAIL PROTECTED]
 Subject: sunRise-logout : Null Pointer Exception
 
 
 C2.0.3.
 
 I am logged in. I click on disconnect link, I get a NPE. I have to keep
 using 2.0.3 version of cocoon, how can I update the sunRise part 
 ? It seems
 I read that there is a patch for this exception ?
 
 !-- disconnect --
map:match pattern=disconnect
 map:act type=sunRise-logout
  map:parameter name=handler value=baepp-handler/
  map:redirect-to uri=login/
 /map:act
/map:match
 
 ???
 
 Babs
 
 
 -
 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]




Cocoon 2.1- Portal

2002-08-21 Thread hartmut . zimmermann




hey guys,

if had an question, about the authentication handling in the cocoon portal!

I'd like to create two application under one authentication handler, so far so
good!
every application has his own pipeline configuration for saving and reading
application specific data.

my problem is tha only one application configuration is able to save the data.
what is the reason for this behaviour?
can you tell me an solution for this problem?!

also, it isn't possible to give the configuration tag an other name than
portal!

I would appreciate any information you can provide


here my sitemap configuration:

handlers
  handler name=portalhandler
redirect-to uri=cocoon:/es-portalportal/
authentication uri=cocoon:raw:/sunrise-authuser/
load-users uri=cocoon:raw:/sunrise-loaduser/
load-roles uri=cocoon:raw:/sunrise-roles/
new-user uri=cocoon:raw:/sunrise-newuser/
new-role uri=cocoon:raw:/sunrise-newrole/
change-user uri=cocoon:raw:/sunrise-changeuser/
delete-role uri=cocoon:raw:/sunrise-delrole/
delete-user uri=cocoon:raw:/sunrise-deluser/
applications
  application loadondemand=true name=esap-page1
configuration name=portal
   auth-redirectes-portal-frames/auth-redirect
   portal-uries-portal-frames/portal-uri
   profile-cachefalse/profile-cache
   process-coplets-parallelfalse/process-coplets-parallel
   default-coplet-timeout3/default-coplet-timeout
   profile
 layout-base uri=profiles/page1/layoutprofile.xml/
 coplet-base uri=profiles/page1/copletprofile.xml/
 coplet-base-save uri=profiles/page1/copletprofile.xml/
 type-base uri=profiles/page1/types.xml/
 admin-type-base uri=profiles/page1/admintypes.xml/
 global-delta-load uri=profiles/page1/globalprofile.xml/
 global-delta-save uri=
cocoon:raw:/es-portalresource-page1-saveglobalprofilepage1/
 role-delta-load uri=
cocoon:raw:/es-portalresource-page1-roleprofile/
 role-delta-save uri=
cocoon:raw:/es-portalresource-page1-saveroleprofilepage1/
 user-delta-load uri=
cocoon:raw:/es-portalresource-page1-userprofile/
 user-delta-save uri=
cocoon:raw:/es-portalresource-page1-saveuserprofilepage1/
 user-status-load uri=
cocoon:raw:/es-portalresource-page1-userstatus/
 user-status-save uri=
cocoon:raw:/es-portalresource-page1-saveuserstatuspage1/
   /profile
/configuration
  /application
  application loadondemand=true name=esap-page2
configuration name=portal
   auth-redirectes-portal-frames/auth-redirect
   portal-uries-portal-frames/portal-uri
   profile-cachefalse/profile-cache
   process-coplets-parallelfalse/process-coplets-parallel
   default-coplet-timeout3/default-coplet-timeout
   profile
 layout-base uri=profiles/page2/layoutprofile.xml/
 coplet-base uri=profiles/page2/copletprofile.xml/
 coplet-base-save uri=profiles/page2/copletprofile.xml/
 type-base uri=profiles/page2/types.xml/
 admin-type-base uri=profiles/page2/admintypes.xml/
 global-delta-load uri=profiles/page2/globalprofile.xml/
 global-delta-save uri=
cocoon:raw:/es-portalresource-page2-saveglobalprofilepage2/
 role-delta-load uri=
cocoon:raw:/es-portalresource-page2-roleprofile/
 role-delta-save uri=
cocoon:raw:/es-portalresource-page2-saveroleprofilepage2/
 user-delta-load uri=
cocoon:raw:/es-portalresource-page2-userprofile/
 user-delta-save uri=
cocoon:raw:/es-portalresource-page2-saveuserprofilepage2/
 user-status-load uri=
cocoon:raw:/es-portalresource-page2-userstatus/
 user-status-save uri=
cocoon:raw:/es-portalresource-page2-saveuserstatuspage2/
   /profile
/configuration
  /application
/applications
  /handler
 /handlers

BASF IT Services GmbH
ES-AP - RAT17
Hartmut Zimmermann
Tel.: +49 621 60-58632




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




Problem starting cocoon: SAX2 driver class not found

2002-08-21 Thread Dirk . Fries

Hello Cocoon users!

I have another problem using Cocoon: How can I pass the HTTP header
parameters to the requested servlet by the use of the sitemap? Or is there
another way to do that without the use of a sitemap?

Can anybody help me or tell me where to find a detailed documentation on
that topic? Thanks in advance!

Regards,
Dirk




-
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!

**

Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
-


-
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: Problems installing Cocoon 2.0.3

2002-08-21 Thread Todd Densmore

Im not sure what is causing YOUR problem, but I found that MY problem was
caused because (for some incomprehensible reason) the 2.0.3 release of
cocoon was built against an old avalon-excalibur release. The 4.1
avalon-excalibur has moved the LogKitLoggerManager from the /components
directory to the /logger directory and the GeneratorSelector barfed when it
could not find it. So you can try to find the appropriate .jar to use in
your deployment scenario, or recompile cocoon against the new .jar (if in
fact this is your problem).

HTH

-todd 

-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 10:22 AM
To: [EMAIL PROTECTED]
Subject: Problems installing Cocoon 2.0.3


According to the installation guide, deploying C2 under
Tomcat 4.0.4 is simple ;-) i.e.

Copy cocoon.war into tomcat/webapps directory.
Start Tomcat: Go to the tomcat/bin directory, and run the startup
script. 
Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
Congratulations! You should see the Cocoon welcome page. 

 My setup is:
 Java 1.3.1
 Tomcat 4.0.4 (examples are running fine)
 Cocoon 2.0.3
 
And when I invoke
 http://localhost:8080/cocoon/
 I get:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error

--
 type Exception report

 message Internal Server Error
 
 description The server encountered an internal error (Internal Server

 Error) that prevented it from fulfilling this request.

javax.servlet.ServletException: 
  Servlet.init() for servlet Cocoon2 threw exception
 at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.java:946)
 etc 



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




Passing HTTP header parameters

2002-08-21 Thread Dirk . Fries

Hello Cocoon users!

I have another problem using Cocoon: How can I pass the HTTP header
parameters to the requested servlet by the use of the sitemap? Or is there
another way to do that without the use of a sitemap?

Can anybody help me or tell me where to find a detailed documentation on
that topic? Thanks in advance!

Regards,
Dirk




-
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!

**

Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
-


-
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 Demo (ComponentException)

2002-08-21 Thread reinhard_poetz

 On Wed, 21 Aug 2002 [EMAIL PROTECTED] wrote:
 
  Hi Stephan,
 
  I wanted to try out your slide examples but I always get a
  ComponentException at the login:
 
  ERROR   (2002-08-21) 13:40.28:729   [sitemap.generator.principallist]
  (/samples/slide/login) HttpProcessor[8080][4]/PrincipalListGenerator:
 Could not
  lookup for component.
  org.apache.avalon.framework.component.ComponentException: component:
  ComponentSelector could not access the Component for hint: slide
  at
 

org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:216)
  at
 

org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedComponentSelector.java:293)
  at
 

org.apache.cocoon.generation.PrincipalListGenerator.generate(PrincipalListGenerator.java:135)
 
  Do you have any ideas? I'm using cocoon2.1dev - the last nightly build.
 
 
 Do you have the following entry in your
 build/cocoon/webapp/WEB-INF/cocoon.xconf?
 
  component class=org.apache.cocoon.components.ExtendedComponentSelector
 default=slide logger=core.repositories.principalprovider
   
 role=org.apache.cocoon.components.repository.PrincipalProviderSelector
 
   component-instance
 

class=org.apache.cocoon.components.repository.impl.SlidePrincipalProvider
  logger=core.repositories.principalprovider.slide name=slide
  namespace=myrepository repository=slide/
 
  /component
 
 Thanks for testing, Stephan.

Yes, it's included. Do you have any other ideas/hints?

Regards,
Reinhard


 
 ___
  Stephan Michels   EMail: [EMAIL PROTECTED]
  ICQ: 115535699Tel: +49-030-314-21583
 +|+|+|+|+|+|+|-|
 
 
 -
 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]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
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: sunRise-logout : Null Pointer Exception

2002-08-21 Thread Barbara Post

going to update it asap and will tell you if it works. but c203 is release
version so I guess I got it in final state when d/lding from apache ftp ?

Here is the stacktrace :

java.lang.NullPointerException
at org.apache.cocoon.sunshine.sunrise.SunRise.logout(SunRise.java:1083)
at
org.apache.cocoon.sunshine.sunrise.acting.LogoutAction.act(LogoutAction.java
:108)
at
org.apache.cocoon.www.sitemap_xmap.matchN107DB(E:\tomcat404\work\Standalone\
localhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5759)
at
org.apache.cocoon.www.sitemap_xmap.process(E:\tomcat404\work\Standalone\loca
lhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2040)
at
org.apache.cocoon.www.sitemap_xmap.process(E:\tomcat404\work\Standalone\loca
lhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1756)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


line 5759 of sitemap_xmap.java :

Action action_N107DE = (Action)this.actions.select(sunRise-logout);
try {

--if ((map = action_N107DE.act(redirector, environment,
objectModel, null, param)) != null) {
  if (redirector.hasRedirected()) {
 return true;
  }
  if (debug_enabled) getLogger().debug(Action sunRise-logout);
  listOfMaps.add (map);
  this.dumpParameters(listOfMaps);


I have no logger configured and only this line to define the action. is it
uncomplete ? thanks.

  map:action name=sunRise-logout
src=org.apache.cocoon.sunshine.sunrise.acting.LogoutAction/

- Original Message -
From: Carsten Ziegeler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:27 PM
Subject: RE: sunRise-logout : Null Pointer Exception


 *If* this NPE is fixed, you have to update to the cvs version
 of 2.0.3 branch or at least you have to update all classes
 under the org.apache.cocoon.webapps package.

 Can you please provide a stacktrace?

 Thanks
 Carsten




-
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: Problems installing Cocoon 2.0.3 [xerces to be updated]

2002-08-21 Thread Barbara Post

try to update xerces to 2.0.2 version. I had this problem too, same
environment.

(http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.0.2.zip)

from the zip, copy xercesImpl, xmlParserAPI to CATALINA_HOME/common/lib.
Remove the version of xerces you have there (xerces.jar).

Remove xercesImpl-2.0.0 from cocoon's WEB-INF/lib.

Babs
- Original Message -
From: Derek Hohls [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:21 PM
Subject: Problems installing Cocoon 2.0.3


 According to the installation guide, deploying C2 under
 Tomcat 4.0.4 is simple ;-) i.e.

 Copy cocoon.war into tomcat/webapps directory.
 Start Tomcat: Go to the tomcat/bin directory, and run the startup
 script.
 Open the Cocoon welcome page: http://localhost:8080/cocoon/
 Congratulations! You should see the Cocoon welcome page.

  My setup is:
  Java 1.3.1
  Tomcat 4.0.4 (examples are running fine)
  Cocoon 2.0.3

 And when I invoke
  http://localhost:8080/cocoon/
  I get:

  Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error

 --
  type Exception report

  message Internal Server Error

  description The server encountered an internal error (Internal Server

  Error) that prevented it from fulfilling this request.

 javax.servlet.ServletException:
   Servlet.init() for servlet Cocoon2 threw exception
  at org.apache.catalina.core.StandardWrapper.loadServlet
  (StandardWrapper.java:946)
  etc



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




Re: Passing HTTP header parameters

2002-08-21 Thread Barbara Post

have a look to request generator, it may help, it can get http headers.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:31 PM
Subject: Passing HTTP header parameters


 Hello Cocoon users!

 I have another problem using Cocoon: How can I pass the HTTP header
 parameters to the requested servlet by the use of the sitemap? Or is there
 another way to do that without the use of a sitemap?

 Can anybody help me or tell me where to find a detailed documentation on
 that topic? Thanks in advance!

 Regards,
 Dirk




 -
 This Mail has been checked for Viruses
 Attention: Encrypted mails can NOT be checked!

 **

 Diese Mail wurde auf Viren geprueft
 Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
 -


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




Help, please

2002-08-21 Thread KOZLOV Roman

Please, help.
Anybody knows what does the exception The Sitemap is null, this should
never be! mean and what are reasons of it?

Thank you in advance,
Roman


-
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: How to send redirect from an XSP?

2002-08-21 Thread Christopher Painter-Wakefield



 You shouldn't do it. Use an action for this. There are already a
 number of actions that perform this job. Use one of them, modify one
 of them, write a new one, or write an XSP action that does it.

What is an XSP action?  Can we now use XSP to write Actions?
Is there any documentation on it?

-Christopher



-
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: Help, please

2002-08-21 Thread Barbara Post

from a previous post I read I guess it is a memory problem ? when do you get
this ?
- Original Message -
From: KOZLOV Roman [EMAIL PROTECTED]
To: Cocoon users mail list [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:49 PM
Subject: Help, please


 Please, help.
 Anybody knows what does the exception The Sitemap is null, this should
 never be! mean and what are reasons of it?

 Thank you in advance,
 Roman


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




Re: sunRise-logout : Null Pointer Exception

2002-08-21 Thread Barbara Post

ok, please can you help me for getting it ? I don't know CVS much so need to
know how to configure it right : module etc. thanks a lot ! and where will
your fix be exactly...

- Original Message -
From: Carsten Ziegeler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:58 PM
Subject: RE: sunRise-logout : Null Pointer Exception


 It's currently not fixed in the 2.0.3 branch, only in the 2.1-dev
 branch - but I will check-in a fix in some minutes.

 Carsten

  -Original Message-
  From: Barbara Post [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 21, 2002 4:31 PM
  To: [EMAIL PROTECTED]
  Subject: Re: sunRise-logout : Null Pointer Exception
 
 
  going to update it asap and will tell you if it works. but c203 is
release
  version so I guess I got it in final state when d/lding from apache ftp
?
 
  Here is the stacktrace :
 
  java.lang.NullPointerException
  at org.apache.cocoon.sunshine.sunrise.SunRise.logout(SunRise.java:1083)
  at
  org.apache.cocoon.sunshine.sunrise.acting.LogoutAction.act(LogoutA
  ction.java
  :108)
  at
  org.apache.cocoon.www.sitemap_xmap.matchN107DB(E:\tomcat404\work\S
  tandalone\
 
localhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5759)
  at
  org.apache.cocoon.www.sitemap_xmap.process(E:\tomcat404\work\Stand
  alone\loca
  lhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2040)
  at
  org.apache.cocoon.www.sitemap_xmap.process(E:\tomcat404\work\Stand
  alone\loca
  lhost\baepp\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1756)
  at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
  at
 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
  at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
  at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
  line 5759 of sitemap_xmap.java :
 
  Action action_N107DE =
(Action)this.actions.select(sunRise-logout);
  try {
 
  --if ((map = action_N107DE.act(redirector, environment,
  objectModel, null, param)) != null) {
if (redirector.hasRedirected()) {
   return true;
}
if (debug_enabled) getLogger().debug(Action sunRise-logout);
listOfMaps.add (map);
this.dumpParameters(listOfMaps);
 
 
  I have no logger configured and only this line to define the action. is
it
  uncomplete ? thanks.
 
map:action name=sunRise-logout
  src=org.apache.cocoon.sunshine.sunrise.acting.LogoutAction/
 
  - Original Message -
  From: Carsten Ziegeler [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, August 21, 2002 4:27 PM
  Subject: RE: sunRise-logout : Null Pointer Exception
 
 
   *If* this NPE is fixed, you have to update to the cvs version
   of 2.0.3 branch or at least you have to update all classes
   under the org.apache.cocoon.webapps package.
  
   Can you please provide a stacktrace?
  
   Thanks
   Carsten
  
 
 
 
  -
  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]



-
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: How to send redirect from an XSP?

2002-08-21 Thread ROSSEL Olivier

  You shouldn't do it. Use an action for this. There are already a
  number of actions that perform this job. Use one of them, modify one
  of them, write a new one, or write an XSP action that does it.
 
 What is an XSP action?  Can we now use XSP to write Actions?
 Is there any documentation on it?

You can use the ServerPagesAction.
A action written in XSP.
It is only documented in the Javadoc.
Quite simple, and very nice !

-
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: Portal question [ the request parameters are available from insidethe coplets?]

2002-08-21 Thread Ramy Mamdouh

Hello Carsten,

Well, it seems that everything is working just fine now :)
I made a quick test with the cocoon:/ protocol, and the request are 
available to the coplets correctly and ofcourse the error is not there 
anymore.
Thanks a lot for this quick fix.

Best Regards.

Carsten Ziegeler wrote:

Hi Ramy,

I just checked-in a fix - could you please test, if it now works for
you?

Thanks
Carsten

-Original Message-
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 3:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Portal question [ the request parameters are available from
inside the coplets?]



Ramy Mamdouh wrote:

Hello Carsten,

It seems I don't have any problems in my coplets.
And to be sure, I just tried to remove the raw sub-protocol from the
sample portal (Sunsoptdemo), and it didn't work as well, giving the same
message (The coplet is currently not available) in the coplets I
removed the raw from its definition.

here what I've done :
resource uri=cocoon:raw:/sunspotdemosunlet-onlinesundn.xml/
changed to
resource uri=cocoon:/sunspotdemosunlet-onlinesundn.xml/

Also, a tiny error in the log

ERROR   (2002-08-21) 15:57.25:601   [core.portal-manager]
(/last/samples/portal/sunspotdemo-portlets) Thread-13/CopletThread:
Exception during processing of coplet: sundnnews
org.apache.cocoon.ProcessingException: Relative cocoon: URIs currently
not supported.
at

Ahh, great, you found a bug! - Ok, I will try to fix it asap - so
currently you don't have a choice: you have to use cocoon:raw until
the bug is fixed.

Thanks!
Carsten

org.apache.cocoon.webapps.session.connector.Resource.init(Resour
ce.java:93)
at
org.apache.cocoon.webapps.portal.components.CopletThread.run(Cople
tThread.java:157)
at java.lang.Thread.run(Thread.java:484)


Currently, to come over this problem, I use the cocoon:raw: but with
adding a little action that store certain parameters in session for the
coplets, but clearly that would be overkill if the requests should be
available to the coplets.
You have any ideas about that?

And thanks for the quick info about the raw subprotocol.

Best Regards.

Carsten Ziegeler wrote:

Ramy Mamdouh wrote:

Yes, I'm using the internal protocol ( cocoon:raw:/ ) in getting my
coplets displayed.
But when I changed to cocoon:/ without the raw, the portal

displays the

(The content is not avilable now) message !

Here's one of my coplets defintion.

coplet id=menu
resource uri=cocoon:raw:/menu/
configuration
  mandatorytrue/mandatory
  sizableflase/sizable
  activetrue/active
   timeout5000/timeout
   /configuration
   titleMenu/title
   status
   customizefalse/customize
   visibletrue/visible
   sizemax/size
   /status
/coplet

where menu is a normal pipeline.

Does the change from cocoon:raw:/ to cocoon:/ requires any other
changes, maybe in the coplet pipeline?

Hmmm, usually not - but without raw: all parameters that where send
to the main pipeline are send to the coplet as well, perhaps there is
a problem?

Actually, I don't know exactly what raw adds to cocoon: as a
protocol, and I didn't find any information regarding this point (even
in your very nice book with Matthew).

;) - Yes, the cocoon:raw protocol is very new and was added to Cocoon
after we wrote the book, so
The one and only distinction is, that with the subprotocol raw no
request parameters are passed on to the called internal pipeline and
without raw all are passed.

Carsten

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



--
Ramy Mamdouh Kamel
Software Engineer
Ute Imkenberg
[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]


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




-- 
Ramy Mamdouh 

RE: how to hand over parameter to an url?

2002-08-21 Thread Naquin, Beth
Title: RE: how to hand over parameter to an url?





Did you use the request action in the pipeline you tried? I think you need that in order for {requestQuery} to have any value. Make sure you change {1} to {../1} once you use the action.


map:match pattern=*.jsp type=wildcard
 map:act type=request
 map:parameter name=parameters value=true/


 map:generate src="http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery}
 type=html
 /map:generate 
 map:serialize/
 /map:act
/map:match



You might try searching the mailing list for servlet. I seem to remember this issue being discussed some months ago.


-Original Message-
From: Jens Grote [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 6:03 AM
To: [EMAIL PROTECTED]
Subject: Re: how to hand over parameter to an url?



sorry, but that doesn't work.


maybe i should explain my prob a little bit more precisely. the url i want
to reach per link is: 


http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000


map:match pattern=*.jsp type=wildcard
map:generate
src="http://localhost:8080/other-servlet/mydir/{1}.jsp
type=html
/map:generate 
map:serialize/
/map:match


my sidemap entry tries to reach another servlet than cocoon, the
'other-servlet' servlet. this other-servlet generate out of a jsp page a html page
(independent of cocoon), handles it over to cocoon and cocoon handels it over to
tomcat. it works fine, if i the *.jsp page i request through the client do not
need any parameters. in this case the response is resource not found.


in other, if i use javascript and form, the requested output is not shown
(the response is empty). 


your solution doesn't work in any of this two cases.


greetings


jens



 I guess the following sitemap would work,,,
 
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 
 src="http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery}
 type=html
 /map:generate 
 map:serialize/
 /map:match 
 
 
 Kavitha
 
 
 
 
 --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
  
  i have a webpage, where one link opens a new
  webpage. this link is a url
  with a parameter including. 
  
  it seems, that cocoon cut the parameter off. the
  page can not be shown. (the
  parameter is something like a session number.)
  
  my sidemap entry is:
  
  
  map:match pattern=*.jsp type=wildcard
  map:generate
  src="http://localhost:8080/not-cocoon/mydir/{1}.jsp
  type=html
  /map:generate 
  map:serialize/
  /map:match
  
  the .jsp sides are generated into xml by an other
  servlet. therefore i need
  the whole url. 
  
  can i hand over dynamic parameters?
  
  i tried something like this:
  
  map:parameter name=* value={2}/
  in the generator tag, but it doesn't work.
  
  error message is 'resource not found' strange to
  say. 
  
  thanks and greets
  
  jens
  
  
  
  -- 
  GMX - Die Kommunikationsplattform im Internet.
  http://www.gmx.net
  
  
 
 -
  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]
  
 
 
 Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
 visit http://in.autos.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]
 


-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net



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





Antwort: RE: Cocoon 2.1- Portal

2002-08-21 Thread hartmut . zimmermann




Hi Carsten,

sorry when my question isn't clear enough!

I meant, that I force to switch pages in my portal application.
I invoke them, by setting the auth-protect-action an new application value!

e.g. the problem happens, by saving and reading the userprofile-x.xml file.

the desired functionality is, that I can save and read various userprofile-x.xml
files for every page I invoke!

for the first page (first active page) the functionality is pretty good, but
when I switch the page and I like to save the user specific information for this
page, the application will save them to the previous userprofile-x.xml file!
there is no switch on the relevant resources.

so my english is not pretty good, sorry for them, but I hope you will understand
my problem!





I'm not sure what you exactly mean. You say above that you have
separate load/save pipelines for each application. ok. But how
do you invoke them? And what happens? Do you get an exception
or does simply nothing happen?
It might be that your problem is related to some serialization
bugs in the used Xerces Version 2.0.2 - so updating to the latest
cvs version of Xerces might help (in this case you get some
java serialization exceptions in the logs).


 also, it isn't possible to give the configuration tag an other name than
 portal!
True. The name portal is required for the portal framework to get the
configuration.
Why do you want to change this name?


BASF IT Services GmbH
ES-AP - RAT17
Hartmut Zimmermann
Tel.: +49 621 60-58632




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




portal example fails

2002-08-21 Thread Murray Cumming

I'm trying to use the portal example in 2.0.3, with standalone Tomcat
4.0.4. After logging-on, I get a page with this error. Is this a known
problem? I would try the cvs version, but it doesn't seem so simple to
build from cvs.

java.lang.NullPointerException
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836)
at
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173)
at
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691)
at
org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766)
at
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122)
at
org.apache.cocoon.www.sitemap_xmap.matchN4004A5(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5363)
at
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3330)
at
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3100)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.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: portal example fails

2002-08-21 Thread Steven Cummings

Murray,

If you're using JDK 1.4 place Cocoon's Xerces and Xalans jars in the endorsed libs 
folders. I was able to do this successfully as per this previous mailing list message:

http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102550708710890w=2

/S

Murray Cumming [EMAIL PROTECTED] wrote:

I'm trying to use the portal example in 2.0.3, with standalone Tomcat
4.0.4. After logging-on, I get a page with this error. Is this a known
problem? I would try the cvs version, but it doesn't seem so simple to
build from cvs.

java.lang.NullPointerException
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836)
at
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173)
at
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691)
at
org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766)
at
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122)
at
org.apache.cocoon.www.sitemap_xmap.matchN4004A5(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5363)
at
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3330)
at
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3100)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.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]




-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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: ampersand

2002-08-21 Thread Stefan Seifert

Did you try using a amp; instead of ?
i.e. foo?param1=foo1amp;param2=foo2.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 5:33 PM
 To: [EMAIL PROTECTED]
 Subject: ampersand
 
 
 I need a link with 2 parameters in the url : 
 foo?param1=foo1param2=foo2.
 
 However XSL does not like the unicode for ampersand : #038, in
 xsl:text#038;/xsl:text before param2.
  It says :
 org.xml.sax.SAXParseException: The reference to entity 
 param2 must end
 with the ';' delimiter.
 
 So How can I get the right character ? I have troubles 
 finding my way in
 Unicode.org...
 
 I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt
 
 How can I do that ? Thanks a lot.
 
 Babs
 
 
 -
 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]




Re: ampersand

2002-08-21 Thread Barbara Post

nope
- Original Message - 
From: Stefan Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 5:43 PM
Subject: RE: ampersand


Did you try using a amp; instead of ?
i.e. foo?param1=foo1amp;param2=foo2.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 5:33 PM
 To: [EMAIL PROTECTED]
 Subject: ampersand
 
 
 I need a link with 2 parameters in the url : 
 foo?param1=foo1param2=foo2.
 
 However XSL does not like the unicode for ampersand : #038, in
 xsl:text#038;/xsl:text before param2.
  It says :
 org.xml.sax.SAXParseException: The reference to entity 
 param2 must end
 with the ';' delimiter.
 
 So How can I get the right character ? I have troubles 
 finding my way in
 Unicode.org...
 
 I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt
 
 How can I do that ? Thanks a lot.
 
 Babs
 
 
 -
 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]



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




Unknown-URI/Unknown-thread

2002-08-21 Thread Harald Lucke

Hi,

with cocoon2.1 i get the following messages when the jboss3.0.1 + jetty
start up:

(Unknown-URI) Unknown-thread/DefaultLogKitManager:
   Logger for category flow returned.
... also for other loggers

It seems that all the other things working.

(RedHat7.3/JDK1.4.0.1)

Harald Lucke



-
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: portal example fails

2002-08-21 Thread Murray Cumming

On Wed, 2002-08-21 at 16:42, Steven Cummings wrote:
 Murray,
 
 If you're using JDK 1.4 place Cocoon's Xerces and Xalans jars in the endorsed libs 
folders. I was able to do this successfully as per this previous mailing list message:
 
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102550708710890w=2

Thanks, but I have already done this, as suggested in the Cocoon
installation instructions. So that doesn't seem to be the solution.

 /S
 
 Murray Cumming [EMAIL PROTECTED] wrote:
 
 I'm trying to use the portal example in 2.0.3, with standalone Tomcat
 4.0.4. After logging-on, I get a page with this error. Is this a known
 problem? I would try the cvs version, but it doesn't seem so simple to
 build from cvs.
 
 java.lang.NullPointerException
 at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
 at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
 at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
 at
 org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836)
 at
 
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173)
 at
 org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691)
 at
 org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766)
 at
 org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122)
 at
 
org.apache.cocoon.www.sitemap_xmap.matchN4004A5(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5363)
 at
 
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3330)
 at
 
org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3100)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
 org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
 org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 -- 
 Murray Cumming
 [EMAIL PROTECTED]
 www.murrayc.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]
 
 
 
 
 -- 
 Steven Cummings
 Columbia, MO
 Email: [EMAIL PROTECTED]
 AIM:   cummingscs
 ICQ:   3330114
 
 
 
 __
 Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
 
 Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.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]
 
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.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: ampersand

2002-08-21 Thread Stefan Seifert

You did not try or it did not work?
Are you using a XML Editor with XML validity checking? In this case the editor would 
find such errors.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 5:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ampersand
 
 
 nope
 - Original Message - 
 From: Stefan Seifert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 5:43 PM
 Subject: RE: ampersand
 
 
 Did you try using a amp; instead of ?
 i.e. foo?param1=foo1amp;param2=foo2.
 
 Stefan
 
  -Original Message-
  From: Barbara Post [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 21, 2002 5:33 PM
  To: [EMAIL PROTECTED]
  Subject: ampersand
  
  
  I need a link with 2 parameters in the url : 
  foo?param1=foo1param2=foo2.
  
  However XSL does not like the unicode for ampersand : #038, in
  xsl:text#038;/xsl:text before param2.
   It says :
  org.xml.sax.SAXParseException: The reference to entity 
  param2 must end
  with the ';' delimiter.
  
  So How can I get the right character ? I have troubles 
  finding my way in
  Unicode.org...
  
  I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt
  
  How can I do that ? Thanks a lot.
  
  Babs
  
  
  
 -
  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]



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




Re: ampersand

2002-08-21 Thread Barbara Post

I did try and found other things on the internet to try
(disable-output-escaping etc) but it still barf on param2 that it
considers an entity...

well, since it is an xsl, my editor doesn't say anything... only xalan when
processing.

Babs
- Original Message -
From: Stefan Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 6:09 PM
Subject: RE: ampersand


You did not try or it did not work?
Are you using a XML Editor with XML validity checking? In this case the
editor would find such errors.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 5:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ampersand


 nope
 - Original Message -
 From: Stefan Seifert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 5:43 PM
 Subject: RE: ampersand


 Did you try using a amp; instead of ?
 i.e. foo?param1=foo1amp;param2=foo2.

 Stefan

  -Original Message-
  From: Barbara Post [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 21, 2002 5:33 PM
  To: [EMAIL PROTECTED]
  Subject: ampersand
 
 
  I need a link with 2 parameters in the url :
  foo?param1=foo1param2=foo2.
 
  However XSL does not like the unicode for ampersand : #038, in
  xsl:text#038;/xsl:text before param2.
   It says :
  org.xml.sax.SAXParseException: The reference to entity
  param2 must end
  with the ';' delimiter.
 
  So How can I get the right character ? I have troubles
  finding my way in
  Unicode.org...
 
  I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt
 
  How can I do that ? Thanks a lot.
 
  Babs
 
 
 
 -
  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]



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



-
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: ampersand

2002-08-21 Thread Joerg Heinicke

Can you post a bit more from your stylesheet? amp; is absolutely correct 
normally.

Joerg

Barbara Post wrote:
 I did try and found other things on the internet to try
 (disable-output-escaping etc) but it still barf on param2 that it
 considers an entity...
 
 well, since it is an xsl, my editor doesn't say anything... only xalan when
 processing.
 
 Babs
 - Original Message -
 From: Stefan Seifert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 6:09 PM
 Subject: RE: ampersand
 
 
 You did not try or it did not work?
 Are you using a XML Editor with XML validity checking? In this case the
 editor would find such errors.
 
 Stefan
 
 
-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 5:48 PM
To: [EMAIL PROTECTED]
Subject: Re: ampersand


nope
- Original Message -
From: Stefan Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 5:43 PM
Subject: RE: ampersand


Did you try using a amp; instead of ?
i.e. foo?param1=foo1amp;param2=foo2.

Stefan


-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 5:33 PM
To: [EMAIL PROTECTED]
Subject: ampersand


I need a link with 2 parameters in the url :
foo?param1=foo1param2=foo2.

However XSL does not like the unicode for ampersand : #038, in
xsl:text#038;/xsl:text before param2.
 It says :
org.xml.sax.SAXParseException: The reference to entity
param2 must end
with the ';' delimiter.

So How can I get the right character ? I have troubles
finding my way in
Unicode.org...

I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt

How can I do that ? Thanks a lot.

Babs

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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




Installation problems

2002-08-21 Thread Khoi Dinh

Hi,

I use the Apache JServ that comes with Oracle 8.1.7 and I'm having a
difficult time setting up COCOON2.  Has anyone worked with this?  Any
help or pointer would be greatly appreciated.

Thank you very much,

Michael Dinh

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




RE: [Q] Classes not found...

2002-08-21 Thread Per Kreipke

Vadim replied:

I've put a bunch of JARs in Tomcat 4's lib directory (as per the TC4 config
how-to) but the classes aren't visible in my XSP page, Pizza keeps
complaining.


Compiler needs to know were the JARs are located. All existing Java
compilers can work with *files* only.


The reason they are there and not in C2's space is because the JARs are
shared with other web apps.

Does XSP have its own class loader that's fouling this up?


It has nothing to do with classloading. It's compiler classpath issue.
To solve it, specify all these JARs in extra-classpath.

extra-classpath will be appended to Java compiler's classpath, and Pizza
then will find these files.


Any comments/ideas?


Here is an idea: write java compiler which does not depend on files but
can compile using classes loaded by classloader.

Vadim


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




Generator implements threadsafe???

2002-08-21 Thread apurva zaveri

does it makes sense implementing ThreadSafe to a
custom generator ???

for example like this:

public class MyGenerator 
extends CompeserGenerator
implements ThreadSafe
{

}



__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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: SVG trouble!

2002-08-21 Thread J.Pietschmann

Raúl Wild-Spain wrote:
 java.lang.UnsatisfiedLinkError:
 /usr/local/j2sdk1.4.0_01/jre/lib/i386/libawt.so:
 libXp.so.6: cannot open shared object file: No such file or directory

Batik, the SVG rasterizer distributed with Cocoon,
needs by default X11 installed and running in order
to run. There are various ways to circumvent it,
check the Cocoon documentation for running..on
headless servers

J.Pietschmann



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




IP-Address limited access

2002-08-21 Thread silke.schoen

Hello cocooners,

is there any possibility to limit the access to the Cocoon-pages I created (URL: 
http://localhost/somename) based on the IP-Address?
What I want is to give access to certain IP-Adresses that have access via 
http://my_IP_address/somename - but to others no access should be given if they are 
not on a certain positive list of allowed users based on the IP-address.
Where can I create such a list of authorized users? Maybe in the cocoon or TomCat conf 
files? Or are there any changes in the pipeline possible?

I'd be very happy to get some help, to know if this is possible and if yes, how I 
could achieve it.

Thank you
Silke

__
Testsieg! Laut Computer-Bild ist WEB.DE FreeMail der sicherste
E-Mail Anbieter Deutschlands. Mehr: http://freemail.web.de/?mc=021131


-
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: How to send redirect from an XSP?

2002-08-21 Thread MTiffany71


  You shouldn't do it. Use an action for this. There are already a
  number of actions that perform this job. Use one of them, modify one
  of them, write a new one, or write an XSP action that does it.
 

I tried using actions in the sitemap, (a la cut and paste and tweak from the sitemap provided in the "protected" sample directory that comes with C2) but just could not get them to work -- the documenation is rather sparse. Can anyone provide any working examples?

thanks
mtiffany


problem on preceding Axes

2002-08-21 Thread Giuseppe Di Pierri

Hi guys,

I am actually using cocoon 2.0.3 tomcat 4.0.4 and W2000,
proceding and proceding axes don't work correctly.


Does anybody had the same problem?
Do I have to change some configuration of the xml parser?

Tanx in advance for you answer.

and especially thanks to the cocoon community that works so hard and makes a
great job providing us a very good tool.

bye

pino


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




Logicsheets: location of xsp:structure, SiLLy

2002-08-21 Thread gv

I'm trying to write a logicsheet (based on the
logicsheet.greeting.xsl example from
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html)
that needs to include a Java library. Where do I need
to put the xsp:structure in the XSL file? It doesn't
work when I put it next to xsp:logic. Any example I
can look at?

Also, wondering about the status of SiLLy (Simple
Logicsheet Language). Is it usable now? Any more
documentation available?

Thank you,
John


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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]




Cocoon portal sample crashes

2002-08-21 Thread Alan Hodgkinson


Dear All,

I was trying to run the Cocoon portal sample at:

  http://localhost:8080/cocoon/samples/portal/sunspotdemoportal

When I try to log in (with guest/guest)I get the following error:

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies that java.lang.IllegalStateException says:

Cannot create a session after the response has been committed 

More precisely:

  java.lang.IllegalStateException: Cannot create a session after the
response has been committed 

Any suggestions? Do I need to configure something? Is it broken?

I'm running with the Cocoon CVS head and Apache, Tomcat 4.0.1 and JDK
1.3

Thanks in advance,

Alan.


P.S. Here is the top of the stacktrace:

java.lang.IllegalStateException: Cannot create a session after the
response has been committed
at
org.apache.catalina.connector.HttpRequestBase.doGetSession(HttpRequestBase.java:1104)
at
org.apache.catalina.connector.HttpRequestBase.getSession(HttpRequestBase.java:1064)
at
org.apache.catalina.connector.HttpRequestFacade.getSession(HttpRequestFacade.java:209)
at
org.apache.cocoon.environment.http.HttpRequest.getSession(HttpRequest.java:219)
at
org.apache.cocoon.webapps.session.components.SessionManager.getSession(SessionManager.java:355)
at
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.getAuthenticationSessionContext(AuthenticationManager.java:932)
at
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.authenticate(AuthenticationManager.java:760)
at
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction.java:130)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:130)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:163)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:157)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:155
..etc...

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




xml-izing a site

2002-08-21 Thread Vaskin Kissoyan

question about paragraph formatting and taking such content and properly 
displaying it:

I've created an item.xml and item.xsl file and there is a description 
for the item such as:

item
nameWidget/name
descriptionThis is a widget.
/description
/item

Now I want to extend the ability for users of this format to put in a 
description such as they would have in a long-description from a word 
document such as (of course word would not do paragraph markers like 
this, but you get the picture):
p
All work and no play make jack a dull boy. All work and no play make 
jack a dull boy. All work and no play make jack a dull boy. All work and 
no play make jack a dull boy. All work and no play make jack a dull 
boy. All work and no play make jack a dull boy.
/p
p
All work and no play make jack a dull boy. All work and no play make 
jack a dull boy. All work and no play make jack a dull boy. All work and 
no play make jack a dull boy. All work and no play make jack a dull 
boy. All work and no play make jack a dull boy.
/p

Is there anyway to insert html into the description element? 
 currently I just made a paragraph element which gets repeated and 
gets formatted as above. I'm looking for a more elegant solution which 
might involve parsing word for paragraphs or the like.

Thanks in advance!



-
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: The Sitemap is null, this should never be!

2002-08-21 Thread Vadim Gritsenko

KOZLOV Roman wrote:

Hi,
There was a thread concerning the same problem but it was blocked.
After some memory consuming work Cocoon crashes. To get it work again I
have to restart Tomcat.
Just after crash the java.exe process of Tomcat uses about 17 K of
memory.
JVM has the following setting:
CATALINA_OPTS= -Xmx256M
Amount of system memory at the crash time:
used - about 435 M
total - about 1500M
physical - 524M
My configuration is Cocoon 2.0.3,  JDK 1.4, Tomcat 4.0.4., Win NT 4.0 SP
6a.

Could, somebody help to clarify the meaning/reason of this crash and how
to avoid it. The exception is the following:
Cocoon 2 - Internal server error


type fatal
message The Sitemap is null, this should never be!
description java.lang.RuntimeException: The Sitemap is null, this should
never be!


I'm working on some patches that will change some of this (sitemap 
handler) code, and may fix your problem (also I don't know what's 
causing your problem). I expect to finish these patches in one or two 
weeks. Stay tuned (to cvs logs) if interested.

Vadim


sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/
path-info
stack-trace

java.lang.RuntimeException: The Sitemap is null, this should never be!
 at org.apache.cocoon.sitemap.Handler.checkSanity(Handler.java:249)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:219)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)

 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 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
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)

 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)

 at java.lang.Thread.run(Thread.java:536)

--

Thank you in advance,
Roman
  





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




request parameter problems

2002-08-21 Thread amit


Hi,

  I got a problem regrading the request parameter handling in cocoon..
My problem is as follows :

!-- Pipeline 1--
map:pipeline 
map:match pattern=common/compile/**/*.spain  
map:generate src=http://localhost:8080/xml/{1}/{2}.rio/
map:transform src=http://localhost:8080/envs/common/compile.xsl; /
map:serialize type=xml/
/map:match

map:match pattern=envs/*/param.xsp*
map:generate src=http://localhost:8080/envs/{1}/param.xsp{2}; 
type=serverpages/
map:transform src=http://localhost:8080/envs/{1}/param.xsl; /
map:serialize type=xml/
/map:match
/map:pipeline

!-- Pipeline 2--
map:pipeline
   map:match pattern=*/*/**/*.rio*
 map:aggregate element=site
map:part 
src=http://localhost:8080/cocoon/common/compile/{3}/{4}.spain/
map:generate src=http://localhost:8080/cocoon/envs/{1}/param.xsp{5}; 
type=serverpages/
 /map:aggregate
 map:serialize type=xml/
   /map:match
/map:pipeline


if I have a url like 
http://localhost:8080/cocoon/env1/audios/polsani/spain/spainRio.rio?view=doublesn=3
then my request parameters should be passed to params.xsp in pipeline 1. 
Problem is params.xsp is not getting these request parameters.. 

In case I invoke 
http://localhost:8080/envs/env1/param.xsp?view=doublesn=3 my request 
parameters are passesed to params.xsp.

Can anyone tell me how to pass the request parameters to params.xsp.

Thanks


-
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: request parameter problems

2002-08-21 Thread Naquin, Beth
Title: RE: request parameter problems





can you have map:generate inside map:aggregate like you do in pipeline 2? Shouldn't both be map:part?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 3:14 PM
To: [EMAIL PROTECTED]
Subject: request parameter problems




Hi,


 I got a problem regrading the request parameter handling in cocoon..
My problem is as follows :


!-- Pipeline 1--
map:pipeline 
 map:match pattern=common/compile/**/*.spain 
  map:generate src="http://localhost:8080/xml/{1}/{2}.rio/
  map:transform src="http://localhost:8080/envs/common/compile.xsl /
  map:serialize type=xml/
 /map:match


 map:match pattern=envs/*/param.xsp*
  map:generate src="http://localhost:8080/envs/{1}/param.xsp{2} type=serverpages/
  map:transform src="http://localhost:8080/envs/{1}/param.xsl /
  map:serialize type=xml/
 /map:match
/map:pipeline


!-- Pipeline 2--
map:pipeline
 map:match pattern=*/*/**/*.rio*
  map:aggregate element=site
  map:part src="http://localhost:8080/cocoon/common/compile/{3}/{4}.spain/
  map:generate src="http://localhost:8080/cocoon/envs/{1}/param.xsp{5} type=serverpages/-

 /map:aggregate
 map:serialize type=xml/
 /map:match
/map:pipeline



if I have a url like 
http://localhost:8080/cocoon/env1/audios/polsani/spain/spainRio.rio?view=double=3
then my request parameters should be passed to params.xsp in pipeline 1. 
Problem is params.xsp is not getting these request parameters.. 


In case I invoke 
http://localhost:8080/envs/env1/param.xsp?view=double=3 my request 
parameters are passesed to params.xsp.


Can anyone tell me how to pass the request parameters to params.xsp.


Thanks



-
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: xml-izing a site

2002-08-21 Thread J.Pietschmann

Vaskin Kissoyan wrote:
 question about paragraph formatting and taking such content and properly 
 displaying it:
...
 Is there anyway to insert html into the description element? currently 
 I just made a paragraph element which gets repeated and gets formatted 
 as above. I'm looking for a more elegant solution which might involve 
 parsing word for paragraphs or the like.

Stricly spoken, you can't insert HTML in general, because it
is not necessarily well formed XML. You can however insert
XHTML (or tidied HTML) and insert it into the output by using
xsl:copy-of.

Parsing Paragraphs and the like is possible but not very
nice in XSLT. You can look into the XSL FAQ and the XSL
list archive, or ask on the XSL list:
  http://www.mulberrytech.com/xsl/xsl-list/
This topic comes up now and then on the list, I'm sure
there is something in the archive, you just have to dig
it up.

J.Pietschmann



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




XML Journal poll.

2002-08-21 Thread Yukio Fujiwara


Hi Every One,

Please make your voices heard at XML Journal poll.
This is important to promote Cocoon and Batik. In 
this poll employees of a company can vote for their 
own products, which give them unfair advantage.

At this moment Batik and Cocoon is trailing very 
badly. You may see the results at:

http://www.sys-con.com/xml/readerschoice2002/

You may cast your vote at:

http://www.sys-con.com/xml/readerschoice2002/nominationform.cfm

Thanks,
Yukio


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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: IP-Address limited access

2002-08-21 Thread Vadim Gritsenko

[EMAIL PROTECTED] wrote:

Hello cocooners,

is there any possibility to limit the access to the Cocoon-pages I created (URL: 
http://localhost/somename) based on the IP-Address?
What I want is to give access to certain IP-Adresses that have access via 
http://my_IP_address/somename - but to others no access should be given if they are 
not on a certain positive list of allowed users based on the IP-address.
Where can I create such a list of authorized users? Maybe in the cocoon or TomCat 
conf files? Or are there any changes in the pipeline possible?


You need either RegexpHostMatcher, WildcardHostMatcher, or HostSelector. 
See cocoon docs, javadocs, Wiki, samples sitemap, and mail archives.

Vadim


I'd be very happy to get some help, to know if this is possible and if yes, how I 
could achieve it.

Thank you
Silke
  



-
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: Passing HTTP header parameters

2002-08-21 Thread Vadim Gritsenko

Barbara Post wrote:

have a look to request generator, it may help, it can get http headers.


He wants sitemap...


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:31 PM
Subject: Passing HTTP header parameters


  

Hello Cocoon users!

I have another problem using Cocoon: How can I pass the HTTP header
parameters to the requested servlet by the use of the sitemap? Or is there
another way to do that without the use of a sitemap?

Can anybody help me or tell me where to find a detailed documentation on
that topic? Thanks in advance!


Header matcher, header selector. Please search for docs (cocoon site / 
javadoc / wiki), if none - write them (wiki).

Vadim



Regards,
Dirk




-
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: Generator implements threadsafe???

2002-08-21 Thread Vadim Gritsenko

apurva zaveri wrote:

does it makes sense implementing ThreadSafe to a
custom generator ???

for example like this:

public class MyGenerator 
extends CompeserGenerator


If you mean ComposerGenerator, it extends AbstractGenerator, which 
extends AbstractXMLProducer, which implements *Recyclable*, which is 
*not* compatible with ThreadSafe.

So, the answer is: No.

Vadim


implements ThreadSafe
{

}
  





-
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: Logicsheets: location of xsp:structure, SiLLy

2002-08-21 Thread Vadim Gritsenko

gv wrote:

I'm trying to write a logicsheet (based on the
logicsheet.greeting.xsl example from
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html)
that needs to include a Java library. Where do I need
to put the xsp:structure in the XSL file? It doesn't
work when I put it next to xsp:logic. Any example I
can look at?


http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/session.xsl?rev=1.13.2.1content-type=text/vnd.viewcvs-markup


Also, wondering about the status of SiLLy (Simple
Logicsheet Language). Is it usable now? Any more
documentation available?


It does not exist.

Vadim


Thank you,
John
  





-
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: request parameter problems

2002-08-21 Thread Vadim Gritsenko

Naquin, Beth wrote:

 can you have map:generate inside map:aggregate like you do in pipeline 
 2?  Shouldn't both be map:part?


No.

Vadim



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 3:14 PM
 To: [EMAIL PROTECTED]
 Subject: request parameter problems



 Hi,

   I got a problem regrading the request parameter handling in cocoon..
 My problem is as follows :

 !-- Pipeline 1--
 map:pipeline
 map:match pattern=common/compile/**/*.spain 
 map:generate 
 src=http://localhost:8080/xml/{1}/{2}.rio/
 map:transform 
 src=http://localhost:8080/envs/common/compile.xsl; /
 map:serialize type=xml/
 /map:match

 map:match pattern=envs/*/param.xsp*
 map:generate 
 src=http://localhost:8080/envs/{1}/param.xsp{2}; type=serverpages/
 map:transform 
 src=http://localhost:8080/envs/{1}/param.xsl; /
 map:serialize type=xml/
 /map:match
 /map:pipeline

 !-- Pipeline 2--
 map:pipeline
map:match pattern=*/*/**/*.rio*
  map:aggregate element=site
 map:part 
 src=http://localhost:8080/cocoon/common/compile/{3}/{4}.spain/
 map:generate 
 src=http://localhost:8080/cocoon/envs/{1}/param.xsp{5}; 
 type=serverpages/-

  /map:aggregate
  map:serialize type=xml/
/map:match
 /map:pipeline


 if I have a url like
 http://localhost:8080/cocoon/env1/audios/polsani/spain/spainRio.rio?view=doublesn=3 
 
http://localhost:8080/cocoon/env1/audios/polsani/spain/spainRio.rio?view=doublesn=3
 

 then my request parameters should be passed to params.xsp in 
 pipeline 1.
 Problem is params.xsp is not getting these request parameters..

 In case I invoke
 http://localhost:8080/envs/env1/param.xsp?view=doublesn=3 
 http://localhost:8080/envs/env1/param.xsp?view=doublesn=3 my request
 parameters are passesed to params.xsp.

 Can anyone tell me how to pass the request parameters to params.xsp.

 Thanks


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




Re: XML Journal poll.

2002-08-21 Thread Vadim Gritsenko

Yukio Fujiwara wrote:

Hi Every One,

Please make your voices heard at XML Journal poll.
This is important to promote Cocoon and Batik. In 
this poll employees of a company can vote for their 
own products, which give them unfair advantage.

At this moment Batik and Cocoon is trailing very 
badly. You may see the results at:

http://www.sys-con.com/xml/readerschoice2002/

You may cast your vote at:

http://www.sys-con.com/xml/readerschoice2002/nominationform.cfm


Also I agree that we should voice cocoon in this poll, this poll itself 
is ridiculous: XML Spy is a Best XML Database???


Vadim


Thanks,
Yukio
  



-
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: catalog-demo

2002-08-21 Thread David Crossley

Raúl Cruz wrote:

 Hi! I've installed latest Cocoon with Resin-ee-2.1.2
 and java 1.4 and I'm trying to see the Cocoon included
 exemple catalog-demo. It launch me the following error:
 
 ---
 The org.apache.cocoon.www.sitemap_xmap notifies that
 org.apache.cocoon.ProcessingException says:

 Exception in creating Transform Handler

 More precisely:

 org.apache.cocoon.ProcessingException: Exception in creating Transform
 Handler: com.caucho.xml.XmlParseException:
 file:/var/local/www/webapps/cocoon/docs/samples/catalog/style.xsl:24:
 `frac14;' is an unknown entity. XML predefines only `lt;', `amp;',
 `gt;', `apos;' and `quot;'. All other entities must be defined in
an
 lt;!ENTITY definition in the DTD.
 -

 is it normal? what should I do?

This is not normal. The style.xsl declares the ISOnum set of
character entities, which contains a definition for frac14;
It sounds like your parser is not finding that ISOnum
entity set. Perhaps the entity resolver is not working
on your system. There are a couple of ways to test this.

Do ./build.sh test which includes some tests for the
entity-resolver. See also installing/tests.html

Do ./build.sh docs which will fail at xdocs/catalog-test.xml
if entity-resolver is not working.

Another thing that you can do is to raise the verbosity
level of the entity-resolver to see if it complains.
See instructions in userdocs/concepts/catalog.html

It seems strange that your exception is reported by
com.caucho.xml... Does this mean that you use a different
parser than that shipped with Cocoon?

--David





-
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: problem on preceding Axes

2002-08-21 Thread Per Kreipke

FYI, I've had no problem with them.

Also, this sounds like an XSL question. You might get better help on another
list

... but if you want help, post a code snippet.

Per

P.s. agree with you, cudos to the developers!

 Hi guys,

 I am actually using cocoon 2.0.3 tomcat 4.0.4 and W2000,
 proceding and proceding axes don't work correctly.


 Does anybody had the same problem?
 Do I have to change some configuration of the xml parser?

 Tanx in advance for you answer.

 and especially thanks to the cocoon community that works so hard
 and makes a
 great job providing us a very good tool.

 bye

 pino


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