Interbase JDBC bugs when migrating to JDK 1.4

2002-12-17 Thread Paolo Scaffardi
Title: Messaggio




I have a linux web application based on Cocoon 2.0.3, tomcat 4.1.12, JDK 
1.3, InterClient 2.0.1 and Firebird SuperServer 1.0. I need to migrate to JDK 
1.4 but i still have problems with InterClient because some queries now throw 
this exception: "interbase.interclient.InvalidOperationException: [interclient] 
Invalidoperation to read past end of cursor".
 
Thus, i replaced InterClient with Firebird JCA-JDBC class 4 Beta 1 and 
everything seems work fine, but  wait a moment: while inspecting database 
tables with IBExpert (or some other tool) they differs from the one accessed 
from my application. Note that queries are Cocoon-generated by ESQL logicsheet 
in a XSP page, and they were working fine before. It seems no commit is 
done (i left set it to autocommit into cocoon.xconf). If i restart the application, the 
database is as the first time.
 
How can resolve my problem? Is it a InterClient related bug? Is it FireBird 
related bug? Is it a Cocoon bug?
 
ByeBye,
Paolo Scaffardi


How to extract XML data from BufferedReader?

2002-04-23 Thread Paolo Scaffardi

I have a XSP page that executes a local process that returns a valid XML
file to standard output. I have a BufferedReader to read from its
output, and that's what i should do:

- Extract the XML tree
- Extract nodes from that tree
- Insert that XML tree into current code position

How can i do that?

Thank you!

ByeBye,
Paolo Scaffardi
Embedded Linux Developer

AIRVENT SAM S.p.A.
via Macanno 32 - 47900 Rimini 
ITALY
Tel. 0541 383294 
Fax. 0541 387086



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

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




RE: How to change response contenttype?

2002-03-30 Thread Paolo Scaffardi

You're right, i didnt see it!! :-)
Thank you again!

ByeBye,
Paolo Scaffardi
Embedded Linux Developer

AIRVENT SAM S.p.A.
via Macanno 32 - 47900 Rimini 
ITALY
Tel. 0541 383294 
Fax. 0541 387086


> -Original Message-
> From: Matthieu Benéteau [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 28, 2002 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to change response contenttype?
> 
> 
> > 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 :
> 
>logger="sitemap.serializer.html"
>   
> src="org.apache.cocoon.serialization.HTMLSerializer">
> iso-8859-1
>   
> 
> Hope it helps !
> Matthieu
> 
> 
> -
> Please check that your question has not already been answered 
> in the FAQ before posting. 
<http://xml.apache.org/cocoon/faqs.html>

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





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

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




How to change response contenttype?

2002-03-27 Thread Paolo Scaffardi

Hey, guys,
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?

How can i fix that? 

I need that to correct decode request parameters that contains encoder
characters, that Cocoon cannot convert correctly if encoder by the
browser using a different charset.

ByeBye,
Paolo Scaffardi
Embedded Linux Developer

AIRVENT SAM S.p.A.
via Macanno 32 - 47900 Rimini 
ITALY
Tel. 0541 383294 
Fax. 0541 387086



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

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




RE: session-validator broken in c2.0.2?

2002-03-27 Thread Paolo Scaffardi

Yes, it is broken: see this my bug report and solution!

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7478

java.lang.NullPointerException in AbstractValidatorAction

   Summary: java.lang.NullPointerException in
AbstractValidatorAction
   Product: Cocoon 2
   Version: Current CVS
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Major
  Priority: Other
 Component: general components
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I simply update my cocoon 2 snapshot (taken one week ago) to the latest
2.0.2 
and i discovered that by upgrading AbstractValidatorAction, i cannot use

session or form validator (i havent tried the others).

I have a java.lang.NullPointerException in getDefault 
(AbstractValidatorAction.java:576) and, fixing that, again into
getNullable 
(AbstractValidatorAction.java:560). Probably because the cons parameter
is 
probably null, and that exception in not catched.

I think the fix should be replacing the catched ConfigurationException
to 
Exception.

If that i'm telling is true, the new release should be replaced with
another 
one!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [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]>




"Could not set up Cocon Logger, will use screen instead"

2002-02-27 Thread Paolo Scaffardi

I get this message with last snapshot of Cocoon (27 02 2002) with Tomcat
4.0.1, when trying to configure the logger to rotate files with this
logkit.conf. Looking at catalina.out i see these two rows:

Logging Error: Could not set up Cocon Logger, will use screen instead
java.lang.NullPointerException
at
org.apache.avalon.excalibur.logger.DefaultLogTargetManager.configure(Def
aultLogTargetManager.java:94)

Is that right or not? Why that?




  



  

  

  ${context-root}/WEB-INF/logs/cocoon.log
  
%7.7{priority} %{time}   [%8.8{category}] (%{uri})
%{thread}/%{class:short}: %{message}\n%{throwable}
  
  true
  

  100m
  01:00:00

  



  ${context-root}/WEB-INF/logs/root.log
 
  
%7.7{priority} %{time}   [%8.8{category}] (%{uri})
%{thread}/%{class:short}: %{message}\n%{throwable}
  
  true
  

  100m
  01:00:00

  



  ${context-root}/WEB-INF/logs/components.log
  
%7.7{priority} %{time}   [%8.8{category}] (%{uri})
%{thread}/%{class:short}: %{message}\n%{throwable}
  
  true
  

  100m
  01:00:00

  



  
%7.7{priority} %5.5{time}:
%{message}\n%{throwable}
  

  

  

  


  
  
 
 
  

  
 
 
  

  


Thank you!
Paolo Scaffardi
AIRVENT SAM S.p.A.
via Macanno 32 , 47900 Rimini (ITALY)
Tel. 0541 383294 
Fax. 0541 387086



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

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




R: Question - Problem

2002-01-24 Thread Vercesi Paolo

Yes, your are right!
Thanks a lot!


> -Messaggio originale-
> Da: Årun.N [mailto:[EMAIL PROTECTED]]
> Inviato: giovedì 24 gennaio 2002 9.44
> A: [EMAIL PROTECTED]
> Oggetto: Re: Question - Problem
> 
> 
> 
> response.sendRedirect(response.encodeRedirectURL(site));
> 
> i think 
> 
> - Original Message -
> From: "Vercesi Paolo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 24, 2002 1:58 PM
> Subject: R: Question - Problem
> 
> 
> Hello Anthony,
> 
> I don't know why rd.forward() method doesn't redirect your 
> users, I use a
> similar schema and I haven't any problem. Are there some 
> error messages ?
> Instead, to mantain session information through 
> response.sendRedirect(site)
> you may use:
> response.sendRedirect(response.encodeURL(site));
> 
> Regards
> Paolo
> 
> > -Messaggio originale-
> > Da: Anthony Diodato [mailto:[EMAIL PROTECTED]]
> > Inviato: mercoledì 23 gennaio 2002 20.25
> > A: '[EMAIL PROTECTED]'
> > Oggetto: Question - Problem
> >
> >
> > Hello All,
> >
> > Here is my scenario.
> > I have Tomcat 3.2.4 running on IIS 5.0
> >
> > I have an html page as my entrance to the website.
> > (http://www.domainname.com/index.html)
> > On this site is a form to login, with you user name and password.
> >
> > When the user clicks submit, they get sent to a servlet 
> that I wrote.
> > This servlet verify's their username and password, and should
> > re-direct them
> > to a certain pace depending on who they are.
> > If I use response.sendRedirect(site);
> > it sends them to the right webpage, but it doesn't seem like
> > the session is
> > created.
> >
> > I test the page to see if there is a valid session, and I get a Null
> > Pointer.
> > Here is what Im doing there.
> >
> > if (userSesson.getValue("userName") == null) {
> > // redirect them to login because the session isn't valid
> > } else {
> > // display the page..
> > }
> >
> > If I use the rd.forward() method
> > they never get re-directed anywhere
> >
> >
> > Here is my doPost() code...
> >
> [...]
> 
> > Any thoughts would be greatly appreciated.
> > Thanks
> > Anthony
> >
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




R: Question - Problem

2002-01-24 Thread Vercesi Paolo

Hello Anthony,

I don't know why rd.forward() method doesn't redirect your users, I use a
similar schema and I haven't any problem. Are there some error messages ?
Instead, to mantain session information through response.sendRedirect(site)
you may use:
response.sendRedirect(response.encodeURL(site));

Regards
Paolo

> -Messaggio originale-
> Da: Anthony Diodato [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 23 gennaio 2002 20.25
> A: '[EMAIL PROTECTED]'
> Oggetto: Question - Problem
> 
> 
> Hello All,
> 
> Here is my scenario.
> I have Tomcat 3.2.4 running on IIS 5.0
> 
> I have an html page as my entrance to the website.
> (http://www.domainname.com/index.html)
> On this site is a form to login, with you user name and password.
> 
> When the user clicks submit, they get sent to a servlet that I wrote.
> This servlet verify's their username and password, and should 
> re-direct them
> to a certain pace depending on who they are.
> If I use response.sendRedirect(site);
> it sends them to the right webpage, but it doesn't seem like 
> the session is
> created.
> 
> I test the page to see if there is a valid session, and I get a Null
> Pointer.
> Here is what Im doing there.
> 
> if (userSesson.getValue("userName") == null) {
>   // redirect them to login because the session isn't valid
> } else {
>   // display the page..
> }
> 
> If I use the rd.forward() method
> they never get re-directed anywhere
> 
> 
> Here is my doPost() code...
> 
[...]

> Any thoughts would be greatly appreciated.
> Thanks
> Anthony
> 

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

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




where is context.setAttribute?

2001-10-19 Thread Paolo

How can we set context attributes with cocoon2? Why did the authors
implement getAttribute function but not the setAttribute?

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




R: Pipeline caching...

2001-09-25 Thread Paolo

Hi Vadim...
Thank you for your precious reply!

About caching... another question: the caching validity is
application-relative, session-relative or page-relative?

Is there any way to define application-scope variables within cocoon?

Thank you,
Paolo Scaffardi
AIRVENT SAM S.p.A.

-Messaggio originale-
Da: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
Inviato: lunedì 24 settembre 2001 17.06
A: [EMAIL PROTECTED]
Oggetto: RE: Pipeline caching...

By default XSP generated by Cocoon are not cached, and executed on every
request.
To change this behaviour, you need to add these two methods:

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

  public long generateKey(){
  // Unique ID of your page
  return HashUtil.hash(getClass().getName());
  }
  public CacheValidity generateValidity(){
  // Modify according to your needs
  return new NOPCacheValidity();
  }


If you add snippet shown above, your XSP would be executed ONLY ONCE and
cached FOREVER by Cocoon.
Another example of validity method is:

  public CacheValidity generateValidity(){
  if(changed) return null;
  return new NOPCacheValidity();
  }

This would invalidate cache entry every time you decide (using if()
statement) to re-generate XSP.

Vadim

> -Original Message-----
> From: Paolo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 10:42 AM
> To: Cocoon-Users; [EMAIL PROTECTED]
> Subject: Pipeline caching...
> 
> 
> I am working on a web application bases on Cocoon 2. Every page of my
> application has to be created by applying a stylesheet to many
> aggregated pipelines. Some of these are generated by XSP and querying
> databases.
> 
> Some of these XML components don't change into a session, then I can
> generate them the first time only, store somewhere and reload them
fast
> without reprocess every pipeline during the session.
> 
> I trying using the WriteDOM/ReadDOM transformers but I really don't
know
> how to use that because of their transformer-nature (how can use a
> stored DOM tree as generator?).
> 
> What I am asking is simple: is there any way to cache a pipeline in
this
> way, simply by adding a parameter to the pipeline definition instead
of
> many selectors/transformers to do that?
> 
> Is there anyone that is working on a feature like that?
> 
> This is my sitemap:
> 
> 
> 
>   
>  
>   
>   
>   
>   
>   
>   
>   
> 
> 
> Where dbhotel, dbroom and dbcustomer are something like:
> 
> 
>type="serverpages"/>
>   
> 
> 
> What do you think about that?
> 
> Thanx,
> Paolo Scaffardi
> AIRVENT SAM S.p.A.
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 

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

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



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

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




C2rc1: Content aggregation and sub sitemaps (No pipeline matched request)

2001-09-25 Thread Paolo
onents.pipeline.CachingEventPipeline.generateKey(C
achingEventPipeline.java:103)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:282)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4000EE(sitemap_xmap.jav
a:1151)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:789)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:699)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:236
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
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.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1005)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1098)
at java.lang.Thread.run(Thread.java:484)
INFO(2001-09-25) 15:04.51:128   [root] (/gportal/summary)
HttpProcessor[8080][0]/CocoonServlet: 'summary' Processed by Apache
Cocoon 2.0rc1 in 80 milliseconds.

So, what's up?

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




R: Sitemap parameters scope and non-destructive session parameters propagation

2001-09-10 Thread Paolo

Hi Jorn!

>To get access to a parameter in a different hierachy, I use {../1}. 

Thanx very much! I really didnt find it in the original documentation!!
Cocoon 2 is a great project but it still has holes in documentation!

>To propagate session values to the sitemap, I think you have to write
an
>action for that (I don't know if there's such an action in cocoon right
now:

Ok, I'll do it...
Many many many many many thanx!!

Paolo Scaffardi
AIRVENT SAM S.p.A.


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

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




Descriptor parameter sitemap relative path?!?!?!

2001-09-10 Thread Paolo

Is it possibile to specify a sitemap-relative path as descriptor
parameter to the database authenticator action? (something like
sitemap:// instead of context://)

Thanx,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




Sitemap parameters scope and non-destructive session parameters propagation

2001-09-09 Thread Paolo

I am working with Cocoon but I have some problems with sitemap variables
scope. It seems that Sitemap Parameters propagated from db-authenticator
actions are not inherited into selectors or other db-authenticator
actions. Please look at this code and the scope of myvar_dbvars1
(propagated by db-authenticator action) to the session and Sitemap:
























Then, my questions:
1) is it possibile to propagate Sitemap parameters into child elements
of sitemap?
2) is it possibile to check and propagate session attributes to Sitemap
without deleting an existing session?

Thanx!

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.


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

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




Sitemap parameters, session parameters and sitemap-relative descriptor parameter

2001-09-07 Thread Paolo

I am trying to implement a authentication method. It seems that Sitemap
Parameters are not inherited to selectors inside others... this is my
code (look for {auth_role_page} in the ):






































Then, my questions:
1) is it possibile to propagate Sitemap parameters into child elements
of sitemap?
2) is it possibile to check and propagate session attributes to Sitemap
without deleting an existing session?
3) is it possibile to specify a sitemap-relative path as descriptor
parameter to the database authenticator action?

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




Bugs in request logicsheet?

2001-09-07 Thread Paolo

I am working with the request logicsheet with Cocoon 2.0 and I
discovered the are some errors both in online and included documentation
of its tags.

- 'get-remote-addr' does not exist, but there is 'get-remote-address'
- 'is-user-in-role' does not exist

Did you know it?

Cordiali saluti,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




XML selector

2001-09-06 Thread Paolo

I need to select the correct stylesheet checking some XML flags of the
pipeline. Something like this (look at the XML selector):


   

   
  
  
 
  
  
 
 
  
  
 
  
   

   
   


Remember I don't want to do that in the XSP generator because of leaving
separated logic and view of my page.

Any hint for me?

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




XSP Transformer...

2001-09-04 Thread Paolo

I am a newbie in Cocoon but i see one bug limit of XSP: is not a
transformer but only a generator.

I think that should be useful using an XSP page to filter/manage an XML
stream.

Is for you a good or a bad idea?

The only way to do that with current versions of cocoon is writing a
custom transformer...

Bye bye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




Debugging XSP generated code...

2001-08-23 Thread Paolo

Is it possibile to save or debug XSP-generated Java code?

I am trying to create a XML using the ESQL logicsheet to access an
Interbase table, and this is my code:

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


mypool

SELECT * FROM ROOMS














Cocoon gives me:

Exception in
ServerPagesGenerator.generate():java.lang.NullPointerException

What's it?

Cordiali saluti,
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




User autentication with cookies...

2001-08-22 Thread Paolo

Hi everyone... i am new in Cocoon please sorry for my stupid questions
I'll ask here...

I need a simple user authentication mode, then I am writing my code
around the 'protected area' web application in Cocoon 2.

The only change I need to do is setting a cookie with username and
password to the client to let it access the protected area in the near
future without filling any form.

Then, I think I should have to do the first time the user access my
protected area:

1) Check if the client sent a valid cookie with username and password. 
2) If cookie is set, go to step 4
3) Send the 'login form' to the user. When filled go to next step. 
4) Check username and password. If not correct go to step 3
5) Send/update cookie to the client with username, password and new
expiration date

I think that everything should be done in sitemap.xmap like other
autentication actions.

Please help me 

Many thanx to everyone!
Paolo Scaffardi
AIRVENT SAM S.p.A.



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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

Tell me Olivier, what platform are you using?

Paolo.

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

> This is weird, because the java file and the counter change, 
> so the request
> *is* processed by cocoon and it should reflect the text 
> change (my version
> works fine on this part: java file modified, class recompiled).

On my system it's the same: java file gets modified and the class is
recompiled. Both have the same date/time.

-rw-r--r--1 www-data www-data10479 Jul 12 14:11 _clean_page.class
-rw-r--r--1 www-data www-data22772 Jul 12 14:11 _clean_page.java

> 
> Try to delete _clean-page.* from your repository *without* 
> restarting cocoon
> and reload the page.

Done! WITHOUT restarting Cocoon, _clean-page.* are recreated: I reloaded the
page and the old clean-page.xml is showed with the counter going on from
where I left it last time!

What the heck is happening? :(

Paolo.




> 
> The problem is that cocoon runs the wrong version of the 
> compiled class, but
> if the java file reflects the text change, normally cocoon 
> also recompiles
> this class...
> Check the dates: the .class should always be older than the .java
> 
> > (...)
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

> Does the java file take your modification into account ?

Yes, it does.

> What happens when you reload the xml file just after the 
> modification? Does
> the counter change ?

Yes, it goes on, but I don't see the modifications in the text.

> If it's immediate, the page is in cache somewhere: try to use 
> netscape with
> memory & disk cache size=0.
> 

OK. I set both memory & disk cache size = 0, I restarted the browser, I
reloaded the document "clean-page.xml" and the counter continues from the
number where I left it.

I think Cocoon cached it ...

Paolo.

> 
> > -Message d'origine-
> > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > Envoyé : jeudi 12 juillet 2001 09:33
> > À : '[EMAIL PROTECTED]'
> > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem?
> > 
> > Could you help me please with the further checks?
> > 
> > After restarting Cocoon and changing "clean-page.xml" I see 
> > the modification
> > "FOO ...".
> > Now, if I change it again without restarting Cocoon, I see 
> > always the old
> > version of "clean-page.xml".
> > 
> > Thanks a lot,
> > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-12 Thread Dongilli Paolo

Could you help me please with the further checks?

After restarting Cocoon and changing "clean-page.xml" I see the modification
"FOO ...".
Now, if I change it again without restarting Cocoon, I see always the old
version of "clean-page.xml".

Thanks a lot,
Paolo.

> -Original Message-
> From: JEULIN Olivier [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 11. Juli 2001 15:49
> To: '[EMAIL PROTECTED]'
> Subject: RE: XSP with Cocoon 1.8.1 - Cache Problem?
> 
> 
> > > 2) load this page in your browser. (At this point, the page 
> > > prints 'FOO  Hi,
> > > I'm your ...' in my browser)
> > 
> > OK.
> 
> Do you see 'FOO ...' in your browser ? If not, what is the 
> *complete* path
> to the _clean-page.java file and the *complete* path to your 
> clean-page.xml
> file ? They should look like the same at the end (with '_' for java)
> 
> > 
> > > 3) take a look in your repository and check the 
> > > '_clean-page.java' to see if
> > > its date of modification is the current time and date. If so 
> > > search in it
> > > for the string 'FOO'. You should find it, if the page is recreated
> > > correctly.
> > 
> > OK. _clean-page.java created and it contains the modicication "FOO".
> > 
> > > And let's see what happens (please copy what you put in 
> > > cocoon.properties
> > > for the repository path)
> > 
> > processor.xsp.repository = /usr/share/java/repository
> > 
> > Waiting for further steps.
> > 
> > Thanks,
> > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo

> > > 2) load this page in your browser. (At this point, the page 
> > > prints 'FOO  Hi,
> > > I'm your ...' in my browser)
> > 
> > OK.
> 
> Do you see 'FOO ...' in your browser ? If not, what is the 
> *complete* path
> to the _clean-page.java file and the *complete* path to your 
> clean-page.xml
> file ? They should look like the same at the end (with '_' for java)

Yes, I see 'FOO ...'.

Paolo.



> 
> > 
> > > 3) take a look in your repository and check the 
> > > '_clean-page.java' to see if
> > > its date of modification is the current time and date. If so 
> > > search in it
> > > for the string 'FOO'. You should find it, if the page is recreated
> > > correctly.
> > 
> > OK. _clean-page.java created and it contains the modicication "FOO".
> > 
> > > And let's see what happens (please copy what you put in 
> > > cocoon.properties
> > > for the repository path)
> > 
> > processor.xsp.repository = /usr/share/java/repository
> > 
> > Waiting for further steps.
> > 
> > Thanks,
> > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo

> OK, let's try step by step :
> 0) restart cocoon; delete all the files named '_clean-page.*' in your
> repository 

DONE

> 1) in the (your servlet engine 
> path)/webapps/cocoon/samples/xsp directory,
> change the file 'clean-page.xml' by adding FOO to the 1st 
> paragraph like
> this:
>   FOO Hi, I'm your ...

DONE

> 2) load this page in your browser. (At this point, the page 
> prints 'FOO  Hi,
> I'm your ...' in my browser)

OK.

> 3) take a look in your repository and check the 
> '_clean-page.java' to see if
> its date of modification is the current time and date. If so 
> search in it
> for the string 'FOO'. You should find it, if the page is recreated
> correctly.

OK. _clean-page.java created and it contains the modicication "FOO".

> And let's see what happens (please copy what you put in 
> cocoon.properties
> for the repository path)

processor.xsp.repository = /usr/share/java/repository

Waiting for further steps.

Thanks,
Paolo.


> Olivier
> 
> > -Message d'origine-
> > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > Envoyé : mercredi 11 juillet 2001 14:52
> > À : '[EMAIL PROTECTED]'
> > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem?
> > 
> > 
> > OK, I upgraded to C1.8.2.
> > Same problem: .java and .class files are re-created in the 
> > repository, but
> > in the browser after reloading I see the old version of 
> > "clean-page.xml".
> > In the original cocoon.properties I just changed the 
> > repository dir to an
> > absolute path. That's all.
> > 
> > Paolo.
> (...)
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo

OK, I upgraded to C1.8.2.
Same problem: .java and .class files are re-created in the repository, but
in the browser after reloading I see the old version of "clean-page.xml".
In the original cocoon.properties I just changed the repository dir to an
absolute path. That's all.

Paolo.

> -Original Message-
> From: JEULIN Olivier [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 11. Juli 2001 12:19
> To: '[EMAIL PROTECTED]'
> Subject: RE: XSP with Cocoon 1.8.1 - Cache Problem?
> 
> 
> Well, it could, that's why I advised you to upgrade: at 
> least, we could
> compare comparable things.
> 
> > -Message d'origine-
> > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > Envoyé : mercredi 11 juillet 2001 12:16
> > À : '[EMAIL PROTECTED]'
> > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem?
> > > Yes, of course, if you java file has changed, you'll (well, 
> > > should) see the
> > > modification.
> > > I've added "foo" in the "I've bee requested...", and it 
> > > appears in the java
> > > file, as well as in the html page generated...
> > 
> > Is it possible that Cocoon internal cache isn't updated after 
> > the creation
> > of the new .java and .class files?
> > Could it be a problem of C1.8.1?
> > 
> > Paolo.
> (...)
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo

> Yes, of course, if you java file has changed, you'll (well, 
> should) see the
> modification.
> I've added "foo" in the "I've bee requested...", and it 
> appears in the java
> file, as well as in the html page generated...

Is it possible that Cocoon internal cache isn't updated after the creation
of the new .java and .class files?
Could it be a problem of C1.8.1?

Paolo.


> Olivier
> 
>  -Message d'origine-
> > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > Envoyé : mercredi 11 juillet 2001 11:46
> > À : '[EMAIL PROTECTED]'
> > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem?
> > 
> > 
> > > Well, you should upgrade to C1.8.2 (latest versions always 
> > > have less bugs,
> > > if this is one).
> > > This example works fine (the page counter is incremented 
> > > everytime I reload
> > > the page) with C1.8.2 NS, lynx and IE...
> > 
> > But have you tried to modify for example the text of 
> > clean-page.xml and to
> > reload it then?
> > In my case the counter goes on and I continue to see the 
> old version. 
> > Please let me know.
> > 
> > Thanks a lot,
> > Paolo.
> (.)
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo

> Well, you should upgrade to C1.8.2 (latest versions always 
> have less bugs,
> if this is one).
> This example works fine (the page counter is incremented 
> everytime I reload
> the page) with C1.8.2 NS, lynx and IE...

But have you tried to modify for example the text of clean-page.xml and to
reload it then?
In my case the counter goes on and I continue to see the old version. 
Please let me know.

Thanks a lot,
Paolo.


> 
> (...)
> > > It's probably a navigator's cache problem. Especially with IE 
> > > (you can't
> > > deactivate the cache).
> > > Try to clear your navigator's cache
> > 
> > I tried with Netscape 4.76, with Lynx and I still see the old 
> > version of the
> > document. 
> > The sole solution is to restart Cocoon in order to see the 
> > modifications. 
> > I don't want to restart Cocoon each time I modify an xml 
> > (xsp) document.
> > Please help me fix this.
> > 
> > Thank you,
> > Paolo.
> > > > -Message d'origine-
> > > > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > > > Envoyé : mardi 10 juillet 2001 20:17
> > > > À : '[EMAIL PROTECTED]'
> > > > Objet : XSP with Cocoon 1.8.1 - Cache Problem?
> > > > 
> > > > 
> > > > I tried to modify just some text in the sample file 
> > > > "clean-page.xml" in the
> > > > samples/xsp directory of Cocoon 1.8.1.
> > > > 
> > > > I reloaded the page in the browser and the java files are 
> > > > newly created and
> > > > compiled in the repository but the output (after the XSLT) is 
> > > > always the
> > > > same I had before the modification.
> > > > 
> > > > I read the FAQ first but I didn't find a solution.
> > > > 
> > > > Hopefully somebody have some idea about this.
> > > > 
> > > > Thanks a lot,
> > > > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo

> It's probably a navigator's cache problem. Especially with IE 
> (you can't
> deactivate the cache).
> Try to clear your navigator's cache

I tried with Netscape 4.76, with Lynx and I still see the old version of the
document. 
The sole solution is to restart Cocoon in order to see the modifications. 
I don't want to restart Cocoon each time I modify an xml (xsp) document.
Please help me fix this.

Thank you,
Paolo.

> 
> > -Message d'origine-
> > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]]
> > Envoyé : mardi 10 juillet 2001 20:17
> > À : '[EMAIL PROTECTED]'
> > Objet : XSP with Cocoon 1.8.1 - Cache Problem?
> > 
> > 
> > I tried to modify just some text in the sample file 
> > "clean-page.xml" in the
> > samples/xsp directory of Cocoon 1.8.1.
> > 
> > I reloaded the page in the browser and the java files are 
> > newly created and
> > compiled in the repository but the output (after the XSLT) is 
> > always the
> > same I had before the modification.
> > 
> > I read the FAQ first but I didn't find a solution.
> > 
> > Hopefully somebody have some idea about this.
> > 
> > Thanks a lot,
> > Paolo.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-10 Thread Dongilli Paolo

I tried to modify just some text in the sample file "clean-page.xml" in the
samples/xsp directory of Cocoon 1.8.1.

I reloaded the page in the browser and the java files are newly created and
compiled in the repository but the output (after the XSLT) is always the
same I had before the modification.

I read the FAQ first but I didn't find a solution.

Hopefully somebody have some idea about this.

Thanks a lot,
Paolo.

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

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




Cocoon 1.8.2 in production environment

2001-07-05 Thread Pier Paolo Bortone



Hi,
I want move my coccon project to production 
environment, I have apache and tomcat that runs in background on RH Linux 7.1, 
what can I do to remove or hidden or save the stdout messages that cocoon 
prints? (e.g. FOP 0.15 or XSL Warning: Can not load requested doc: 
file:D:/sviluppo/nisdev/build/nis/public/../xsl/../xml/info.xml, 
etc.)
 
Thanks in advance for your help.
 
Pier Paolo.


How to hide or to save the Cocoon log trace?

2001-06-28 Thread Pier Paolo Bortone



Hi,
I would like to know if exists a way to redirect 
the Cocoon log trace to a file.
 
Cocoon 1.8.2.
 
Thanks in advance.
 
Pier Paolo.


Re: Cocoon build.bat & build.xml

2001-06-21 Thread Pier Paolo Bortone



I have understood my problem: I don't know well 
ANT.
 
However I would like to know more about the 
Stylebook.
 
Thanks in advance,
Pier Paolo.

  - Original Message - 
  From: 
  Pier 
  Paolo Bortone 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 20, 2001 6:34 
  PM
  Subject: Cocoon build.bat & 
  build.xml
  
  Hi,
  I have tried to build cocoon-1.8.2 and here is 
  the result trace on windowsNT with jdk1.3:
   
  Cocoon Build 
  System---
   
  Building with classpath 
  d:\jdk1.3\lib\tools.jar;.\lib\ant_1_1.jar;.\lib\bsf.jar;.\lib\bsfengines.jar;.\lib\fesi.jar;.\lib\fop_0_15_0.jar;.\lib\sax-bugfix.jar;.\lib\servlet_2_2.jar;.\lib\stylebook-1.0-b2.jar;.\lib\turbine-pool.jar;.\lib\w3c.jar;.\lib\xalan_1_2_D02.jar;.\lib\xerces_1_2.jar;.\lib\xml.jar;.\lib\xt.jar
   
  Starting Ant...Buildfile: 
  build.xml
   
  init:  
  --- Cocoon 1.8.2 [1999-2001] -
   
  prepare:
   
  prepare-projectx:
   
  prepare-xt:
   
  prepare-ecma:
   
  prepare-ldap:
   
  prepare-src:
   
  compile:
   
  package:
   
  BUILD SUCCESSFUL
   
  Total time: 1 seconds
   
   
   
  Why the document targets and site targets 
  aren't executed?
   
  Thanks for your time,
  Pier Paolo.


Re: apache error

2001-06-20 Thread Pier Paolo Bortone

Carloz,
have you executed all commands with the same user?

Have you changed PREFIX with /usr/apache or /usr/local/apache or other path.

Hope of  help

Pier Paolo.

- Original Message -
From: "Carloz Alaniz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 10:54 PM
Subject: apache error


>
> This is what I did
>
> $ ./configure --oprefix=PREFIX
> $ make
> $ make install
>
> But when i execute
> $PREFIX/bin/apachectl start
>
> I get this error
> "
>
> fopen: No such file or directory
> httpd: could not open error log file PREFIX/PREFIX/logs/error_log.
> PREFIX/bin/apachectl start: httpd could not be started
>
> "
> what should I do?
> -carloz
>
>






> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




Cocoon build.bat & build.xml

2001-06-20 Thread Pier Paolo Bortone



Hi,
I have tried to build cocoon-1.8.2 and here is the 
result trace on windowsNT with jdk1.3:
 
Cocoon Build 
System---
 
Building with classpath 
d:\jdk1.3\lib\tools.jar;.\lib\ant_1_1.jar;.\lib\bsf.jar;.\lib\bsfengines.jar;.\lib\fesi.jar;.\lib\fop_0_15_0.jar;.\lib\sax-bugfix.jar;.\lib\servlet_2_2.jar;.\lib\stylebook-1.0-b2.jar;.\lib\turbine-pool.jar;.\lib\w3c.jar;.\lib\xalan_1_2_D02.jar;.\lib\xerces_1_2.jar;.\lib\xml.jar;.\lib\xt.jar
 
Starting Ant...Buildfile: 
build.xml
 
init:  
--- Cocoon 1.8.2 [1999-2001] -
 
prepare:
 
prepare-projectx:
 
prepare-xt:
 
prepare-ecma:
 
prepare-ldap:
 
prepare-src:
 
compile:
 
package:
 
BUILD SUCCESSFUL
 
Total time: 1 seconds
 
 
 
Why the document targets and site targets 
aren't executed?
 
Thanks for your time,
Pier Paolo.


Problem creating web site with build!

2001-06-20 Thread Pier Paolo Bortone




Hi,
I have tried to build cocoon-1.8.2 and here is the 
result trace on windowsNT with jdk1.3:
 
Cocoon Build 
System---
 
Building with classpath 
d:\jdk1.3\lib\tools.jar;.\lib\ant_1_1.jar;.\lib\bsf.jar;.\lib\bsfengines.jar;.\lib\fesi.jar;.\lib\fop_0_15_0.jar;.\lib\sax-bugfix.jar;.\lib\servlet_2_2.jar;.\lib\stylebook-1.0-b2.jar;.\lib\turbine-pool.jar;.\lib\w3c.jar;.\lib\xalan_1_2_D02.jar;.\lib\xerces_1_2.jar;.\lib\xml.jar;.\lib\xt.jar
 
Starting Ant...Buildfile: 
build.xml
 
init:  
--- Cocoon 1.8.2 [1999-2001] -
 
prepare:
 
prepare-projectx:
 
prepare-xt:
 
prepare-ecma:
 
prepare-ldap:
 
prepare-src:
 
compile:
 
package:
 
BUILD SUCCESSFUL
 
Total time: 1 seconds
 
 
 
Why the document targets and site targets 
aren't executed?
 
Thanks for your time,
Pier Paolo.


Re: Tomcat + Cocoon, .xml not displayed

2001-06-13 Thread Pier Paolo Bortone

Have you added context to server.xml file?

Here is the steps to installing cocoon successfully:
http://xml.apache.org/cocoon/install.html#tomcat
if you follow this steps with care your cocoon MUST works.

Good Luck :-)

Pier Paolo.


- Original Message - 
From: "Mike Thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 2:58 PM
Subject: Re: Tomcat + Cocoon, .xml not displayed


> In had already moved the xerces. I moved the xalan jar, still no luck.
> I am getting no exceptions and no errors(other than the 404). I am
> running on RH 6.1.
> 
>  Mike.
> 
> Frans Thamura wrote:
> > 
> > Try to check you installation.
> > 
> > modify tomcat.bat and put xerces, xalan in the first of the CP
> > 
> > Frans
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




W2K+IIS 5.0+JDK 1.3.1+Tomcat 3.2.2+Cocoon 1.8.2 Working Succesfully

2001-06-13 Thread Pier Paolo Bortone

Hi all,

here is the complete description:

W2K Server
IIS 5.0 (with ISAPI configuration from tomcat documentation) +
isapi-redirect.dll (from tomcat download)
jdk 1.3.1
Tomcat 3.2.2 (as NT service from tomcat documentation, installed with
jk_nt_service from tomcat download)
Cocoon 1.8.2

All cocoon examples works fine, all my cocoon projects works fine and all my
JSP page works fine.

To run Tomcat as NT service you have to add all cocoon jars into
wrapper.properties file at the class-path rows, but you have to comment both
the parser.jar and the jaxp.jar rows.

Thanks all,
Pier Paolo.




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

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




One simple question???

2001-06-13 Thread Pier Paolo Bortone

Hi all,
someone could be explain to me why if I put cocoon jars into
.../cocoon/WEB-INF/lib/ then it no works?
Why have I to put cocoon jars into %TOMCAT_HOME%/lib/ ?

Thanks in advance for your explanation.

Pier Paolo


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

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




Mailing test. Not open.

2001-05-28 Thread Pier Paolo Bortone

Test test test test
Test test test test
Test test test test
Test test test test


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