Master-Detail form using Cocoon

2002-09-27 Thread Antonio Gallardo Rivera

Hi folks,

Can someone provide an example of a lets said a invoice or something similar 
using Cocoon and database?

Antonio Gallardo

-
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: JDK 1.3.1 is driving me MAD!

2002-09-27 Thread Roger Ting

Tried every thing i know.

I downloaded the latest Tomcat and cocoon both built with jdk 1.4.
Now Tomcat doesn't even run. cocoon just take up too much memory
it keep throwing out of memory error. set catalina ops to 32 and 64
and it still doesn't work.  does anyone know latest j-connector is built 
with what? jdk 1.4 let say the classes is built with jdk 1.4
it should run using jdk 1.3 right?



>From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: JDK 1.3.1 is driving me MAD!
>Date: Fri, 27 Sep 2002 15:43:59 -0400
>
>As Booby pointed out ... did you try and rebuild C 2.0.3
>with the new JDK 1.4?  I had to rebuild and it worked for me.
>
>If you don't have the old mysql jdbc driver, I can dig it
>up and send to your email directly.
>
>Conrad
>
>Original Message:
>-
>From: Roger Ting [EMAIL PROTECTED]
>Date: Fri, 27 Sep 2002 19:29:10 +
>To: [EMAIL PROTECTED]
>Subject: Re: JDK 1.3.1 is driving me MAD!
>
>
>
>yeah i agree.. i am using cocoon 2.0.3 built with jdk 1.3. So you are
>saying
>i can't use j-connector supplied by mysql? Is there any driver
>that i can use with cocoon built on jdk1.3? more specifically jdk1.3.1
>
>This would help me a lot THX!
>
>
> >From: Bobby Mitchell <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: JDK 1.3.1 is driving me MAD!
> >Date: Fri, 27 Sep 2002 15:08:45 -0400
> >
> >Roger Ting wrote:
> >
> >>
> >>Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
> >>Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct
> >>instruction and cocoon just keep throwing me no suitable driver error.
> >>
> >>I have put in the j connector jar file into WEB-INF/lib directory.
> >>configure cocoon.xconf and web.xml.
> >>
> >>The weird thing is i did the same thing on my pc except my jdk is jdk 
>1.4
> >>. It works perfectly okay. When i do it on a unix machine with jdk 1.3.1
> >>it throws no suitable driver error. I can't use jdk 1.4 on the unix
>server
> >>because it keep throwing java.lang.OutOfMemoryError error when i fire up
> >>tomcat. As it is a share machine each user have limited memory. I asked
> >>about this before Apparently, Tomcat is memory starved.
> >>
> >>Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower 
>,mysql,
> >>cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine
> >>as long we don't need to connect to mysql database.
> >>
> >>Anyone?
> >
> >According to http://xml.apache.org/cocoon/installing/index.html
> >
> >Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible to
> >use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database
> >connections.
> >
> >
> >>
> >>
> >>
> >>_
> >>Join the world’s largest e-mail service with MSN Hotmail.
> >>http://www.hotmail.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]>
> >
> >
> >
> >--
> >Robert J. (Bobby) Mitchell
> >Systems Administrator
> >NASA Institute for Advanced Concepts
> >555A 14th St Atlanta, Ga. 30318
> >Phone: (404)347-9633 Fax: (404)347-9638
> >
> >
> >
> >
> >
> >-
> >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]>
>
>
>
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>-
>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]>
>
>
>
>
>mail2web - Check your email from the web at
>http://mail2web.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]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-

Error compiling sitemap_xmap / problems Installing cocoon-2.0.3 on fresh jwsdp1_0_01 and j2sdk1.4_0_01

2002-09-27 Thread Dario Liberman

Hello,

I am having problems Installing cocoon-2.0.3 on top of a fresh jwsdp1_0_01
and j2sdk1.4_0_01 installation running on a winNT4.0 SP6a

At the page the error shows:

Cocoon 2 - Internal server error


type fatal
message Language Exception
description :
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 22, column 49: cannot access class Component; file
org\apache\avalon\framework\component\Component.class not found Line 23,
column 53: cannot access class Configurable; file
... more description here...

I send attached the logs.


I tried to solve the problem deleting the following files from the war, but
it seems that it has nothing to do with it:
xml-apis.jar
xercesImpl-2.0.0.jar
xalan-2.3.1.jar
Since I was afraid it would interfere somehow with the same libs in the
jwsdp installation that in fact had the same versions.

Any ideas?


Thanks a lot,
Dario Liberman.


jwsdp is the Java Web Services Development Pack from SUN.
http://java.sun.com/webservices/downloads/webservicespack.html
The Java Web Services Developer Pack v1.0_01 includes the following:
Java XML Pack which includes the following:
Java API for XML Messaging (JAXM) v1.1_01
Java API for XML Processing (JAXP) v1.2_01 (with XML Schema support)
Java API for XML Registries (JAXR) v1.0_02
Java API for XML-based RPC (JAX-RPC) v1.0_01
SOAP with Attachments API for Java (SAAJ) v1.1_02
JavaServer PagesTM Standard Tag Library (JSTL) v1.0.1
Java WSDP Registry Server v1.0_02
Web Application Deployment Tool
Ant Build Tool 1.4.1
Apache Tomcat 4.1.2 container





logs.zip
Description: Zip compressed data

-
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 create db conn in action to use in esql or sql?

2002-09-27 Thread Vadim Gritsenko

Timothy Larson wrote:

>I am interfacing to an established system
>and cannot change the security model.
>
>It works like this:
>1) Login as specific user with rights to public objects only
>2) Run a report
>3) Report does key exchange to prove its authenticity to the db
>4) Database yields key to upgraded security role
>5) Report uses key to switch to the new role
>6) Report accesses secured objects
>7) Report switches back to role with public access only
>8) Repeat from step 2 or proceed to step 8
>8) Logout now or when session expires or is invalidated
>
>The access rights granted are based on a combination of the
>logged-in user and the specific report being run.
>
>To interface with this system I wrote some working java code to
>do the key exchange with the db and change the security role.
>
>How can I integrate this with the reports I wrote in xsp/esql and xsl?
>

There were an ability to create connection for one request in ESQL. You 
can try to use it.

Vadim



>Tim
>
>  
>
[EMAIL PROTECTED] 09/27/02 08:34AM >>>


>>Timothy Larson wrote:
>>
>>
>>>Each session needs to be logged into the database with a
>>>different username and password.
>>>  
>>>
>>Do you think it's a good idea?
>>
>>
>>
>>>How can I do this using a database pool?
>>>  
>>>
>>There is no way unless you know SQL command to do it. The hole purpose 
>>of a pool is to "connect once", and avoid a lot of costly connects in a run.
>>
>>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]>




displaying values in a browser from

2002-09-27 Thread Matt MacDougall

Hello,

I'm having a problem getting the results of a Java function wrapped in
 tags to display on my page.  All I would like to do is display
the value of the variables prevurl and nexturl on the page.  This code below
is in an xsl file outside of the main template.  I'm calling this template
within my main one with 

I have the following in an xsl file:



String next_move_string = "1";
String prev_move_string = "-1";

String uri = request.getRequestURI();

next_move_string;
String nextquery = request.getQueryString();

prev_move_string;
String prevquery = request.getQueryString();

String nexturl = uri + nextquery;
String prevurl = uri + prevquery;
nexturl = "Next";
// just for testing
prevurl = "Prev";
// just for testing
  
prevurl
nexturl



###

Shouldn't I be seeing the values between those  tags?  This is
compiling fine but I only receive an empty output for the  and
 tags.  I've tried several things including 
but I haven't had any luck.  Does anyone catch any glaring errors here?

Thanks much,

-Matt


-
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: Serializig and LF: Problem

2002-09-27 Thread Luca Morandini

Jakob (is that your name ?),

I meant the Cocoon's cache, not the browser's one.

Best regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 

> -Original Message-
> From: Skansen [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 28, 2002 12:08 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Serializig and LF: Problem
> 
> 
> It can't be the Cache because i used the Comandline.
> 
> //Jakob
> - Original Message - 
> From: "Luca Morandini" <[EMAIL PROTECTED]>
> To: "Cocoon-users" <[EMAIL PROTECTED]>
> Sent: Thursday, September 26, 2002 10:35 PM
> Subject: RE: Serializig and LF: Problem
> 
> 
> > Skansen,
> > 
> > hold on a second...
> > 
> > The indent tag recognizes only the "yes" value and the "non yes" values... I mean, 
>whatever you put into it would do 
> the trick (as
> > long as it is not "yes"): if you try "foo" it will work just as well as "no" or 
>"1".
> > 
> > Why it didn't work before ? Because you forgot to "touch" the XML source document 
>after changing the indent tag, hence, 
> the result
> > was retrieved from cache: don't worry, I did the same mistake myself :(
> > 
> > Ok, now I think this has been solved for good.
> > 
> > Best regards,
> > 
> > -
> >Luca Morandini
> >GIS Consultant
> >   [EMAIL PROTECTED]
> > http://utenti.tripod.it/lmorandini/index.html
> > -
> > 
> > 
> > > -Original Message-
> > > From: Skansen [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, September 26, 2002 8:19 PM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: Re: Serializig and LF: Problem
> > >
> > >
> > > Thanks :)
> > >
> > > The tip on indent dit it but it should be put in the HTML serializer as 
>1
> > >
> > > Still got a one loose end were do it put  "http://www.w3.org/TR/xslt#strip";?
> > >
> > >
> > > Regards
> > >
> > >
> > >  Jakob
> > >
> > >
> > > P.S
> > > sitemap.xmp Before 1 was added to the serializer.
> > >
> > > --- Transformer ---
> > >   
> > >src="org.apache.cocoon.transformation.TraxTransformer">
> > > false
> > > false
> > >
> > >   
> > >
> > > --- Serializer ---
> > > src="org.apache.cocoon.serialization.HTMLSerializer">
> > >  ISO-8859-1
> > >
> > >
> > > --- Resource ---
> > > 
> > >  
> > >   
> > >  
> > >  
> > > 
> > >
> > > --- part of Pipline ---
> > >
> > > 
> > > 
> > >  
> > >   
> > >   
> > >  
> > > 
> > >
> > >
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Luca Morandini" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, September 26, 2002 3:44 PM
> > > Subject: RE: Serializig and LF: Problem
> > >
> > >
> > > > 
> > > > > Must admit that I have not noticed that from the first sight. :)
> > > > 
> > > >
> > > > Vadim, you corrected me many times, let me return the favour once in a while ;)
> > > >
> > > > 
> > > > > But I would try indent=no anyway.
> > > > 
> > > >
> > > > I tried that to no avail (it was my first thought, too).
> > > >
> > > > 
> > > > > >Anyway, a "span" will save the day :)
> > > > > >
> > > > >
> > > > > Will it? There should be no difference in behaviour - which means that
> > > > > this is an issue with serializer.
> > > > 
> > > >
> > > > I guess it will, since  does't break HTML text as  does... though 
>it is included in a ... hmmm... don't
> > > really know.
> > > >
> > > > Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.
> > > >
> > > > Best regards,
> > > >
> > > > -
> > > >Luca Morandini
> > > >GIS Consultant
> > > >   [EMAIL PROTECTED]
> > > > http://utenti.tripod.it/lmorandini/index.html
> > > > -
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, September 26, 2002 3:29 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: Serializig and LF: Problem
> > > > >
> > > > >
> > > > > Luca Morandini wrote:
> > > > >
> > > > > >Vadim,
> > > > > >
> > > > > >I think the problem is not related to indentation, since the HTML output 
>appears to have no indentation; 
> moreover, I presume
> > > > > >strip-space will be of no use, since there are no spaces to strip in the 
>input elements.
> > > > > >
> > > > > >Look, the XSL fragment, according to Skansen, is:
> > > > > >
> > > > > > > > > > 
>>name="href">index.htmlHome
> > > > > >
> > > > >
> > > > > Must admit that I have not noticed that from the first sight. :)
> > > > > But I would try indent=no anyway.
> > > > >
> > > > >
> > > > > >And the result is:
> >

Re: Serializig and LF: Problem

2002-09-27 Thread Skansen

It can't be the Cache because i used the Comandline.

//Jakob
- Original Message - 
From: "Luca Morandini" <[EMAIL PROTECTED]>
To: "Cocoon-users" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 10:35 PM
Subject: RE: Serializig and LF: Problem


> Skansen,
> 
> hold on a second...
> 
> The indent tag recognizes only the "yes" value and the "non yes" values... I mean, 
>whatever you put into it would do the trick (as
> long as it is not "yes"): if you try "foo" it will work just as well as "no" or "1".
> 
> Why it didn't work before ? Because you forgot to "touch" the XML source document 
>after changing the indent tag, hence, the result
> was retrieved from cache: don't worry, I did the same mistake myself :(
> 
> Ok, now I think this has been solved for good.
> 
> Best regards,
> 
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
> http://utenti.tripod.it/lmorandini/index.html
> -
> 
> 
> > -Original Message-
> > From: Skansen [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 26, 2002 8:19 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: Serializig and LF: Problem
> >
> >
> > Thanks :)
> >
> > The tip on indent dit it but it should be put in the HTML serializer as 
>1
> >
> > Still got a one loose end were do it put  "http://www.w3.org/TR/xslt#strip";?
> >
> >
> > Regards
> >
> >
> >  Jakob
> >
> >
> > P.S
> > sitemap.xmp Before 1 was added to the serializer.
> >
> > --- Transformer ---
> >   
> >src="org.apache.cocoon.transformation.TraxTransformer">
> > false
> > false
> >
> >   
> >
> > --- Serializer ---
> > src="org.apache.cocoon.serialization.HTMLSerializer">
> >  ISO-8859-1
> >
> >
> > --- Resource ---
> > 
> >  
> >   
> >  
> >  
> > 
> >
> > --- part of Pipline ---
> >
> > 
> > 
> >  
> >   
> >   
> >  
> > 
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Luca Morandini" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 26, 2002 3:44 PM
> > Subject: RE: Serializig and LF: Problem
> >
> >
> > > 
> > > > Must admit that I have not noticed that from the first sight. :)
> > > 
> > >
> > > Vadim, you corrected me many times, let me return the favour once in a while ;)
> > >
> > > 
> > > > But I would try indent=no anyway.
> > > 
> > >
> > > I tried that to no avail (it was my first thought, too).
> > >
> > > 
> > > > >Anyway, a "span" will save the day :)
> > > > >
> > > >
> > > > Will it? There should be no difference in behaviour - which means that
> > > > this is an issue with serializer.
> > > 
> > >
> > > I guess it will, since  does't break HTML text as  does... though it 
>is included in a ... hmmm... don't
> > really know.
> > >
> > > Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.
> > >
> > > Best regards,
> > >
> > > -
> > >Luca Morandini
> > >GIS Consultant
> > >   [EMAIL PROTECTED]
> > > http://utenti.tripod.it/lmorandini/index.html
> > > -
> > >
> > >
> > > > -Original Message-
> > > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, September 26, 2002 3:29 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Serializig and LF: Problem
> > > >
> > > >
> > > > Luca Morandini wrote:
> > > >
> > > > >Vadim,
> > > > >
> > > > >I think the problem is not related to indentation, since the HTML output 
>appears to have no indentation; moreover, I presume
> > > > >strip-space will be of no use, since there are no spaces to strip in the 
>input elements.
> > > > >
> > > > >Look, the XSL fragment, according to Skansen, is:
> > > > >
> > > > > > > > 
>>name="href">index.htmlHome
> > > > >
> > > >
> > > > Must admit that I have not noticed that from the first sight. :)
> > > > But I would try indent=no anyway.
> > > >
> > > >
> > > > >And the result is:
> > > > >
> > > > >
> > > > >
> > > > >Home
> > > > >
> > > > >
> > > > >
> > > > >Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore 
>this might be a Xalan bug.
> > > > >
> > > > >Anyway, a "span" will save the day :)
> > > > >
> > > >
> > > > Will it? There should be no difference in behaviour - which means that
> > > > this is an issue with serializer.
> > > >
> > > > Vadim
> > > >
> > > >
> > > > >Best regards,
> > > > >
> > > > >-
> > > > >   Luca Morandini
> > > > >   GIS Consultant
> > > > >  [EMAIL PROTECTED]
> > > > >http://utenti.tripod.it/lmorandini/index.html
> > > > >-
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >>-Original Message-
> > > > >>From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]

Re: AW: FOP In Latest Cocoon Releases

2002-09-27 Thread Barbara Post

May 0.20.4 be buggy ? I have this in my WEB-INF\lib, guess I got it from
C...

Babs
--
website : www.babsfrance.fr.st
ICQ : 135868405
- Original Message -
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 11:28 PM
Subject: Re: AW: FOP In Latest Cocoon Releases


> Vadim Gritsenko wrote:
> > Can you clarify - is it Cocoon's, Xalan's, or FOP's CVS?
>
> FOP CVS, branch tag fop-0_20_2-maintain
>
> > PS How can I better call you; "J." sounds strange :)
>   
>
> Joerg Pietschmann
>
>
> -
> 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]>
>
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 


-
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: RE: Handler information not found

2002-09-27 Thread Markdelanoy

Last month this thread went on for a bit and then died out.  I wondering if there was 
a fix to the solution, e.g. using the auth-protect action I've protected a set of 
pages.  When the user is not logged in, the login page correctly shows up, and then 
the authentication resource is called.  After looking within the sitemap.log, I can 
see that the authentication resource worked correctly as a map is returned (albeit 
empty, but better than null).

At this point my problems occur, e.g. the handler information not found exception is 
thrown.  In looking at the stack trace, it appears as though the issue is within the 
auth-protect action where the protected resource is being checked again (presumably it 
should work this time as we've successfully logged in).  The auth-protect action then 
calls the authentication manager where the exception is thrown.  It appears as though 
its looking for some values found within the request object???

Anyway each of the authentication actions login, loggedIn, logout and auth-protect all 
have a handler parameter and successfully worked to get the login page up so I don't 
think this is the problem, e.g. poor sitemap configuration.

Basically I can login but I cannot get to a protected page without this exception 
occuring.

Any clues.  Also cocoon:/ vs cocoon:// I don't think has anything to do with this.  I 
use cocoon:/  Furthermore I'm unable to not use cocoon:/ as the cocoon can't resolve 
the URI without it (I get separate issues with that).

My build is from a week or so ago, e.g. development snapshot.

thanks, MD


Am 30.08.2002 15:14:46, schrieb "Koen Pellegrims" <[EMAIL PROTECTED]>:

>AFAIK cocoon:// goes back to the higher-level sitemap; have you tried
>"cocoon:/" ? (only one slash)

Yes we have tested it but it does not work. 

Dirk


>
>> -Oorspronkelijk bericht-
>> Van: u15603 [mailto:[EMAIL PROTECTED]]
>> Verzonden: vrijdag 30 augustus 2002 15:02
>> Aan: [EMAIL PROTECTED]
>> Onderwerp: Handler information not found
>>
>>
>> Hi all,
>>
>> I've some problems with the attached sitemap-fragment. I want to
>> match 'home' and built
>> a XML-document with the help of the aggregation! But when the
>> pipeline calls the src
>> cocoon://navigation there is an exception. The Handler
>> information is not found. Has
>> someone an idea why and maybe a solution for my problem?
>>
>> Thx in advance
>>
>> Dirk
>>
>>
>>
>> Sitemap:
>>
>>  
>>  
>>  
>>  
>>  > name="use-reguest-parameters" value="true"/>
>>  
>>  
>>  
>>  
>>  
>>  
>>
>>  
>>  > src="portal/resources/free/header.xml"/>
>>  
>>  
>>
>>  
>>  
>>  > value="mobiharzhandler"/>
>>  
>>  > name="../handler" value="mobiharzhandler"/>
>>  
>>  > src="portal/resources/toc.xml"/>
>>  > src="portal/resources/auth/login.xml"/>
>>  
>>  
>>  
>>  
>>  
>>  
>>  > src="portal/resources/free/login.xml"/>
>>  
>>  
>>  
>>
>>  
>>  > src="portal/resources/free/header.xml"/>
>>  
>>  
>>
>> Exception:
>>
>> ERROR   (2002-08-30) 14:22.10:600   [sitemap] (/mh-portal/home)
>> Thread-16/PipelineNode:
>> Error while processing pipeline at
>> jndi:/localhost/mh-portal/sitemap.xmap:350:16
>> org.apache.cocoon.ProcessingException: Handler information not found.
>>  at
>> org.apache.cocoon.webapps.authentication.components.Authentication
>> Manager.checkAuthenti
>> cation(AuthenticationManager.java:651)
>>  at org.apache.cocoon.webapps.authentication.acting.AuthAction.act
>> (AuthAction.java:119)
>>  at
>> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke
>> (ActTypeNode.java:130)
>>  at
>> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>> gNode.invokeNodes
>> (AbstractParentProcessingNode.java:83)
>>  at
>> org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke
>> (ActTypeNode.java:155)
>>  at
>> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>> gNode.invokeNodes
>> (AbstractParentProcessingNode.java:83)
>>  at
>> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
>> Node.invoke
>> (PreparableMatchNode.java:163)
>>  at
>> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>> gNode.invokeNodes
>> (AbstractParentProcessingNode.java:107)
>>  at
>> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
>> (PipelineNode.java:157)
>>  at
>> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
>> gNode.invokeNodes
>> (AbstractParentProcessingNode.java:107)
>>  at
>> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
>> (PipelinesNode.java:155)
>>  at org.apache.cocoon.components.treeprocessor.TreeProcessor.proces

Re: JDK 1.3.1 is driving me MAD!

2002-09-27 Thread [EMAIL PROTECTED]

As Booby pointed out ... did you try and rebuild C 2.0.3
with the new JDK 1.4?  I had to rebuild and it worked for me.

If you don't have the old mysql jdbc driver, I can dig it
up and send to your email directly.

Conrad

Original Message:
-
From: Roger Ting [EMAIL PROTECTED]
Date: Fri, 27 Sep 2002 19:29:10 +
To: [EMAIL PROTECTED]
Subject: Re: JDK 1.3.1 is driving me MAD!



yeah i agree.. i am using cocoon 2.0.3 built with jdk 1.3. So you are
saying 
i can't use j-connector supplied by mysql? Is there any driver
that i can use with cocoon built on jdk1.3? more specifically jdk1.3.1

This would help me a lot THX!


>From: Bobby Mitchell <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: JDK 1.3.1 is driving me MAD!
>Date: Fri, 27 Sep 2002 15:08:45 -0400
>
>Roger Ting wrote:
>
>>
>>Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
>>Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
>>instruction and cocoon just keep throwing me no suitable driver error.
>>
>>I have put in the j connector jar file into WEB-INF/lib directory.
>>configure cocoon.xconf and web.xml.
>>
>>The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 
>>. It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 
>>it throws no suitable driver error. I can't use jdk 1.4 on the unix
server 
>>because it keep throwing java.lang.OutOfMemoryError error when i fire up 
>>tomcat. As it is a share machine each user have limited memory. I asked 
>>about this before Apparently, Tomcat is memory starved.
>>
>>Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, 
>>cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine 
>>as long we don't need to connect to mysql database.
>>
>>Anyone?
>
>According to http://xml.apache.org/cocoon/installing/index.html
>
>Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible to 
>use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database 
>connections.
>
>
>>
>>
>>
>>_
>>Join the world’s largest e-mail service with MSN Hotmail. 
>>http://www.hotmail.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]>
>
>
>
>--
>Robert J. (Bobby) Mitchell
>Systems Administrator
>NASA Institute for Advanced Concepts
>555A 14th St Atlanta, Ga. 30318
>Phone: (404)347-9633 Fax: (404)347-9638
>
>
>
>
>
>-
>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]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




mail2web - Check your email from the web at
http://mail2web.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: JDK 1.3.1 is driving me MAD!

2002-09-27 Thread Roger Ting


yeah i agree.. i am using cocoon 2.0.3 built with jdk 1.3. So you are saying 
i can't use j-connector supplied by mysql? Is there any driver
that i can use with cocoon built on jdk1.3? more specifically jdk1.3.1

This would help me a lot THX!


>From: Bobby Mitchell <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: JDK 1.3.1 is driving me MAD!
>Date: Fri, 27 Sep 2002 15:08:45 -0400
>
>Roger Ting wrote:
>
>>
>>Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
>>Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
>>instruction and cocoon just keep throwing me no suitable driver error.
>>
>>I have put in the j connector jar file into WEB-INF/lib directory.
>>configure cocoon.xconf and web.xml.
>>
>>The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 
>>. It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 
>>it throws no suitable driver error. I can't use jdk 1.4 on the unix server 
>>because it keep throwing java.lang.OutOfMemoryError error when i fire up 
>>tomcat. As it is a share machine each user have limited memory. I asked 
>>about this before Apparently, Tomcat is memory starved.
>>
>>Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, 
>>cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine 
>>as long we don't need to connect to mysql database.
>>
>>Anyone?
>
>According to http://xml.apache.org/cocoon/installing/index.html
>
>Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible to 
>use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database 
>connections.
>
>
>>
>>
>>
>>_
>>Join the world’s largest e-mail service with MSN Hotmail. 
>>http://www.hotmail.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]>
>
>
>
>--
>Robert J. (Bobby) Mitchell
>Systems Administrator
>NASA Institute for Advanced Concepts
>555A 14th St Atlanta, Ga. 30318
>Phone: (404)347-9633 Fax: (404)347-9638
>
>
>
>
>
>-
>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]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-
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: JDK 1.3.1 is driving me MAD!

2002-09-27 Thread Bobby Mitchell

Roger Ting wrote:

>
> Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
> Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
> instruction and cocoon just keep throwing me no suitable driver error.
>
> I have put in the j connector jar file into WEB-INF/lib directory.
> configure cocoon.xconf and web.xml.
>
> The weird thing is i did the same thing on my pc except my jdk is jdk 
> 1.4 . It works perfectly okay. When i do it on a unix machine with jdk 
> 1.3.1 it throws no suitable driver error. I can't use jdk 1.4 on the 
> unix server because it keep throwing java.lang.OutOfMemoryError error 
> when i fire up tomcat. As it is a share machine each user have limited 
> memory. I asked about this before Apparently, Tomcat is memory starved.
>
> Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower 
> ,mysql, cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the 
> xsp is fine as long we don't need to connect to mysql database.
>
> Anyone? 

According to http://xml.apache.org/cocoon/installing/index.html

Due to changes in JDBC between JDK 1.3 and JDK 1.4, it is not possible 
to use Cocoon build on JDK 1.3 with JDK 1.4 when it comes to database 
connections.


>
>
>
> _
> Join the world’s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.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]>



-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638





-
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: JDK 1.3.1 is driving me MAD!

2002-09-27 Thread [EMAIL PROTECTED]

Roger,

Try moving the  jdbc driver/connector to the Tomcat/lib directory.
I had all kinds of database errors with Tomcat 4.0.4 and
Cocoon 2.0.3 with jdk1.3.1_02 on a RH Linux 7.x box.  

I did a lot of moving of the driver around and mucked with 
the config files.  Nothing scientific
just a lot of trial and error ... and it started working!!

Shortly after that I upgraded to JDK 1.4 and it is still
working.

Conrad

Original Message:
-
From: Roger Ting [EMAIL PROTECTED]
Date: Fri, 27 Sep 2002 18:54:28 +
To: [EMAIL PROTECTED]
Subject: JDK 1.3.1 is driving me MAD! 



Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
instruction and cocoon just keep throwing me no suitable driver error.

I have put in the j connector jar file into WEB-INF/lib directory.
configure cocoon.xconf and web.xml.

The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . 
It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it 
throws no suitable driver error. I can't use jdk 1.4 on the unix server  
because  it keep throwing java.lang.OutOfMemoryError error when i fire up 
tomcat. As it is a share machine each user have limited memory. I asked 
about this before Apparently, Tomcat is memory starved.

Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, 
cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as 
long we don't need to connect to mysql database.

Anyone?



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.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]>




mail2web - Check your email from the web at
http://mail2web.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]>




JDK 1.3.1 is driving me MAD!

2002-09-27 Thread Roger Ting


Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
instruction and cocoon just keep throwing me no suitable driver error.

I have put in the j connector jar file into WEB-INF/lib directory.
configure cocoon.xconf and web.xml.

The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . 
It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it 
throws no suitable driver error. I can't use jdk 1.4 on the unix server  
because  it keep throwing java.lang.OutOfMemoryError error when i fire up 
tomcat. As it is a share machine each user have limited memory. I asked 
about this before Apparently, Tomcat is memory starved.

Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, 
cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as 
long we don't need to connect to mysql database.

Anyone?



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.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: Output xsl --- next trap

2002-09-27 Thread Luca Morandini

Jessica,

three things:

1) could you please post the output of myfile.xml (in other words, the input of 
myfile.xsl) ?

2) could you tell me why the output is in Italian ?

3) could you use plain text for messages ?

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-

-Original Message-
From: Jessica Niewint [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 5:03 PM
To: [EMAIL PROTECTED]
Subject: Output xsl --- next trap


HI it's me again.

With this xml file I get the right chapters for the right sections and the right 
sections for the right document.
Only that my output is something like this
document
section A section B
chapter 1 chapter 2
chapter 3


I wanted to generate a document structure like this:
document
section A
chapter 1
chapter 2
section B
chapter 3



I have no idea if my way how to use  the esql -query is wrong or if I have change the 
xsl file.

But may some one just give me a hint ...

Thank you in advance ...
J.

I will post again my xml and my xsl file. Sorry for this long posting.

myfile.xml


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

http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="schema.xsd"
xmlns:esql="http://apache.org/cocoon/SQL/v2"; xmlns:xsp="http://apache.org/xsp";>



xmldb
 String document= "1";

select * from document where 
DocID=document
















select * 
from section where
SecID=section



   
 
   
 
   
 
   
 
   
 
   
 

   
 
   
 

select * from chapter where ChapID=chapter AND 
Section=section






















   
 














myfile.xsl:


http://www.w3.org/1999/XSL/Transform";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>





Titolo: 


Oggetto: 


Versione:




 
Sezione:Titolo: 



Commento: 
 

Re: AW: AW: FOP In Latest Cocoon Releases

2002-09-27 Thread J.Pietschmann

Skladovs, Victor wrote:
> What would you suggest in this situation?
> How could I improve the Cocoon work as pdf concerns?
> Updating fop.jar doesn't help.

First, get Xalan 2.4.0 and replace both the xalan.jar
from FOP as well as the jar deployed with Cocoon. Check
with the FOP command line application for problems.

If this doesn't help, and you can get a small XML+XSL
combo which reproduces the problem with the FOP command
line app, post it to fop-user.

J.Pietschmann


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




JDK 1.3.1 is driving me MAD!

2002-09-27 Thread Roger Ting


Have anyone got the prolem of using ESQL when using cocoon 2.0.3 and
Tomcat 4.0.4 and jdk 1.3.1 on unix solaris? i follow all the correct 
instruction and cocoon just keep throwing me no suitable driver error.

I have put in the j connector jar file into WEB-INF/lib directory.
configure cocoon.xconf and web.xml.

The weird thing is i did the same thing on my pc except my jdk is jdk 1.4 . 
It works perfectly okay. When i do it on a unix machine with jdk 1.3.1 it 
throws no suitable driver error. I can't use jdk 1.4 on the unix server  
because  it keep throwing java.lang.OutOfMemoryError error when i fire up 
tomcat. As it is a share machine each user have limited memory. I asked 
about this before Apparently, Tomcat is memory starved.

Is it a know issue that the setup of Solaris , jdk 1.3.1 or lower ,mysql, 
cocoon 2.0.3 and Tomcat 4.0.4 doesn't work for ESQL? all the xsp is fine as 
long we don't need to connect to mysql database.

Anyone?



_
Send and receive Hotmail on your mobile device: http://mobile.msn.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: Portal Exception in latest Cocoon 2.1?

2002-09-27 Thread Rob Johnston

Is there a known workaround or a PR open?

thanks,
rob

On Thu, 26 Sep 2002, Kenneth J. Hughes wrote:

> I saw the same thing here today.
> 
> At 02:37 PM 9/26/2002 -0700, Rob Johnston <[EMAIL PROTECTED]> wrote:
> >Hello,
> >
> >In the most recent Cocoon snapshot (today - 2002-09-26), I noticed a
> >problem with the portal example... when I enter guest/guest or
> >cocoon/cocoon to login, I get a:
> >
> >description The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
> >
> >exception
> >
> >java.lang.IllegalStateException
> >at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
> >at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
> >at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> [...]
> 
> >Is this likely a configuration issue or a problem with the portal?  (this is
> >a fresh checkout, and a standard './build.sh -Dinclude.webapp.libs=yes
> >-Dinclude.scratchpad.libs=yes -Dinclude.sample.libs=yes webapp' build.  This
> >is under tomcat 4.0.4.
> 
> [...]
> 
> 
> 
> -
> 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: Source Writing Transformer: Adding namespaces

2002-09-27 Thread Vadim Gritsenko

Alex Romayev wrote:

>I'm still struggling with this problem.  Let me try to
>state it more clearly:
>
>I would like to write XML to a file.  My XML contain
>namespaces.  I declare the namespaces in the root
>element, just the way I would like it to be in the
>file and surround my XML with "source:write" tag. 
>However, SourceWritingTransformer seems to be dropping
>the namespace declarations and writing everything
>else!
>
>Is this is a bug within the transformer or is there
>another way of getting the namespace declarations
>written out?
>

Could be a bug. Try moving ns declaration into the root tag of the 
document you are writing, i.e. moving declaration inside the write tag.

Vadim



>I would appreciate any help.
>
>-Alex
>
>--- Alex Romayev <[EMAIL PROTECTED]> wrote:
>  
>
>>Not sure how I would do that, here is an example:
>>
>>What I would like to get is:
>>> 
>>xmlns:pub="http://www.romayev.com/publication/1.0";>
>>  
>>
>> 
>>2001-11-06
>>  ...
>>
>>  
>>
>>
>>Here is the code I use for SourceWritingTransformer:
>>
>>  >   
>>xmlns:pub="http://www.romayev.com/publication/1.0";>
>>
>>  
>>   
>>2001-11-06
>>...
>>  
>>
>>  
>>
>>
>>--- funing <[EMAIL PROTECTED]> wrote:
>>
>>
>>>Can you use the "insert" tag?
>>>
>>>On Thu, 26 Sep 2002 02:17:56 -0700 (PDT)
>>>Alex Romayev <[EMAIL PROTECTED]> wrote:
>>>
>>>  
>>>
Hi,

I'm using Source Writing Transformer to write


>>XML
>>
>>
>>>to
>>>  
>>>
file.  I need to add namespace declarations to


>>the
>>
>>
root node, does anyone know how to do this?

Thanks,
-Alex


>>>-- 
>>>funing <[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: Plz help with this - error the requested uri /"cocoon-dev/xmldb" not found

2002-09-27 Thread [EMAIL PROTECTED]

I think that your URI is wrong. 

It should be something like 
xmldb:xindice:///db/mycollection/mydocument




 [EMAIL PROTECTED] wrote:


>Hi there , I'm still in the dog house as I can't seem to figure out why 
>Cocoon 2 want serve up any Xindice data.
>
>I have started Xindice &  run Tomcat 4 > I get the Cocoon Welcome page 
> (http://172.**.*.**:/cocoon-dev/status and the others) .>
>Except when I attempt http://172.**.*.**:/cocoon-dev/xmldb/addressbook/
>
>I get the follwing error the requested uri  /"cocoon-dev/xmldb" not found
>
>I have tried the match tag in sitemap.xmap ie localhost , ipAddress 
>still no joy.
>ensured it reads src="xml:xindice:/172.**.*.**:4080/db/ {..1}# {1}" "/> 
>& the other map:generate - src="xml:xindice:/172.**.*.**:4080/db/ {1} "/>
>
>Cheers chuck
>
>-- 
>Regards 
>Chuck Amadi
>ICT Dept Systems Programmer
>Rhaglenydd Systemau Adran ICT
>
>
>
>
>-
>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]>




Output xsl --- next trap

2002-09-27 Thread Jessica Niewint

HI it's me again.
With this xml file I get the right chapters for the right sections and
the right sections for the right document.
Only that my output is something like this
document
section A section B
chapter 1 chapter 2
chapter 3

I wanted to generate a document structure like this: 
document 
section A 
chapter 1 
chapter 2 
section B 
chapter 3

I have no idea if my way how to use  the esql -query is wrong or if
I have change the xsl file. 
But may some one just give me a hint ...
Thank you in advance ...  
J.
I will post again my xml and my xsl file. Sorry for this long posting.

myfile.xml






xmldbesql:pool>

String
document=
"1";xsp:logic>

select
* from document where
DocID=documentxsp:expr>
esql:query>




DocObj>


DocTitle>


DocVer>

select * from section where SecID=sectionxsp:expr>esql:query> SecTitle> SecContent> select * from chapter where ChapID=chapterxsp:expr> AND Section=sectionxsp:expr>esql:query> ChapTitle> C

Re: JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread bdhave.work

This is also a free JDBC driver but I don't know if blob are supported
http://www.thinweb.com/products_twfreetds.html

good luck
Bernard


Surlignage Tuomo Lesonen <[EMAIL PROTECTED]>:

> On Fri, 27 Sep 2002, Peter Royal wrote:
> 
> > On Friday, September 27, 2002, at 05:10  AM, Tuomo Lesonen wrote:
> > > I'm trying to use the database reader, but the JDBC driver from MS
> > > doens't
> > > support blob. We can't get one of the commercial (expensive) drivers at
> > > this point, and I already tried FreeTDS which doesn't have this
> > > either. I
> > > have to keep on using SQL Server 2000. :(
> > >
> > > Any links ?
> >
> > Did you use the jTDS? (http://jtds.sourceforge.net/)
> >
> > Its a fork of the FreeTDS code, may have more support. Thats all the
> > free options I know of.
> 
> Yep, tried it. "Not implemented" was the error, so it's no good. Thanks
> anyway.
> 
> -Tuomo
> 
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> 
> 
> -
> 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: JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Tuomo Lesonen

On Fri, 27 Sep 2002 [EMAIL PROTECTED] wrote:

> This is also a free JDBC driver but I don't know if blob are supported
> http://www.thinweb.com/products_twfreetds.html
>
> good luck
> Bernard
>
Thanks, I'll try it out. Their website is propably experiencing some
technical difficulties, download doesn't work...

-Tuomo

>
> Surlignage Tuomo Lesonen <[EMAIL PROTECTED]>:
>
> > On Fri, 27 Sep 2002, Peter Royal wrote:
> >
> > > On Friday, September 27, 2002, at 05:10  AM, Tuomo Lesonen wrote:
> > > > I'm trying to use the database reader, but the JDBC driver from MS
> > > > doens't
> > > > support blob. We can't get one of the commercial (expensive) drivers at
> > > > this point, and I already tried FreeTDS which doesn't have this
> > > > either. I
> > > > have to keep on using SQL Server 2000. :(
> > > >
> > > > Any links ?
> > >
> > > Did you use the jTDS? (http://jtds.sourceforge.net/)
> > >
> > > Its a fork of the FreeTDS code, may have more support. Thats all the
> > > free options I know of.
> >
> > Yep, tried it. "Not implemented" was the error, so it's no good. Thanks
> > anyway.
> >
> > -Tuomo
> >
> > >
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > >
> >
> >
> > -
> > 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 create db conn in action to use in esql or sql?

2002-09-27 Thread Timothy Larson

I am interfacing to an established system
and cannot change the security model.

It works like this:
1) Login as specific user with rights to public objects only
2) Run a report
3) Report does key exchange to prove its authenticity to the db
4) Database yields key to upgraded security role
5) Report uses key to switch to the new role
6) Report accesses secured objects
7) Report switches back to role with public access only
8) Repeat from step 2 or proceed to step 8
8) Logout now or when session expires or is invalidated

The access rights granted are based on a combination of the
logged-in user and the specific report being run.

To interface with this system I wrote some working java code to
do the key exchange with the db and change the security role.

How can I integrate this with the reports I wrote in xsp/esql and xsl?

Tim

>>> [EMAIL PROTECTED] 09/27/02 08:34AM >>>
>Timothy Larson wrote:
>>Each session needs to be logged into the database with a
>>different username and password.
>
>Do you think it's a good idea?
>
>>How can I do this using a database pool?
>
>There is no way unless you know SQL command to do it. The hole purpose 
>of a pool is to "connect once", and avoid a lot of costly connects in a run.
>
>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]>




java.lang.IllegalArgumentException: interface TestClasses2.IScriptservice is not visible from class loader

2002-09-27 Thread Johannes Wechsler

Hi,

I want to use a webservice to start a Phython script, but always get the
following exception:

java.lang.IllegalArgumentException: interface TestClasses2.IScriptservice is
not visible from class loader
(...)
at TestClasses2.TestAction.notifyActionItem(TestAction.java:1301)

The Interface "IScriptService" is in the same directory and package as the
class TestAction out of which I call the webservice. That's definitly not
the problem. The exception in the method notifyActionItem() occurs only if I
call the method out of a cocoon action. If I call the method out of the
main() method of the class TestAction, everything works properly and the
Python script is performed.

This is the code of the method notifyActionItem(). The exception occurs in
the line that starts with "IScriptService...":
  try
 {
 IScriptservice myScriptService = ScriptserviceHelper.bind();
 myScriptService.fire("c:\\ActionItemSystem\\newActionItem.py",
null);
  }
  catch(Exception e)
  { e.printStackTrace();}

Can anyone help me? I don't know what's the cause for my problem.

Regards,
Johannes






-
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: JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Tuomo Lesonen

On Fri, 27 Sep 2002, Peter Royal wrote:

> On Friday, September 27, 2002, at 05:10  AM, Tuomo Lesonen wrote:
> > I'm trying to use the database reader, but the JDBC driver from MS
> > doens't
> > support blob. We can't get one of the commercial (expensive) drivers at
> > this point, and I already tried FreeTDS which doesn't have this
> > either. I
> > have to keep on using SQL Server 2000. :(
> >
> > Any links ?
>
> Did you use the jTDS? (http://jtds.sourceforge.net/)
>
> Its a fork of the FreeTDS code, may have more support. Thats all the
> free options I know of.

Yep, tried it. "Not implemented" was the error, so it's no good. Thanks
anyway.

-Tuomo

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


-
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: JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Peter Royal

On Friday, September 27, 2002, at 05:10  AM, Tuomo Lesonen wrote:
> I'm trying to use the database reader, but the JDBC driver from MS 
> doens't
> support blob. We can't get one of the commercial (expensive) drivers at
> this point, and I already tried FreeTDS which doesn't have this 
> either. I
> have to keep on using SQL Server 2000. :(
>
> Any links ?

Did you use the jTDS? (http://jtds.sourceforge.net/)

Its a fork of the FreeTDS code, may have more support. Thats all the 
free options I know of.
-pete

-- 
peter royal -> [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: Source Writing Transformer: Adding namespaces

2002-09-27 Thread Alex Romayev

I'm still struggling with this problem.  Let me try to
state it more clearly:

I would like to write XML to a file.  My XML contain
namespaces.  I declare the namespaces in the root
element, just the way I would like it to be in the
file and surround my XML with "source:write" tag. 
However, SourceWritingTransformer seems to be dropping
the namespace declarations and writing everything
else!

Is this is a bug within the transformer or is there
another way of getting the namespace declarations
written out?

I would appreciate any help.

-Alex

--- Alex Romayev <[EMAIL PROTECTED]> wrote:
> Not sure how I would do that, here is an example:
> 
> What I would like to get is:
>   
> xmlns:pub="http://www.romayev.com/publication/1.0";>
>   
> 
>  
> 2001-11-06
>   ...
> 
>   
> 
> 
> Here is the code I use for SourceWritingTransformer:
> 
>   
> xmlns:pub="http://www.romayev.com/publication/1.0";>
> 
>   
>
> 2001-11-06
> ...
>   
> 
>   
> 
> 
> --- funing <[EMAIL PROTECTED]> wrote:
> > Can you use the "insert" tag?
> > 
> > On Thu, 26 Sep 2002 02:17:56 -0700 (PDT)
> > Alex Romayev <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi,
> > > 
> > > I'm using Source Writing Transformer to write
> XML
> > to
> > > file.  I need to add namespace declarations to
> the
> > > root node, does anyone know how to do this?
> > > 
> > > Thanks,
> > > -Alex
> > 
> > 
> > -- 
> > funing <[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]>
> 


-
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 database connection

2002-09-27 Thread Olivier GUCKERT



[EMAIL PROTECTED] a écrit :
> 
> Did you cut and paste the cocoon.xconf? It can't find the url, and the url tag is 
>durl instead of dburl. I think you said this worked in a previous version of cocoon, 
>and I don't know if the cocoon.roles has changed since then. Let me know if it's just 
>a simple typeo before I try to load your config. Thanks.
> b

oh my god...

I'm so sorry for this type error.

Now it work fine


Thank you so much ...


Olivier.

-
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: esql:parameter ?

2002-09-27 Thread Gabor Bartha

Ok it is working now,

thanks Ugo

yuryx wrote:

> try
> "create table "+ 
> tableName
>
> Ugo Cei wrote:
>
>> Gabor Bartha wrote:
>>
>>> Hi all,
>>>
>>> I want to use esql, but I've got problems with . It
>>> seems the parameter haven't been replaced by its real value.
>>
>>
>>
>> You cannot have DDL statements with parametrized object names. At
>> least, not in Oracle. Use string concatenation, if you must.
>>
>> Ugo
>>
>>> Here is my xsp, with a java function:
>>>
>>> 
>>> private String createTable() throws SQLException,
>>> org.xml.sax.SAXException
>>> {
>>>String tableName = "tmp123456";
>>>
>>>//Create table
>>>
>>>
>>>>> transactions="no">oracle.jdbc.OracleDriver
>>>jdbc:oracle:thin:@localhost:1521:OEMREP
>>>SCOTT
>>>TIGER
>>>
>>>create table
>>> tableName (id
>>> int not null primary key)
>>>
>>>
>>>
>>>
>>>  return tableName;
>>> }
>>> 
>>> ...
>>> ...
>>>
>>>
>>>
>>> When I call the function from the xsp body I've got the following sql
>>> exception:
>>>
>>> Error executing statement: create table ? (cd_id int not null primary
>>> key): java.sql.SQLException:
>>> ORA-00903: invalid table name
>>>
>>> I tried to use the direction="in" with the same result. Any Idea?
>>>
>>> Regards,
>>> Gabor
>>>
>>>
>>>
>>> -
>>> 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]>
>>
>>
>>
>>
>
>
> --
>
> Best regards,
> Yury.
> --
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
>
>
>
>
> -
> 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: esql:parameter ?

2002-09-27 Thread yuryx

try
"create table "+ tableName

Ugo Cei wrote:

> Gabor Bartha wrote:
>
>> Hi all,
>>
>> I want to use esql, but I've got problems with . It 
>> seems the parameter haven't been replaced by its real value.
>
>
> You cannot have DDL statements with parametrized object names. At 
> least, not in Oracle. Use string concatenation, if you must.
>
> Ugo
>
>> Here is my xsp, with a java function:
>>
>> 
>> private String createTable() throws SQLException, 
>> org.xml.sax.SAXException
>> {
>>String tableName = "tmp123456";
>>
>>//Create table
>>
>>
>>oracle.jdbc.OracleDriver
>>jdbc:oracle:thin:@localhost:1521:OEMREP
>>SCOTT
>>TIGER
>>
>>create table 
>> tableName (id 
>> int not null primary key)
>>
>>
>>
>>
>>  return tableName;
>> }
>> 
>> ...
>> ...
>>
>>
>>
>> When I call the function from the xsp body I've got the following sql 
>> exception:
>>
>> Error executing statement: create table ? (cd_id int not null primary 
>> key): java.sql.SQLException:
>> ORA-00903: invalid table name
>>
>> I tried to use the direction="in" with the same result. Any Idea?
>>
>> Regards,
>> Gabor
>>
>>
>>
>> -
>> 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]>
>
>
>


-- 

Best regards,
Yury.
--
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"




-
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 create db conn in action to use in esql or sql?

2002-09-27 Thread Vadim Gritsenko

Timothy Larson wrote:

>Each session needs to be logged into the database with a
>different username and password.
>

Do you think it's a good idea?


>How can I do this using a database pool?
>

There is no way unless you know SQL command to do it. The hole purpose 
of a pool is to "connect once", and avoid a lot of costly connects in a run.

Vadim


>Tim
>
>  
>
>[EMAIL PROTECTED] 09/26/02 04:33PM >>>
>  
>
>>Timothy Larson wrote:
>>
>>
>>
>>>I need to create a database connection,
>>>  
>>>
>>Why not:
>>1. Get connection from the pool,
>>2.
>>
>>
>>>do some security checks,
>>>  
>>>
>>3.
>>
>>
>>>set a user role
>>>  
>>>
>>And then,
>>
>>
>>>run queries against the database.
>>>  
>>>
>>Using ESQL+XSP or SQL transformer.
>>PS It's really bad idea to create connection per request.
>>
>>Vadim
>>
>>
>>
>>>I made an action to do all of the setup, but I do not know how
>>>to make xsp/esql or xsl/sql use the established connection.
>>>
>>>Any ideas how to make esql or sql use a previously created
>>>database connection?  Unless there is a trick, I do not think
>>>I can use connection pools for this, because the security
>>>checks and role setting has to be done per user.
>>>
>>>If I find a solution, I will share it with the list.
>>>
>>>Tim
>>>  
>>>




-
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 create db conn in action to use in esql or sql?

2002-09-27 Thread Timothy Larson

Each session needs to be logged into the database with a
different username and password.
How can I do this using a database pool?

Tim

 [EMAIL PROTECTED] 09/26/02 04:33PM >>>
>Timothy Larson wrote:
>
>>I need to create a database connection,
>Why not:
>1. Get connection from the pool,
>2.
>>do some security checks,
>3.
>>set a user role
>And then,
>>run queries against the database.
>Using ESQL+XSP or SQL transformer.
>PS It's really bad idea to create connection per request.
>
>Vadim
>
>>I made an action to do all of the setup, but I do not know how
>>to make xsp/esql or xsl/sql use the established connection.
>>
>>Any ideas how to make esql or sql use a previously created
>>database connection?  Unless there is a trick, I do not think
>>I can use connection pools for this, because the security
>>checks and role setting has to be done per user.
>>
>>If I find a solution, I will share it with the list.
>>
>>Tim



-
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: Plz help with this - error the requested uri /"cocoon-dev/xmldb"not found

2002-09-27 Thread Vadim Gritsenko

Chuck Amadi wrote:

> Hi there , I'm still in the dog house as I can't seem to figure out 
> why Cocoon 2 want serve up any Xindice data.
>
> I have started Xindice &  run Tomcat 4 > I get the Cocoon Welcome page 
> (http://172.**.*.**:/cocoon-dev/status and the others) .>
> Except when I attempt 
> http://172.**.*.**:/cocoon-dev/xmldb/addressbook/ 


1. Make sure you have xindice.jar in WEB-INF/lib
2. Make sure you have addressbook collection. Check using xindice 
command line tools.
3. Check that you have in cocoon.xconf:
  

  


4. Check that you have class 
org.apache.cocoon.components.source.XMLDBSourceFactory in the cocoon.jar
5. Check that you have entry in sitemap.xmap:

  


  
  
  

6. Then URL will work:
http://***/cocoon-dev/xmldb/addressbook/


> I get the follwing error the requested uri  /"cocoon-dev/xmldb" not found


There are log files for you debugging pleasure in the WEB-INF/logs. It 
is *highly* recommended reading them, and sending appropriate pieces 
from them in the email.


> I have tried the match tag in sitemap.xmap ie localhost , ipAddress 
> still no joy.
> ensured it reads src="xml:xindice:/172.**.*.**:4080/db/ {..1}# {1}" 
> "/> & the other map:generate - src="xml:xindice:/172.**.*.**:4080/db/ 
> {1} "/>


Protocol is not xml: but xmldb: Also, should be no spaces.


Vadim


> Cheers chuck





-
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: reload a page

2002-09-27 Thread Emmanuil Batsis (Manos)


Err, this is not a cocoon related question.

Try




or put this in your 



function init()
{
   window.setTimeout("location.href='thisPage.html'",1000);
}


and





Manos
Gabor Bartha wrote:
> Hi,
> 
> A want a page to be reloaded automatically in determined secounds.
> 
> In javascript: window.setTimeout('window.location.reload(false)', 1000 ) ;
> 
> is there a solution for this purpose in xsp or xslt?
> 
> Gabor
> 
> 
> 
> -
> 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 database connection

2002-09-27 Thread JohnsBrn

Did you cut and paste the cocoon.xconf? It can't find the url, and the url tag is durl 
instead of dburl. I think you said this worked in a previous version of cocoon, and I 
don't know if the cocoon.roles has changed since then. Let me know if it's just a 
simple typeo before I try to load your config. Thanks.
b

Olivier GUCKERT <[EMAIL PROTECTED]> wrote:

>
>
>[EMAIL PROTECTED] a écrit :
>> 
>> What component are you using? SQLTransformer? Database Action? Can you post the 
>relevant portions of cocoon.xconf/sitemap.xmap?
>
>here is my configuration : 
>
>In web.xml : 
>
>  load-class
>  
>
>
>org.gjt.mm.mysql.Driver 
>
>
>in access.log :
>DEBUG   (2002-09-27) 10:40.03:837   [access] (Unknown-URI)
>Unknown-thread/CocoonServlet: Trying to load class:
>org.gjt.mm.mysql.Driver
>
>so i think the dirver is OK...
>
>in cocoon.xconf : 
>  
>
>
>  
>  true
>  jdbc:mysql://aube.loria.fr/guckdb
>  mylogin
>  mypassword
>
>
>in sitemap.xmap : 
>
>
>
>
>
>
>in donnees.xsp : 
>
>  xmlns:xsp="http://apache.org/xsp"; 
>  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>  xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
>
>
>mysql_pool
>
>SELECT * FROM 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I work on Mandrake Linux release 8.1.
>jakarta-tomcat-4.1.10
>jdk1.3.1_01
>cocoon-2.0.3
>
>So, if y ask : 
>http://greau.loria.fr:8080/cocoon/referentiels/donnees/donnees.xml?table=Assistante_Structure
>
>i become the folowing message :
>org.apache.cocoon.ProcessingException: Exception in
>ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
>get the datasource java.sql.SQLException: The url cannot be null
>
>-
>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 NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

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

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




reload a page

2002-09-27 Thread Gabor Bartha

Hi,

A want a page to be reloaded automatically in determined secounds.

In javascript: window.setTimeout('window.location.reload(false)', 1000 ) ;

is there a solution for this purpose in xsp or xslt?

Gabor



-
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: esql:parameter ?

2002-09-27 Thread Ugo Cei

Gabor Bartha wrote:
> Hi all,
> 
> I want to use esql, but I've got problems with . It 
> seems the parameter haven't been replaced by its real value.

You cannot have DDL statements with parametrized object names. At least, 
not in Oracle. Use string concatenation, if you must.

Ugo

> Here is my xsp, with a java function:
> 
> 
> private String createTable() throws SQLException, org.xml.sax.SAXException
> {
>String tableName = "tmp123456";
> 
>//Create table
> 
>
>oracle.jdbc.OracleDriver
>jdbc:oracle:thin:@localhost:1521:OEMREP
>SCOTT
>TIGER
>
>create table 
> tableName (id int 
> not null primary key)
>
>
>
> 
>  return tableName;
> }
> 
> ...
> ...
> 
> 
> 
> When I call the function from the xsp body I've got the following sql 
> exception:
> 
> Error executing statement: create table ? (cd_id int not null primary 
> key): java.sql.SQLException:
> ORA-00903: invalid table name
> 
> I tried to use the direction="in" with the same result. Any Idea?
> 
> Regards,
> Gabor
> 
> 
> 
> -
> 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]>


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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 filter the data according to the user input?

2002-09-27 Thread Luca Morandini

Funing,

no problem, you just pass a parameter (named, say, "select-cat") to your stylesheet 
from the sitemap, and then use that parameter
value to select a category; hence, your stylesheet may look like:







To pass the "select-cat" request parameter to that stylesheet you may use 
"use-request-parameters" in your sitemap.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: funing [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 12:26 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: How to filter the data according to the user input?
>
>
> Thank you.
> But, it is my fault not to state the question clearly, I need a
> dynamical generation.That is, which category to show is decided
> by user. It seems that I must use logic sheet, right?
>
>
> On Fri, 27 Sep 2002 11:23:37 +0200
> "Luca Morandini" <[EMAIL PROTECTED]> wrote:
>
> >
> > I think a little XSLT could do the job, something along these lines:
> >
> > 
> > 
> > >
> --
> funing <[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]>




esql:parameter ?

2002-09-27 Thread Gabor Bartha

Hi all,

I want to use esql, but I've got problems with . It 
seems the parameter haven't been replaced by its real value.
Here is my xsp, with a java function:


private String createTable() throws SQLException, org.xml.sax.SAXException
{
String tableName = "tmp123456";

//Create table


oracle.jdbc.OracleDriver
jdbc:oracle:thin:@localhost:1521:OEMREP
SCOTT
TIGER

create table 
tableName (id int 
not null primary key)




  return tableName;
}

...
...



When I call the function from the xsp body I've got the following sql 
exception:

Error executing statement: create table ? (cd_id int not null primary 
key): java.sql.SQLException:
 ORA-00903: invalid table name

I tried to use the direction="in" with the same result. Any Idea?

Regards,
Gabor



-
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 filter the data according to the user input?

2002-09-27 Thread funing

Thank you. 
But, it is my fault not to state the question clearly, I need a
dynamical generation.That is, which category to show is decided 
by user. It seems that I must use logic sheet, right?


On Fri, 27 Sep 2002 11:23:37 +0200
"Luca Morandini" <[EMAIL PROTECTED]> wrote:

> 
> I think a little XSLT could do the job, something along these lines:
> 
> 
>   
> 

-- 
funing <[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 filter the data according to the user input?

2002-09-27 Thread Luca Morandini

funing,

I think a little XSLT could do the job, something along these lines:





Wrap it into a stylesheet and put this stage into your pipeline, it will act as a 
filter.

Best regards,

P.S.
I wrote this piece of code without testing it first... be aware !

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 

> -Original Message-
> From: funing [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 11:04 AM
> To: [EMAIL PROTECTED]
> Subject: How to filter the data according to the user input?
> 
> 
> Hi!
>   I have a xml contains such data:
> 
> 
> 
> 14_84_1.jpg
> a nice pic
> 14_84_1.jpg
> 
> 
> 847_2.jpg
> a dog and a cat
> 847_2.jpg
> 
> 
> 14_84_1.bmp
> this is a bmp
> 14_84_1.jpg
> 
> 
> 14_84_2.bmp
> this is another bmp
> 14_84_1.jpg
> 
> 
> 
> How can I let only those items whose category="jpg" be showed ?
> 
> Thanks a lot!
> 
> best regards
> -- 
> funing <[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: problem with database connection

2002-09-27 Thread Olivier GUCKERT



[EMAIL PROTECTED] a écrit :
> 
> What component are you using? SQLTransformer? Database Action? Can you post the 
>relevant portions of cocoon.xconf/sitemap.xmap?

here is my configuration : 

In web.xml : 

  load-class
  


org.gjt.mm.mysql.Driver 


in access.log :
DEBUG   (2002-09-27) 10:40.03:837   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class:
org.gjt.mm.mysql.Driver

so i think the dirver is OK...

in cocoon.xconf : 
  


  
  true
  jdbc:mysql://aube.loria.fr/guckdb
  mylogin
  mypassword


in sitemap.xmap : 






in donnees.xsp : 

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


mysql_pool

SELECT * FROM 



















I work on Mandrake Linux release 8.1.
jakarta-tomcat-4.1.10
jdk1.3.1_01
cocoon-2.0.3

So, if y ask : 
http://greau.loria.fr:8080/cocoon/referentiels/donnees/donnees.xml?table=Assistante_Structure

i become the folowing message :
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
get the datasource java.sql.SQLException: The url cannot be null

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




JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Tuomo Lesonen

I'm trying to use the database reader, but the JDBC driver from MS doens't
support blob. We can't get one of the commercial (expensive) drivers at
this point, and I already tried FreeTDS which doesn't have this either. I
have to keep on using SQL Server 2000. :(

Any links ?

-Tuomo


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

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




Re: compile problem (cvs)

2002-09-27 Thread Michael Maluck

The problem did not exist in the cvs snapshots... something
was maybe wrong in my local cvs tree...

On Thu, 26 Sep 2002 09:18:36 +0200
Michael Maluck <[EMAIL PROTECTED]> wrote:

> ./xml-cocoon2/build/cocoon/work/blocks-build.xml:25: 
>./xml-cocoon2/src/blocks/batik/java not found.
> 
> cu
> Michael
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




How to filter the data according to the user input?

2002-09-27 Thread funing

Hi!
  I have a xml contains such data:



14_84_1.jpg
a nice pic
14_84_1.jpg


847_2.jpg
a dog and a cat
847_2.jpg


14_84_1.bmp
this is a bmp
14_84_1.jpg


14_84_2.bmp
this is another bmp
14_84_1.jpg



How can I let only those items whose category="jpg" be showed ?

Thanks a lot!

best regards
-- 
funing <[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: [Q] Deploing Cocoon on Tomcat

2002-09-27 Thread Ugo Cei

Ivan Luzyanin wrote:
> Hi!
> 
> Is there any way to deploy (redeploy) cocoon without restarting Tomcat?
> I tried to use "deploytool", but unsuccessfull (100 "Class not found" errors 
> when accessing http:/localhost:8080/cocoon).

Yes. If you are using Tomcat 4.1 it's quite simple, but I struggled for 
a couple of days with the fact that it would deploy but wouldn't compile 
XSP pages. Thanks to Vadim, I found out that this is due to a missing 
feature in 2.0.3 that has been added in 2.0.4-dev and 2.1-dev (look for 
manifest-tool in build.xml).

I can now deploy wars to a running Tomcat instance, even on a remote 
server, via Tomcat's Manager App. This is what you should do:

Set up authorizations for the Tomcat Manager App as explained in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

Insert a couple of targets like the following in your Ant buildfile:


   
 
   

   
 
   

You should of course set approprate values for the various Ant 
properties. ${url} should be something like 
http://servername:8080/manager. You can now do:

ant deploy

or

ant undeploy

and Tomcat will deploy (or undeploy) and start you application just 
fine. The war file is sent to Tomcat over HTTP PUT, so you don't need to 
copy it manually to the server. Just have a "war" Ant task that builds 
the war file in ${dest}/myapp.war.

Hope this helps (ant thanks to Vadim),

Ugo


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


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




[Q] Deploing Cocoon on Tomcat

2002-09-27 Thread Ivan Luzyanin

Hi!

Is there any way to deploy (redeploy) cocoon without restarting Tomcat?
I tried to use "deploytool", but unsuccessfull (100 "Class not found" errors 
when accessing http:/localhost:8080/cocoon).

Ivan.

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

2002-09-27 Thread Jessica Niewint

Hey, you are great. Thanks (more than !)  a lot. :-D
I will try it out 
J.


At 16.57 26/09/2002 -0400, you wrote:

>I'll take a stab at it...
>
>You don't need java for looping over the rows, that is already done by the
>esql logicsheet when you use .  You can mix 
>and ESQL tags as needed however.  Here's some code (below) that might be
>close to what you want to do.  Note I wasn't sure everywhere what you were
>trying to do with your queries, and some of them didn't make sense to me,
>so I made guesses as to what your database schema looks like and rewrote
>the queries accordingly.  Hopefully it will help make some sense of this
>for you.  Also note I've used java to get a foreign key (I made up the
>column name, but I assume it must exist) from the section table for use in
>the chapter table, but ESQL also provides some features that would allow
>you to avoid even this little bit of java.  I'm not real familiar with it,
>but presumably it is documented in the ESQL documentation.  Anyway, this
>shows you that you can easily mix  and ESQL tags.
>
>
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:esql="http://apache.org/cocoon/SQL/v2";
> >
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="schema.xsd"
>   >
> 
> 
>   xmldb
>   
> select * from document where DocID = 1
> 
>   
> 
> 
> 
> 
> 
>   
> 
>   
>
>   
>   
> select * from section where DocID = 1
> 
>   
>   
> 
>   
>   ="SecContent"/>
>   
> 
> String section = ;
>   
>
>   
>   
> 
>   select * from chapter
>   where DocID = 1 AND Section=
> 
>   section
> 
> 
> 
>   
>   
> 
>   ="ChapTitle"/>
>   ="ChapContent"/>
> 
>   
> 
>   
>
> 
>   
> 
>   
> 
>   
>
>
>
>
>
>Hi, it's me again ... could some one give me a hint how to use 
>in the right way ?
>
>I have to generate a document structure like this:
>document
>   section A
>  chapter 1
>  chapter 2
>   section B
>  chapter 3
>
>   My problem is to combine the logic with my esql tags.
>
>http://apache.org/xsp";
>xmlns:esql="http://apache.org/cocoon/SQL/v2";>
>  http://www.w3.org/2001/XMLSchema-instance";
>xsi:noNamespaceSchemaLocation="schema.xsd"
>xmlns:esql="http://apache.org/cocoon/SQL/v2"; xmlns:xsp="
>http://apache.org/xsp";>
>   
>xmldb
>  
>  
> select * from document
> 
>  
>   
>   
>   
>   
>   
>  
> 
>
>   
> 
>  select * from section where DocID 1
>   // Here I have to make an output first for the section A and all its
>chapters and after that I have to realize an output of the section B and
>all its chapters ...
>how can I realize it ?
> 
>   for (int x=0; x< =; x++){
>  
>   
>
>
>   
>  
> 
>
> 
>  
>   select * from chapter where Chapter= nr  AND
>Section=A
>
>
>   for (int y=0;
>y<=; y++){
> 
>
> 
> 
>
>   
>   }
>   
>
> }
>
>   
>   
>
>
>
>Is it possible to use esql or better to write everything in Java? I am
>really new to all this stuff ... sorry if I mix up everything ...
>J.
>
>
>
>
>
>-
>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]>