RE: Cocoon 2.0.3 + Jbuilder ?

2002-06-23 Thread TREGAN Fabien

>-Message d'origine-
>De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
>Date: jeudi 20 juin 2002 11:55
>á: '[EMAIL PROTECTED]'
>Objet: RE: Cocoon 2.0.3 + Jbuilder ?
>
>
>I don't think that the problem comes from the content of the web.xml.
>As I've told aready, I usually solve this problem by opening 
>the web.xml
>file in the editor (and better in the Source mode). This way 
>JB does not touch the file.
>
>I am interested to hear a better solution to this too.
>
>Konstantin

I'm not really sure if this is the solution, since behaviour seems to be
changing randomly, but I finally manage to get it to work. All i hade to do
was to re-write the web.xml file... and maybe I change some option I can't
remember :)

Here is my web.xml :


http://java.sun.com/dtd/web-app_2_3.dtd";>

  Cocoon2 Demo
  Demo application for Cocoon2
  
Cocoon2
Cocoon2
The main Cocoon2 servlet
org.apache.cocoon.servlet.CocoonServlet

  allow-reload
  yes


  classdebuginfo
  true


  cocoon-logger
  core


  configurations
  /WEB-INF/cocoon.xconf


  init-classloader
  false


  load-class
  org.hsql.jdbcDriver


  log-level
  DEBUG


  logkit-config
  /WEB-INF/logkit.xconf


  manage-exceptions
  true


  request-factory
 
org.apache.cocoon.components.request.MultipartRequestFactoryImp
l


  servlet-config
  access

1
  
  
jspalacon
org.apache.cocoon.servlet.CocoonServlet
  
  
Cocoon2
*.html
  
  
Cocoon2
/
  
  
css
text/css
  


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




A newbie question

2002-06-23 Thread Jack Dong



hi,
I am a newbie to use cocoon,and get a question.
I use cocoon 2.1 and tomcat 4.0.4 beta3.
when i type
http://localhost:8080/cocoon, it's 
right.
but when i copy the "hello world" sample 
from "$CATALINA_HOME/webapps/cocoon/sample/hello-world" 
to"$CATALINA_HOME/webapps/cocoon/hello-world" 
and type
http://localhost:8080/cocoon/hello-world/hello.html
it response a error page,that note"resource not found", why 
and what relation have between main sitemap and substitute sitemap?
 
 
by the way, what mean like "{1}.rdf ,{2}.rdf"?
 
thinks advance.
 
 


Re: how to remove the DTD wriiten at the top ?

2002-06-23 Thread Sebastien SACARD

Vadim Gritsenko wrote:

>>From: Sebastien SACARD [mailto:[EMAIL PROTECTED]]
>>
>>Hi,
>>
>>I can't get rid off the DTD declaration written on top of the HTML
>>
>pages
>
>>created with a default serializer :
>>
>>
>>   
>>src="org.apache.cocoon.serialization.HTMLSerializer">
>> ISO-8859-1
>> -//W3C//DTD HTML 4.0 Transitional//EN
>>
>
>
>>
>http://www.w3.org/TR/REC-html40/loose.dtdm>
>
>> true
>> 1
>>   
>>
>>I thought the  was doing the trick, 
>>
>
>It omits *XML* declaration. According to spec, this is:
>
>  
>
>
>>but it's not.
>>Is there somewhere else a parameter to define in order to remove these
>>30ko of datas off my pages ?
>>
>
>You mean 30 bytes?
>
>Try
>
>>
>>   
>>src="org.apache.cocoon.serialization.HTMLSerializer">
>> ISO-8859-1
>> true
>>   
>>
>
>Or, don't use HTML serializer then, use XML serializer. It will not
>write doctype.
>
>Vadim
>
> 
>
>>Thanks a lot
>>
Hi all,

Unfortunatly, these tips did not work. Even when I serialise to XML 
everything stay in the header of my page. I really mean it's about 30ko, 
not 30 bytes. Here is what is included in my page, maybe it'll help you 
to understand my problem :

http://www.w3.org/TR/REC-html40/loose.dtd";>



You see that it's pretty huge. Does everybody has this in serialised 
pages ? This appears with the HTML serialiser definition I wrote upper 
in this mail.

Please help me !!

>
>
>-
>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ébastien Sacard
Kelkoo.com - R&D team
Phone: +(33) 4 76 29 73 51
Email: [EMAIL PROTECTED]
Aim : KelkooXIII
#




-
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: JspGenerator Problem

2002-06-23 Thread yuryx

Cenk Uysal wrote:

>I try to use JspGenerator with following sitemap entry:
>
>   
>
> 
>   
>
>
>
>   
>   
>
>  
>
try define in sitemap 
instead the 

Regard.
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: resource problem

2002-06-23 Thread Vadim Gritsenko

> From: thomas biegert [mailto:[EMAIL PROTECTED]]
> 
> hi
> 
> how can i use a absolute path (like
> http://dataserver/data.xml ) in the pipeline?
> 
> e.g. http://dataserver/data.xml"/>

That's how you can reach external resource.

For resources which are residing in the same webapp, use:



Vadim


> thx for your help
> 
> tom


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




resource problem

2002-06-23 Thread thomas biegert

hi

how can i use a absolute path (like
http://dataserver/data.xml ) in the pipeline?   

e.g. http://dataserver/data.xml"/>

thx for your help

tom

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! präsentiert als offizieller Sponsor das Fußball-Highlight des
Jahres: - http://www.FIFAworldcup.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: using frames

2002-06-23 Thread Christoph Stocker

hi!

you are rigth - i have an incorrect xsl-file.
thanks

chris


-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]] 
Sent: Freitag, 21. Juni 2002 23:06
To: [EMAIL PROTECTED]
Subject: Re: using frames


If you call myhomepagemenu and myhomepagemain, do you get some content?
If 
you don't, you should check you xsl files if they are correct and give
you 
any content.

Bert

At 21:02 21/06/2002 +0200, you wrote:
>hi!
>
>i want to use frames in my hompage - so i did this.
>
>in my index.xsp -->
>
>
> 
> 
>
>
>
>
>
>in my sitemap --->
>
>
>
>
>  
>
>
>
>
>
>  
>
>
>   and the same for "myhomepagemenu"
>
>
>but i think, that "myhomepagemain" and "myhomepagemenu" never loading.
>
>
>what did i wrong?
>
>regards, chris
>
>
>-
>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]>




JspGenerator Problem

2002-06-23 Thread Cenk Uysal

I try to use JspGenerator with following sitemap entry:

   

 
   



   
   


Jsp file is just like this:

<%@ page contentType="text/xml" %>


  
<%
out.println("With help from JSP");
%>
  


And my XSL is as follows:


http://www.w3.org/1999/XSL/Transform";
version='1.0'>







 



  
  






When I try to run this application Cocoon gives "SAXException
JspGenerator.generate()" error?

What is wrong? Cocoon's own JSP examples run without problem. I use
Cocoon 2.0.2

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.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: Transforming URL Requests (was: Form Question and Sessions from20.06.2002)

2002-06-23 Thread Ivelin Ivanov


Bartlomiej,


I don't have an immediate solution for your problem, but I am currently 
working on a new generator: HttpProxyGenerator.

It is specifically intended to allow easy integration of XML content 
across multiple portals. The original idea was an extention to XMLForm 
which would allow interaction between an end user and a portal, where 
the logic and content is provided by a third party vendor.

The implementation will be based on Jakarta HttpClient to allow more 
sophisticated connection handling, request manipulation, redirects 
following, session handling, login,  etc.

I am glad that you reached to the same idea independently.
Maybe you can help me iron out the requirements.

Can you describe the use case scenario for the problem you're trying to 
solve.

What markup do you use for form submission to Cocoon and then to the 
perl server? Have you considered XForms?
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html



Regards,


Ivelin




Bartlomiej Frackiewicz wrote:
> Hi folks,
> 
> sorry for my re-posting, but my problem still exists and makes me headache.
> 
> i want to transform dynamic xml, which i generate with url requests like 
>http://cart.my.server/perl/GetMyCart?sessionID=lala, so my current sitemap:
> 
> 
>   
> 
> http://cart.my.server/perl/GetMyCart{requestQuery}"/>
> 
> 
> 
>   
>   
> 
> 
> works fine, but i need to post data and than this solution does not work. so i have 
>learned this weekend the xsp pages, and thought this would work in a xsp page:
> 
>  :-)
>   URL u = new URL("http://cart.my.server/perl/GetMyCart?sessionID=lala";);
>   HttpURLConnection huc = (HttpURLConnection) u.openConnection();
>   huc.setRequestMethod("POST
>   huc.connect();
>   
>   InputStream in = huc.getInputStream();
>   
>   int c;
>   while ((c = in.read()) != -1) {
> text.append((char)c);
>   } 
> 
>   ..
> 
>   return text.toString();
> 
> 
> but this is not interpreted as xml, it is already well-formed and all chars are 
>escaped (i. e. <) so my xslt transformer nothing matches, btw i am not a java 
>programmer so don't laugh about my code. what is the trick here? can i use jsp-pages 
>(which currently do not run on my tomcat3/cocoon2 server) to print out the clear xml, 
>must i use the Stream Generator (which i absolutly don't understand how this work), 
>or is this not possible with core cocoon?
> 
> please point me to the right direction, i thank you in advance.
> 
> happy coding, bart
> 
> p.s. here is an example of an request to 
>http://cart.my.server/perl/GetMyCart?sessionID=lala copied out of internet explorer.
> 
>  
> 
>  
>   1024848144s27995 
>   lala 
>   
>   1 
>   ger 
>   lala 
>   
>  
>  
>   
>  
> 
> 
> 



-- 

-= Ivelin =-


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




Transforming URL Requests (was: Form Question and Sessions from 20.06.2002)

2002-06-23 Thread Bartlomiej Frackiewicz

Hi folks,

sorry for my re-posting, but my problem still exists and makes me headache.

i want to transform dynamic xml, which i generate with url requests like 
http://cart.my.server/perl/GetMyCart?sessionID=lala, so my current sitemap:


  

http://cart.my.server/perl/GetMyCart{requestQuery}"/>



  
  


works fine, but i need to post data and than this solution does not work. so i have 
learned this weekend the xsp pages, and thought this would work in a xsp page:

 :-)
  URL u = new URL("http://cart.my.server/perl/GetMyCart?sessionID=lala";);
  HttpURLConnection huc = (HttpURLConnection) u.openConnection();
  huc.setRequestMethod("POST
  huc.connect();

  InputStream in = huc.getInputStream();
  
  int c;
  while ((c = in.read()) != -1) {
text.append((char)c);
  }   

  ..

  return text.toString();


but this is not interpreted as xml, it is already well-formed and all chars are 
escaped (i. e. <) so my xslt transformer nothing matches, btw i am not a java 
programmer so don't laugh about my code. what is the trick here? can i use jsp-pages 
(which currently do not run on my tomcat3/cocoon2 server) to print out the clear xml, 
must i use the Stream Generator (which i absolutly don't understand how this work), or 
is this not possible with core cocoon?

please point me to the right direction, i thank you in advance.

happy coding, bart

p.s. here is an example of an request to 
http://cart.my.server/perl/GetMyCart?sessionID=lala copied out of internet explorer.

 

 
  1024848144s27995 
  lala 
  
  1 
  ger 
  lala 
  
 
 
  
 



-- 
BARTLOMIEJ M. FRACKIEWICZ
systementwickler
inity - agentur fuer neue medien gmbh 
birkenstrasse 71  
40233 duesseldorf

telefon: 0211-99199-0
fax: 0211-99199-10
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.3 problems...

2002-06-23 Thread Stuart Roebuck

Unfortunately I can't afford to try it out on our live server which is 
the only machine I have that exhibited the fault in the first place.

Stuart.

On Sunday, June 23, 2002, at 01:33 pm, Vadim Gritsenko wrote:

>> From: Stuart Roebuck [mailto:[EMAIL PROTECTED]]
>>
>> Great,
>>
>> This fits all the other reports quite well.  I wonder if it could be
>> this bug:
>>
>>
> 
>
> If you have this bug, then -classic or -client will solve it.
>
> Vadim
>

Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos)
  Key fingerprint = 89D9 E405 F8B1 9B22 0FA2  F2C1 9E57 5AB1 88DD 65AF
-
Stuart Roebuck  [EMAIL PROTECTED]
Systems Architect Java, XML, MacOS X, XP, 
etc.
ADOLOS   


-
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.3 problems...

2002-06-23 Thread Vadim Gritsenko

> From: Stuart Roebuck [mailto:[EMAIL PROTECTED]]
> 
> Great,
> 
> This fits all the other reports quite well.  I wonder if it could be
> this bug:
> 
>


If you have this bug, then -classic or -client will solve it.

Vadim


> Stuart.
> 
> On Friday, June 21, 2002, at 09:04 pm, Per Kreipke wrote:
> 
> > Finally :-)
> >
> >> Forgot to tell you one thing every newbie should do...
> >>
> >>DO THIS EVERY TIME YOU GET NEW VERSION OR UPDATE CVS
> >>
> >> 1) rm -rf $COCOON_HOME/build/cocoon
> >> 2) rm -rf $TOMCAT_HOME/work/cocoon
> >
> > Yep, did those for the Nth time.
> >
> > Then I decided to get the latest 1.3.X JDK and see if that helped
and
> > that
> > did it. I'm now using:
> >
> > - JDK 1.3.1_03
> > - Tomcat 4.0.4 (release)
> > - Cocoon 2.0.3 (branch)
> >
> > After install, cleaned the dirs mentioned above, rebuilt Cocoon
> >
> > build.bat -Dinclude.webapp.libs=yes webapp-local
> >
> > and the startup errors are gone.
> >
> > I hope that this could solve other people's problems with bug # 9701
> > too.
> >
> > Per
> >
> >
> >
-
> > 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]>
> >
> >
> 
> Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
(Adolos)
>   Key fingerprint = 89D9 E405 F8B1 9B22 0FA2  F2C1 9E57 5AB1 88DD
65AF
>

-
> Stuart Roebuck
[EMAIL PROTECTED]
> Systems Architect Java, XML, MacOS X, XP,
> etc.
> ADOLOS

> 
> 
> -
> 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: [HELP]I can't find org.apache.cocoon.Roles class

2002-06-23 Thread Vadim Gritsenko

dbSelector = (ComponentSelector)
  manager.lookup(DataSourceComponent.ROLE + "Selector");

Vadim


-Original Message-
From: Vladimir Ershov [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 21, 2002 8:37 AM
To: [EMAIL PROTECTED]
Subject: [HELP]I can't find org.apache.cocoon.Roles class

In one old project i sow that they used class org.apache.cocoon.Roles to
make database connection.
 
this.dbSelector =
(ComponentSelector)manager.lookup(Roles.DB_CONNECTION);
 
But in Cocoon version 2.0.2-dev I can't find this class.
Please, help me to resolve this problem.
 
Best regards, Vladimir.


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