RE: Howto Debian 3.0/Cocoon2 setup?

2002-08-03 Thread Vadim Gritsenko

Jan,


Now has anybody got this Cocoon2 thing up and running on Debian3.0/woody
with any version of Tomcat? If so, I'd really like to know what I should
do to get the same results...if not, I'm gonna try it on WinXP...
Somehow I got the feeling XP isn't going to get me into more trouble
than Debian, but it would be a big disappointment now that I have all my
other server apps running on a Debian machine. And I'm sure it must be
possible...but HOW?


You already have 1.3.1, and it will be *really* simple to install Cocoon
if you:

1. Get Tomcat from:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/bin/
And unzip it in any convenient dir.

2. Get cocoon.war, this way (binary dist) or another (source dist).
Source dist gives you more flexibility (see
http://xml.apache.org/cocoon/installing/index.html)

3. Drop cocoon.war into tomcat/webapps, restart tomcat. If does not
unpack, unzip it manually, remove .war, restart tomcat.


Vadim




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: [HELP]Language Exception

2002-08-03 Thread Vadim Gritsenko

> From: c [mailto:[EMAIL PROTECTED]]
> 
> Description:org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Could not
load
> class for program 'org\apache\cocoon\www\mysample3\greeting_xsp' due
to a
> java.lang.ClassNotFoundException:
> org.apache.cocoon.www.mysample3.greeting_xsp
> 
> hello, I'm michio mailing from Japan.
> I'm in trouble abou LnaguageException.
> I try logicsheet sample of
> http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html.
> I changed the java code in xsl file.
> and when it returns all,I encountered LanguageException.
> 
> I use Cocoon2.0.3 ,JDK1.4.

Try the following:

1. Check your logicsheet that it is valid XSLT.

2. Check file org\apache\cocoon\www\mysample3\greeting_xsp.java for Java
errors. This file usually will be somewhere under tomcat/work directory.

3. Check log files for other errors preceding LanguageException. Log
files are (usually) in WEB-INF/logs.

4. Turn off incremental processing mode of Xalan: In cocoon.xconf, find

and change value to false. This should give better error reporting.


Vadim


> I'm sorry for writing wrong English.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: xpath queries not working in xmldb

2002-08-03 Thread Vadim Gritsenko

> From: John Moylan [mailto:[EMAIL PROTECTED]]
> 
> Hi,

Hi John,
 
> Are there issues I should be aware of when using the xmldb using
xindice
> from the command line to return documents using:
> xindice xpath_query -c /db/extractsdb -q
>
"//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']"
> the result I get is all files published on the 20020710
> 
> But, when I use the following in cocoon:
>
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property
[@Form
> alName='PublicationDate'][@Value='20020710']
> the result I get is for all files in the collection.
> 
> Does Cocoon's XMLDB transformer have problems with attributes?

No. But all proxies/web browsers/web servers/etc are really upset with
your invalid URL. Please do encode at least all '=' characters properly.

Here is URL to URL RFC for your convenience:
http://www.w3.org/Addressing/rfc1738.txt
(See chapter "2.2. URL Character Encoding Issues", paragraph "Unsafe:")


Regards,
Vadim


> John



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: attribute and cinclude

2002-08-03 Thread Vadim Gritsenko

> From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> 
> Thank you, is there a cvs tag for 2.0.4-dev?

That's how I get it:

cvs -q -d :pserver:[EMAIL PROTECTED]:/home/cvspublic -z9 checkout
-r cocoon_2_0_3_branch -d xml-cocoon204 xml-cocoon2

There is no *tag* because it is not released yet. Tags are for releases,
branches are for dev versions.

Vadim



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: cocoon:/ not using current sitemap

2002-08-03 Thread Vadim Gritsenko

Please try with latest 2.0.4-dev CVS.

Vadim


> From: David Trammell [mailto:[EMAIL PROTECTED]]
> 
> I cannot get the cocoon:/ protocol to work when using it from a
sitemap
> that was mounted from another internal request using the cocoon:/
> protocol.  I have included snippets of my two sitemaps that duplicates
> this.
> 
> Have I misunderstood how the cocoon:/ protocol works, or is this a
bug?
> It works if I do not use cocoon:/ within the second sitemap and
generate
> the xhtml directly.  It also works if I do not use cocoon:/ in the
first
> one and directly mount the style sitemap.
> 
> The requested URL is something like http://localhost/test/admin/users
> 
> sitemap.xmap :
> ---
> 
> 
> 
>  uri-prefix="{1}/getstyle"/>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> style.xmap :
> ---
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>  
> 
> 
> Thanks
> David


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Interpreted sitemap failing in 2.0.3

2002-08-03 Thread Vadim Gritsenko

> From: Tuomo Lesonen [mailto:[EMAIL PROTECTED]]
> 
> I enabled the interpreted sitemap component in order to get the
> cocoon:/ protocol workin properly.

Try latest 2.0.4-dev from CVS. I hope that everything is working ok in
it. Report your findings.


> Everything looked nice, but then I
> noticed that mounted sitemaps were not inheriting any components from
> their parents.

Dunno about this one, have not tried it for a while.


> I wouldn't like to include same declarations in every
> sitemap. I have the ,  etc. in all
the
> subsitemaps, some of them are empty though.
> 
> Any workaround?
>
> ps. I tried 2.1-DEV already to get around this. It helped, but cocoon
kept
> sending blank pages after a while. This is not good either, but is
> probably another issue?

PS Yes, that's another issue. Try latest CVS, should work now.

Vadim


> -Tuomo


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Servlet generating an XML--->How to write the pipeline?

2002-08-03 Thread Michael Wechner



Skip Carter wrote:

>>I have a servlet which generates an xml file which in
>>turn should be transformed using xslt.How do I write
>>the pipeline for the same?
>>
>>Say the name of the servlet is check.class(where
>>should I place the class, in web-inf?), the name of
>>the xml file generated by the pipeline is test.xml and
>>the stylesheet used is test.xsl.How should my pipeline
>>look like?
>>
>
>  I handle this with any entry like the following in the main pipeline in 
>sitemap.xmap:
>
>
>  
>  
>   
>   
>   
>   http://myserver.com:8080{requestURI}{requestQ
>uery}" />
>   
>   
>   
>  
>
>
>  (If somebody has a good solution for POST I'd be interested in seeing it)
>

Please see the thread

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102728683118655&w=2

Hope that helps

Michael





>
>
>  My servlets are handled directly by tomcat (which is listening on port 
>8080), that way I can easily control
>  access to the "raw" servlet.  But you can have cocoon handle the servlet 
>instead by making the proper
>  entries in the cocoon WEB-INF/web.xml file, for example:
>
>   
>   
>  check
>  check
>   
>
>  
>  
>check
>/check
>  
>   
>
>   Your classes can go in WEB-INF/classes
>
>
>
>
>
>Skip
>
>
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: checking out xml source from CVS?

2002-08-03 Thread Michael Wechner



Steven Noels wrote:

> Jon Stewart wrote:
>
>> Hi -
>>
>> The development team I'm on is going to be writing a lot of 
>> documentation in the next few weeks. I'd like to use Cocoon for 
>> publishing our docs. However, we'll no doubt be keeping our docs 
>> under source control in CVS. Is there any way to for Cocoon's 
>> generators to do checkouts from CVS?
>
>
> Jon,
>
> have a look at Forrest - http://xml.apache.org/forrest/ - a project 
> documentation system built on top of Cocoon. It does support CVS - 
> automatically extracting sources from CVS and building them remotely. 
> I have a feeling it should be almost everything you're looking for. 

I didn't know that. That's good to know. I wanted to try out JCVS some 
weeks ago,
but never found the time. So I probably first try out the Forrest stuff.

Michael


>
>
> 




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Howto Debian 3.0/Cocoon2 setup?

2002-08-03 Thread Jan Willem Penterman



Hi,
 
I'm new to the list, so excuse me if I'm asking all 
old and dumb questions. I did my best trying to search the archives for a 
solution to my problems, but I have the feeling I'm just making things 
worse instead of better. First of all, I have an apt-get problem regarding 
packages tomcat, tomcat4 and cocoon2. The point is, that cocoon2 won't install 
unless I install Tomcat 3. But I read everywhere that I better use Tomcat4 for 
Cocoon2 instead of Tomcat3. So now I have both Tomcat3 and 4 running (these run 
fine, both on J2SE Blackdown-1.3.1-FCS), and Cocoon2 got put inside the Tomcat3 
webapps dir. 
 
Well I was quite happy actually to see the Cocoon 
itself was giving me error messages. These had something to do with some classes 
which were being tried to load in 
tomcat/webapps/cocoon2/WEB-INF/web.xml:
 
  
load-class  
        
com.ibm.servlet.classloader.Handler
 
        
org.hsqldb.jdbcDriver  
    
So I commented com.ibm..  and org.hsq... out. 
This got me a little further, but still I got an error message like 
this:
 
org.apache.cocoon.ProcessingException: The sitemap 
handler's sitemap is not available.
 
(I'm not able to paste the whole stacktrace 
including the 'cause' at this moment, because I can only use lynx on an ssh term 
from where I am at the moment, and lynx is acting weird on me) 
 
Nothing was/is written to the cocoon.log 
file.
 
So I gave up on Cocoon2/Tomcat3, downloaded the 
2.0.3 binaries to my tomcat4 dir and unpacked the cocoon.war file to my webapps 
dir. From what I understand it should be automatically unwarred, but I didn't 
get that far. I get a 500 error again , with root cause:
java.security.AccessControlException: access 
denied (java.util.PropertyPermission javax.xml.parsers.SAXParserFactory 
read)
 
I found this error in the archives, with some 
short answers on howto change java.policy files. But I guess I'm a little too 
unexperienced to understand what I should do. I tried some things in java.policy 
and catalina.policy files, but with no result at all. The solution should be in 
something like:
 
grant codeBase 
"file:${catalina.home}/webapps/cocoon/-" {    
permission java.util.PropertyPermission "*", 
"read";    
};   
But I don't know where to put this (java.policy, 
catalina.policy?) and what I have to put in there exactly, whatever i try I 
still get the AccessControlException. Also tried manually unwarring cocoon.war, 
but didn't help aswell.
 
Now has anybody got this Cocoon2 thing up and 
running on Debian3.0/woody with any version of Tomcat? If so, I'd really 
like to know what I should do to get the same results...if not, I'm gonna try it 
on WinXP... Somehow I got the feeling XP isn't going to get me into more 
trouble than Debian, but it would be a big disappointment now that I have 
all my other server apps running on a Debian machine. And I'm sure it 
must be possible...but HOW?
 
Thankx for taking the time to read this 
:)
 
JW
Shapers
www.shapers.nl
 
   
 


Re: Uploading files

2002-08-03 Thread Jeroen ter Voorde

You can change the upload dir in WEB-INF/web.xml

Jeroen

- Original Message -
From: "Alejandro Raiczyk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 01, 2002 7:42 AM
Subject: Uploading files


> Hi,
>
> I want to upload files, and put the uploaded files in a directory
other
> than the default and with a name other than the original name, how can I
do
> this ?
>
> Thanks in advance.
>
> Alejandro
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




AW: attribute and cinclude

2002-08-03 Thread Michael Zehrer

Thank you, is there a cvs tag for 2.0.4-dev?

-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 3. August 2002 01:36
An: [EMAIL PROTECTED]
Betreff: RE: attribute and cinclude


> From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> 
> Hi again,
> 
> In earlier (2.0.2) versions of Cocoon I constructed the path for
> cinclude like this and it worked:
> 
> 
> some/static/xml/ name="parm2"/>/ name="parm2"/>/content.xinc
> 
> 
> in 2.1-dev this gives

Cocoon 2.1-dev doesn't give anything right now (xerces/xalan issues).
However, after replacing xalan/xerces/xml-apis with version from 2.0.3,
the following works ok:

111
222



some/static/xml///content.xinc



(it also works in 2.0.4-dev)


Vadim

> 
> 
> in the resulting xml where the values for parm1 and parm2 are correct
> but the extra slash betwen them and the filename are completly
ignored?
> 
> Michael



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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. 

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




Problem: calling a Portal page from the flow map (sendPage())

2002-08-03 Thread Ramy Mamdouh

Hello,

I'm using Cocoon 2.1-dev, SuSE 8.0, J2SDK 1.3.1

I'm facing a strange problem using the flow engine with the portal.
calling sendPage(uri, {}) with uri pointing to the main portal page 
produces nothing but a blank page, although it works normally for any 
other uri.

here's the details:











is working fine alone (without flow callings), and it produces a correct 
page containing all the coplets I defined.

Now, if the flow script performs the simple sendPage(), nothing is 
displayed [with no errors]
sendPage("/webshop/index", {});

This is only a problem with the portal, any other uri passed to the 
sendPage works fine, as long as it's not a portal stuff.

Am I missing something here??

-- 
Ramy Mamdouh Kamel
Software Engineer
Imkenberg Software
[EMAIL PROTECTED]




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: pb with http request

2002-08-03 Thread Cyril Vidal

OK thanks!
 It was because of  spurious whitespaces  before the xml declaration.
It runs well now...;-)

Cyril.

- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 3:15 AM
Subject: Re: pb with http request


> This has nothing to do with the example, it's a common error message,
> when having the Xril.ML declaration not as the absolutely first thing in
the
> XML file. There must not be any whitespaces or other characters in front
> of the XML declaration and it has to be in the form as at
> http://www.w3.org/TR/REC-xml#sec-prolog-dtd. Watch for case-sensitivity
> too. Have a look in all the related files to fix the bug.
>
> cyril vidal wrote:
> > Hy,
> >
> > I just was trying to run the example wrotten by Steve Punk in "Getting
> > started with Cocoon 2" http://www.xml.com/lpt/a/2002/07/10/cocoon2.html
> >
> > More precisely, the last example that calculates a factorial from a
> > numeric value submitted via HTTP POST.
> >
> > Here's the sitemap:
> >
> > http://apache.org/cocoon/sitemap/1.0";>
>
> 
>
> > 
> >
> >
> > and here's the file mystylesheet.xsl that I've copied in integrality
> > from the original source:
> >
> >
> > 
>
> This one seems to be ok, but I can't see whether there are any
> whitespaces in the file of course.
>
> >
> > 
> >
> > 
> >
> > 
> 
>
> > 
> >
> >
> >
> > When I run this by pointing my browser to
http://localhost/mypage?input=5
> >
> > I receive the following error message:
> >
> > *description* _org.apache.cocoon.ProcessingException: Exception in
> > creating Transform Handler: org.xml.sax.SAXParseException: The XML
> > declaration may only appear at the very beginning of the document._
> >
> > _I _don't understand why this occurs. Can you help me please?
> >
> > Thanks in advance,
> >
> > Cyril Vidal
> > Email: [EMAIL PROTECTED] 
> > Web: http://www.planetexml.com
>
> Regards,
>
> Joerg
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Link Livesites: Lane Medical Library, Cocoon 2.0.2

2002-08-03 Thread Charles Yates

http://lane.stanford.edu/index.html

The Lane Medical Library website provides medical information services 
to the Stanford Medical Center community.

Charles Yates
Digital Information Systems Programmer
Lane Medical Library, Stanford University



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[HELP]Language Exception

2002-08-03 Thread c
Description:org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Could not load 
class for program 'org\apache\cocoon\www\mysample3\greeting_xsp' due to a 
java.lang.ClassNotFoundException: 
org.apache.cocoon.www.mysample3.greeting_xsp

hello, I'm michio mailing from Japan.
I'm in trouble abou LnaguageException.
I try logicsheet sample of 
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html.
I changed the java code in xsl file.
and when it returns all,I encountered LanguageException.

I use Cocoon2.0.3 ,JDK1.4.

I'm sorry for writing wrong English.



_
$B$-$C$H8+$D$+$k$"$J$?$N?75o!!ITF0;:>pJs$O(B MSN $B=;Bp$G(B http://house.msn.co.jp/


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


xpath queries not working in xmldb

2002-08-03 Thread John Moylan

Hi,

Are there issues I should be aware of when using the xmldb using xindice 
from the command line to return documents using:
xindice xpath_query -c /db/extractsdb -q 
"//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']"
the result I get is all files published on the 20020710

But, when I use the following in cocoon:
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is for all files in the collection.

Does Cocoon's XMLDB transformer have problems with attributes?

John


**
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. 

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




Interpreted sitemap failing in 2.0.3

2002-08-03 Thread Tuomo Lesonen

I enabled the interpreted sitemap component in order to get the
cocoon:/ protocol workin properly. Everything looked nice, but then I
noticed that mounted sitemaps were not inheriting any components from
their parents. I wouldn't like to include same declarations in every
sitemap. I have the ,  etc. in all the
subsitemaps, some of them are empty though.

Any workaround?

ps. I tried 2.1-DEV already to get around this. It helped, but cocoon kept
sending blank pages after a while. This is not good either, but is
probably another issue?

-Tuomo


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Installing Cocoon 2 on JBoss 3.0.0. with Tomcat 4.0.3

2002-08-03 Thread spamby3

Hello!

I was wondering if anyone could help me with the above problem. I have
checked all of the available documentation (that I know of) and can't
find the installation instructions for the version of JBoss that I am
using. I tried to do the install using the instructions for the previous
version (
Installing on JBoss 2.4.4 with Tomcat 4.0.1 ). The directory structure is
somewhat different, and the run.bat file on my system does not match the
description of the file in the instructions. 


When enter 'http://localhost:8080/cocoon/ I get the following error:

Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process
this request

I've gone over the installation several times, but can't figure out
what's causing this problem. Any help would be greatly appreciated!

Thanks!!!

Sheila

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Maximum filesize supported by readers

2002-08-03 Thread Litrik De Roy

Fellow users,

Are there any limitations on the size of files served by readers
() ?

What is the size of the largest file that you have served using a reader?

I would like to serve a 50-60 MB file (.exe or .tgz). Did anybody already
encounter problems with files of this size?

Litrik De Roy
www.litrik.com




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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