RE: double namespace attribute

2003-03-16 Thread Robert Douglass
Thank you Charles. The only tag with a default namespace is query... what
namespace should it be, and where do I define it?

-Robert Douglass

-Original Message-
From: Charles Yates [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 March, 2003 12:03 AM
To: [EMAIL PROTECTED]
Subject: Re: double namespace attribute


   Don't know why, exactly, but this has been discussed here before and
the work around is to use namespace prefixes on all elements, ie don't
use a default namespace in the document with the query.  Something along
those lines anyway.  This works for me.

Charles

Robert Douglass wrote:

Does anyone know why my sql transformation returns an element with two
xmlns
attributes?

rowset xmlns=http://apache.org/cocoon/SQL/2.0;
xmlns=http://apache.org/cocoon/SQL/2.0;

Using cocoon-2.0.4-bm14

map:pipeline
map:match pattern=browse
map:generate src=Rob/browse/browse.xml/
map:transform src=Rob/browse/browse.xslt
map:parameter name=use-request-parameters value=true/
/map:transform
map:transform src= type=sql
map:parameter name=use-connection value=sites/
/map:transform
map:serialize/
/map:match
/map:pipeline

The xml going into the sql transformation looks like this:
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
queryselect type from all_documents where id='4711'/query
/execute-query

Thanks,

Robert Douglass


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







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


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



SOLUTION: double namespace attribute in SQL Transformer

2003-03-16 Thread Robert Douglass
Here is the solution that I believe Charles was suggesting (for those who
are as XML inept as I, it is nice to have this in black and white)

?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:sql=http://apache.org/cocoon/SQL/2.0;


xsl:template match=/

  root

  sql:execute-query
   sql:query
SELECT * FROM foo
   /sql:query
  /sql:execute-query

  /root


/xsl:template

/xsl:stylesheet

--
   Don't know why, exactly, but this has been discussed here before and
the work around is to use namespace prefixes on all elements, ie don't
use a default namespace in the document with the query.  Something along
those lines anyway.  This works for me.

Charles

Robert Douglass wrote:

Does anyone know why my sql transformation returns an element with two
xmlns
attributes?

rowset xmlns=http://apache.org/cocoon/SQL/2.0;
xmlns=http://apache.org/cocoon/SQL/2.0;

Using cocoon-2.0.4-bm14

map:pipeline
map:match pattern=browse
map:generate src=Rob/browse/browse.xml/
map:transform src=Rob/browse/browse.xslt
map:parameter name=use-request-parameters value=true/
/map:transform
map:transform src= type=sql
map:parameter name=use-connection value=sites/
/map:transform
map:serialize/
/map:match
/map:pipeline

The xml going into the sql transformation looks like this:
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
queryselect type from all_documents where id='4711'/query
/execute-query

Thanks,

Robert Douglass



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



Auth-protect action problem

2003-03-16 Thread Ungvári Sándor
Hi!

I'd like to use the user authentication in cocoon 2.0.4. but I always get 
some errors. I've read much about this topic but I couldn't solve my 
problem. Here is my sitemap:
...
pipelines

map:component-configurations
 authentication-manager
  handlers
handler name=userPortal
  redirect-to uri=login/
  authentication uri=userLogin/
/handler
  /handlers
/authentication-manager
/map:component-configurations
pipeline
...
map:match pattern=login
map:generate type=xsp src=login.xsp/
map:serialize/
/map:match
map:match pattern=userLogin
map:act type=auth-login
   map:parameter name=handler value 
=userPortal/
   map:parameter name=parameter_userid 
value ={request:user}/
   map:parameter name=parameter_password 
value={request:password}/
   map:redirect-to uri=services/
 /map:act
 !-- authentication failed: Back to login-page --
 map:generate type=xsp src=login.xsp/
 map:serialize/
   /map:match

map:match pattern=services
map:act type=auth-protect
map:parameter name=handler value =userPortal/
map:read src=docs/bart.gif mime-type=image/gif/
/map:act
/map:match
...
/pipeline
...
type fatal

message UnnamedSelector: ComponentSelector could not find the component for 
hint [auth-protect]

description org.apache.avalon.framework.component.ComponentException: 
UnnamedSelector: ComponentSelector could not find the component for hint 
[auth-protect]

sender org.apache.cocoon.servlet.CocoonServlet

Should I define anything like this
map:components
map:actions
map:action name=auth-protect 
logger=sitemap.action.auth-protect 
src=org.apache.cocoon.webapps.authentication.acting.AuthAction/
map:actions
...
???

If I do this the result is:

message Error in sitemap configuration : 
org.apache.cocoon.webapps.authentication.acting.AuthAction

description 
org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : 
org.apache.cocoon.webapps.authentication.acting.AuthAction

sender org.apache.cocoon.servlet.CocoonServlet

Maybe I've to add something to cocoon.xconf? Or what?

Please HELP me!!! q:-)
Soma 

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


possible thread problem..?

2003-03-16 Thread Marco Rolappe
hi group,

I don't really know if this is a problem or just seems like one. apart from
experiencing quite high cpu usage I encountered log entries assoctiated to
threads with very high thread numbers;

...
INFO(2003-03-16) 10:37.51:408   [access]
(/imode_de/galleries/nav(1,2).html)
 Thread-29876/CocoonServlet: 'imode_de/galleries/nav(1,2).html' Processed by
Apa
che Cocoon 2.0.4 in 492 milliseconds.
INFO(2003-03-16) 10:37.53:694   [access]
(/imode_de/galleries/top10(1,2,13,3
).html) Thread-6/CocoonServlet: 'imode_de/galleries/top10(1,2,13,3).html'
Proces
sed by Apache Cocoon 2.0.4 in 410 milliseconds.
INFO(2003-03-16) 10:37.54:391   [access] (/imode_de/cams/index.html)
Thread-
29876/CocoonServlet: 'imode_de/cams/index.html' Processed by Apache Cocoon
2.0.4
 in 688 milliseconds.
INFO(2003-03-16) 10:38.01:133   [access] (/imode_de/)
Thread-6/CocoonServlet
: 'imode_de/' Processed by Apache Cocoon 2.0.4 in 392 milliseconds.
INFO(2003-03-16) 10:38.02:446   [access]
(/imode_de/galleries/cat(1).html) T
hread-29876/CocoonServlet: 'imode_de/galleries/cat(1).html' Processed by
Apache
Cocoon 2.0.4 in 744 milliseconds.
...

which disturbs me a bit and makes me think there might be some threading
issue.

there's also a problem when restarting/shutting down; tomcat doesn't cleanly
stop, must be KILLed manually.

config on server is:

cocoon 2.0.4
tomcat 4.1.18
RH linux


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



Cocoon logs

2003-03-16 Thread Amelie Cordier
Hi,

I'm using cocoon with a postgresql database and there is a problem when I
try to insert datas in my database.

There is no information in the log files in the WEB_INF directory of
cocoon. Is there any other log files where I can find help?


Thanks in advance

Regards,

Am.



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



AW: Cocoon logs

2003-03-16 Thread Marco Rolappe
hi amelie,

you may look at tomcat's log files ($TOMCAT_HOME/logs).

but first make sure please that logging is enabled for the components you're
using. i.e. for database actions, sql transformer, etc.

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Amelie Cordier
 Gesendet: Sonntag, 16. März 2003 17:00
 An: [EMAIL PROTECTED]
 Betreff: Cocoon logs


 Hi,

 I'm using cocoon with a postgresql database and there is a problem when I
 try to insert datas in my database.

 There is no information in the log files in the WEB_INF directory of
 cocoon. Is there any other log files where I can find help?


 Thanks in advance


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



Re: Creating a MenuGenerator based on DirectoryGenerator

2003-03-16 Thread Miles Egan
On Sat, 2003-03-15 at 15:15, Keijo Lehto wrote:
 Hi,
 
 I'm thinking about writing my own MenuGenerator by modifying 
 org.apache.cocoon.generation.DirectoryGenerator so that it will read the 
 filesystem under my mount directory and generate sections from 
 directories and resources from certain XML files under those 
 directories under mount.

We're doing something like this on our site.  It works pretty well and
is fairly straightforward.

miles


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



PhpGenerator help

2003-03-16 Thread JD Daniels
Has anyone gotten the phpgenerator to work? I have followed this page:

http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator

and do not get any error messages.. just a blank html page (The html/body
tags are present, just no content)

My config:

Redhat 7.3
tomcat 4.1.18
Cocoon 2.1-dev (March 16 cvs checkout)

My phpsrvlt.jar is only 10k ... seems kinda small - Is this right?

JD


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



Cocoon.war file not being created for Cocoon-2.1 dev

2003-03-16 Thread Gautam Ganguly
hi all,
   I downloaded the CVS Head tag for  Cocoon-2.1 from the code
repository.
After that i  did a build.bat -Dinclude.webapp.libs=yes
webapp...which resulted in Build successfull message.But when i try to
look for cococoon.war file in the /build/cocoon-2.1-dev directory thats
getting created at the the end of build..i cannot find it.Instaed of
that i am just seeing these jar files there:
cocoon.jar + cocoon-deprecated.jar +cocoon-scratchpad.jar.

My  system setup is:
Win2000 Advanced Server
JDK1.4

Any help would be appreciated.
thanks,
Gautam

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



Re: Cocoon.war file not being created for Cocoon-2.1 dev

2003-03-16 Thread Mark Eggers
Gautam,

The build system has been changed recently.

To get the war file, run the following command:

build war

The build is now set up with blocks, so you can
include / exclude functionality a lot more easily. 
This also makes it easier to build cocoon without the
samples or documentation.

The full story is contained in the INSTALL file.

HTH

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



style sheet WML - XML

2003-03-16 Thread zze-MORY Nicolas FTRD/DMI/REN
can anyone give me the URL or the file of the official XSL style sheet  wich can 
transform WML in XML ?

Thanks

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



calling Cocoon servlet from a external one

2003-03-16 Thread Josema Alonso
Hi, all.

I've found some documents at Wiki and some threads in the mailing list about
integrating servlets in Cocoon, but not the other way round. And that's what
I need.

I have a webapp in JSP and Servlets and I need to integrate some
URLs processed by Cocoon for a news system I've built.
I realize I need to make a cross context call, from my context to Cocoon's.
I've tried with Tomcat and Websphere. I could make the Cocoon context
accesible by my app but could not include the result of the Cocoon
processing in my JSP.

Has anybody tried this? I have tried using a RequestDispatcher but it fails
throwing a 'Cannot add header. Response already committed.:
java.lang.IllegalStateException'. Any pointers would be much appreciated.

Thanks.

ps: I'm copying both lists cause I honestly don't know which one is best
suited for this question. Sorry for any inconvenience.






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