Re: Encoding non-english characters in XSP (C2.0.2)

2002-03-28 Thread Andrey Demchenko

Hi, Vadim.

- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>

> > 2) How can I put "-encoding KOI8-R" to javac
> >  in servlet container e.g. Resin 2.0.5, Tomcat 4.0?
 
> You can change encoding for the whole JVM right now

May be this is offtopic but I do not know
how set encoding for the whole JVM.
Give me an example for JDK 1.3, 1.4, please.



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




sunrise authentication help and clarification

2002-03-28 Thread Chitharanjan Das


Hello Matthew,

Let me start my commending U on the well written article, however I have
some questions 

I have played around with the sunshine basic authentication and it works

, however my requirements are the following..
Please advise whether this can be achieved with the current architecture
or should I forego using  sunRise

Following is the pipeline fragment



   
 
 
 
  

 

The requirement is that any pattern with URI protected/* should be
authenticated.

Let me explain what would happen

1. For the first access to the protected/* resource
2. The sunrise Auth action redirects the request to the login page
3. The pipeline for login page will throw an html page that  calls the
pipeline foo-login. 
a. If the login is successful that it gets redirected to foo-protected
b. If failure it executes the pipeline fragment defined outside the
action sunRise-login
Question:
For first time access, How does foo-authUser gets called at all?
   
  If the access for the protected is not the first time
1. The uri for authentication is invoked .In this case foo-authuser. If
there is a validation against database, for each access
There is database access (Am I right).
2. If there is a failure in authuser (for eg:  password changed somehow
or user was made inactive in database), what will happen.

If the access to the protected/* had some request parameters for eg:
/protected/testXSP?param=a¶m2=b
Since there is a URL post to the login page, wouldn't the  request  be
re-written and all the parameters get lost  and when the user is
redirected to the original url
The request object is not the original one.
In the context of the above example

1. User requests the URL /protected/testXSP?param1=a¶m2=b
2. Let us assume that this is the first access. The user is redirected
to the login page. 
3. User enters user id and password and this presses submit button.
4. The user gets authenticated and gets re-directed to the original
resource /protected/testXSP. How will I get the original request
patameters param1 & param2. 
Since the user was redirected many times the request object is not the
original one. 

In my view,
sunshine authentication should only be used for login and not
for page level authentication as user may loose the request parameters.
(I hope I am wrong)


Also in the tutorial
(http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents
.html ), there is a mention about how to ensure that the user get
re-directed to the original requested resource.

Should the sunrise Action be modified (by code) to achieve this or is it
possible with configuration. (How do I pass the resource parameter from
pipeline fragment to the sunrise Action) ? Can anyone describe the
setup, if one has achieved this

Sorry for the length mail, I hope I've stated my case...


Regds,
Chiths





-
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: [SOLVED] RE: Problem with JSP in mounted sitemap

2002-03-28 Thread yuryx

Piroumian, Konstantin wrote:

>Good evening!
>
>It seems that I've solved the problem with JSPs. Patch will be available in
>CVS tomorrow.
>
>Regards,
>Konstantin Piroumian
>[EMAIL PROTECTED] 
>
Thanx by good news, but where I had download this patch?
Please, I need this :)

Thanx.
Yury.



-
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: Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Thor Heinrichs-Wolpert

IBM Tutorial
http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/83F66813F7FFD61486256B74006EB648?OpenDocument

And there are books on the way:
http://www.need-a-cake.com/categories/cbook/

Cheers,
Thor HW


3/28/2002 9:40:25 PM, Rob Jellinghaus <[EMAIL PROTECTED]> wrote:

>Wow, these are completely excellent.  And to think I could have found them 
>myself if I had had half a brain and looked on the Cocoon links 
>page!  (http://xml.apache.org/cocoon/cocoon-links.html)
>
>OK, well, I must now revise my original opinion slightly.  Cocoon is not 
>lacking startup tutorials or projects as badly as I thought.  What it is 
>lacking, however, are:
>
>1) Tools.  A web-based management UI for Cocoon would be a Very Good Thing, 
>and very helpful in getting wider adoption.
>
>2) Marketing!  If some large consulting companies (like, say, IBM 
>Services?) got behind Cocoon in a big way, that would greatly expand its 
>marketshare and mindshare.  And then would come the O'Reilly book, and the 
>New Riders book, and the Addison Wesley books... you know a product's made 
>it when the bookwriters get interested :-)
>
>Thanks very much for the tutorial pointers and I wish I'd had enough of a 
>clue to find them myself.  Still, at least I haven't wasted *too* much time.
>Cheers!
>Rob
>
>
>At 11:38 PM 3/28/2002 -0500, Joseph Rajkumar wrote:
>>Hi
>>
>> I would strongly recommend this for an excellent
>>introduction.
>>
>>Joseph Rajkumar
>>
>>http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
>>
>>Thor Heinrichs-Wolpert wrote:
>>
>> > For your HelloWorld adventure, check out chello on sourceforge.
>> >
>> > Cheers,
>> > Thor HW
>>
>>
>>-
>>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]>
>
>
>




-
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: Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Brian Blakeley

Well then let the good times roll as a search of the mail archives will
point out that the books are on their way!

Brian


- Original Message -
From: "Rob Jellinghaus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 12:40 AM
Subject: Re: Why isn't Cocoon making into the commerical world?


> Wow, these are completely excellent.  And to think I could have found them
> myself if I had had half a brain and looked on the Cocoon links
> page!  (http://xml.apache.org/cocoon/cocoon-links.html)
>
> OK, well, I must now revise my original opinion slightly.  Cocoon is not
> lacking startup tutorials or projects as badly as I thought.  What it is
> lacking, however, are:
>
> 1) Tools.  A web-based management UI for Cocoon would be a Very Good
Thing,
> and very helpful in getting wider adoption.
>
> 2) Marketing!  If some large consulting companies (like, say, IBM
> Services?) got behind Cocoon in a big way, that would greatly expand its
> marketshare and mindshare.  And then would come the O'Reilly book, and the
> New Riders book, and the Addison Wesley books... you know a product's made
> it when the bookwriters get interested :-)
>
> Thanks very much for the tutorial pointers and I wish I'd had enough of a
> clue to find them myself.  Still, at least I haven't wasted *too* much
time.
> Cheers!
> Rob
>
>
> At 11:38 PM 3/28/2002 -0500, Joseph Rajkumar wrote:
> >Hi
> >
> > I would strongly recommend this for an excellent
> >introduction.
> >
> >Joseph Rajkumar
> >
> >http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
> >
> >Thor Heinrichs-Wolpert wrote:
> >
> > > For your HelloWorld adventure, check out chello on sourceforge.
> > >
> > > Cheers,
> > > Thor HW
> >
> >
> >-
> >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]>
>


-
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: Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Rob Jellinghaus

Wow, these are completely excellent.  And to think I could have found them 
myself if I had had half a brain and looked on the Cocoon links 
page!  (http://xml.apache.org/cocoon/cocoon-links.html)

OK, well, I must now revise my original opinion slightly.  Cocoon is not 
lacking startup tutorials or projects as badly as I thought.  What it is 
lacking, however, are:

1) Tools.  A web-based management UI for Cocoon would be a Very Good Thing, 
and very helpful in getting wider adoption.

2) Marketing!  If some large consulting companies (like, say, IBM 
Services?) got behind Cocoon in a big way, that would greatly expand its 
marketshare and mindshare.  And then would come the O'Reilly book, and the 
New Riders book, and the Addison Wesley books... you know a product's made 
it when the bookwriters get interested :-)

Thanks very much for the tutorial pointers and I wish I'd had enough of a 
clue to find them myself.  Still, at least I haven't wasted *too* much time.
Cheers!
Rob


At 11:38 PM 3/28/2002 -0500, Joseph Rajkumar wrote:
>Hi
>
> I would strongly recommend this for an excellent
>introduction.
>
>Joseph Rajkumar
>
>http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
>
>Thor Heinrichs-Wolpert wrote:
>
> > For your HelloWorld adventure, check out chello on sourceforge.
> >
> > Cheers,
> > Thor HW
>
>
>-
>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]>




Re: Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Joseph Rajkumar

Hi

I would strongly recommend this for an excellent
introduction.

Joseph Rajkumar

http://www.cocooncenter.de/cc/documents/resources/navigation/index.html

Thor Heinrichs-Wolpert wrote:

> For your HelloWorld adventure, check out chello on sourceforge.
>
> Cheers,
> Thor HW


-
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: Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Thor Heinrichs-Wolpert

For your HelloWorld adventure, check out chello on sourceforge.

Cheers,
Thor HW

3/28/2002 7:11:32 PM, Rob Jellinghaus <[EMAIL PROTECTED]> wrote:

>My unsolicited opinion:
>
>I just ran across Cocoon because I am an xml.apache.org contributor (did 
>some work last summer on Axis).  Cocoon has very little visibility outside 
>of Apache.
>
>I think that Cocoon is designed and built mostly by programmers, and hasn't 
>been marketed well (or indeed at all!).  It doesn't really fit into any 
>specific product niche -- it falls right in between the Java infrastructure 
>world (dominated by EJBs) and the XML infrastructure world (dominated by XSL).
>
>What is its direct competition?  A variety of other content management 
>systems, foremost of which is probably Zope (an open-source Python CMS with 
>a good web UI but no XSL underpinnings).  This is an evolving sector.  If 
>you look on Google for "content management system" or "Java XSLT" you will 
>probably turn up rather more hits
>
>IMHO the main difficulty with Cocoon right now is how hard it is to 
>learn.  I am spending most of this week just coming to grips with the 
>basics.  It is *not* easy to dive right into the system and understand 
>(say) exactly how the esql sample page gets converted into html (i.e. what 
>exactly are all the steps of the pipeline, and where are they defined in 
>the various sitemaps / logicsheets / stylesheets).  Nor is it easy to know 
>where to start when creating a new site, with a new CSS foundation and all 
>new templates.
>
>I would love (and may work on developing) a "starter web application" under 
>Cocoon, with its own local sitemap and its own templates... sort of a 
>"hello world webapp" totally contained in one directory.
>
>Right now Cocoon is really best suited for programmers with lots of time to 
>learn a new (albeit powerful) tool.  In order to get wider adoption, Cocoon 
>will need *even more* attention paid to making it easy for newbies to start 
>working with it -- not only more tutorials along the lines of CTwiG, but 
>also more (and more functional!) sample applications, and probably even 
>more web-based management tools (since doing *all* Cocoon administration by 
>editing XML files is not exactly easy -- try out Zope for an example of a 
>different, simpler, approach).
>
>I do still like Cocoon, in theory, but the learning curve is daunting and 
>it's still not clear I will be able to spend enough time on it to start 
>getting good results.
>
>Cheers,
>Rob
>
>
>
>At 06:28 PM 3/28/2002 -0800, Steven Punte wrote:
>>Dear Cocoon User Group:
>>
>>First of all, I LOVE the Cocoon framework,
>>I'm a total believer, and expecially love
>>how Cocoon2 is turning out!
>>
>>Cocoon seems just awesomely powerfully, years
>>ahead of the classical architectures proposed
>>by Sun (i.e. JSP to ServletBeans to EJBs...).
>>
>>But how come there is NO (i.e. ABSOLUTELY NO)
>>demand for Cocoon expertise in the US market?
>>Type in key word "java" and retrieve 3500 hits
>>on www.dice.com.  Type in key word "cocoon"
>>and get ZERO!
>>
>>Is it all just a dream?
>>
>>Steve
>>
>>PS:
>>No need to reply if "your" commerical project
>>is using it: congradulation.  But the bigger
>>picture is my question.
>>
>>
>>
>>
>>__
>>Do You Yahoo!?
>>Yahoo! Movies - coverage of the 74th Academy Awards®
>>http://movies.yahoo.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]>
>
>
>
>-
>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]>




RE: Encoding non-english characters in XSP (C2.0.2)

2002-03-28 Thread Vadim Gritsenko

> From: Andrey Demchenko [mailto:[EMAIL PROTECTED]]
> 
> 1)Thanks. It's works in Cocoon 2.0.1 and 2.0.2.
>   I use your recomendations and changed in cocoon.xconf
>value="org.apache.cocoon.components.language.programming.java.Javac"/>
> =
> 2) How can I put "-encoding KOI8-R" to javac
>  in servlet container e.g. Resin 2.0.5, Tomcat 4.0?

You can change encoding for the whole JVM right now, I guess that's what
Yury has. Or you can wait and I will come up with something (I'm
thinking that all string literals should be UTF-8 encoded, this will
allow to use lots of languages simultaneously). Or you can patch it on
your own.

Vadim


> --
> Best regards,
> Andrey Demchenko.
> 
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> >Next step for you would be:
> >1. Switch back to Javac (pizza does not support Java file encoding
option)
> 
> > 2. Make sure Javac gets "-encoding KOI8-R" command line option
> 


-
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: Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Rob Jellinghaus

My unsolicited opinion:

I just ran across Cocoon because I am an xml.apache.org contributor (did 
some work last summer on Axis).  Cocoon has very little visibility outside 
of Apache.

I think that Cocoon is designed and built mostly by programmers, and hasn't 
been marketed well (or indeed at all!).  It doesn't really fit into any 
specific product niche -- it falls right in between the Java infrastructure 
world (dominated by EJBs) and the XML infrastructure world (dominated by XSL).

What is its direct competition?  A variety of other content management 
systems, foremost of which is probably Zope (an open-source Python CMS with 
a good web UI but no XSL underpinnings).  This is an evolving sector.  If 
you look on Google for "content management system" or "Java XSLT" you will 
probably turn up rather more hits

IMHO the main difficulty with Cocoon right now is how hard it is to 
learn.  I am spending most of this week just coming to grips with the 
basics.  It is *not* easy to dive right into the system and understand 
(say) exactly how the esql sample page gets converted into html (i.e. what 
exactly are all the steps of the pipeline, and where are they defined in 
the various sitemaps / logicsheets / stylesheets).  Nor is it easy to know 
where to start when creating a new site, with a new CSS foundation and all 
new templates.

I would love (and may work on developing) a "starter web application" under 
Cocoon, with its own local sitemap and its own templates... sort of a 
"hello world webapp" totally contained in one directory.

Right now Cocoon is really best suited for programmers with lots of time to 
learn a new (albeit powerful) tool.  In order to get wider adoption, Cocoon 
will need *even more* attention paid to making it easy for newbies to start 
working with it -- not only more tutorials along the lines of CTwiG, but 
also more (and more functional!) sample applications, and probably even 
more web-based management tools (since doing *all* Cocoon administration by 
editing XML files is not exactly easy -- try out Zope for an example of a 
different, simpler, approach).

I do still like Cocoon, in theory, but the learning curve is daunting and 
it's still not clear I will be able to spend enough time on it to start 
getting good results.

Cheers,
Rob



At 06:28 PM 3/28/2002 -0800, Steven Punte wrote:
>Dear Cocoon User Group:
>
>First of all, I LOVE the Cocoon framework,
>I'm a total believer, and expecially love
>how Cocoon2 is turning out!
>
>Cocoon seems just awesomely powerfully, years
>ahead of the classical architectures proposed
>by Sun (i.e. JSP to ServletBeans to EJBs...).
>
>But how come there is NO (i.e. ABSOLUTELY NO)
>demand for Cocoon expertise in the US market?
>Type in key word "java" and retrieve 3500 hits
>on www.dice.com.  Type in key word "cocoon"
>and get ZERO!
>
>Is it all just a dream?
>
>Steve
>
>PS:
>No need to reply if "your" commerical project
>is using it: congradulation.  But the bigger
>picture is my question.
>
>
>
>
>__
>Do You Yahoo!?
>Yahoo! Movies - coverage of the 74th Academy Awards®
>http://movies.yahoo.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]>



-
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: Editing, compiling, & running Cocoon under debugger?

2002-03-28 Thread Vadim Gritsenko

I have this in the tomcat/conf/config.xml:



I use "build -D... webapp", for faster build times I commented out
 which creates cocoon.war.

Vadim

> From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]]
> 
> I am a large fan of IDEA (http://www.intellij.com/idea) and I am well
on
> the way to having a Cocoon project running under IDEA.
> 
> However, the ideal scenario would be that I can get it so integrated
as to
> be able to:
> 
> 1) Edit a Cocoon file.
> 2) Hit build in IDEA (which integrates with Ant).
> 3) Have IDEA / Ant build the classes into the Tomcat directory.
> 4) Restart Tomcat.
> 5) Test my change, debugging with IDEA via JPDA (which IDEA also
supports).
> 
> The crux here is step 3.  My question, for those who do Cocoon
development
> with an IDE, is simple:
> 
> When you rebuild classes, where do you set your Ant ${build.dir}?  Do
you
> have your build system output the classes directly to
> %CATALINA_HOME%/webapps/cocoon/WEB-INF/classes?  Or do you rebuild the
> entire war and have Tomcat re-extract it each time you make a
> change?  (surely not!)
> 
> Seeking your experience,
> cheers!
> Rob
> 
> 
> -
> 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]>




RE: newbie help in classpath

2002-03-28 Thread Vadim Gritsenko

USE PLAIN TEXT EMAIL!
And do not use system classpath variables.

> It told me that I need to recompile with -deprecation and build
failed.

What's the error?

Vadim

-Original Message-
From: Peng, Meimin [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 6:16 PM
To: '[EMAIL PROTECTED]'
Subject: newbie help in classpath

Hi, 
I am newbie for cocoon. got stuck somewhere and couldn't make cocoon
work. Please help.  
I download both cocoon-2.0.2-src.zip and cocoon-2.0-bin.zip. 
follow the http://xml.apache.org/cocoon/installing/index.html try to
make cocoon work. 
The sys env I have is: jdk1.3.1; tomcat3.2 
First, I try to use cocoon-2.0.2-src to install concoon. But, I couldn't
find the cocoon.war file under 
cocoon/build/cocoon/ directory. The solution I have is I copy the
cocoon.war from binary code and deploy it in the tomcat
directory. 
This is error message I got when I run http://localhost:8080/cocoon/
(the currently app I have in tomcat are still running correctly)
Cocoon 2 - Internal server error 

 
type fatal 
message SAX2 driver class org.apache.xerces.parsers.SAXParser not found 
description java.lang.ClassNotFoundException:
org.apache.xerces.parsers.SAXParser 
sender org.apache.cocoon.servlet.CocoonServlet 
It seems like I didn't set the correct classpth. 
Here is the setting: java_home is c:\jdk1.3.1; tomcat_home is
c:\jakarta-tomcat 
System variable is: 
.;C:\jdk1.3.1\lib\tools.jar;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\ru
ntime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin 
Second, I try to use binary code to build cocoon.war file 
I use this command "\build.bat -Dinclude.webapp.libs=yes webapp" 
It told me that I need to recompile with -deprecation and build failed.
The API is too old. 
What can I do to create a new war file in cocoon?? 
any ideas?? Thank a million. 
--Zoe 
CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged
and confidential.  Any use, copying or dissemination of any portion of
this e-mail by or to anyone other than the intended recipient(s) is
unauthorized.  If you have received this e-mail in error, please reply
to sender and delete it from your system immediately.


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




Why isn't Cocoon making into the commerical world?

2002-03-28 Thread Steven Punte

Dear Cocoon User Group:

   First of all, I LOVE the Cocoon framework,
   I'm a total believer, and expecially love
   how Cocoon2 is turning out!

   Cocoon seems just awesomely powerfully, years
   ahead of the classical architectures proposed
   by Sun (i.e. JSP to ServletBeans to EJBs...).

   But how come there is NO (i.e. ABSOLUTELY NO)
   demand for Cocoon expertise in the US market?
   Type in key word "java" and retrieve 3500 hits
   on www.dice.com.  Type in key word "cocoon" 
   and get ZERO!

   Is it all just a dream?

   Steve

PS:
   No need to reply if "your" commerical project
   is using it: congradulation.  But the bigger
   picture is my question.




__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.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]>




RE: Error when deploying own generator

2002-03-28 Thread Vadim Gritsenko

> From: Erwin [mailto:[EMAIL PROTECTED]]
> 
> On Thu, 28 Mar 2002, Christian Schmitt wrote:
> 
> > Erwin,
> > have you tried to put your classes in
> > $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes
> >
> > That's the place where they should be.
> >
> > Hth,
> > Christian
> >
> >
> Tnx for your answer.
> Well, I have tried it after your response. I made a directory
"rmitest"
> under $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes and in that
directory I
> put the compiled class Client.class.
> 
> Restarted tomcat and did everything else, but when I tried to access
> http://localhost:8080/cocoon/
> it gave a segmentation violation.
> 
> SIGSEGV   11*  segmentation violation
> si_signo [11]: SIGSEGV   11*  segmentation violation
> si_errno [0]: Success
> si_code [128]: unknown siginfo
> sc_pc: 0x20010164f08, r26: 0x21e19e0


Try
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100879385811581&w=2

Vadim

> 
>  thread pid: 26157
> stackpointer=0x3fffc5f69b8
> 
> Full thread dump Classic VM (1.3.1-1, native threads):
> 
> 
> 
> 
> Removing rmitest/Client.class under
> $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes solved this problem, but
that
> way I can't test my generator :(
> 
> Or do I also have to place all the class files of Cocoon 2 self in
that
> classes-directory? (Seems odd to me, since it adds all the containing
.jar
> files to the classpath)
> 
> 


-
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: Include Pipeline output in XSP.

2002-03-28 Thread Vadim Gritsenko

> From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]]
> 
> Dear Roman,
> 
> Were u able to give pipeline as src to serverpages generator ?

http://localhost:8080/sub/xsp-cocoon

If you spend some time on samples it will save bandwidth of all readers
of this list.

Regards,
Vadim


> I am still struggling for this to work -
> 
> What I now see :
> 
> 1. If I give cocoon pipeline  as a serverpages generator source  -
> 
>  src="cocoon:/shxmldb/docs/addressbook/?xpath=style" />
> 
> where the src above is a working Xindice pipeline with xml serializer
:
> Result : I get the  tag  and nothing else.
> 
> This is because output from the Xindice pipeline's XML serializer the
tags
> are in one line w/o any whitespaces as below :
> ( i see in 'view source' )
> 
> 
> http://apache.org/xsp";
> language="java">

RE: Strange problem around protected area example Complement

2002-03-28 Thread Vadim Gritsenko

You can not have two parameters with the same name.

For the form-validator action you can use:



PS Do not send HTML emails!

Vadim


-Original Message-
From: Xavier DAMAY [mailto:[EMAIL PROTECTED]] 

Hello all :-\ 

I haven't found any issue but i notice :

                
                    
                    
                    
                    
                    

There is two parameters with name "validate". I would like to know if
the validation can validate two entries :
name and password ?

Thank you very much for any help : Xavier


-
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 2.02 where has the svg gone??

2002-03-28 Thread Vadim Gritsenko

RTFM: http://xml.apache.org/cocoon/installing/index.html

Read "Configuring Environment" section.

Vadim

> From: Christoph Gaffga [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> I'm using cocoon 2.01 and upgraded from Java 1.3 to 1.4. Now I cant
render
> svg. I posted this before but I didn't get an answer.
> Do you know, what the the problem ist whith JDK 1.4?
> 
> Christoph Gaffga
> 
> 
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, March 28, 2002 2:51 PM
> Subject: RE: Cocoon 2.02 where has the svg gone??
> 
> 
> > I bet it is due to JDK1.4 which you are using.
> >
> > RTFM: http://xml.apache.org/cocoon/installing/index.html
> >
> > Vadim
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 28, 2002 8:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: Cocoon 2.02 where has the svg gone??
> >
> > Hi, I have been developing a website in Cocoon 2.01 recently and I
have
> > been in the process of upgrading to 2.02. What has happened to the
SVG
> > support? In cocoon 2.01 I was able to transencode extracted
(fragment
> > extractor) SVG code into jpeg images but now all I get is a big
white
> > rectangle where my jpeg image should be? Is this due to batik 1.5
beta,
> > if it is can I replace the 1.5beta jar with the old one and get the
same
> > results as cocoon 2.01?
> >
> > Thanks for your time
> >
> > Bobby Koya
> > [EMAIL PROTECTED]
> > http://www.newarkhall.co.uk
> > Ext. 0115 84 66820 Int. 66820


-
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: map:generate called twice

2002-03-28 Thread Vadim Gritsenko

> From: Mathias Ochsendorf [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> I'm working with the CVS-Version of Cocoon 2 from last Wednesday
> (3/27/02).
> According to
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100834637226164&w=2
> this problem has to be fixes since a couple of months.

If you read it carefully you will notice that it has to do with the
source for the XSLT transformation, not file generator.


> But every cocoon request to /NotifyService invokes the Apache server
> (bluescreen:80) twice.
> The logfile of cocoon records only one request for /NotifyService,
apache
> logs the
> message_start.php twice.

I guess that the first time it gets URL information (like
lastModificationDate and contentLength), and second time it gets the
content. See components/source/URLSource if you want to understand this.

Vadim   


> sitemap.xmap:
> [...]
> 
>   src="http://bluescreen/message_start.php?control=106"/>
>   
>   
> 
> [...]
> 
> Any hints ?
> 
> Thx, Mathias
> 
> --
> Mathias Ochsendorf
> www: www.ochsendorf.net | www.ochsendorf.de
> ICQ: 68556900


-
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: the cocoon protocol

2002-03-28 Thread Vadim Gritsenko

> From: Jakob Praher [mailto:[EMAIL PROTECTED]]
> 
> hi all,
> 
> 
> where can I find a specification of the cocoon:/ URI scheme and
protcol
> handler?

In the mail archives.
"cocoon:/" accesses current sitemap, and
"cocoon://" accesses root sitemap.
See sub/sitemap.xmap for usage samples.


> looking in cocoon.xconf [c2.0.2], there is only a protcol handler for
> 
> resource:/
> context:/
> 
> .
> 
> as one can use the cocoon:/ in document() methods inside xslts,

I'm not sure (don't remember), but you can try it.


> is it
> possible to access internal only documents with this protocol.

Yes.

Vadim

> this would be really interesting since, then I could access some data,
> defined as, e.g. xsp in the sitemap within a xslt, but denying access
> from the browser.
> 
> 
> thanks for your support
> 
> Jakob


-
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: C2.0.2: ClassCastException

2002-03-28 Thread Vadim Gritsenko

Check your cocoon.roles and cocoon.xconf files. Cocoon 2.0.2 uses
XPathProcessor from the Excalibur instead of old Cocoon's
XPathProcessor. It seems that somehow you are instantiating old
processor instead of new, which is seen from the exception:

> java.lang.ClassCastException:
> org.apache.cocoon.components.xpath.XPathProcessorImpl

You have got org.apache.cocoon.components.xpath.XPathProcessorImpl
instead of org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl.

Regards,
Vadim

> From: Jozsa Kristof [mailto:[EMAIL PROTECTED]]
> 
> Vadim,
> 
> sorry for the delay, I was out of office. I'm running Cocoon 2.0.2
from
> JBoss3beta2 latest cvs snapshots (it uses Jetty as the bundled web
> container). I thought of the different xalan/xerces libs between JBoss
and
> Cocoon as a possible problem source here - is that possible?
> 
> Anyway, I'm posting a full trace about the problem:
> 
> ERROR   (2002-03-28) 09:27.19:740   [core.manager] (/index)
SocketListener-
> 1/XMLResourceBundle: cannot obtain XPathProcessor
> java.lang.ClassCastException:
> org.apache.cocoon.components.xpath.XPathProcessorImpl
> at
>
org.apache.cocoon.i18n.XMLResourceBundle.compose(XMLResourceBundle.java:
117)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB
undleF
> actory.java:346)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl
eFacto
> ry.java:308)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
Bundle
> Factory.java:238)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
Bundle
> Factory.java:224)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB
undleF
> actory.java:343)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl
eFacto
> ry.java:308)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
Bundle
> Factory.java:238)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
Bundle
> Factory.java:224)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB
undleF
> actory.java:343)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl
eFacto
> ry.java:308)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundle
Factor
> y.java:196)
> at
>
org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundle
Factor
> y.java:181)
> at
>
org.apache.cocoon.transformation.I18nTransformer.setup(I18nTransformer.j
ava:77
> 3)
> at
>
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipelin
e(Abst
> ractEventPipeline.java:215)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching
EventP
> ipeline.java:279)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C
aching
> EventPipeline.java:142)
> at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStr
> eamPipeline.java:320)
> at
>
org.apache.cocoon.www.sitemap_xmap.matchN400231(sitemap_xmap.java:3510)
> at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1192)
> at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:681)
> at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> at
>
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> at
>
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326)
> at
>
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:570)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1352)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1306)
> at org.mortbay.http.HttpServer.service(HttpServer.java:743)
> at org.jboss.jetty.Jetty.service(Jetty.java:540)
> at
org.mortbay.http.HttpConnection.service(HttpConnection.java:748)
> at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921)
> at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:763)
> at
>
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145
)
> at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
> at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
> at java.lang.Thread.run(Thread.java:498)
> 
> But as I've said, everything seems to work correctly, in spite of the
trace
> in error.log.
> 
> Regards,
> Christopher
> 
> On Tue, Mar 26, 2002 at 08:00:35PM -0500, Vadim

Editing, compiling, & running Cocoon under debugger?

2002-03-28 Thread Rob Jellinghaus

I am a large fan of IDEA (http://www.intellij.com/idea) and I am well on 
the way to having a Cocoon project running under IDEA.

However, the ideal scenario would be that I can get it so integrated as to 
be able to:

1) Edit a Cocoon file.
2) Hit build in IDEA (which integrates with Ant).
3) Have IDEA / Ant build the classes into the Tomcat directory.
4) Restart Tomcat.
5) Test my change, debugging with IDEA via JPDA (which IDEA also supports).

The crux here is step 3.  My question, for those who do Cocoon development 
with an IDE, is simple:

When you rebuild classes, where do you set your Ant ${build.dir}?  Do you 
have your build system output the classes directly to 
%CATALINA_HOME%/webapps/cocoon/WEB-INF/classes?  Or do you rebuild the 
entire war and have Tomcat re-extract it each time you make a 
change?  (surely not!)

Seeking your experience,
cheers!
Rob


-
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: Possible error in 2.0.2 xsp.xsl (incompatible with Saxon 6.5)

2002-03-28 Thread mratliff


Harry,

Match attributes must conform to pattern specification.  Quoting from Alan Kay's
XSLT Programmers Reference, p415:
 "When a pattern is used in the match attribute of  or
, the predicate must not contain any references to variables.  This is
to prevent circular definitions:  global variables can invoke keys or templates,
so if keys and templates were allowed to be defined in terms of global
variables, infinite recursion could happen.  This restriction doesn't apply to
patterns used in ."

Cheers,
Michael




   
 
"Lai, Harry"   
 
  <[EMAIL PROTECTED]>
 
 cc:   
 
03/28/02 02:32   Subject: Possible error in 2.0.2 xsp.xsl  
 
PM(incompatible with Saxon 6.5)
 
Please respond 
 
to 
 
cocoon-users   
 
   
 
   
 




Hi folks,

We've been using Cocoon 2.0.1, and I just downloaded 2.0.2.  After migrating
to it, I find that I'm getting an XSL error in xsp.xsl (using Saxon 6.5).
The message is:

/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl;
Line#: 441; Column#: -1
com.icl.saxon.expr.XPathException:
The match pattern in xsl:template may not contain references to variables

So when I looked at line 441, this is what it has:

   ...

xsp-uri is basically used as a constant, so I just replaced it with its
constant string literal value, and voila, everything's fine!

Anyway, I'm curious - does anyone know whether match patterns can contain
variables, or if Saxon's just being overly particular?

Harry


--
Harry Lai
[EMAIL PROTECTED]
512.342.2623 x2170

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




Bug in TreeProcessor?

2002-03-28 Thread Lai, Harry

Hi all,

So it looks like Cocoon 2.0.2 fixes the bug described below.  Unfortunately,
when I try using the TreeProcessor, this bug reappears.  Has anyone else
seen this?

Harry


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Resources and parameter scopes


On 28.Feb.2002 -- 05:17 PM, Lai, Harry wrote:
> Hi all,
>  
> I've observed an odd behavior with resources and parameter scope, and I
> wanted to know if this is at least a consistent behavior.  Just FYI, I'm
> using Cocoon 2.0.1 (official release), Sun JDK 1.3.1, JBoss-2.4.1 (with
> Tomcat 3.2.3 embedded), on Win2K.
>  
> Anyway, it looks like if you use a parameter reference in a map:call's
> resource attribute, it gets resolved AFTER the call has pushed a new map
> (for the call itself) on to the end of the list.  For example, say you
have
> the following resources:
>  
> 
> 
> 
> 
> 
>  
> 
> 
> 
>  
> Notice that step2 is basically a redirect to a resource named step3 (in
this
> case).  However, notice that I have to use {../foo} instead of just {foo}.
> If you look at the sitemap_xmap.java file, you'll find that the code for
> resource_step2 adds the new map on before resolving the "step{../foo}"
> resource name.
>  
> Anyway, this is easy enough to work around (now that I know it works this
> way), but I wanted to make sure this is how resource calls are always
> resolved (or if this is considered a bug and is going to be changed
later).
> Basically, I just want to know if I should expect my {../foo} to possibly
> break if I later upgrade to a new version of Cocoon or if I alter my
> sitemap.  =)  Thanks!

I'd consider it as a bug and will change that ASAP.

Chris.

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

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

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




newbie help in classpath

2002-03-28 Thread Peng, Meimin
Title: newbie help in classpath





Hi, 
I am newbie for cocoon. got stuck somewhere and couldn't make cocoon work. Please help.  
I download both cocoon-2.0.2-src.zip and cocoon-2.0-bin.zip. 
follow the http://xml.apache.org/cocoon/installing/index.html try to make cocoon work. 
The sys env I have is: jdk1.3.1; tomcat3.2
First, I try to use cocoon-2.0.2-src to install concoon. But, I couldn't find the cocoon.war file under
cocoon/build/cocoon/ directory. The solution I have is I copy the cocoon.war from binary code and deploy it in the tomcat

directory.
This is error message I got when I run http://localhost:8080/cocoon/ (the currently app I have in tomcat are still running correctly)

Cocoon 2 - Internal server error

type fatal
message SAX2 driver class org.apache.xerces.parsers.SAXParser not found
description java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
sender org.apache.cocoon.servlet.CocoonServlet


It seems like I didn't set the correct classpth.
Here is the setting: java_home is c:\jdk1.3.1; tomcat_home is c:\jakarta-tomcat
System variable is: 
.;C:\jdk1.3.1\lib\tools.jar;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin


Second, I try to use binary code to build cocoon.war file 
I use this command "\build.bat -Dinclude.webapp.libs=yes webapp"
It told me that I need to recompile with -deprecation and build failed. The API is too old. 
What can I do to create a new war file in cocoon?? 


any ideas?? Thank a million. 
--Zoe


CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and confidential.  Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized.  If you have received this e-mail in error, please reply to sender and delete it from your system immediately.




Possible error in 2.0.2 xsp.xsl (incompatible with Saxon 6.5)

2002-03-28 Thread Lai, Harry

Hi folks,

We've been using Cocoon 2.0.1, and I just downloaded 2.0.2.  After migrating
to it, I find that I'm getting an XSL error in xsp.xsl (using Saxon 6.5).
The message is:

/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl;
Line#: 441; Column#: -1
com.icl.saxon.expr.XPathException:
The match pattern in xsl:template may not contain references to variables

So when I looked at line 441, this is what it has:

...

xsp-uri is basically used as a constant, so I just replaced it with its
constant string literal value, and voila, everything's fine!

Anyway, I'm curious - does anyone know whether match patterns can contain
variables, or if Saxon's just being overly particular?

Harry


-- 
Harry Lai 
[EMAIL PROTECTED] 
512.342.2623 x2170 

-
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: Strange problem around protected area example Complement

2002-03-28 Thread Xavier DAMAY

Thanks very much for your response John, but this solution must be 
hardcoded in a xsp page, I wanted to use the sitemap to manage the 
authorisation.


Xavier

John Austin wrote:

>On Thursday 28 March 2002 11:03, you wrote:
>
>The example quoted looks like a multi-valued parameter. 
>
>See getParameterValues() in the javax.servlet.ServletRequest class.
>
>-
>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]>




Re: Strange problem around protected area example Complement

2002-03-28 Thread John Austin

On Thursday 28 March 2002 11:03, you wrote:

The example quoted looks like a multi-valued parameter. 

See getParameterValues() in the javax.servlet.ServletRequest class.

-
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: Error when deploying own generator [solved]

2002-03-28 Thread Erwin

On Thu, 28 Mar 2002, Erwin wrote:

> On Thu, 28 Mar 2002, Christian Schmitt wrote:
>
> > Erwin,
> > have you tried to put your classes in
> > $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes
> >
> Or do I also have to place all the class files of Cocoon 2 self in that
> classes-directory? (Seems odd to me, since it adds all the containing .jar
> files to the classpath)
>
I unzipped all the .jar files to that directory and it works. However, I
find it a bit silly that you have to do that in order to get it working.
The reason why I find that is that from the logs I learned that Cocoon 2
itself places them in the classpath, so why do they have to appear twice
in the classpath?

Or has it to do with the sequence how every class is loaded?
Could someone please enlighten me about this subject?


Again, I would like to thank every one for their help so far.


-
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: Update on my problem

2002-03-28 Thread Jeremy Beeler

yeah i've looked at just about every digital resource describing pooling and
how to get this to work(i think!). i was just hoping that maybe i messed up
a setting or had a typo or that someone knew of some resolution. maybe i'll
just need to do my app without pooling for now and hope that pooling works
with j2sdk1.4.0 in a month or so.

thanks for the help everyone, and if anyone does see something i missed or
know of what to do, please let me know.

jeremy

- Original Message -
From: "Marty McClelland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 1:49 PM
Subject: RE: Update on my problem


You may want to check the postings from earlier this week (i've already
deleted mine ).  but I'm remembering posts about pooling problems with
jdk1.4.

marty

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Update on my problem
>
>
> Hi Jeremy,
>
> Your XSP page looks fine to me and if it is working without
> pooling then I'm starting to think that a bug may have been
> introduced into the latest database code.
>
> My best suggestion would be to download the latest release
> version of Cocoon
> (2.0.2) and try your XSP page on that. Also, double check
> your cocoon.xconf and web.xml for typos. Maybe check that
> MySQL is running and do mysqladmin -version to get the query
> count to see if any queries are making it to the DB.
>
> Best Regards,
>
> Chris
>
>
>
> > -Original Message-
> > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > Sent: 28 March 2002 18:12
> > To: [EMAIL PROTECTED]
> > Subject: Re: Update on my problem
> >
> >
> > Chris,
> > Thanks again for all the help.
> >
> > trust me, i'm not pushing the envelope by design, it's just
> these are
> > the versions that i've gotten the farthest with in terms of getting
> > things working. i've never had db pooling working, in fact
> this past
> > week or so has been my
> > first venture into cocoon for any other use than classroom theory.
> > the exception is generated when i try to run my test.xsp. cocoon
> > loads fine
> > otherwise.
> >
> > here is my code from the test.xsp
> >
> > 
> > http://apache.org/xsp";
> > xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> > 
> > A Database Driven XSP Page to Test
> > 
> > 
> > 
> > tester
> >
> > 
> >
> > 
> > select * from operator
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >
> > For some reason when using the pool it will throw that
> exception, but
> > if i just instantiate a connection in the xsp if generates
> the desired
> > output just fine. the only problem is, i really need to use pooling.
> >
> > thanks again.
> >
> > Jeremy
> >
> > - Original Message -
> > From: "Chris Newland" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 28, 2002 12:39 PM
> > Subject: RE: Update on my problem
> >
> >
> > > Hi,
> > >
> > > In my root.log file I have
> > >
> > > DEBUG   (2002-03-26) 15:17.37:230   [root] (Unknown-URI)
> > > Unknown-thread/Coco
> > > onServlet: Trying to load class: org.gjt.mm.mysql.Driver
> > >
> > > Thats the only log file reference I get to my DB driver
> and I have
> > > no problems with DB pooling.
> > >
> > > I'm using Cocoon 2.0 final, Tomcat 4.0 final, JDK1.3.1_01 but it
> > > looks
> > like
> > > you're pushing the envelope when it comes to latest versions ;)
> > >
> > > Have you had DB pooling working with earlier versions of Cocoon
> > / Tomcat /
> > > JDK?
> > >
> > > Does your exception occur when Cocoon tries to start, or when
> > the XSP page
> > > is accessed?
> > >
> > > Can you post a snippet of your XSP page?
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > >
> > > > -Original Message-
> > > > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > > > Sent: 28 March 2002 17:08
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Update on my problem
> > > >
> > > >
> > > > yes and in my access log it says trying to load and the driver
> > > > name. i don't know if this means it failed or it loaded ok. is
> > > > there any way to tell if it
> > > > is loaded ok? and if it is loaded ok does the pool know
> to use that
> > driver
> > > > by default?
> > > >
> > > > thanks for your help.
> > > >
> > > > Jeremy
> > > >
> > > > - Original Message -
> > > > From: "Chris Newland" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, March 28, 2002 11:28 AM
> > > > Subject: RE: Update on my problem
> > > >
> > > >
> > > > > Hi Jeremy,
> > > > >
> > > > > Have you added your database driver info to your
> > WEB-INF/web.xml file?
> > > > >
> > > > > -
> > > > > cocoon.xconf:
> > > > > -
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > jdbc:mysql://localhost:3306/tester
> > > > > true
> > > > > login
> > > > > pass

RE: Update on my problem

2002-03-28 Thread Marty McClelland

You may want to check the postings from earlier this week (i've already
deleted mine ).  but I'm remembering posts about pooling problems with
jdk1.4.

marty

> -Original Message-
> From: Chris Newland [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 28, 2002 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Update on my problem
> 
> 
> Hi Jeremy,
> 
> Your XSP page looks fine to me and if it is working without 
> pooling then I'm starting to think that a bug may have been 
> introduced into the latest database code.
> 
> My best suggestion would be to download the latest release 
> version of Cocoon
> (2.0.2) and try your XSP page on that. Also, double check 
> your cocoon.xconf and web.xml for typos. Maybe check that 
> MySQL is running and do mysqladmin -version to get the query 
> count to see if any queries are making it to the DB.
> 
> Best Regards,
> 
> Chris
> 
> 
> 
> > -Original Message-
> > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > Sent: 28 March 2002 18:12
> > To: [EMAIL PROTECTED]
> > Subject: Re: Update on my problem
> >
> >
> > Chris,
> > Thanks again for all the help.
> >
> > trust me, i'm not pushing the envelope by design, it's just 
> these are 
> > the versions that i've gotten the farthest with in terms of getting 
> > things working. i've never had db pooling working, in fact 
> this past 
> > week or so has been my
> > first venture into cocoon for any other use than classroom theory.
> > the exception is generated when i try to run my test.xsp. cocoon
> > loads fine
> > otherwise.
> >
> > here is my code from the test.xsp
> >
> > 
> > http://apache.org/xsp"; 
> > xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> > 
> > A Database Driven XSP Page to Test
> > 
> > 
> > 
> > tester
> >
> > 
> >
> > 
> > select * from operator
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >
> > For some reason when using the pool it will throw that 
> exception, but 
> > if i just instantiate a connection in the xsp if generates 
> the desired 
> > output just fine. the only problem is, i really need to use pooling.
> >
> > thanks again.
> >
> > Jeremy
> >
> > - Original Message -
> > From: "Chris Newland" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 28, 2002 12:39 PM
> > Subject: RE: Update on my problem
> >
> >
> > > Hi,
> > >
> > > In my root.log file I have
> > >
> > > DEBUG   (2002-03-26) 15:17.37:230   [root] (Unknown-URI)
> > > Unknown-thread/Coco
> > > onServlet: Trying to load class: org.gjt.mm.mysql.Driver
> > >
> > > Thats the only log file reference I get to my DB driver 
> and I have 
> > > no problems with DB pooling.
> > >
> > > I'm using Cocoon 2.0 final, Tomcat 4.0 final, JDK1.3.1_01 but it 
> > > looks
> > like
> > > you're pushing the envelope when it comes to latest versions ;)
> > >
> > > Have you had DB pooling working with earlier versions of Cocoon
> > / Tomcat /
> > > JDK?
> > >
> > > Does your exception occur when Cocoon tries to start, or when
> > the XSP page
> > > is accessed?
> > >
> > > Can you post a snippet of your XSP page?
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > >
> > > > -Original Message-
> > > > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > > > Sent: 28 March 2002 17:08
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Update on my problem
> > > >
> > > >
> > > > yes and in my access log it says trying to load and the driver 
> > > > name. i don't know if this means it failed or it loaded ok. is 
> > > > there any way to tell if it
> > > > is loaded ok? and if it is loaded ok does the pool know 
> to use that
> > driver
> > > > by default?
> > > >
> > > > thanks for your help.
> > > >
> > > > Jeremy
> > > >
> > > > - Original Message -
> > > > From: "Chris Newland" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, March 28, 2002 11:28 AM
> > > > Subject: RE: Update on my problem
> > > >
> > > >
> > > > > Hi Jeremy,
> > > > >
> > > > > Have you added your database driver info to your
> > WEB-INF/web.xml file?
> > > > >
> > > > > -
> > > > > cocoon.xconf:
> > > > > -
> > > > >
> > > > > 
> > > > > 
> > > > >  
> > > > > jdbc:mysql://localhost:3306/tester
> > > > > true
> > > > > login
> > > > > pass
> > > > > 
> > > > > 
> > > > >
> > > > > 
> > > > > WEB-INF/web.xml:
> > > > > 
> > > > >
> > > > > 
> > > > > 
> > > > >   load-class
> > > > >   
> > > > > 
> > > > >
> > > > > 
> > > > > org.gjt.mm.mysql.Driver
> > > > >   
> > > > > 
> > > > >
> > > > >
> > > > > Hope this helps,
> > > > >
> > > > > Regards,
> > > > >
> > > > > Chris
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 28 March 2002 16:14
> > > > > To: [EMAIL PROTECTED]

RE: Update on my problem

2002-03-28 Thread Chris Newland

Hi Jeremy,

Your XSP page looks fine to me and if it is working without pooling then I'm
starting to think that a bug may have been introduced into the latest
database code.

My best suggestion would be to download the latest release version of Cocoon
(2.0.2) and try your XSP page on that. Also, double check your cocoon.xconf
and web.xml for typos. Maybe check that MySQL is running and do
mysqladmin -version to get the query count to see if any queries are making
it to the DB.

Best Regards,

Chris



> -Original Message-
> From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> Sent: 28 March 2002 18:12
> To: [EMAIL PROTECTED]
> Subject: Re: Update on my problem
>
>
> Chris,
> Thanks again for all the help.
>
> trust me, i'm not pushing the envelope by design, it's just these are the
> versions that i've gotten the farthest with in terms of getting things
> working.
> i've never had db pooling working, in fact this past week or so
> has been my
> first venture into cocoon for any other use than classroom theory.
> the exception is generated when i try to run my test.xsp. cocoon
> loads fine
> otherwise.
>
> here is my code from the test.xsp
>
> 
> http://apache.org/xsp";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> 
> A Database Driven XSP Page to Test
> 
> 
> 
> tester
>
> 
>
> 
> select * from operator
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> For some reason when using the pool it will throw that exception, but if i
> just instantiate a connection in the xsp if generates the desired output
> just fine. the only problem is, i really need to use pooling.
>
> thanks again.
>
> Jeremy
>
> - Original Message -
> From: "Chris Newland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 28, 2002 12:39 PM
> Subject: RE: Update on my problem
>
>
> > Hi,
> >
> > In my root.log file I have
> >
> > DEBUG   (2002-03-26) 15:17.37:230   [root] (Unknown-URI)
> > Unknown-thread/Coco
> > onServlet: Trying to load class: org.gjt.mm.mysql.Driver
> >
> > Thats the only log file reference I get to my DB driver and I have no
> > problems with DB pooling.
> >
> > I'm using Cocoon 2.0 final, Tomcat 4.0 final, JDK1.3.1_01 but it looks
> like
> > you're pushing the envelope when it comes to latest versions ;)
> >
> > Have you had DB pooling working with earlier versions of Cocoon
> / Tomcat /
> > JDK?
> >
> > Does your exception occur when Cocoon tries to start, or when
> the XSP page
> > is accessed?
> >
> > Can you post a snippet of your XSP page?
> >
> > Thanks,
> >
> > Chris
> >
> >
> > > -Original Message-
> > > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > > Sent: 28 March 2002 17:08
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Update on my problem
> > >
> > >
> > > yes and in my access log it says trying to load and the driver
> > > name. i don't
> > > know if this means it failed or it loaded ok. is there any way to
> > > tell if it
> > > is loaded ok? and if it is loaded ok does the pool know to use that
> driver
> > > by default?
> > >
> > > thanks for your help.
> > >
> > > Jeremy
> > >
> > > - Original Message -
> > > From: "Chris Newland" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, March 28, 2002 11:28 AM
> > > Subject: RE: Update on my problem
> > >
> > >
> > > > Hi Jeremy,
> > > >
> > > > Have you added your database driver info to your
> WEB-INF/web.xml file?
> > > >
> > > > -
> > > > cocoon.xconf:
> > > > -
> > > >
> > > > 
> > > > 
> > > > 
> > > > jdbc:mysql://localhost:3306/tester
> > > > true
> > > > login
> > > > pass
> > > > 
> > > > 
> > > >
> > > > 
> > > > WEB-INF/web.xml:
> > > > 
> > > >
> > > > 
> > > > 
> > > >   load-class
> > > >   
> > > > 
> > > >
> > > > 
> > > > org.gjt.mm.mysql.Driver
> > > >   
> > > > 
> > > >
> > > >
> > > > Hope this helps,
> > > >
> > > > Regards,
> > > >
> > > > Chris
> > > >
> > > >
> > > > -Original Message-
> > > > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > > > Sent: 28 March 2002 16:14
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Update on my problem
> > > >
> > > >
> > > > I am using j2sdk1.4.0, tomcat 4.0.4b2LE, mm.mysql-2.0.11 or
> > > mm.mysql-2.0.7
> > > > (tried both), and cocoon 2.0.3-dev.
> > > >
> > > > Update on my problem:
> > > >
> > > > I can query the database now by instantiating a connection in
> > > my xsp app.
> > > > however, the app that i am writing needs to use the pooling
> capabilities
> > > to
> > > > handle simultaneous access to the DB. does anyone know how to
> > > get this to
> > > > work??? i tried creating the pool with a "driver" tag in my
> cocoon.xconf
> > > but
> > > > that still generates the exception (NoValidConnectionException: No
> valid
> > > > JdbcConnection class available)
> > > >
> > > > this is my co

Re: Error when deploying own generator

2002-03-28 Thread Erwin

On Thu, 28 Mar 2002, Christian Schmitt wrote:

> Erwin,
> have you tried to put your classes in
> $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes
>
> That's the place where they should be.
>
> Hth,
> Christian
>
>
Tnx for your answer.
Well, I have tried it after your response. I made a directory "rmitest"
under $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes and in that directory I
put the compiled class Client.class.

Restarted tomcat and did everything else, but when I tried to access
http://localhost:8080/cocoon/
it gave a segmentation violation.

SIGSEGV   11*  segmentation violation
si_signo [11]: SIGSEGV   11*  segmentation violation
si_errno [0]: Success
si_code [128]: unknown siginfo
sc_pc: 0x20010164f08, r26: 0x21e19e0

 thread pid: 26157
stackpointer=0x3fffc5f69b8

Full thread dump Classic VM (1.3.1-1, native threads):




Removing rmitest/Client.class under
$TOMCAT_HOME/webapps/cocoon/WEB-INF/classes solved this problem, but that
way I can't test my generator :(

Or do I also have to place all the class files of Cocoon 2 self in that
classes-directory? (Seems odd to me, since it adds all the containing .jar
files to the classpath)



-
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: Update on my problem

2002-03-28 Thread Jeremy Beeler

Chris,
Thanks again for all the help.

trust me, i'm not pushing the envelope by design, it's just these are the
versions that i've gotten the farthest with in terms of getting things
working.
i've never had db pooling working, in fact this past week or so has been my
first venture into cocoon for any other use than classroom theory.
the exception is generated when i try to run my test.xsp. cocoon loads fine
otherwise.

here is my code from the test.xsp


http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>

A Database Driven XSP Page to Test



tester




select * from operator







   






For some reason when using the pool it will throw that exception, but if i
just instantiate a connection in the xsp if generates the desired output
just fine. the only problem is, i really need to use pooling.

thanks again.

Jeremy

- Original Message -
From: "Chris Newland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 12:39 PM
Subject: RE: Update on my problem


> Hi,
>
> In my root.log file I have
>
> DEBUG   (2002-03-26) 15:17.37:230   [root] (Unknown-URI)
> Unknown-thread/Coco
> onServlet: Trying to load class: org.gjt.mm.mysql.Driver
>
> Thats the only log file reference I get to my DB driver and I have no
> problems with DB pooling.
>
> I'm using Cocoon 2.0 final, Tomcat 4.0 final, JDK1.3.1_01 but it looks
like
> you're pushing the envelope when it comes to latest versions ;)
>
> Have you had DB pooling working with earlier versions of Cocoon / Tomcat /
> JDK?
>
> Does your exception occur when Cocoon tries to start, or when the XSP page
> is accessed?
>
> Can you post a snippet of your XSP page?
>
> Thanks,
>
> Chris
>
>
> > -Original Message-
> > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > Sent: 28 March 2002 17:08
> > To: [EMAIL PROTECTED]
> > Subject: Re: Update on my problem
> >
> >
> > yes and in my access log it says trying to load and the driver
> > name. i don't
> > know if this means it failed or it loaded ok. is there any way to
> > tell if it
> > is loaded ok? and if it is loaded ok does the pool know to use that
driver
> > by default?
> >
> > thanks for your help.
> >
> > Jeremy
> >
> > - Original Message -
> > From: "Chris Newland" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 28, 2002 11:28 AM
> > Subject: RE: Update on my problem
> >
> >
> > > Hi Jeremy,
> > >
> > > Have you added your database driver info to your WEB-INF/web.xml file?
> > >
> > > -
> > > cocoon.xconf:
> > > -
> > >
> > > 
> > > 
> > > 
> > > jdbc:mysql://localhost:3306/tester
> > > true
> > > login
> > > pass
> > > 
> > > 
> > >
> > > 
> > > WEB-INF/web.xml:
> > > 
> > >
> > > 
> > > 
> > >   load-class
> > >   
> > > 
> > >
> > > 
> > > org.gjt.mm.mysql.Driver
> > >   
> > > 
> > >
> > >
> > > Hope this helps,
> > >
> > > Regards,
> > >
> > > Chris
> > >
> > >
> > > -Original Message-
> > > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > > Sent: 28 March 2002 16:14
> > > To: [EMAIL PROTECTED]
> > > Subject: Update on my problem
> > >
> > >
> > > I am using j2sdk1.4.0, tomcat 4.0.4b2LE, mm.mysql-2.0.11 or
> > mm.mysql-2.0.7
> > > (tried both), and cocoon 2.0.3-dev.
> > >
> > > Update on my problem:
> > >
> > > I can query the database now by instantiating a connection in
> > my xsp app.
> > > however, the app that i am writing needs to use the pooling
capabilities
> > to
> > > handle simultaneous access to the DB. does anyone know how to
> > get this to
> > > work??? i tried creating the pool with a "driver" tag in my
cocoon.xconf
> > but
> > > that still generates the exception (NoValidConnectionException: No
valid
> > > JdbcConnection class available)
> > >
> > > this is my code:
> > >
> > > 
> > > 
> > > org.gjt.mm.mysql.Driver
> > > 
> > > jdbc:mysql://localhost:3306/tester
> > > true
> > > login
> > > pass
> > > 
> > > 
> > >
> > > does anyone know if there is a mechanism that allows you to specify
the
> > > driver for a pool in the cocoon.xconf?
> > >
> > >
> > >
> > > -
> > > 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]>
> >
> >
>
>
>
> ---

RE: Update on my problem

2002-03-28 Thread Chris Newland

Hi,

In my root.log file I have

DEBUG   (2002-03-26) 15:17.37:230   [root] (Unknown-URI)
Unknown-thread/Coco
onServlet: Trying to load class: org.gjt.mm.mysql.Driver

Thats the only log file reference I get to my DB driver and I have no
problems with DB pooling.

I'm using Cocoon 2.0 final, Tomcat 4.0 final, JDK1.3.1_01 but it looks like
you're pushing the envelope when it comes to latest versions ;)

Have you had DB pooling working with earlier versions of Cocoon / Tomcat /
JDK?

Does your exception occur when Cocoon tries to start, or when the XSP page
is accessed?

Can you post a snippet of your XSP page?

Thanks,

Chris


> -Original Message-
> From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> Sent: 28 March 2002 17:08
> To: [EMAIL PROTECTED]
> Subject: Re: Update on my problem
>
>
> yes and in my access log it says trying to load and the driver
> name. i don't
> know if this means it failed or it loaded ok. is there any way to
> tell if it
> is loaded ok? and if it is loaded ok does the pool know to use that driver
> by default?
>
> thanks for your help.
>
> Jeremy
>
> - Original Message -
> From: "Chris Newland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 28, 2002 11:28 AM
> Subject: RE: Update on my problem
>
>
> > Hi Jeremy,
> >
> > Have you added your database driver info to your WEB-INF/web.xml file?
> >
> > -
> > cocoon.xconf:
> > -
> >
> > 
> > 
> > 
> > jdbc:mysql://localhost:3306/tester
> > true
> > login
> > pass
> > 
> > 
> >
> > 
> > WEB-INF/web.xml:
> > 
> >
> > 
> > 
> >   load-class
> >   
> > 
> >
> > 
> > org.gjt.mm.mysql.Driver
> >   
> > 
> >
> >
> > Hope this helps,
> >
> > Regards,
> >
> > Chris
> >
> >
> > -Original Message-
> > From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> > Sent: 28 March 2002 16:14
> > To: [EMAIL PROTECTED]
> > Subject: Update on my problem
> >
> >
> > I am using j2sdk1.4.0, tomcat 4.0.4b2LE, mm.mysql-2.0.11 or
> mm.mysql-2.0.7
> > (tried both), and cocoon 2.0.3-dev.
> >
> > Update on my problem:
> >
> > I can query the database now by instantiating a connection in
> my xsp app.
> > however, the app that i am writing needs to use the pooling capabilities
> to
> > handle simultaneous access to the DB. does anyone know how to
> get this to
> > work??? i tried creating the pool with a "driver" tag in my cocoon.xconf
> but
> > that still generates the exception (NoValidConnectionException: No valid
> > JdbcConnection class available)
> >
> > this is my code:
> >
> > 
> > 
> > org.gjt.mm.mysql.Driver
> > 
> > jdbc:mysql://localhost:3306/tester
> > true
> > login
> > pass
> > 
> > 
> >
> > does anyone know if there is a mechanism that allows you to specify the
> > driver for a pool in the cocoon.xconf?
> >
> >
> >
> > -
> > 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]>
>
>



-
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: Include Pipeline output in XSP.

2002-03-28 Thread [EMAIL PROTECTED]

Dear Roman,

Were u able to give pipeline as src to serverpages generator ?

I am still struggling for this to work -

What I now see :

1. If I give cocoon pipeline  as a serverpages generator source  -



where the src above is a working Xindice pipeline with xml serializer :
Result : I get the  tag  and nothing else.

This is because output from the Xindice pipeline's XML serializer the tags
are in one line w/o any whitespaces as below :
( i see in 'view source' )


http://apache.org/xsp";
language="java">

[SOLVED] RE: Problem with JSP in mounted sitemap

2002-03-28 Thread Piroumian, Konstantin

Good evening!

It seems that I've solved the problem with JSPs. Patch will be available in
CVS tomorrow.

Regards,
Konstantin Piroumian
[EMAIL PROTECTED] 


-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 6:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem with JSP in mounted sitemap


Hello,
Use the fully qualified path for the JSP file
 
i.e not just sample.jsp but from the context root
for eg:

 
where / = context directory
omc = mount directory 
 
It should work in Cocoon 2.0.1...
 
Cocoon 2.02 has problems with JSP generator as well as JSP reader.
Konstantin is working to solve it
 
REgds,
Chiths   


 
 
-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 6:54 AM
To: [EMAIL PROTECTED]
Subject: Problem with JSP in mounted sitemap
 
Hi all!

Now I have the following problem :)

When I declare jsp generator in matcher within mounted sitemap I have error
about:



type Status report
message
/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp
description The requested resource
(/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.js
p) is not available.




in  mounted sitemap.xmap  I  declare  following:














  
 
 
  





I use Cocoon 2.0.2 and Tomcat 4.0.4 now.
This don't work  in  Cocoon  2.0.1 and Tomcat 4.0.1 also...

Can anyone help me by problem?

Thanx.
Yury.
 
- 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. 

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




Re: Update on my problem

2002-03-28 Thread Jeremy Beeler

yes and in my access log it says trying to load and the driver name. i don't
know if this means it failed or it loaded ok. is there any way to tell if it
is loaded ok? and if it is loaded ok does the pool know to use that driver
by default?

thanks for your help.

Jeremy

- Original Message -
From: "Chris Newland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 11:28 AM
Subject: RE: Update on my problem


> Hi Jeremy,
>
> Have you added your database driver info to your WEB-INF/web.xml file?
>
> -
> cocoon.xconf:
> -
>
> 
> 
> 
> jdbc:mysql://localhost:3306/tester
> true
> login
> pass
> 
> 
>
> 
> WEB-INF/web.xml:
> 
>
> 
> 
>   load-class
>   
> 
>
> 
> org.gjt.mm.mysql.Driver
>   
> 
>
>
> Hope this helps,
>
> Regards,
>
> Chris
>
>
> -Original Message-
> From: Jeremy Beeler [mailto:[EMAIL PROTECTED]]
> Sent: 28 March 2002 16:14
> To: [EMAIL PROTECTED]
> Subject: Update on my problem
>
>
> I am using j2sdk1.4.0, tomcat 4.0.4b2LE, mm.mysql-2.0.11 or mm.mysql-2.0.7
> (tried both), and cocoon 2.0.3-dev.
>
> Update on my problem:
>
> I can query the database now by instantiating a connection in my xsp app.
> however, the app that i am writing needs to use the pooling capabilities
to
> handle simultaneous access to the DB. does anyone know how to get this to
> work??? i tried creating the pool with a "driver" tag in my cocoon.xconf
but
> that still generates the exception (NoValidConnectionException: No valid
> JdbcConnection class available)
>
> this is my code:
>
> 
> 
> org.gjt.mm.mysql.Driver
> 
> jdbc:mysql://localhost:3306/tester
> true
> login
> pass
> 
> 
>
> does anyone know if there is a mechanism that allows you to specify the
> driver for a pool in the cocoon.xconf?
>
>
>
> -
> 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]>




RE: Cocoon 2.0.2 SVG

2002-03-28 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: Cocoon 2.0.2 SVG





I have had this problem, but currently I am running C2.0.2/jdk1.3.1/TC4.0.3LE [*] and everything is functioning properly.

For some of the CVS snapshots (2.0.2-dev)I built in the past few weeks (in eager anticipation of 2.0.2), random SVG pages would not worksometimes the welcome-svg would work but "hello world" would not, and sometimes the other way around (always consistant within a single build, but not between seperate builds).

To summarize, I have no useful information for you, sorry.  :)


-Tom


[*] I had installed jdk1.4, whcich is why I was using the Tomcat-4.0.3-jdk1.4-LE (which I installed based on instructions on this list), but due to JDBC issues I had to revert back to jdk1.3, however since the jdk1.4 Tomcat worked fine, I did not switch back to normal Tomcat.

BTW: OS = RH GNU/Linux 7.2, jdk installed from Sun RPM, Tomcat installed from binary tarball, Cocoon installed from source with scratchpad.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 10:06 AM
> To: [EMAIL PROTECTED]
> Subject: Cocoon 2.0.2 SVG
> 
> 
> The example welcome-svg doesn't work in Cocoon 2.0.2 with JDK 
> 1.31 under
> tomcat 4. Does anyone have any ideas why. The images are 
> called but they
> don't appear to be generating?
> 
> Bobby Koya
> [EMAIL PROTECTED]
> http://www.newarkhall.co.uk
> Ext. 0115 84 66820 Int. 66820
> 
> 
> 
> 
> -
> 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]>
> 





Update on my problem

2002-03-28 Thread Jeremy Beeler



I am using j2sdk1.4.0, tomcat 
4.0.4b2LE, mm.mysql-2.0.11 or mm.mysql-2.0.7 (tried both), and cocoon 
2.0.3-dev.
 
Update on my problem:
 
I can query the database now by instantiating a 
connection in my xsp app. however, the app that i am writing needs to use the 
pooling capabilities to handle simultaneous access to the DB. does anyone know 
how to get this to work??? i tried creating the pool with a "driver" tag in my 
cocoon.xconf but that still generates the exception (NoValidConnectionException: No valid JdbcConnection class 
available)
 
this is my code:
 


org.gjt.mm.mysql.Driver

jdbc:mysql://localhost:3306/tester>
true>
login>
pass>
>
>
 
does 
anyone know if there is a mechanism that allows you to specify the driver for a 
pool in the cocoon.xconf?
 
 


Cocoon 1.8.2

2002-03-28 Thread Matus Krisztián




*** Sender : Matus Krisztián <[EMAIL PROTECTED]> ***
 
Hello,I'm in need of your help. My 
problem with Cocoon is that I can't breath itto life. I've made a build with 
version 1.8.2 and put the JARs undertomcat4.0.1/lib.I've copied 
cocoon-1.8.2/samples to tomcat4.0.1/webapps/samples.
After I've copied cocoon.properties to 
tomcat4.0.1/webapps/samples and made modifications to 
tomcat4.0.1/webapps/samples/web.xml:    
org.apache.cocoon.Cocoon    
org.apache.cocoon.Cocoon    
    
properties    
/cocoon.properties    
    
org.apache.cocoon.Cocoon    
*.xmlI'm 
receiving the following message with URLhttp://localhost.8080/samples/index.xml 

 
 Publishing 
Engine could not be initialized.
 
  
java.lang.RuntimeException: Error loading logicsheet at 
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to 
java.lang.Exception: Resource not found or retrieving 
error.  
at 
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)  
at 
org.apache.cocoon.framework.Manager.create(Manager.java:109)  
at 
org.apache.cocoon.framework.Router.init(Router.java:80)  
at 
org.apache.cocoon.framework.Manager.create(Manager.java:109)  
at 
org.apache.cocoon.Engine.(Engine.java:179)  
at 
org.apache.cocoon.Engine.getInstance(Engine.java:232)  
at 
org.apache.cocoon.Cocoon.init(Cocoon.java:157)  
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)  
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)  
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)  
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)  
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)  
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)  
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)  
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)  
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)  
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)  
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)  
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)  
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)  
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)  
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)  
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)  
at java.lang.Thread.run(Thread.java:484)<[EMAIL PROTECTED]>


RE: Problem with JSP in mounted sitemap

2002-03-28 Thread Chitharanjan Das









Hello,

    Use
the fully qualified path for the JSP file

 

    i.e not just sample.jsp
but from the context root

    for eg:

    

 

    where
/ = context directory

    omc = mount directory 

 

It should work in Cocoon 2.0.1………..

 

Cocoon 2.02 has problems with JSP generator as well as JSP reader. Konstantin is working to solve it….

 

REgds,

Chiths       



 

 

-Original Message-
From: yuryx
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 6:54 AM
To: [EMAIL PROTECTED]
Subject: Problem with JSP in
mounted sitemap

 

Hi all!

Now I have the following problem :)

When I declare jsp generator in matcher within mounted sitemap I have error
about:







type Status report

message /usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp

description The
requested resource
(/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp)
is not available.








in  mounted sitemap.xmap  I  declare  following:

    
        
        
        
        
        
        

    
    
    
        

  
 
 
  
        
    



I use Cocoon 2.0.2 and Tomcat 4.0.4 now.
This don't work  in  Cocoon  2.0.1 and Tomcat 4.0.1 also...

Can anyone help me by problem?

Thanx.
Yury.
 






-
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 2.0.2 SVG

2002-03-28 Thread Piroumian, Konstantin

Hi!

What is your OS?

I am using Tomcat 4.0.1 on Win NT 4.0, JDK 1.3.1 and CVS version of Cocoon
and SVG samples work fine here.

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 28, 2002 6:06 PM
> To: [EMAIL PROTECTED]
> Subject: Cocoon 2.0.2 SVG
> 
> 
> The example welcome-svg doesn't work in Cocoon 2.0.2 with JDK 
> 1.31 under
> tomcat 4. Does anyone have any ideas why. The images are 
> called but they
> don't appear to be generating?
> 
> Bobby Koya
> [EMAIL PROTECTED]
> http://www.newarkhall.co.uk
> Ext. 0115 84 66820 Int. 66820
> 
> 
> 
> 
> -
> 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]>




Cocoon 2.0.2 SVG

2002-03-28 Thread president

The example welcome-svg doesn't work in Cocoon 2.0.2 with JDK 1.31 under
tomcat 4. Does anyone have any ideas why. The images are called but they
don't appear to be generating?

Bobby Koya
[EMAIL PROTECTED]
http://www.newarkhall.co.uk
Ext. 0115 84 66820 Int. 66820




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




SVGSerializer parameters

2002-03-28 Thread Simeon Walker

Hi,
I am trying to get the SVG serializer to read a CSS stylesheet, I'm
using Cocoon 2.02. I have a sitemap entry like this:


   


In the logs I see this:

sitemap.log:DEBUG   (2002-03-28) 14:50.32:712   [sitemap]
  (/test/svg/corner-darkgreen--0.png) HttpProcessor[8080][0]/SVGSerializer:
  SVG Serializer: adding hint "KEY_USER_STYLESHEET_URI" with value ""

There is no uri in the value. If I use the example from the
docs of passing background colour to the serializer (with the
atribute type="color" added) then that will work fine.

Here are the relevant lines from
org/apache/cocoon/serialization/SVGSerializer.java:

} else {
   // Assume String, and get the value. Allow an empty string.
   value = parameters[i].getValue("");
}
// TODO: if (logger.isDebug())
   log.debug("SVG Serializer: adding hint \"" + name + "\" with value \"" + 
value.toString() + "\"");
   transcoder.addTranscodingHint(key, value);

Is there a mistake here or is it me?

Regards,
Simeon


-- 
Simeon Walker,  email: [EMAIL PROTECTED]
School of Biological Sciences,  phone: +44 (0)1248 383702
University of Wales, Bangor,fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.  www: http://biology.bangor.ac.uk/


-
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 2.02 where has the svg gone??

2002-03-28 Thread Christoph Gaffga

Hi,
I'm using cocoon 2.01 and upgraded from Java 1.3 to 1.4. Now I cant render
svg. I posted this before but I didn't get an answer.
Do you know, what the the problem ist whith JDK 1.4?

Christoph Gaffga


- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 2:51 PM
Subject: RE: Cocoon 2.02 where has the svg gone??


> I bet it is due to JDK1.4 which you are using.
>
> RTFM: http://xml.apache.org/cocoon/installing/index.html
>
> Vadim
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 8:37 AM
> To: [EMAIL PROTECTED]
> Subject: Cocoon 2.02 where has the svg gone??
>
> Hi, I have been developing a website in Cocoon 2.01 recently and I have
> been in the process of upgrading to 2.02. What has happened to the SVG
> support? In cocoon 2.01 I was able to transencode extracted (fragment
> extractor) SVG code into jpeg images but now all I get is a big white
> rectangle where my jpeg image should be? Is this due to batik 1.5 beta,
> if it is can I replace the 1.5beta jar with the old one and get the same
> results as cocoon 2.01?
>
> Thanks for your time
>
> Bobby Koya
> [EMAIL PROTECTED]
> http://www.newarkhall.co.uk
> Ext. 0115 84 66820 Int. 66820
>
>
>
> -
> 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]>




RE: Problem with JSP in mounted sitemap

2002-03-28 Thread Piroumian, Konstantin

I am fighting with that problem. JSPReader already working. Now I try to
figure out what's wrong with the JSPGenerator. 

The most strange thing is that the message in log says that: 'no pipeline
matched' my request. But the pipeline with the needed matcher is there and
JSPReader works from the same sitemap.

Hope to solve that problem today...

--
Konstantin Piroumian
[EMAIL PROTECTED] 


-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 5:54 PM
To: [EMAIL PROTECTED]
Subject: Problem with JSP in mounted sitemap


Hi all!

Now I have the following problem :)

When I declare jsp generator in matcher within mounted sitemap I have error
about:



type Status report
message
/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp
description The requested resource
(/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.js
p) is not available.



in  mounted sitemap.xmap  I  declare  following:














  
 
 
  





I use Cocoon 2.0.2 and Tomcat 4.0.4 now.
This don't work  in  Cocoon  2.0.1 and Tomcat 4.0.1 also...

Can anyone help me by problem?

Thanx.
Yury.
 
- 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. 

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




Problem with JSP in mounted sitemap

2002-03-28 Thread yuryx




Hi all!

Now I have the following problem :)

When I declare jsp generator in matcher within mounted sitemap I have error
about:

type Status report
message /usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp
description The requested resource (/usr/local/jakarta/catalina-4.0.4/webapps/cocoon/mobicom-info/omc/sample.jsp)
is not available.

in šmounted sitemap.xmap šI šdeclare šfollowing:

ššš 
ššš ššš 
ššš ššš 
ššš ššš 
ššš ššš 
ššš ššš 
ššš ššš 

ššš 
ššš 
ššš 
ššš ššš 

š 
 
 
š 
ššš ššš 
ššš 



I use Cocoon 2.0.2 and Tomcat 4.0.4 now.
This don't work šin šCocoon š2.0.1 and Tomcat 4.0.1 also...

Can anyone help me by problem?

Thanx.
Yury.
š




-
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 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas

2002-03-28 Thread Christopher Watson
Title: RE: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any ideas



Thanks, Tom
 
I 
suspect the problems are not only with cocoon, but excalibur too 
!
 
COCOON
===
The comment lines in the CVS EsqlConnection have 
@JDBC3_START@ and @JDBC3_END@which the ant task comments out if it FAILS to 
detect jdbc3 present.
 
In the 
cocoon dist version, these lines are commented out by /* and */  (it's 
the same in both the src.tar.gz and the src.zip) - so you have to remove them 
manually to get a clean jdk1.4 compile
 
EXCALIBUR
=
I 
noticed one Michael Enke on cocoon-dev asking about recompiling excalibur under 
jdk1.4 ...
 
There 
are similar @JDBC3_START@ lines in JdbcConnection and AbstractJdbcConnection in 
org.apache.avalon.excalibur.datasource
 
I 
tried myself recompiling the latest excalibur source dist (excluding the 
scratchpad stuff), 
having 
corrected a couple of typos in the parameter resulSetType 
[sic]
on 
lines 237, 251, 265 of
Jdbc3Connection.java
 
but 
even with that library,  http://localhost:8080/cocoon/xsp/esql still 
doesn't work
 
I now 
get
org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the 
datasource 
org.apache.avalon.excalibur.datasource.NoAvailableConnectionException: 
org.apache.avalon.excalibur.datasource.Jdbc3Connection at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:272) 
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251) 
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) 
at 
org.apache.cocoon.www.sitemap_xmap.matchN400552(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:6975) 
at 
org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3003) 
at 
org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489) 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at 
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at 
org.apache.cocoon.Cocoon.process(Cocoon.java:575) at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 

--
 
 
Whereas if I use  etc instead of  
everything works OK as before
 
Interestingly enough, my firewall monitor show port numbers open 
corresponding to what I would expect 
if the jdbc connections I've set in cocoon.xconf were active - 
cocoon just can't seem to get hold of the correct connection objects 
?!
 
COCOON-DEV GUYS

I'm perhaps cheekily putting this out to cocoon-dev also 
- sorry to trouble you guys.
 
Am I right in thinking that jdk1.4 ESQL 
compatibility will be a while yet?
 
Any ideas how long ?
 
I was encouraged to try jdk1.4 by reading the installing/index.html document which seemed 
optimistic about jdk1.4 and 
tomcat4.0.4b1.
Having 
already been to jdk1.4, then back to jdk1.3 and now jdk1.4 again, with all the 
other hoop-jumping that involves, I'm inclined to stay here - fortunately I have 
another machine with jdk1.3 !
 
Yours, 
hopefully
 
Christopher Watson
 
 -Original Message-From: 
von Schwerdtner, Thomas (GXS, FPI) 
[mailto:[EMAIL PROTECTED]]Sent: 27 March 2002 
18:45To: '[EMAIL PROTECTED]'Subject: RE: Cocoon 
2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling Doesn't Work (for me) - any 
ideas

  I don't know about your compile problems, but I do know that 
  JDBC connections are fairly problematic with jdk1.4 since they changed some 
  things.  I had no problems building the CVS a few weeks ago, but the ESQL 
  samples didnt work for me and I could not get the PostgreSQL jdbc driver to 
  work either (despite comments that it would work with 1.4).  I had to 
  switch back to 1.3 to get everything I needed to work.
  HTH, -Tom 
  > -Original Message- > 
  From: Christopher Watson [mailto:[EMAIL PROTECTED]] 
  > Sent: Wednesday, March 27, 2002 11:46 AM 
  > To: Cocoon-Users (E-mail) > 
  Subject: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection Pooling 
  > Doesn't Work (for me) - any ideas > > > 
  Hopefully someone can help me ? > > Followed the advice in cocoon-2.0.2\docs\installing\index.html, 
  i.e. > created the endorsed directory, copied 
  xerces xalan and xml-apis > > Build clean then build installwar > 
  > Compile falls over EsqlConnection, saying it 
  should be > declared abstract due > to missing methods. > Discovered some 
  commented-out methods which seem to implement > the 
  missing > methods - e.g. setSavePoint, 
  setHoldability > Uncommented those lines 
  > Also notice

Re: Encoding non-english characters in XSP (C2.0.2)

2002-03-28 Thread Andrey Demchenko

1)Thanks. It's works in Cocoon 2.0.1 and 2.0.2.
  I use your recomendations and changed in cocoon.xconf
  
=
2) How can I put "-encoding KOI8-R" to javac
 in servlet container e.g. Resin 2.0.5, Tomcat 4.0?

--
Best regards,
Andrey Demchenko.

- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
>Next step for you would be:
>1. Switch back to Javac (pizza does not support Java file encoding option)

> 2. Make sure Javac gets "-encoding KOI8-R" command line option




-
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: Encoding non-english characters in XSP (C2.0.2)

2002-03-28 Thread yuryx

Vadim Gritsenko wrote:

>Ok, I see, you have got national characters in the Java file (I do not have them, may 
>be because of different locale).
>
>Next step for you would be:
>1. Switch back to Javac (pizza does not support Java file encoding option)
>2. Make sure Javac gets "-encoding KOI8-R" command line option
>
>and everything should be ok.
>
>Vadim
>
Hi Vadim!
I switched compiller to Javac and this solve all problems :)

Thanx for you help
Yury.



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




FW: Cocoon 2.02 where has the svg gone??

2002-03-28 Thread Sharat Koya

No I'm using jdk 1.31. I have noticed a problem with fragment extractor
ie it doesn't work. 

Does anyone have /cocoon/welcome-svg   example working from the samples?
It doesn't return the images for me?

Bobby Koya
[EMAIL PROTECTED]
http://www.newarkhall.co.uk
Ext. 0115 84 66820 Int. 66820


-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 28 March 2002 13:51
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Cocoon 2.02 where has the svg gone??

I bet it is due to JDK1.4 which you are using.

RTFM: http://xml.apache.org/cocoon/installing/index.html

Vadim

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 8:37 AM
To: [EMAIL PROTECTED]
Subject: Cocoon 2.02 where has the svg gone??

Hi, I have been developing a website in Cocoon 2.01 recently and I have
been in the process of upgrading to 2.02. What has happened to the SVG
support? In cocoon 2.01 I was able to transencode extracted (fragment
extractor) SVG code into jpeg images but now all I get is a big white
rectangle where my jpeg image should be? Is this due to batik 1.5 beta,
if it is can I replace the 1.5beta jar with the old one and get the same
results as cocoon 2.01? 

Thanks for your time

Bobby Koya
[EMAIL PROTECTED]
http://www.newarkhall.co.uk
Ext. 0115 84 66820 Int. 66820




-
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: Error when deploying own generator

2002-03-28 Thread Volker Schneider

Hi Erwin,

Christian Schmitt told you where to place the class files. Maybe you will
laugh, but it is neccessary to compile your classes externally. Cocoon
doesn't do it for you. When you read about cocoon someone (like me for the
first time) could assume that cocoon could be able to do the compilation...

Best regards
- Volker -

-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 28. Marz 2002 13:35
To: Cocoon Users mailing list
Subject: Error when deploying own generator


Hi,

I have a program that dynamically generates XML content and to integrate
it with Cocoon 2 I have tried to write my own generator. But every time I
try to test it, I get a java.lang.NoClassDefFoundError:
org/apache/cocoon/generation/AbstractGenerator

I guess it has something to do with an incorrect classpath, but I have
tried a lot and haven't been able to solve it.

---o---

My setup:

DEC Alpha Personal Workstation 500a
Redhat Linux 7.1
Jakarta Tomcat 3.2.3
Cocoon 2.0.1
Compaq JDK for Alpha, version 1.3.1-1
Output of java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition
Classic VM (build 1.3.1-1, native threads, jit)

---o---

I made following changes to the root sitemap to test my generator:
In  added:


In a  element added:

  
  


Then I stopped Tomcat (and thus Cocoon), removed the Cocoon-directory in
the tomcat work directory, adjusted the classpath so the class
rmitest.Client would be found and then restarted Tomcat.

---o---

I then tried to access http://localhost:8080/cocoon/rmitest but that
resulted in a 'fatal error'. Looking in sitemap.log I found the following:
ERROR   (2002-03-27) 23:21.40:190   [sitemap] (/cocoon/)
Thread-23/Handler: Error compiling sitemap
java.lang.NoClassDefFoundError:
org/apache/cocoon/generation/AbstractGenerator
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled
Code)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java,
Compiled Code)
at java.net.URLClassLoader.defineClass(URLClassLoader.java,
Compiled Code)
at java.net.URLClassLoader.access$100(URLClassLoader.java,
Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled
Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java,
Compiled Code)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a,
Compiled Code)
at
org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(sitemap_xmap.
java,
Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java,
Compiled Code)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java,
Compiled Code)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java,
Compiled Code)
at org.apache.cocoon.sitemap.Handler.run(Handler.java, Compiled
Code)
at java.lang.Thread.run(Thread.java:484)

---o---

The following is the code from my generator

package rmitest;

import java.io.IOException;
import java.io.StringReader;

import org.xml.sax.*;
import org.xml.sax.helpers.*;

import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.generation.AbstractGenerator;

public class Client extends AbstractGenerator {

public void generate() throws IOException, SAXException,
ProcessingException
{
String message = "";

XMLReader xmlreader = new org.apache.xerc

RE: Cocoon 2.02 where has the svg gone??

2002-03-28 Thread Vadim Gritsenko

I bet it is due to JDK1.4 which you are using.

RTFM: http://xml.apache.org/cocoon/installing/index.html

Vadim

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 8:37 AM
To: [EMAIL PROTECTED]
Subject: Cocoon 2.02 where has the svg gone??

Hi, I have been developing a website in Cocoon 2.01 recently and I have
been in the process of upgrading to 2.02. What has happened to the SVG
support? In cocoon 2.01 I was able to transencode extracted (fragment
extractor) SVG code into jpeg images but now all I get is a big white
rectangle where my jpeg image should be? Is this due to batik 1.5 beta,
if it is can I replace the 1.5beta jar with the old one and get the same
results as cocoon 2.01? 

Thanks for your time

Bobby Koya
[EMAIL PROTECTED]
http://www.newarkhall.co.uk
Ext. 0115 84 66820 Int. 66820



-
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: Encoding non-english characters in XSP (C2.0.2)

2002-03-28 Thread Vadim Gritsenko

Ok, I see, you have got national characters in the Java file (I do not have them, may 
be because of different locale).

Next step for you would be:
1. Switch back to Javac (pizza does not support Java file encoding option)
2. Make sure Javac gets "-encoding KOI8-R" command line option

and everything should be ok.

Vadim


From: yuryx [mailto:[EMAIL PROTECTED]] 

I fail to see difference. In both cases, in Cocoon 2.0.1 and in Cocoon
2.0.2, XSP page with KOI8-R encoding, produces following Java code:

this.characters("\n??\n  ");

yes, in sample_xsp.java:

this.characters("\n");
  

this.contentHandler.startElement(
  "",
  "h4",
  "h4",
  xspAttr
);
xspAttr.clear();


this.characters("Привет from XSP");
  

this.contentHandler.endElement(
  "",
  "h4",
  "h4"
);


this.characters("\n ");
sample.xsp:


http://apache.org/xsp"; >



 title

 
Привет from XSP
 

 


..and
sample.xsl:


http://www.w3.org/1999/XSL/Transform";>
   

  
   

 
  
 


  Привет from XSL
 

   
  
  
  



in sitemap.xmap:

  1024
  KOI8-R


  



   

But in output page :
Привет from XSL
ðÒÉ×ÅÔ from XSP
And I don't understand this ...
:((

Sorry by  repeat the  question

Thanx.
Yury.




Check that you do not have any other changes in your environment. For
me, both versions of Cocoon produce bunch of question marks when trying
to use KOI8-R encoding.

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: Error when deploying own generator

2002-03-28 Thread Christian Schmitt

Erwin,
have you tried to put your classes in 
$TOMCAT_HOME/webapps/cocoon/WEB-INF/classes

That's the place where they should be.

Hth,
Christian


On Thu, Mar 28, 2002 at 01:35:15PM +0100, Erwin wrote:
> Hi,
> 
> I have a program that dynamically generates XML content and to integrate
> it with Cocoon 2 I have tried to write my own generator. But every time I
> try to test it, I get a java.lang.NoClassDefFoundError:
> org/apache/cocoon/generation/AbstractGenerator
> 
> I guess it has something to do with an incorrect classpath, but I have
> tried a lot and haven't been able to solve it.
> 



-
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: merging multiple xml files for processing by an XSL file

2002-03-28 Thread Vadim Gritsenko

It's almost RTFM:

http://localhost:8080/cocoon/news/aggregate

Vadim

> From: James Andersen [mailto:[EMAIL PROTECTED]]
> 
> OK, I'm pretty sure this is a simple thing to do but I'm fairly new to
> Cocoon and I cannot figure it out.  I've looked at the FAQ about
> concatenating files and I get "Stylesheet directed termination"
errors.
> I've tried the document() function and I get transformHandler errors.
I
> don't really care how it is done but can anyone explain how to merge
> multiple XML documents into single data source for processing with an
XSL
> file?
> 


-
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: Urgent: Problems in including XML fragment in XSP o/p

2002-03-28 Thread Vadim Gritsenko

Chitharanjan:


1. Have you tried 

 
  itemsXML 


?

2. Have you seen generated java class?

Vadim

> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> 
> Hello,
>   I am using cocoon 2.0,2 Tomcat 4.0.1 JDK 1.3.1
> 
> My match entry for my XSP reads like this ..
>
>   
>src="docs/samples/xsp/compare.xsp"/>
>   
>   
>   
value="C:\Projects\cocoon\Development\old-xml-cocoon2\build\cocoon\webap
> p\docs\samples\jsp\items\components.xml"/>
>   
value="C:\Projects\cocoon\Development\old-xml-cocoon2\build\cocoon\webap
> p\docs\samples\jsp\items"/>
>value="docs/samples/jsp/xsl/items.xsl"/>
>value="docs/samples/jsp/xsl/graphrating.xsl"/>
>   
>src="docs/samples/jsp/xsl/accordia1.xsl"/>
>   
>   
> 
> 
> The actions performs the logic and sticks an XML in the request
> attribute.
> I need to extract the XML data from request and append it in the XSP
o/p
> 
> //itemsXML is a java String object which contains an XML string
(valid)
> 
> The XSP code snippet is
> 
>   
>   
>   
>   itemsXML
> 
>   
>   
> -
> If I do as above the contents of itemsXML is treated as String only
and
> not as XML and hence will not undergo transformation
> 
> 
> I then included the util logic sheet using the xml namespace
declaration
> as follows
>xmlns:xsp="http://apache.org/xsp";
>   xmlns:cinclude="http://apache.org/cocoon/include/1.0";
>   xmlns:util="http://apache.org/xsp/util/2.0";>
> 
> Modified the XSP code to include the following
> 
>   
>   
>  
>   
>   
>   itemsXML
> 
>
>  
>   
>   
> -
>   I got a syntax error in XSP compilation
> Note:// I got this from an earlier posting in the users mail list
> 
> 
> I then  removed the  tag , the XSP compiles but
still
> treats ItemXML as a String
> 
> Please advice what to do,
> I hope I am being clear
> 
> 
> To Summarize,
>   How do I stick an XML fragment (stored in a variable) into the
> XSP o/p without it getting treated as a String..


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




Cocoon 2.02 where has the svg gone??

2002-03-28 Thread president








Hi, I have been developing a website in Cocoon 2.01 recently
and I have been in the process of upgrading to 2.02. What has happened to the
SVG support? In cocoon 2.01 I was able to transencode
extracted (fragment extractor) SVG code into jpeg images but now all I get is a
big white rectangle where my jpeg image should be? Is this due to batik 1.5
beta, if it is can I replace the 1.5beta jar with the
old one and get the same results as cocoon 2.01? 

 

Thanks for your time

 

Bobby Koya

[EMAIL PROTECTED]

http://www.newarkhall.co.uk

Ext. 0115 84 66820 Int. 66820

 








Re: Simple XSL problem, but NEED HELP!

2002-03-28 Thread KOZLOV Roman

Hi,

To copy all types of all level sub-nodes you can use copy-of tag:


In this case you need not special template with for-each processing.

Best regards.
Roman

"Hahn Kurt (CHA)" wrote:

> Actually, the problem was something else, somebody else just pointed me to
> check for different namespaces, and that solved the problem, I needed to
> reference the elements with their corresponding NS.
>
> Thanks
>
> -Message d'origine-
> De: TREGAN Fabien [mailto:[EMAIL PROTECTED]]
> Date: jeudi, 28. mars 2002 10:45
> À: '[EMAIL PROTECTED]'
> Objet: RE: Simple XSL problem, but NEED HELP!
>
> >-Message d'origine-
> >De: Andreas Hartmann [mailto:[EMAIL PROTECTED]]
>
> >Hi,
>
> 
>
> >At least in your example the  tag has no value, so it is
> >absolutely correct that nothing is returned. If you use ,
> >you will only get the value of the matched tag.
> >
>
> If you want a copy of all the tag, us xsl:copy.
>
> If you need to copy all the tag, attributs, and inner tag, you can use
> recursive-copy by using a named template and applying your template to the
> node to be copyed.
>
> I think that the template should look like :
>
> 
>   
> 
>   
>   
> 
>
> hope this works, i've not practiced for a long time :)
>
> >
> >Greetings,
> >Andreas
>
> -
> 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]>


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




Error when deploying own generator

2002-03-28 Thread Erwin

Hi,

I have a program that dynamically generates XML content and to integrate
it with Cocoon 2 I have tried to write my own generator. But every time I
try to test it, I get a java.lang.NoClassDefFoundError:
org/apache/cocoon/generation/AbstractGenerator

I guess it has something to do with an incorrect classpath, but I have
tried a lot and haven't been able to solve it.

---o---

My setup:

DEC Alpha Personal Workstation 500a
Redhat Linux 7.1
Jakarta Tomcat 3.2.3
Cocoon 2.0.1
Compaq JDK for Alpha, version 1.3.1-1
Output of java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition
Classic VM (build 1.3.1-1, native threads, jit)

---o---

I made following changes to the root sitemap to test my generator:
In  added:


In a  element added:

  
  


Then I stopped Tomcat (and thus Cocoon), removed the Cocoon-directory in
the tomcat work directory, adjusted the classpath so the class
rmitest.Client would be found and then restarted Tomcat.

---o---

I then tried to access http://localhost:8080/cocoon/rmitest but that
resulted in a 'fatal error'. Looking in sitemap.log I found the following:
ERROR   (2002-03-27) 23:21.40:190   [sitemap] (/cocoon/)
Thread-23/Handler: Error compiling sitemap
java.lang.NoClassDefFoundError:
org/apache/cocoon/generation/AbstractGenerator
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled
Code)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java,
Compiled Code)
at java.net.URLClassLoader.defineClass(URLClassLoader.java,
Compiled Code)
at java.net.URLClassLoader.access$100(URLClassLoader.java,
Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled
Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled
Code)
at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java,
Compiled Code)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java,
Compiled Code)
at
org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(sitemap_xmap.java,
Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java,
Compiled Code)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java,
Compiled Code)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addCompiledComponent(ProgramGeneratorImpl.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java,
Compiled Code)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java,
Compiled Code)
at org.apache.cocoon.sitemap.Handler.run(Handler.java, Compiled
Code)
at java.lang.Thread.run(Thread.java:484)

---o---

The following is the code from my generator

package rmitest;

import java.io.IOException;
import java.io.StringReader;

import org.xml.sax.*;
import org.xml.sax.helpers.*;

import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.generation.AbstractGenerator;

public class Client extends AbstractGenerator {

public void generate() throws IOException, SAXException, ProcessingException
{
String message = "";

XMLReader xmlreader = new org.apache.xerces.parsers.SAXParser();
xmlreader.setContentHandler(super.xmlConsumer);
InputSource source = new InputSource(new StringReader(message));
xmlreader.parse(source);
}

}

---o---

To start Tomcat I use the following script:
(everything actually on one line, but here on multiple lines for clarity)
(large heapsize is so that fop won't give a java.lang.OutOfMemoryError)
java -Xmx256217728
-cp /usr/local/jakarta-tomcat-3.2.3/classes:
/usr/local/jakarta-tomcat-3.2.3/lib/

RE: Simple XSL problem, but NEED HELP!

2002-03-28 Thread TREGAN Fabien

Ok, but remember the difference between evaluating the node to text is
different from copying the node (according to the w3c xslt specs) :

-The xsl:value-of element is instantiated to create a text node in the
result tree. The required select attribute is an expression; this expression
is evaluated and the resulting object is converted to a string as if by a
call to the string function. The string specifies the string-value of the
created text node. If the string is empty, no text node will be created. The
created text node will be merged with any adjacent text nodes.

-The xsl:copy-of element can be used to copy a node-set over to the result
tree without converting it to a string. 


>-Message d'origine-
>De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
>Date: jeudi 28 mars 2002 10:49
>À: '[EMAIL PROTECTED]'
>Objet: RE: Simple XSL problem, but NEED HELP!
>
>
>Actually, the problem was something else, somebody else just 
>pointed me to
>check for different namespaces, and that solved the problem, I 
>needed to
>reference the elements with their corresponding NS.
>
>Thanks 
>
>-Message d'origine-
>De: TREGAN Fabien [mailto:[EMAIL PROTECTED]]
>Date: jeudi, 28. mars 2002 10:45
>À: '[EMAIL PROTECTED]'
>Objet: RE: Simple XSL problem, but NEED HELP!
>
>
>
>
>>-Message d'origine-
>>De: Andreas Hartmann [mailto:[EMAIL PROTECTED]]
>
>>Hi,
>
>
>
>>At least in your example the  tag has no value, so it is
>>absolutely correct that nothing is returned. If you use 
>,
>>you will only get the value of the matched tag.
>>
>
>If you want a copy of all the tag, us xsl:copy.
>
>If you need to copy all the tag, attributs, and inner tag, you can use
>recursive-copy by using a named template and applying your 
>template to the
>node to be copyed.
>
>I think that the template should look like :
>
>
>  
>
>  
>  
>
>
>hope this works, i've not practiced for a long time :)
>
>>
>>Greetings,
>>Andreas
>
>
>-
>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]>
>

-
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: merging multiple xml files for processing by an XSL file

2002-03-28 Thread Matthieu Benéteau

> OK, I'm pretty sure this is a simple thing to do but I'm fairly new to
> Cocoon and I cannot figure it out.  I've looked at the FAQ about
> concatenating files and I get "Stylesheet directed termination" errors.
> I've tried the document() function and I get transformHandler errors.  I
> don't really care how it is done but can anyone explain how to merge
> multiple XML documents into single data source for processing with an XSL
> file?

Try to merge them *before* the XSL transformation.
I my project I have the following pipeline :


  
  
  
  
  


where "Entries.xml" contains around 60 file references.
The "SearchObjects.xsl" stylesheet replaces each reference with an XInclude
instruction, then the XInclude transformer puts all the desired elements
together, and finally the last stylesheet processes the result as a single
file.


Matthieu


-
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: merging multiple xml files for processing by an XSL file

2002-03-28 Thread Andrew Savory

On Thu, 28 Mar 2002, James Andersen wrote:

> OK, I'm pretty sure this is a simple thing to do but I'm fairly new to
> Cocoon and I cannot figure it out.  I've looked at the FAQ about
> concatenating files and I get "Stylesheet directed termination" errors.
> I've tried the document() function and I get transformHandler errors.  I
> don't really care how it is done but can anyone explain how to merge
> multiple XML documents into single data source for processing with an XSL
> file?

One way is to use aggregation in the sitemap, e.g.:

 
   
   
 

Another way is to use XInclude (or CInclude) in your XML, e.g.:



Hope that helps,


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)870 28 47489
This is not an official statement or order.Web:www.luminas.co.uk


-
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: Simple XSL problem, but NEED HELP!

2002-03-28 Thread Hahn Kurt (CHA)

Actually, the problem was something else, somebody else just pointed me to
check for different namespaces, and that solved the problem, I needed to
reference the elements with their corresponding NS.

Thanks 

-Message d'origine-
De: TREGAN Fabien [mailto:[EMAIL PROTECTED]]
Date: jeudi, 28. mars 2002 10:45
À: '[EMAIL PROTECTED]'
Objet: RE: Simple XSL problem, but NEED HELP!




>-Message d'origine-
>De: Andreas Hartmann [mailto:[EMAIL PROTECTED]]

>Hi,



>At least in your example the  tag has no value, so it is
>absolutely correct that nothing is returned. If you use ,
>you will only get the value of the matched tag.
>

If you want a copy of all the tag, us xsl:copy.

If you need to copy all the tag, attributs, and inner tag, you can use
recursive-copy by using a named template and applying your template to the
node to be copyed.

I think that the template should look like :


  

  
  


hope this works, i've not practiced for a long time :)

>
>Greetings,
>Andreas


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




RE: Simple XSL problem, but NEED HELP!

2002-03-28 Thread TREGAN Fabien



>-Message d'origine-
>De: Andreas Hartmann [mailto:[EMAIL PROTECTED]]

>Hi,



>At least in your example the  tag has no value, so it is
>absolutely correct that nothing is returned. If you use ,
>you will only get the value of the matched tag.
>

If you want a copy of all the tag, us xsl:copy.

If you need to copy all the tag, attributs, and inner tag, you can use
recursive-copy by using a named template and applying your template to the
node to be copyed.

I think that the template should look like :


  

  
  


hope this works, i've not practiced for a long time :)

>
>Greetings,
>Andreas


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




problems with encodeURL transformer

2002-03-28 Thread rainer_burgstaller

Hi

I am trying to get the encodeURL transformer working with Tomcat 4.0.1 and
JDK 1.3.1 (Cocoon 2.0.2)

in my sitemap I have following entries


...
 




 
 
 
  
   
   
  
  
   
   
  
  
   
   
  
 




as far as I understand this transformer it parses the whole xml for
attributes like href,... and replaces them with a url encoded version.

my xml generates something like this

link

which is then transformed by the page2html.xsl into an actual link.
However, the transformer never gets to work.
1. it does not recognize the session when I disable cookies.
 in setup:
final Request request =
ObjectModelHelper.getRequest(objectModel);
this.session = request.getSession( false );
 session is always null

2. if I enable cookies. then there is a session but with cookies url
encoding is not necessary :(


can anybody help?

best regards



-
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: Simple XSL problem, but NEED HELP!

2002-03-28 Thread Andreas Hartmann



Hi,

*** REPLY SEPARATOR  ***

On 28.03.2002 at 09:50 Hahn Kurt (CHA) wrote:

>I really start losing it, I'm trying to do something very simple for
>hours,
>and it just wouldn't work. With an XML document like this:
> (root element)
> 
>
>  
>
>text
>text
>text 
>
>
>...
>. 
>
>
>I'm trying to do some simple transformations. This:
>
>  
>
> 
>
>gives me everything in the original document, and that's OK.

This is strange, it shouldn't return anything but the value of the  tag.

>However, I
>replace "content" with some other element, like
>
>it gives me just an empty tag, although, according to my XSL sources, the
>operator "//" can be used to reference as many levels down in the hierarchy
>as necessary. Can anybody help me out here?
>

At least in your example the  tag has no value, so it is
absolutely correct that nothing is returned. If you use ,
you will only get the value of the matched tag.

Greetings,
Andreas

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




RE: XSL question

2002-03-28 Thread Andreas Hartmann



*** REPLY SEPARATOR  ***

On 26.03.2002 at 15:47 Argyn Kuketayev wrote:

>> As I've said
>> before, you can use an action to get params from whereever
>> you need then
>> expose them to sitemap (using returning map in an action).
>> Then you can
>> simply set those params in your trasformer call:
>>
>> 
>>  
>> 
>>
>> --
>> Konstantin Piroumian
>> [EMAIL PROTECTED]
>
>can you give a complete example of how to do that?
>
>I have a similar issue, I need to pass parameters from the request into the
>stylesheet.
>

Hi Argyn,

have a look at 
http://www.cocooncenter.org/cc/documents/resources/request-params/index.html.

Greetings,
Andreas

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




RE: How to change response contenttype?

2002-03-28 Thread Matthieu Benéteau

>   working with Cocoon 2.0.2 i discovered that every serialized
> HTML file contains a line like that:
>
> 
>
> But, i cannot find where i can tell cocoon to set another charset before
> the response.getWriter() call?

Just add an "encoding" parameter in the declaration of your HTML serializer.
For instance :

  
iso-8859-1
  

Hope it helps !
Matthieu


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




S: map:generate called twice

2002-03-28 Thread Mathias Ochsendorf

Hello,

I'm working with the CVS-Version of Cocoon 2 from last Wednesday
(3/27/02).
According to
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100834637226164&w=2
this problem has to be fixes since a couple of months.

But every cocoon request to /NotifyService invokes the Apache server
(bluescreen:80) twice.
The logfile of cocoon records only one request for /NotifyService, apache
logs the
message_start.php twice.

sitemap.xmap:
[...]

  http://bluescreen/message_start.php?control=106"/>
  
  

[...]

Any hints ?

Thx, Mathias

-- 
Mathias Ochsendorf
www: www.ochsendorf.net | www.ochsendorf.de
ICQ: 68556900


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




the cocoon protocol

2002-03-28 Thread Jakob Praher

hi all,


where can I find a specification of the cocoon:/ URI scheme and protcol
handler?

looking in cocoon.xconf [c2.0.2], there is only a protcol handler for

resource:/
context:/

.

as one can use the cocoon:/ in document() methods inside xslts, is it
possible to access internal only documents with this protocol.

this would be really interesting since, then I could access some data,
defined as, e.g. xsp in the sitemap within a xslt, but denying access
from the browser.


thanks for your support

Jakob





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




Session attribute -> database

2002-03-28 Thread Alexander Kruth

Hi!
Is it possible to write a session-attribute to a database?




  safeuser
  

  


  "
dbcol="username" type="string"/>
 
  
  

  



=
[...]
  

  
  
  
  
  


  

  

  


  
[...]
==


Thank you,
Alex.


-
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: Simple XSL problem, but NEED HELP!

2002-03-28 Thread Bertrand Delacretaz

On Thursday 28 March 2002 09:50 am, Hahn Kurt (CHA) wrote:
>. . .
> 
>. . .
> gives me everything in the original document, and that's OK. However, I
> replace "content" with some other element, like 
> 
> it gives me just an empty tag

Most probably  is in a different namespace, in which case you have to 
indicate the namespace in the match pattern, something like  assuming the sql namespace (or whatever prefix you want 
to use) is declared properly.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






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




[Newbie] cocoon 2 with my own personal root

2002-03-28 Thread David Balch

Hi,

I've been using the binary installation of cocoon-2.0.1 (Tomcat included)
which ran first-time (WinME) -  thanks to all involved! On with my
problem...

I'm trying to get a new webapp so I can run a site through cocoon, but
separate from all the dox and examples.  To do this I followed
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg06254.html - and
made a copy  of cocoon.war, renamed to website.war and restarted cocoon.

When I try and access "localhost:8080/website/" I still get redirected to
"welcome" as per the default cocoon.war sitemap, rather than my own :-(

When restarting tomcat I get this in the console:

Apache Tomcat/4.0.1
Sitemap location = sitemap.xmap
Checking sitemap reload = true
Reloading sitemap asynchron = true
Sitemap check delay = 1 sec
Server 1.6 is running
Press [Ctrl]+[C] to abort
Server.run/init: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at org.hsqldb.Server.run(Server.java:131)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:147)
at java.lang.Thread.run(Unknown Source)
Sitemap location = sitemap.xmap
Checking sitemap reload = true
Reloading sitemap asynchron = true
Sitemap check delay = 1 sec
Starting service Tomcat-Apache
Apache Tomcat/4.0.1


I deleted all directories apart from META-INF, WEB-INF, resources, and the
file cocoon.xconf and added my own  files and dirs I previously had been
mounting with a sub-sitemap. "webapps/website" now looks like:

img [Dir -my creation]
inc [Dir -my creation]
META-INF[Cocoon]
resources   [Cocoon]
stylesheets [Dir -my creation]
WEB-INF [Cocoon]
xml-content [Dir -my creation]
cocoon.xconf[Cocoon]
sitemap.xmp [My creation]


I don't know java at all, but am I right in thinking that with "cocoon.war"
and my copy of it "website.war"  installed, Tomcat figures out that when it
loads the classes for one, it can use them for the other?

Any ideas how to get cocoon using my sitemap?

Thanks in advance,

Dave.

-- 
TALL, OUDCE and the University of Oxford accept no legal responsibility for
the contents of this message. Any views or opinions presented are only those
of the author and not those of TALL, or OUDCE, or the University of Oxford.
If this email has come to you in error please delete it and any attachments.

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




Simple XSL problem, but NEED HELP!

2002-03-28 Thread Hahn Kurt (CHA)

I really start losing it, I'm trying to do something very simple for hours,
and it just wouldn't work. With an XML document like this:
 (root element) 
  
 
   
 
text 
text 
text  
 
 
... 
.  


I'm trying to do some simple transformations. This:

   
 
  

gives me everything in the original document, and that's OK. However, I
replace "content" with some other element, like 
 
it gives me just an empty tag, although, according to my XSL sources, the
operator "//" can be used to reference as many levels down in the hierarchy
as necessary. Can anybody help me out 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: C2.0.2: ClassCastException

2002-03-28 Thread Jozsa Kristof

Vadim,

sorry for the delay, I was out of office. I'm running Cocoon 2.0.2 from
JBoss3beta2 latest cvs snapshots (it uses Jetty as the bundled web
container). I thought of the different xalan/xerces libs between JBoss and
Cocoon as a possible problem source here - is that possible?

Anyway, I'm posting a full trace about the problem:

ERROR   (2002-03-28) 09:27.19:740   [core.manager] (/index) 
SocketListener-1/XMLResourceBundle: cannot obtain XPathProcessor
java.lang.ClassCastException: org.apache.cocoon.components.xpath.XPathProcessorImpl
at org.apache.cocoon.i18n.XMLResourceBundle.compose(XMLResourceBundle.java:117)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceBundleFactory.java:346)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundleFactory.java:308)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:238)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:224)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceBundleFactory.java:343)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundleFactory.java:308)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:238)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:224)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceBundleFactory.java:343)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundleFactory.java:308)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundleFactory.java:196)
at 
org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundleFactory.java:181)
at 
org.apache.cocoon.transformation.I18nTransformer.setup(I18nTransformer.java:773)
at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:215)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:279)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:142)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:320)
at org.apache.cocoon.www.sitemap_xmap.matchN400231(sitemap_xmap.java:3510)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1192)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:681)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:570)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1352)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1306)
at org.mortbay.http.HttpServer.service(HttpServer.java:743)
at org.jboss.jetty.Jetty.service(Jetty.java:540)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:748)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:763)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
at java.lang.Thread.run(Thread.java:498)

But as I've said, everything seems to work correctly, in spite of the trace
in error.log.

Regards,
Christopher

On Tue, Mar 26, 2002 at 08:00:35PM -0500, Vadim Gritsenko wrote:
> Try deleting work directory. Might help, I'm not sure what you have got
> (you cut the stacktrace too short)
> 
> Vadim
> 
> > From: Jozsa Kristof [mailto:[EMAIL PROTECTED]]
> > 
> > Hi,
> > 
> > I've downloaded Cocoon 2.0.2, compiled, replaced the libs in my
> project and
> > deployed successfully. It works, however, I keep getting spammed in
> the
> > error.log with messages like these:
> > 
> > ERROR   (2002-03-26) 14:13.28:463   [core.manager] (/list/mainlist)
> > SocketListener-0/XMLResourceBundle: cannot obtain XPathProcessor
> > java.lang.ClassCastException:
> > org.apache.cocoon.components.xpath.XPathProcessorImpl
> > 
> > followed by a full trace. What causes this, and how can I get rid of
> that?
> > 
> > thanks,
> > Christophe