RE: Saxon and Cocoon

2002-05-27 Thread Graaf, Edgar de (fin)

So I noticed. In some situation I get a null pointer exception...

Thanks I will try that version

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 18:49
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Saxon and Cocoon


Edgar:

Be aware that Saxon 7 is a partial implementation of XSLT/XPATH 2.0 and that
Michael Kay indicates that for production 6.5.2 is the version to use.

Carlos


On 5/24/02 5:07 AM, Graaf, Edgar de (fin) [EMAIL PROTECTED]
wrote:

 Hi,
 
 earlier I asked how I would use Saxon in Cocoon. It is very simple, delete
 Xalan and place Saxon in. Saxon 7 is really fast! I see the difference. My
 problem was that I didn't notice anything different, so I guessed I did
 something wrong. However I had a jar called j2ee.jar in my lib, it
contained
 Xalan. If you also want to do this, the search the core.log for
 templatesHandler. If Saxon is there you did everything right
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email   [EMAIL PROTECTED]
web http://www.cvc1.org/ (work)
http://silverwolf-net.net (personal)
phone   408 257 0420 (work)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

If there is artificial intelligence, doesn't that imply there is also
artificial stupidity!


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Re: Xinclude Problem

2002-05-27 Thread Margrit John


  In the Browser I get the following error statement:
 
  root cause
  java.lang.OutOfMemoryError
  
 
  Cocoon runs properly, if I remove all the xi:include  (in
  the xml- and
  xslt-  and xsp-files)
 
  Are the xi:include really the problem?

 Do you have a stack trace from the log?


Here is the entire error report.

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented it 
from fulfilling this request.

exception 
javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown 
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at 
org.apache.coyote.tomcat4.CoyoteProcessor.service(CoyoteProcessor.java:311)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:305)
at 
org.apache.coyote.tomcat4.CoyoteProcessor.process(CoyoteProcessor.java:785)
at 
org.apache.coyote.tomcat4.CoyoteProcessor.run(CoyoteProcessor.java:864)
at java.lang.Thread.run(Thread.java:484)


root cause 
java.lang.OutOfMemoryError


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




AW: i18n where to do it?

2002-05-27 Thread Andres, Judith

Hi,

1) you could invoke the I18nTransformer after you invoke the
TraxTransformer. This implies that you use just keys instead of the real
text in the stylesheet. This way there would be no need to have the
semi-abstract level.

2) you could provide an action that writes the user locale into a sitemap
parameter - then you could use this parameter to select the stylesheet
map:act type=locale
  map:transform src=stylesheet_{locale}.xsl/
/map:act

Judith

 -Ursprüngliche Nachricht-
 Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Sonntag, 26. Mai 2002 13:10
 An:   [EMAIL PROTECTED]
 Betreff:  i18n where to do it?
 
 Hi! 
 
 I have just been thrown into a Cocoon project. I am still a newbie to
 Cocoon. 
 One major problem of the project seems to be i18n. 
 
 This has resulted in XML/XSP pages that describe the html/wml/pdf etc.
 pages to be produced on a kind of abstract level, but still all the
 elements which I would normally consider to belong only to the view level
 are described in the XML pages before XSLT-transformation. E.g. we have
 tags describing text, drop-down menues, checkboxes and so on on a XML-page
 which is used to show the contents of the users mailbox. Then we use a XSL
 stylesheet to transform this XML-page which is describing a HTML page into
 a HTML page. 
 
 I argued that this violates the principal of separation of business logic,
 data and presentation which is in my opinion the most fundamental design
 principle for multichannel-applications. 
 Also this approach causes redundancy. If we want to change a page (e.g the
 navigation on this page) we have to change the XSL-stylesheet (which is in
 reality to be supplied be a design company) and the XML/XSP page. 
 
 My idea is to have all the i18n issues to be resolved on the XSL-level,
 e.g. like it is describe in Eric M. Burke: Java and XSLT. Ch 8 with XSL
 variables and imports. 
 
 Stuff like You have mail -- Sie haben neue Emails and Drop down
 boxes are purely view and should not contaminate data and logic. The XML
 page used for the pages displaying mailbox-content would only contain
 data: 
 emails 
   email 
 header... /header 
 body ... /body 
   ... 
 
 My colleagues argue, the have to produce this mixing of data and
 presentation I have described because the way Cocoon handles i18n using
 the I18n-Transformer. 
 
 Isn't there a simple way to tell Cocoon which (language-specific)
 XSL-stylesheet to use according to the preference the user has chosen or
 according to the language preference of the browser? 
 Or perhaps have a lanugage-indenpendent XSP-page which produces a
 language-specific XSL-stylesheet on demand? (looks to be more complicated
 to be me) 
 
 Many thanks for any input, 
 
 Hans 
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




TreeProcessor performance

2002-05-27 Thread Graaf, Edgar de (fin)

Hi,

Recently I installed the TreeProcessor instead of compiling. Everyone says
it is faster then compiling the sitemap, so I didn't test it. Then I
installed Saxon and tot test Saxon I did a Jmeter test. My application
collapsed from 6 seconds average response time to 20 seconds!? So I put
xalan back, 27 seconds!? Then I put the compiled version back and I got 6
seconds my question to you is: 

Does anybody know why this could be? Does the TreeProcessor cost more
memory? (I only have 196 MB) Are there some bugs in certain versions of the
TreeProcessor? Or is the TreeProcessor just not scaleable?

Thanks,

Edgar

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: i18n where to do it?

2002-05-27 Thread Hahn Kurt (CHA)

In my transformations, I'm using the first method below. Thus, the i18n
transformer is the last (or second-last) transformer you have to invoke,
after having applied any other transformation in a  language-neutral way.

-Message d'origine-
De : Andres, Judith [mailto:[EMAIL PROTECTED]]
Envoyé : lundi, 27. mai 2002 10:19
À : '[EMAIL PROTECTED]'
Objet : AW: i18n where to do it?


Hi,

1) you could invoke the I18nTransformer after you invoke the
TraxTransformer. This implies that you use just keys instead of the real
text in the stylesheet. This way there would be no need to have the
semi-abstract level.

2) you could provide an action that writes the user locale into a sitemap
parameter - then you could use this parameter to select the stylesheet
map:act type=locale
  map:transform src=stylesheet_{locale}.xsl/
/map:act

Judith

 -Ursprüngliche Nachricht-
 Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Sonntag, 26. Mai 2002 13:10
 An:   [EMAIL PROTECTED]
 Betreff:  i18n where to do it?
 
 Hi! 
 
 I have just been thrown into a Cocoon project. I am still a newbie to
 Cocoon. 
 One major problem of the project seems to be i18n. 
 
 This has resulted in XML/XSP pages that describe the html/wml/pdf etc.
 pages to be produced on a kind of abstract level, but still all the
 elements which I would normally consider to belong only to the view level
 are described in the XML pages before XSLT-transformation. E.g. we have
 tags describing text, drop-down menues, checkboxes and so on on a XML-page
 which is used to show the contents of the users mailbox. Then we use a XSL
 stylesheet to transform this XML-page which is describing a HTML page into
 a HTML page. 
 
 I argued that this violates the principal of separation of business logic,
 data and presentation which is in my opinion the most fundamental design
 principle for multichannel-applications. 
 Also this approach causes redundancy. If we want to change a page (e.g the
 navigation on this page) we have to change the XSL-stylesheet (which is in
 reality to be supplied be a design company) and the XML/XSP page. 
 
 My idea is to have all the i18n issues to be resolved on the XSL-level,
 e.g. like it is describe in Eric M. Burke: Java and XSLT. Ch 8 with XSL
 variables and imports. 
 
 Stuff like You have mail -- Sie haben neue Emails and Drop down
 boxes are purely view and should not contaminate data and logic. The XML
 page used for the pages displaying mailbox-content would only contain
 data: 
 emails 
   email 
 header... /header 
 body ... /body 
   ... 
 
 My colleagues argue, the have to produce this mixing of data and
 presentation I have described because the way Cocoon handles i18n using
 the I18n-Transformer. 
 
 Isn't there a simple way to tell Cocoon which (language-specific)
 XSL-stylesheet to use according to the preference the user has chosen or
 according to the language preference of the browser? 
 Or perhaps have a lanugage-indenpendent XSP-page which produces a
 language-specific XSL-stylesheet on demand? (looks to be more complicated
 to be me) 
 
 Many thanks for any input, 
 
 Hans 
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Design choices for a cocoon application. (long)

2002-05-27 Thread TREGAN Fabien

Hi,

note
  This mail is a little longer than I'd like. My goal here is not to have my
job made by other people, but to summarize experience of other people and
make a doc that will intereste many cocoon users. BTW if you want to make my
job for me, let me know.
  My question may not be very accurate, if you think that question should be
added / remove / modified fill free to let me know.
/note

Ok, i've played a litlle with cocoon, (installation, hello world, write a
source, a transformer, ...).
I've made some my XML/XSL to make a GUI demo of the futur webapp, peoples
liked it, it's ok.

Now I must start the real work, and I must admit that, I have so much
choices and so few 'Best Practices' guide that i'm a little confused.

-oOo-

The application :
-

It's called ADOC (Atelier de Documentation, ie Documentation Workplace)

The business server allready exist with an (ugly) X client we are willing to
replace with a (nice) html client that will use C2.

The application allow users to handle SGML documents (lunch an editor,
import, export, apply stylesheet, ...)

The application is divided into Elements (document, nodes, graphics), and
Spaces (that contains element)
There are three spaces :
-Public space (contains realesed document)
-Two private spaces (a user who want to edit a Element reserve it in public
space, and get a private copy in private space)

There are some action that can be lunch private, public or both spaces
(reserve, drop, lunch editor, commit, validate, ...)

The elements in public space have a state that allow/disallow some
actions(free, reserved, partially reserved)

-oOo-

The process :
-

Let's examine how a click in the navigator is processed :

0) We display a list of menu, spaces and elements in IE.
1) The navigator (let's call it IE in memory of Ivan d'Empalot, french
chevalier who never existed) contruct a request from selected elements +
selected action and send (let's say post) it to the server
2) Cocoon selected the apropriated pipeline based on the query
3) The pipeline make a call to the server
4) The answer is XMLized (since it'as an old server that does know nothing
about XML)
5) From know it's easy I just have to transforme a little for presentation
only (ordering, then applying XSL then HTML serialization)

-oOo-

The choices :
-

Ok, know the problem is to deal with all the choices we have in order to
accomplish step 1 to 4 of the process.

Step 0:
---
Display is easy (only XSL we allready have from the demo). The problem is to
get our XML data. Here we have many solution that all use the (AE)Source  :
-Use Adocpublic:// for the public space (server address in xconf)
-Use Adocpublic://server.ip
-Use ADOC://[server.ip/]public

We have the same question for private spaces, if we choose the same
solution, it will not be clear that the content of ADOC://private depends
on the current user. So maybe it will be better to use something like
ADOC://{session.username}@server.ip/private, though we do not need this
information(s).

Step 1:
---
First problem, how to code the action ? If we know that the selected element
will be posted as a form, we have many choices to code the action :
-code it in the form
-code it in the url (http://server/doaction?action=myaction or
http://server/actions/myaction ?)

Then we use request generator in the begining of the pipe, no problem.

Step 2:
---
We can either send ALL requests to a java controller that will handle every
request, make one pipe for each action (an action here is a menu entry,
not a cocoon acton, sorry !), or something in the middle, but how to choose
?

Step 3:
---
-We will use a transformer to perfom this call (or maybe an action ?).
-The transformer (or action) will look for the Business Server Bridge
role.
-How do we found the server address ? Something like transform
name=myAction server={myServer} / ? Configure the component in role for
Business Server Bridge in the xconf ?

Step 4:
---
Ok, for this one I have no choice if I choosed to use a transformer... I'm
done :)

-oOo-

please, let me know your thougths, ideas, ... and i'll try to make a clean
doc that will certainly help people (that *will* help me :)

fabien.

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: TreeProcessor performance

2002-05-27 Thread Sylvain Wallez

Graaf, Edgar de (fin) wrote:

Hi,

Recently I installed the TreeProcessor instead of compiling. Everyone says
it is faster then compiling the sitemap, so I didn't test it. Then I
installed Saxon and tot test Saxon I did a Jmeter test. My application
collapsed from 6 seconds average response time to 20 seconds!? So I put
xalan back, 27 seconds!? Then I put the compiled version back and I got 6
seconds my question to you is: 

Does anybody know why this could be? Does the TreeProcessor cost more
memory? (I only have 196 MB) Are there some bugs in certain versions of the
TreeProcessor? Or is the TreeProcessor just not scaleable?

Thanks,

Edgar
  


The TreeProcessor is way faster at *loading* a sitemap, since it doesn't 
require code generation and compilation. On my 1GHz / 512 Mb / P3 / 
win2k PC, load time of the (large) samples sitemap fell from 20 seconds 
to less than 1 second.

Now for runtime execution, tests showed between 0 and 10% speed increase 
*with a HotSpot VM* (JDK 1.3.1). If you don't use a HotSpot VM, it's 
very likely that the TreeProcessor will be much slower than the compiled 
one.

Are you using a HotSpot VM ? If yes, you also have to give it some 
warm-up time before actually measuring performance.

Anyway, my tests were rather limited and I would be interested if people 
had the time and tools to perform more in-depth performance comparisons 
between the two engines.

Sylvain

-- 
Sylvain Wallez
  Anyware Technologies  Apache Cocoon
  http://www.anyware-tech.com   mailto:[EMAIL PROTECTED]




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: TreeProcessor performance

2002-05-27 Thread Olivier Rossel

COuld you please give us your bench with a brand new version of the 
sitemap.xmap (for example, edit it, change a line, save the file, 
measure the perf with a given processor, and reprocess all that for each
processor).

On a slow 128MB machine, sitemap compilation takes ages to complete.
TreeProcessor is much faster.

I did not try with Saxon.


Graaf, Edgar de (fin) wrote:

 Hi,
 
 Recently I installed the TreeProcessor instead of compiling. Everyone says
 it is faster then compiling the sitemap, so I didn't test it. Then I
 installed Saxon and tot test Saxon I did a Jmeter test. My application
 collapsed from 6 seconds average response time to 20 seconds!? So I put
 xalan back, 27 seconds!? Then I put the compiled version back and I got 6
 seconds my question to you is: 
 
 Does anybody know why this could be? Does the TreeProcessor cost more
 memory? (I only have 196 MB) Are there some bugs in certain versions of the
 TreeProcessor? Or is the TreeProcessor just not scaleable?
 
 Thanks,
 
 Edgar
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: TreeProcessor performance

2002-05-27 Thread Graaf, Edgar de (fin)

I don't know exactly what you mean. However I only have one computer, a 196
MB Pentium 233 MhZ. If that isn't slow...
Everyone says the treeprocessor is much faster, that is why this suprised me
so much. 
Of course when I change stuff the treeprocessor will be faster. But it has
to be faster when it is released and the program is not changed much



-Oorspronkelijk bericht-
Van: Olivier Rossel [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 11:05
Aan: [EMAIL PROTECTED]
Onderwerp: Re: TreeProcessor performance


COuld you please give us your bench with a brand new version of the 
sitemap.xmap (for example, edit it, change a line, save the file, 
measure the perf with a given processor, and reprocess all that for each
processor).

On a slow 128MB machine, sitemap compilation takes ages to complete.
TreeProcessor is much faster.

I did not try with Saxon.


Graaf, Edgar de (fin) wrote:

 Hi,
 
 Recently I installed the TreeProcessor instead of compiling. Everyone says
 it is faster then compiling the sitemap, so I didn't test it. Then I
 installed Saxon and tot test Saxon I did a Jmeter test. My application
 collapsed from 6 seconds average response time to 20 seconds!? So I put
 xalan back, 27 seconds!? Then I put the compiled version back and I got 6
 seconds my question to you is: 
 
 Does anybody know why this could be? Does the TreeProcessor cost more
 memory? (I only have 196 MB) Are there some bugs in certain versions of
the
 TreeProcessor? Or is the TreeProcessor just not scaleable?
 
 Thanks,
 
 Edgar
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

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




cannot deploy on JBoss 3

2002-05-27 Thread Charles Wishpot
Hi,

I'm trying to drop the cocoon.war file into the deploy directory of JBoss3 RC1, which uses Catalina (TomCat 4.0.3).

But I get the following error (see below) - NullPointerException trying to put the default context.

I've tried just deploying the .war file which fails. 
So I've tried the install instructions (http://xml.apache.org/cocoon/installing/index.html) even though JBoss 3 isn't mentioned, for TomCat 4.0.3 reference but I still get the same problem.
Basically, I tried adding xerces, xalan, xml-apis, batik-libs to the catalina/common/lib/ directory- but no joy here, so I also unjarred cocoon, edited WEB-INF/web.xml and added the extra-classpath param, re-jarred it but this made no difference.
I also tried the Catalina reference, removing crimson  jaxp, adding xml-apis to jboss/lib and adding it to the classpath when starting JBoss.

I also tried adding the following to cocoon.xconf, again with no difference:
parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/
I also trawled through the mailing list archives but found nothing that worked.

Does someone have it working and can point me in the right direction? What step have I missed?

Many TIA...I have battled for a couple of days with this, but I am running out of things to try.

Charles
-=-=-=-

11:40:25,880 ERROR [Engine] StandardContext[/cocoon]: Servlet /cocoon threw load() exceptionjavax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
snip, snip
11:40:25,885 ERROR [Engine] - Root Cause -java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107)Send and receive Hotmail on your mobile device: Click Here

-
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: Tomcat error, BeginnerQuestion

2002-05-27 Thread Graaf, Edgar de (fin)

Okay, great. But what I tried to tell you is that we need more information
to help you:
* What are you trying to do? Installing a new Xalan? Why as far as I know
Cocoon 2.0.2 already uses the newest Xalan.
* Why do you change web.xml? (Since that is not needed when you place a new
jar in a lib directory. Well not with the tomcat I use.)
* Why are you deleting xerces? Because xerces is a XML parser and xalan is a
XSLT Processor. It is totally different stuff and Cocoon 2 can't work
without a XML parser.
* What do you mean with the common lib. 'Tomcat/lib'? or do you mean
'.../cocoon/WEB-INF/lib'?
* What do you want to test? Performance?

-Oorspronkelijk bericht-
Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 7:30
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Tomcat error, BeginnerQuestion


Hey, it worked,
I just placed xercex-XXX along with batik, xalan, xml-apis into common
lib .
The error I was making was in web.xml. I had to put all this param-value
in single line and not multiple lines.

Now I want to make a test app of my own . how do I start.

-Original Message-
From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 24, 2002 4:45 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat error, BeginnerQuestion

Just curious. What did you change in the web.xml? And why did you remove
xerces? What version of Xerces did you use?

-Oorspronkelijk bericht-
Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 12:20
Aan: [EMAIL PROTECTED]
Onderwerp: Tomcat error, BeginnerQuestion




I am using Tomcat4.0.3.
I have removed xerces and placed xalanXXX, xercesXXX and xml-apis.jar
and change entries in web.xml and restarted the tomcat. I got following
exception. I am using Cocoon2.0.2.

Error starts here=

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
implement XMLReader

description java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
rateCode(AbstractMarkupLanguage.java:377)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
erateResource(ProgramGeneratorImpl.java:365)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateResource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)


request-uri

/cocoon/

path-info
==error ends==


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.html

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




RE: how do I redirect in an Action?

2002-05-27 Thread Graaf, Edgar de (fin)

It totally depends on what you want to replace with your resource...

if you have the pipeline like:
==
map:pipeline
...
...
map:match pattern=page1.html
map:generate src=page1.xml/
map:transform src=pageTohtml.xsl/
map:serialize type=html/

You can change this to the following:
=
map:resources
map:resource name=standard
map:transform src=pageTohtml.xsl/
map:serialize type=html/
/map:resource
/map:resources

map:pipelines

map:pipeline
...
...
map:match pattern=page1.html
map:generate src=page1.xml/
map:call resource=standard/
/map:match
...
/map:pipeline
..
/map:pipelines


The advantage is that if you change the stylesheet pageTohtml.xsl you only
have to change it in one place.


-Oorspronkelijk bericht-
Van: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 23 mei 2002 17:39
Aan: [EMAIL PROTECTED]
Onderwerp: RE: how do I redirect in an Action?



Thanks for all the suggestions.  I'm pretty confused at this point, as I
haven't used map:resource or map:select previously, so I need to spend
some time understanding the code you've offered.  One thing in particular I
don't see is where I should put my normal generate, transform, and
serialize steps for the protected URL.  Do they just go after the call to
the resource?

-Christopher



Hi Christopher and Edgar,

Couple things.  I could be wrong, but I believe in Edgar's example, the
redirect would always execute (since it sits outside the action).

Also, depending on how many protected url matchers you have, you can also
delegate all work to a resource where you could put all your authentication
and redirect logic (so you don't have to have it in each matcher).  So you
could do something like this:

 map:match pattern=some protected url
  map:call resource=authenticatedAccess
   map:parameter name=someIDForThisPipe
value=foo/
   ... any other params you might need to process this
pipe ...
  /map:call
 /map:match

 map:match pattern=some other protected url
  map:call resource=authenticatedAccess
   map:parameter name=someIDForThisPipe
value=bar/
   ... any other params you might need to process this
pipe ...
  /map:call
 /map:match

And the resource might look like:

 map:resource name=authenticatedAccess
  map:act type=my-authenticator
   map:select type=parameter
map:parameter
name=parameter-selector-test value={authStatus}/
map:when test=success
 ... stuff to process pipeline based
on params
/map:when
map:otherwise
 map:redirect-to
uri=loginpage.html/
/map:otherwise
   /map:select
  /map:act
 /map:resource


Anyway, hope that helps!

Harry




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: How can I use a different XSLT Processor?

2002-05-27 Thread Graaf, Edgar de (fin)

Thanx, I will try it out

-Oorspronkelijk bericht-
Van: Stephen Ng [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 14:50
Aan: [EMAIL PROTECTED]
Onderwerp: RE: How can I use a different XSLT Processor?


Although I was never totally successful with this, AFAIK this is what
you need to do for Saxon in Cocoon 2.0.2:

1. Replace xalan-2.3.1 with saxon.jar.
2. Use v1.9 of xsp.xsl
(http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
n/components/language/markup/xsp/java/xsp.xsl)
3. Start the servlet-engine with the additional switch
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac
toryImpl

Be sure to clear out your cache directory before restarting.

Steve

 -Original Message-
 From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, May 24, 2002 7:37 AM
 To: Cocoon-Users (E-mail)
 Subject: How can I use a different XSLT Processor?
 
 
 Hi,
 
 Can someone tell me how I would use a different XSLT 
 Processor? For example Saxon
 
 Regards
 
 Edgar
 
 -
 Please check that your question has not already been answered 
 in the FAQ before posting. 
http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

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




renewed Newbie Question

2002-05-27 Thread Jens Nie

Hi cocooners,

i just asked that question a couple of days before, but did not receive any 
response to it. And i suppose it's simple for you gurus. So i'm about to try 
again.

I have installed the jakarta-tomcat and cocoon packages shipped with the 
Suse-8.0 LinuX-Distribution. The examples work fine. 

The question is: what changes do i have to make to apache/tomcat/cocoon 
configuration to make cocoon processing work in user homepages?

Any sugestions? 

Sincerly
jneines


-- 
  Dipl. Phys. Jens Nie
 Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Cocoon on BEA Weblogic6.1 SP2

2002-05-27 Thread Atul Gulve

Hi,

I have deployed cocoon(2.0.1) application on bea WebLogic6.1 SP2.

The first cocoon welcome page is shown properly.
Now, the problem I am facing is, bea is not loading sub sitemaps.

I am getting following error on the browser.

Cocoon 2 - Internal server error



type fatal

message The current URI doesn't start with given prefix

description java.lang.RuntimeException: The current URI doesn't start with 
given prefix

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/documents/doclist.html

path-info

/documents/doclist.html






If I put all mappings in the main sitemap then it works. But I want to have 
different sitemaps for different directories under my webapp.


Could anyone tell me what to do?

Thanks in advance for your help.

atul

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: How can I use a different XSLT Processor?

2002-05-27 Thread Graaf, Edgar de (fin)

NullPointers and other strange error seemed to be solved. I still have to
test it with JMeter. If it stands that, great...

Thanks

Edgar

-Oorspronkelijk bericht-
Van: Stephen Ng [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 24 mei 2002 14:50
Aan: [EMAIL PROTECTED]
Onderwerp: RE: How can I use a different XSLT Processor?


Although I was never totally successful with this, AFAIK this is what
you need to do for Saxon in Cocoon 2.0.2:

1. Replace xalan-2.3.1 with saxon.jar.
2. Use v1.9 of xsp.xsl
(http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
n/components/language/markup/xsp/java/xsp.xsl)
3. Start the servlet-engine with the additional switch
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac
toryImpl

Be sure to clear out your cache directory before restarting.

Steve

 -Original Message-
 From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, May 24, 2002 7:37 AM
 To: Cocoon-Users (E-mail)
 Subject: How can I use a different XSLT Processor?
 
 
 Hi,
 
 Can someone tell me how I would use a different XSLT 
 Processor? For example Saxon
 
 Regards
 
 Edgar
 
 -
 Please check that your question has not already been answered 
 in the FAQ before posting. 
http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

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




RE: renewed Newbie Question

2002-05-27 Thread TREGAN Fabien

But what do i have to do, if i would 
like to dynamical transform XML to XHTML in a userhompage?
Say be trying to access http://myserver/~user/hello-page.xml?

All you have to do is tell tomcat (or whatever servlet container you use)
send (or redirect), http://myserver/~* to your cocoon app. Though this is
not a Cocoon related question, it is in the FAQ (go to
http://localhost:8080/cocoon, click on documentation, then FAQ and read
them.

-Message d'origine-
De: Jens Nie [mailto:[EMAIL PROTECTED]]
Date: lundi 27 mai 2002 13:34
À: [EMAIL PROTECTED]
Objet: renewed Newbie Question


Hi cocooners,

i just asked that question a couple of days before, but did 
not receive any 
response to it. And i suppose it's simple for you gurus. So 
i'm about to try 
again.

I have installed the jakarta-tomcat and cocoon packages 
shipped with the 
Suse-8.0 LinuX-Distribution. The examples work fine. 

The question is: what changes do i have to make to 
apache/tomcat/cocoon 
configuration to make cocoon processing work in user homepages?

Any sugestions? 

   Sincerly
   jneines


-- 
  Dipl. Phys. Jens Nie
 Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




AW: Cocoon on BEA Weblogic6.1 SP2

2002-05-27 Thread Peter, Reto

I'he succesfully deployed Cocoon on BEA WebLogic 6.1 SP2 on SUN Solaris 7/8
You have to do different things in the configuration of Cocoon and BEA:
(first shutdown BEA WebLogic)

1. The cocoon Libraries consists of '.' in the names. Eliminated them.
2. Mostly cocoon Libraries consists the file Manifest.mf in the META-INF
directory. Eliminate them.
-- for these 2 steps, there's a patch or two from BEA which fixes it

3. Deploy your application in the file structure form, not as a war file
4. use the PJA X-window server in the form:

java $JAVA_OPTIONS -classpath $CLASSPATH
-Xbootclasspath/a:/export/users/sagcpe/bea/pja/lib/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava.awt.fonts=/appl/bea/jdk131/jre/lib/fonts/ -Dweblogic.Domain=sagcsun
-Dweblogic.Name=wls61sp2 -Dbea.home=/export/users/sagcpe/bea
-Dweblogic.management.password=$WLS_PW
-Dweblogic.ProductionModeEnabled=$STARTMODE
-Djava.security.policy==/export/users/sagcpe/bea/wlserver6.1/lib/weblogic.po
licy weblogic.Server

Be sure to copy the PJA-files in the appropriate directory of your choice

5. Maybe, you have to change the file cocoon.xconf as follows
xslt-processor
class=org.apache.cocoon.components.xslt.XSLTProcessorImpl
logger=root.xslt
parameter name=use-store value=true/
parameter name=incremental-processing value=true/
parameter name=transformer-factory
value=org.apache.xalan.processor.TransformerFactoryImpl/
/xslt-processor

instead of the normal 'xslt-processor' tag. In my env, this was needed!

6. Manually change the file config.xml from BEA as follows:
Application Deployed=true Name=myCocoon
Path=./config/sagcsun/applications
WebAppComponent Name=myCocoon Targets=wls61sp2 URI=myCocoon/
/Application 

-- myCocoon is the directory, where the Cocoon application resides!

Based on my experience, the Cocoon installation steps from the website is
not ok.
The file xml-apis.jar and xerces-1.x.x.jar are not necessary to include in
the classpath!

I hope this helps.
Reto Peter

 -Ursprungliche Nachricht-
 Von: Atul Gulve [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 27. Mai 2002 13:34
 An: [EMAIL PROTECTED]
 Betreff: Cocoon on BEA Weblogic6.1 SP2
 
 
 Hi,
 
 I have deployed cocoon(2.0.1) application on bea WebLogic6.1 SP2.
 
 The first cocoon welcome page is shown properly.
 Now, the problem I am facing is, bea is not loading sub sitemaps.
 
 I am getting following error on the browser.
 
 Cocoon 2 - Internal server error
 
 --
 --
 
 type fatal
 
 message The current URI doesn't start with given prefix
 
 description java.lang.RuntimeException: The current URI 
 doesn't start with 
 given prefix
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 request-uri
 
 /cocoon/documents/doclist.html
 
 path-info
 
 /documents/doclist.html
 
 
 
 
 
 
 If I put all mappings in the main sitemap then it works. But 
 I want to have 
 different sitemaps for different directories under my webapp.
 
 
 Could anyone tell me what to do?
 
 Thanks in advance for your help.
 
 atul
 
 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Jtidy and character escaping

2002-05-27 Thread Bert Van Kets

I'm using JTidy to convert a string containing some HTML to XHTML in a DOM 
tree.  I can't get the foreign characters like éèà converted to the XHTML 
counterpart.  What setting do I need to use???

Here's a code snip from my XSP page:

   String strContent = request.getParameter(content);
   ByteArrayInputStream in = new ByteArrayInputStream( 
strContent.getBytes() );
   String strOut = ;
   org.w3c.dom.Document doc = null;
   org.w3c.tidy.Configuration conf = new org.w3c.tidy.Configuration();
   try {
 Tidy tidy = new Tidy();

 //create output as XML
 tidy.setXmlOut(true);

 //output should be XHTML conforming
 tidy.setXHTML(true);

 tidy.setBreakBeforeBR(false);
 tidy.setRawOut(false);
 tidy.setCharEncoding( conf.UTF8 );

 //do not output 'non-breaking space' as entity.
 tidy.setQuoteNbsp(true);

 //output naked ampersand as amp;
 tidy.setQuoteAmpersand(true);

 //drop presentation tags
 tidy.setLiteralAttribs(true);

 //parse the stream to a DOM document
 doc =  tidy.parseDOM(in, null);
   } catch (Exception e) {
   }

Bert


*Friends Are Angels Who Lift Us To Our Feet When Our Wings Have Trouble 
Remembering How To Fly*


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: AW: Cocoon on BEA Weblogic6.1 SP2

2002-05-27 Thread Atul Gulve

Hi Reto,

Thanks for your reply.

I want to deploy this application on Windows 2000. So I suppose I dont have 
to do step 4(PJA X-Window server).

Rest of the steps, I have already done. I have added two patches from bea in 
my classpath.

I have the welcome page of cocoon (Cocoon 2.0.1 default application) but not 
Docs,Tutorial,List of Docs, Search under Documentation on the welcome page. 
Other links are working because those are defined in the main sitemap. For 
the above mentioned links different sitemaps have been defined.

I have observed that bea is generating the sitemaps but not able to load(I 
may not be using proper term here) them.


Thanks in advance.

Atul



From: Peter, Reto [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: AW: Cocoon on BEA Weblogic6.1 SP2
Date: Mon, 27 May 2002 13:50:42 +0200

I'he succesfully deployed Cocoon on BEA WebLogic 6.1 SP2 on SUN Solaris 7/8
You have to do different things in the configuration of Cocoon and BEA:
(first shutdown BEA WebLogic)

1. The cocoon Libraries consists of '.' in the names. Eliminated them.
2. Mostly cocoon Libraries consists the file Manifest.mf in the META-INF
directory. Eliminate them.
-- for these 2 steps, there's a patch or two from BEA which fixes it

3. Deploy your application in the file structure form, not as a war file
4. use the PJA X-window server in the form:

java $JAVA_OPTIONS -classpath $CLASSPATH
-Xbootclasspath/a:/export/users/sagcpe/bea/pja/lib/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava.awt.fonts=/appl/bea/jdk131/jre/lib/fonts/ -Dweblogic.Domain=sagcsun
-Dweblogic.Name=wls61sp2 -Dbea.home=/export/users/sagcpe/bea
-Dweblogic.management.password=$WLS_PW
-Dweblogic.ProductionModeEnabled=$STARTMODE
-Djava.security.policy==/export/users/sagcpe/bea/wlserver6.1/lib/weblogic.po
licy weblogic.Server

Be sure to copy the PJA-files in the appropriate directory of your choice

5. Maybe, you have to change the file cocoon.xconf as follows
xslt-processor
class=org.apache.cocoon.components.xslt.XSLTProcessorImpl
logger=root.xslt
parameter name=use-store value=true/
parameter name=incremental-processing value=true/
parameter name=transformer-factory
value=org.apache.xalan.processor.TransformerFactoryImpl/
/xslt-processor

instead of the normal 'xslt-processor' tag. In my env, this was needed!

6. Manually change the file config.xml from BEA as follows:
 Application Deployed=true Name=myCocoon
Path=./config/sagcsun/applications
 WebAppComponent Name=myCocoon Targets=wls61sp2 
URI=myCocoon/
 /Application

-- myCocoon is the directory, where the Cocoon application resides!

Based on my experience, the Cocoon installation steps from the website is
not ok.
The file xml-apis.jar and xerces-1.x.x.jar are not necessary to include in
the classpath!

I hope this helps.
Reto Peter

  -Ursprungliche Nachricht-
  Von: Atul Gulve [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 27. Mai 2002 13:34
  An: [EMAIL PROTECTED]
  Betreff: Cocoon on BEA Weblogic6.1 SP2
 
 
  Hi,
 
  I have deployed cocoon(2.0.1) application on bea WebLogic6.1 SP2.
 
  The first cocoon welcome page is shown properly.
  Now, the problem I am facing is, bea is not loading sub sitemaps.
 
  I am getting following error on the browser.
 
  Cocoon 2 - Internal server error
 
  --
  --
 
  type fatal
 
  message The current URI doesn't start with given prefix
 
  description java.lang.RuntimeException: The current URI
  doesn't start with
  given prefix
 
  sender org.apache.cocoon.servlet.CocoonServlet
 
  source Cocoon servlet
 
  request-uri
 
  /cocoon/documents/doclist.html
 
  path-info
 
  /documents/doclist.html
 
  
 
 
 
 
  If I put all mappings in the main sitemap then it works. But
  I want to have
  different sitemaps for different directories under my webapp.
 
 
  Could anyone tell me what to do?
 
  Thanks in advance for your help.
 
  atul
 
  _
  Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: Jtidy and character escaping

2002-05-27 Thread Manos Batsis


Bert,

Please use the appropriate mailing list for Jtidy; that's your best bet. You can find 
related info at [1].

[1] http://lempinen.net/sami/jtidy/

Hth,

Manos

 -Original Message-
 From: Bert Van Kets [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, May 27, 2002 3:07 PM
 To: [EMAIL PROTECTED]
 Subject: Jtidy and character escaping
 
 
 I'm using JTidy to convert a string containing some HTML to 
 XHTML in a DOM 
 tree.  I can't get the foreign characters like éèà converted 
 to the XHTML 
 counterpart.  What setting do I need to use???
 
 Here's a code snip from my XSP page:
 
String strContent = request.getParameter(content);
ByteArrayInputStream in = new ByteArrayInputStream( 
 strContent.getBytes() );
String strOut = ;
org.w3c.dom.Document doc = null;
org.w3c.tidy.Configuration conf = new 
 org.w3c.tidy.Configuration();
try {
  Tidy tidy = new Tidy();
 
  //create output as XML
  tidy.setXmlOut(true);
 
  //output should be XHTML conforming
  tidy.setXHTML(true);
 
  tidy.setBreakBeforeBR(false);
  tidy.setRawOut(false);
  tidy.setCharEncoding( conf.UTF8 );
 
  //do not output 'non-breaking space' as entity.
  tidy.setQuoteNbsp(true);
 
  //output naked ampersand as amp;
  tidy.setQuoteAmpersand(true);
 
  //drop presentation tags
  tidy.setLiteralAttribs(true);
 
  //parse the stream to a DOM document
  doc =  tidy.parseDOM(in, null);
} catch (Exception e) {
}
 
 Bert
 
 
 *Friends Are Angels Who Lift Us To Our Feet When Our Wings 
 Have Trouble 
 Remembering How To Fly*
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




RE: renewed Newbie Question

2002-05-27 Thread Graaf, Edgar de (fin)

If I understand you correctly you want users to be able to place xml in
cocoon that is processed by cocoon.
Well:
1. Create a subdirectory in ../cocoon/
2. Mount that directory (in the sitemap.xmap of /cocoon/)
3. In that subdirectory you place a sitemap.xmap
4. Per user make a directory and give them access.
5. If you want them to be able to run xsp you add the following to the
sitemap:
map:match pattern=apidoc/**.xsp
  map:generate type = serverpages src = docs/{1}.xsp/
  !--map:transform src=whatever/--
  map:serialize type = html/
/map:match

-Oorspronkelijk bericht-
Van: Jens Nie [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 13:34
Aan: [EMAIL PROTECTED]
Onderwerp: renewed Newbie Question


Hi cocooners,

i just asked that question a couple of days before, but did not receive any 
response to it. And i suppose it's simple for you gurus. So i'm about to try

again.

I have installed the jakarta-tomcat and cocoon packages shipped with the 
Suse-8.0 LinuX-Distribution. The examples work fine. 

The question is: what changes do i have to make to apache/tomcat/cocoon 
configuration to make cocoon processing work in user homepages?

Any sugestions? 

Sincerly
jneines


-- 
  Dipl. Phys. Jens Nie
 Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




deploy in JBoss3

2002-05-27 Thread cnsxxx09

Hi,

Is there an Install guide for Cocoon2 with JBoss3 (RC1)  Catalina out there?

I have tried the excellent installation web page on the Cocoon web site (+ the mail 
archives), but unfortunately neither the Tomcat 4.0.3 nor the Catalina/JBoss2 
instructions have worked for me. I have searched the archives and tried what must be 
every combination of things...but the right combination still eludes me.
When I drop the cocoon.war file into the jboss/server/default/deploy/ directory I get 
the following Stack Tracethe key problem appears to be with DefaultContext.put 
returning a NullPointerException.

Thanks for help on this

C.


15:27:41,950 ERROR [Engine] StandardContext[/cocoon]: Servlet /cocoon threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)

15:27:41,953 ERROR [Engine] - Root Cause -
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107)
at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:423)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)

15:27:41,950 ERROR [Engine] StandardContext[/cocoon]: Servlet /cocoon threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at 
org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:284)
at 
org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:204)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:405)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:350)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:530)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:410)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
15:27:41,953 ERROR [Engine] - Root Cause -
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107)
at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:423)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at 

Problem while redirecting useing Redirector

2002-05-27 Thread manish

Hello,
I am trying to redirect the user to some url in act function, it
execute the related xsp page, but don't display any thing on browser.
your help will be highly appriciatable

Thanks and regards,
Manish Jain

The code is like...

  if
(((String)request.getAttribute(PermissionDenied)).equals(true))
{
request.setAttribute(PermissionDenied,false);


redirector.redirect(false,showerror);
}
catch(IOException io)
{
System.out.println(can not do rediect+io);
}
return ;
}


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: cannot deploy on JBoss 3

2002-05-27 Thread John Austin

On Monday 27 May 2002 06:14 am, you wrote:
 htmldiv style='background-color:'DIVHi,/DIV
  ... snip ...

Charles, not everyone reads HTML. I use KMail and have HTML turned off

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




os x install problem

2002-05-27 Thread Paul Kelly

platform: os x
tomcat: 4.0.1
cocoon: 2
java version: 1.3.1

tomcat installs just fine. adding cocoon.war causes tomcat to crash 
every time I attempt to access /cocoon/. The only thing in the logs 
that looks informative is in catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Server 1.6 is running
Press [Ctrl]+[C] to abort
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
(ipc/send) invalid destination port : initCGDisplayState: cannot map 
display interlocks.
kCGErrorFailure : CGSNewConnection cannot connect to server
kCGErrorFailure : CGSNewConnection cannot connect to server
kCGErrorInvalidConnection : CGSGetEventPort: Invalid connection

Other logs just have all kinds of DEBUG crap. Any help is greatly appreciated.

--paul

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: cannot deploy on JBoss 3

2002-05-27 Thread cnsxxx09

Sorry, 

its that mingin' Hotmail...(I can only use KMail from home) - didn't realise it 
defaulted to HTML. In fact no messages came through anyway, so maybe Hotmail is 
barred...

I sent it again from a better accountstill frustrated by 2 days of problems.

C.
--

John Austin [EMAIL PROTECTED] wrote:

On Monday 27 May 2002 06:14 am, you wrote:
 htmldiv style='background-color:'DIVHi,/DIV
  ... snip ...

Charles, not everyone reads HTML. I use KMail and have HTML turned off

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




__
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/faqs.html

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




RE: Tomcat error, BeginnerQuestion

2002-05-27 Thread james

Hi,

Since we're on this, why is it that by changing the xerces that comes with
cocoon and putting in xerces1.4 works for me?I got exactly the same error using the 
xerces that comes with cocoon.
I'm using Tomcat 4.0.3, cocoon 2.0.2, jdk1.3.1_02 on windows 2000.

Any clue?

Thanks, James

 Okay, great. But what I tried to tell you is that we need more
 information to help you:
 * What are you trying to do? Installing a new Xalan? Why as far as I
 know Cocoon 2.0.2 already uses the newest Xalan.
 * Why do you change web.xml? (Since that is not needed when you place a
 new jar in a lib directory. Well not with the tomcat I use.)
 * Why are you deleting xerces? Because xerces is a XML parser and xalan
 is a XSLT Processor. It is totally different stuff and Cocoon 2 can't
 work without a XML parser.
 * What do you mean with the common lib. 'Tomcat/lib'? or do you mean
 '.../cocoon/WEB-INF/lib'?
 * What do you want to test? Performance?

 -Oorspronkelijk bericht-
 Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
 Verzonden: maandag 27 mei 2002 7:30
 Aan: [EMAIL PROTECTED]
 Onderwerp: RE: Tomcat error, BeginnerQuestion


 Hey, it worked,
 I just placed xercex-XXX along with batik, xalan, xml-apis into common
 lib .
 The error I was making was in web.xml. I had to put all this
 param-value in single line and not multiple lines.

 Now I want to make a test app of my own . how do I start.

 -Original Message-
 From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 24, 2002 4:45 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Tomcat error, BeginnerQuestion

 Just curious. What did you change in the web.xml? And why did you
 remove xerces? What version of Xerces did you use?

 -Oorspronkelijk bericht-
 Van: Rajeev Singh [mailto:[EMAIL PROTECTED]]
 Verzonden: vrijdag 24 mei 2002 12:20
 Aan: [EMAIL PROTECTED]
 Onderwerp: Tomcat error, BeginnerQuestion




 I am using Tomcat4.0.3.
 I have removed xerces and placed xalanXXX, xercesXXX and xml-apis.jar
 and change entries in web.xml and restarted the tomcat. I got following
 exception. I am using Cocoon2.0.2.

 Error starts here=

 type fatal

 message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
 implement XMLReader

 description java.lang.ClassCastException:
 org.apache.xerces.parsers.StandardParserConfiguration

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 stack-trace

 java.lang.ClassCastException:
 org.apache.xerces.parsers.StandardParserConfiguration
   at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
 Source)
   at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
 Source)
   at
 org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.gene
 rateCode(AbstractMarkupLanguage.java:377)
   at
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
 erateResource(ProgramGeneratorImpl.java:365)
   at
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
 ateResource(ProgramGeneratorImpl.java:328)
   at
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
 d(ProgramGeneratorImpl.java:291)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:484)


 request-uri

 /cocoon/

 path-info
 ==error ends==


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html

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




Removing batik from Cocoon 2.0.2 build

2002-05-27 Thread Lajos Moczar

Hi all -

I've been experimenting in building a Cocoon that doesn't require an X 
server. I removed batik-all-1.5b1.jar from the build, along with all the 
svg examples in the sitemap, rebuilt and tried it. I found that in 
addition to these changes, the FOPSerializer needs to be commented out 
for Cocoon to run without an X server. When I comment it out, everything 
runs fine. But if I leave it in, I get an exception because 
FOPSerializer apparently relies on org.apache.batik.bridge.UserAgent. Is 
the only way for the FOP renderer to work is using batik? I don't need 
svg in my application, but I do need FOP. If FOP indeed needs batik, 
then it looks like I'm stuck with xvfb, Java 1.4 or the eteks.com 
version of awt.

Thanks in advance.

Lajos
galatea.com


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




CocoBlog 0.0.3 released

2002-05-27 Thread Ugo Cei

I've just uploaded version 0.0.3 of CocoBlog here:
http://www.beblogging.com/dist/cocoblog-0_0_3.zip

CocoBlog is a free weblogging software tool based on Apache Cocoon and 
Apache Xindice.

At the moment it is able to manage a single-user weblog, stored in an 
XML repository and publish it via Cocoon. The use of Cocoon allows to 
obtain a nice separation of content and presentation, so that the 
appearance of the pages is entirely determined by XSLT stylesheets.

What it mostly lacks is a decent editing and management subsystem. 
Contributions in this area are especially welcomed.

CocoBlog is an Open Source product, distributed under the Apache 
Software License.

Changes in this release:

- Moved administrative functions under the /admin URL path and
   protected them by default.
- Added a preliminary implementation of RSS syndication.
- Fixed missing rss:link and rss:description in the
   RSS 1.0 feed.

Happy blogging!

-- 
Ugo Cei - http://www.beblogging.com/blog/


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




[FYI] Cocoon on WebLogic 7.0

2002-05-27 Thread Konstantin Piroumian

Hi, cocooners!

I was able to install Cocoon 2.1-dev on WebLogic 7.0. It required some minor
changes to Cocoon.java and CocoonServlet.java and renaming all the jar files
with dots to something without dots (e.g.: myjar-1.0.jar - myjar.jar).

After starting the server I could successfully access the start page and
several samples (including most of the Hello World, the XMLForm sample). Due
to a bug in Weblogic's version of Xalan i18n samples failed to run (it was a
NPE somewhere in toSAX(), saying something about wrong DTMs). There were
also other problems with Calculator example and some others.

How to install:

- get the latest source (2.1-dev)
- hack Cocoon.java and CocoonServlet.java: comment out the parts where
Cocoon sets system properties (JAXP properties). They are marked with
'FIXME's from Vadim
- build Cocoon
- copy cocoon webapp directory (not the WAR!) to
user_projects/mydomain/myserver/applications.
- rename all the JARs in WEB-INF/lib with dots to something without dots

And that's all. No need to change server configuration or so. I could even
run Cocoon after removing xerces and xalan libs from WEB-INF/libs. But note,
that WLs versions are a little out of date and buggy.

Konstantin

P.S. Vadim, the patch for WL 6.1 broke the server startup with an exception
like: MethodNotFound or so.

_
Konstantin Piroumian
Lead Developer
ICQ#: 2297575
( Work Tel#:  +7 095 795 0520 * 1288
+ More ways to contact me
i See more about me
_

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




cocoon actions

2002-05-27 Thread Jim

Hi,

I'm new to cocoon, and I'm having a few difficulties with actions.

I've tried writing the sample HelloWorld action, but I'm not sure what to do
with it.  I'm able to compile it, but where do I put it?  I modified the
code slightly - making it part of a package I call 'Security' and commenting
out the body of the method (except for a return null;).  I'm trying to make
a skeleton I can work from.  (And Security-related actions are what I'll be
working on to start)

I put it in the cocoon/WEB-INF/classes/Security subdirectory, and I added
the following to WEB-INF/web.xml:

init-param
param-nameAddons/param-name
param-valueWEB-INF/classes/param-name
/init-param

Of course, I also modified my sitemap appropriately:
map:actions
 map:action name=form
src=org.apache.cocoon.acting.FormValidatorAction/
 map:action name=login src=Security.LoginAction/
 /map:actions
...
map:action-sets
 map:action-set name=login-actions
  map:act type=form/
  map:act type=login/
 /map:action-set
/map:action-sets

If it helps, here is a portion of the error I'm getting:

org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 602, column 19: variable action_set_login not found in
class org.apache.cocoon.www.inv.sitemap_xmap Line 602, column 36: method
actions

Thanks in advance,
Jim Vlasblom



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon on BEA Weblogic6.1 SP2

2002-05-27 Thread Konstantin Piroumian

From: Atul Gulve [EMAIL PROTECTED]

 Hi,

 I have deployed cocoon(2.0.1) application on bea WebLogic6.1 SP2.

Great!

Could you please tell us how you did it?


 The first cocoon welcome page is shown properly.
 Now, the problem I am facing is, bea is not loading sub sitemaps.

 I am getting following error on the browser.

 Cocoon 2 - Internal server error

 --
--

 type fatal

 message The current URI doesn't start with given prefix

 description java.lang.RuntimeException: The current URI doesn't start with
 given prefix

 sender org.apache.cocoon.servlet.CocoonServlet

 source Cocoon servlet

 request-uri

 /cocoon/documents/doclist.html

 path-info

 /documents/doclist.html

 




 If I put all mappings in the main sitemap then it works. But I want to
have
 different sitemaps for different directories under my webapp.


 Could anyone tell me what to do?

See Cocoon logs to see if this is a Cocoon error. If you give more info on
the source of the error then we'll try to help.

Konstantin


 Thanks in advance for your help.

 atul

 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Test

2002-05-27 Thread Konstantin Piroumian

Ignore please.

Sorry for inconvenience. 
_
Konstantin Piroumian
Lead Developer
_

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




[TEST] Please ignore

2002-05-27 Thread Konstantin Piroumian

Trying to find out why my messages don't reach the list.

Konstantin


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: cocoon actions

2002-05-27 Thread Artur Bialecki


The example you provided only declares the actions. In order
to use them you have to use them in you pipelines using
the map:act or using the cocoon-action request parameter
(check the action user docs).

Also, examin your generated sitemap java file sitemap_xmap.java
probably in your appservers WEB-INF/work directory.

Returning null from an action means that that action failed,
you might want to return an empty Map instead.

Artur

 -Original Message-
 From: Jim [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 27, 2002 2:31 PM
 To: [EMAIL PROTECTED]
 Subject: cocoon actions
 
 
 Hi,
 
 I'm new to cocoon, and I'm having a few difficulties with actions.
 
 I've tried writing the sample HelloWorld action, but I'm not sure what to do
 with it.  I'm able to compile it, but where do I put it?  I modified the
 code slightly - making it part of a package I call 'Security' and commenting
 out the body of the method (except for a return null;).  I'm trying to make
 a skeleton I can work from.  (And Security-related actions are what I'll be
 working on to start). 
 
 I put it in the cocoon/WEB-INF/classes/Security subdirectory, and I added
 the following to WEB-INF/web.xml:
 
 init-param
 param-nameAddons/param-name
 param-valueWEB-INF/classes/param-name
 /init-param
 
 Of course, I also modified my sitemap appropriately:
 map:actions
  map:action name=form
 src=org.apache.cocoon.acting.FormValidatorAction/
  map:action name=login src=Security.LoginAction/
  /map:actions
 ...
 map:action-sets
  map:action-set name=login-actions
   map:act type=form/
   map:act type=login/
  /map:action-set
 /map:action-sets
 
 If it helps, here is a portion of the error I'm getting:
 
 org.apache.cocoon.components.language.LanguageException: Error compiling
 sitemap_xmap: Line 602, column 19: variable action_set_login not found in
 class org.apache.cocoon.www.inv.sitemap_xmap Line 602, column 36: method
 actions
 
 Thanks in advance,
 Jim Vlasblom
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

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




Re: renewed Newbie Question

2002-05-27 Thread Jens Nie

Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin):
 If I understand you correctly you want users to be able to place xml in
 cocoon that is processed by cocoon.
 Well:
 1. Create a subdirectory in ../cocoon/
 2. Mount that directory (in the sitemap.xmap of /cocoon/)
 3. In that subdirectory you place a sitemap.xmap
 4. Per user make a directory and give them access.
 5. If you want them to be able to run xsp you add the following to the
 sitemap:
 map:match pattern=apidoc/**.xsp
   map:generate type = serverpages src = docs/{1}.xsp/
   !--map:transform src=whatever/--
   map:serialize type = html/
 /map:match

Well at first thank you for that suggestion. But i think it does not exactly 
match what i wan't to do using cocoon. See the following example:

http://localhost:8080/cocoon/samples/hello/hello-page.xml

gives me the simplest xml-to html transform possible. That's taken from the 
live samples section of cocoon, and is working pretty well.
As far as i understand the whole thing, this works because tomcat running at 
localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path and 
it's an xml-document. What I wan't to have working is the same thing with the 
following url:

http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml

or even better

http://localhost/~user/hello-page.xml

that is really all that would be satisfying (at the moment of course)

Thanks for any help

jneines

-- 
Dipl.-Phys. Jens Nie
Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: cannot deploy on JBoss 3

2002-05-27 Thread John Austin

On Monday 27 May 2002 11:11 am, you wrote:
 Sorry,

 its that mingin' Hotmail...(I can only use KMail from home) - didn't
 realise it defaulted to HTML. In fact no messages came through
 anyway, so maybe Hotmail is barred...

 I sent it again from a better accountstill frustrated by 2 days
 of problems.

I would expect that you can only post from the address you used when 
you joined the list. Otherwise, the list server can't know you are a 
valid person.

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: renewed Newbie Question

2002-05-27 Thread John Austin

On Monday 27 May 2002 03:41 pm, you wrote:



 Well at first thank you for that suggestion. But i think it does not
 exactly match what i wan't to do using cocoon. See the following
 example:

 http://localhost:8080/cocoon/samples/hello/hello-page.xml

Umm ... could you put in a hostname that points to your site.
'localhost' is different for everybody.

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: cannot deploy on JBoss 3

2002-05-27 Thread Artur Bialecki


I've tried using cocoon2 with JBoss 2.4.4 and Tomcat 4.0.3 and
couldn't get it to work. When I installed Tomcat 4.0.4b2 everything
worked. I think some other people on this list also had problems
with 4.0.3.

HTML mail == BAD mojo

Artur...


-Original Message-
From: Charles Wishpot [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 6:15 AM
To: [EMAIL PROTECTED]
Subject: cannot deploy on JBoss 3


Hi,

I'm trying to drop the cocoon.war file into the deploy directory of JBoss3 RC1, which 
uses Catalina (TomCat 4.0.3).

But I get the following error (see below) - NullPointerException trying to put the 
default context.

I've tried just deploying the .war file which fails.
So I've tried the install instructions 
(http://xml.apache.org/cocoon/installing/index.html) even though JBoss 3 isn't 
mentioned, for
TomCat 4.0.3 reference but I still get the same problem.
Basically, I tried adding xerces, xalan, xml-apis, batik-libs to the 
catalina/common/lib/ directory - but no joy here, so I also
unjarred cocoon, edited WEB-INF/web.xml and added the extra-classpath param, re-jarred 
it but this made no difference.
I also tried the Catalina reference, removing crimson  jaxp, adding xml-apis to 
jboss/lib and adding it to the classpath when
starting JBoss.

I also tried adding the following to cocoon.xconf, again with no difference:
parameter name=transformer-factory 
value=org.apache.xalan.processor.TransformerFactoryImpl/

I also trawled through the mailing list archives but found nothing that worked.

Does someone have it working and can point me in the right direction? What step have I 
missed?

Many TIA...I have battled for a couple of days with this, but I am running out of 
things to try.

Charles
-=-=-=-

11:40:25,880 ERROR [Engine] StandardContext[/cocoon]: Servlet /cocoon threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
snip, snip
11:40:25,885 ERROR [Engine] - Root Cause -
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107)



Send and receive Hotmail on your mobile device: Click Here
- Please check 
that your question has not already been answered
in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail:


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Cocoon/Weblogic

2002-05-27 Thread Ken Abe

Hi,

Does anyone know where to find information on how to install Cocoon 2 on
BEA Weblogic? The instructions provided on the Apache site don't work for
me.

Thanks.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Real dumb question - how to concatenate XML files

2002-05-27 Thread daniel robinson


Ok.  This is a dumb one, for many reasons - but I've been trying to
figure it out for hours and have been all over the mail archives to try
and figure it out.

Say I have 3 XML files and I want to use them with an XSLT to respond to

a request.  What is the best way to do this?  I checked out the FAQ but
had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being
concatenated.  An example would be VERY USEFUL.  I tried using cinclude
but that didn't help.

Sorry for being such a noob.






-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: cannot deploy on JBoss 3

2002-05-27 Thread cnsxxx09

Thanks for the replies (and for not being too rude about accidentally sending HTML 
mail...)

Surely it can't be *that* difficult to get it working in JBoss3/Catalina?
Strangely enough I *did* have it working at home.so I know it can workafter 
battling with problems I ended up getting it working and after the combination of 
things I tried I ended up with the following:
   added cocoon.jar to catalina/lib/
   added xml-apis.jar to jboss/lib/
   added xml-apis.jar to JBOSS_CLASSPATH in run.sh
...maybe none of these made a difference or are needed, or maybe I did something else 
which I cannot remember.

It's possible even that something else running on the same box is conflicting (though 
I've changed most of the default port settings).

If I get it working I'll post back what needs doing

C.
--

Artur Bialecki [EMAIL PROTECTED] wrote:


I've tried using cocoon2 with JBoss 2.4.4 and Tomcat 4.0.3 and
couldn't get it to work. When I installed Tomcat 4.0.4b2 everything
worked. I think some other people on this list also had problems
with 4.0.3.

HTML mail == BAD mojo

Artur...


-Original Message-
From: Charles Wishpot [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 6:15 AM
To: [EMAIL PROTECTED]
Subject: cannot deploy on JBoss 3


Hi,

I'm trying to drop the cocoon.war file into the deploy directory of JBoss3 RC1, which 
uses Catalina (TomCat 4.0.3).

But I get the following error (see below) - NullPointerException trying to put the 
default context.

I've tried just deploying the .war file which fails.
So I've tried the install instructions 
(http://xml.apache.org/cocoon/installing/index.html) even though JBoss 3 isn't 
mentioned, for
TomCat 4.0.3 reference but I still get the same problem.
Basically, I tried adding xerces, xalan, xml-apis, batik-libs to the 
catalina/common/lib/ directory - but no joy here, so I also
unjarred cocoon, edited WEB-INF/web.xml and added the extra-classpath param, 
re-jarred it but this made no difference.
I also tried the Catalina reference, removing crimson  jaxp, adding xml-apis to 
jboss/lib and adding it to the classpath when
starting JBoss.

I also tried adding the following to cocoon.xconf, again with no difference:
parameter name=transformer-factory 
value=org.apache.xalan.processor.TransformerFactoryImpl/

I also trawled through the mailing list archives but found nothing that worked.

Does someone have it working and can point me in the right direction? What step have 
I missed?

Many TIA...I have battled for a couple of days with this, but I am running out of 
things to try.

Charles
-=-=-=-

11:40:25,880 ERROR [Engine] StandardContext[/cocoon]: Servlet /cocoon threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
snip, snip
11:40:25,885 ERROR [Engine] - Root Cause -
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:380)
        at 
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107)



Send and receive Hotmail on your mobile device: Click Here
- Please check 
that your question has not already been answered
in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail:


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




__
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/faqs.html

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