no suitable driver

2002-06-04 Thread Conny Pemfors

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Exception in ServerPagesGenerator.generate()

More precisely:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error opening
connection to dburl: : No suitable driver

so what's the problem


-
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: SQL, Actions, ESQL Help Please!!!

2002-06-04 Thread Conny Pemfors

where do I set my map:sitemap and pipelines to be able to use my xml
documents

/Conny
- Original Message -
From: "Christian Haul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 9:47 AM
Subject: Re: SQL, Actions, ESQL Help Please!!!


> On 03.Jun.2002 -- 11:53 PM, John Austin wrote:
> > On Monday 03 June 2002 01:50 pm, you wrote:
> > > On 03.Jun.2002 -- 10:11 AM, daniel robinson wrote:
> > > > Hi,
> > > >
> > > > I've been poking around but I'm clueless (yes, generally as well as
> > > > specifically).
> >
> > I have some code that simply uses embedded Java in an XSP and a Java
> > temp file. This code processes a File that is submitted by the user's
> > Applet simulating a FORM with method=PUT.  The user's FILE parameter is
> > an XML document produced by the applet. I have to insert the DTD stuff
> > because the Serializer I am generating this file from doesn't generate
> > the DTD statements.
> >
> > After the file is pulled into a string and written to a File, I add it
> > to my PostgreSQL database as a BLOB.
> >
> >
> > 
> >
> >  > language="java"
> > create-session="yes"
> > xmlns:xsp="http://apache.org/xsp";
> > xmlns:session="http://apache.org/xsp/session/2.0";
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > xmlns:xsp-response="http://apache.org/xsp/response/2.0";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";
> > xmlns:log="http://apache.org/xsp/log/2.0";>
> >
> >   
> > java.io.*
> > java.sql.*
> >   
> > 
> >   
> >   
> >   File output = null;
> > try {
> >
> > String username = (String)
> > ;
> > //System.err.println( "username=" + username );
> >
> > String filename =
> > ;
> > //System.err.println( "filename=" + filename );
> >
> > String config_data =
> > ;
> > //System.err.println( "config_data=" + config_data );
> >
> > int position = config_data.indexOf(  );
> >
> > StringBuffer saveString = new StringBuffer( config_data.substring( 0,
> > position ) );
> > 
> > saveString.append( config_data.substring( position) );
> >
> > output = File.createTempFile( "phoenix_", ".xml" );
> >
> > FileWriter fw   = new FileWriter( output );
> >
> > fw.write( saveString.toString() );
> >
> > fw.close();
> >
> 
> org.postgresql.Driver
> jdbc:postgresql://192.168.1.100:5432/test
> postgres
> 
> 
>UPDATE user_products SET
product_file=lo_import('"output.getAbsolutePath()"')
>where name = username
>  AND productname =
filename;
>
>   
>int rows =  
>   
>
>
>   
>  System.err.println( "Caught: " + 
> );
>   
>   
>
> 
>  
>
> > 
> > 
> > output.getAbsolutePath()
> > 
> > 
> > TEMPFILENAME=
> > 
> > 
> > 
> > 
>
> The above *might* work. If it doesn't, try to remove the
> esql:parameter tags (and leave only the xsp:expr tags).
>
> Chris.
>
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




Re: cocoon web log system

2002-06-04 Thread Conny Pemfors

does anybody know how to make xml pages work in cocoon 2.0.2, 

there should be something like sitemap, that must be changed. 

/Conny 

- Original Message - 
From: "Ugo Cei" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 12:05 PM
Subject: Re: cocoon web log system


> Cocoon User wrote:
> > we r thinking about to setup a weblog system phpnuke like
> > as a community place for cocoon users
> > 
> > anyone who want to apply this project
> > please reply to [EMAIL PROTECTED]
> 
> Why not start from CocoBlog[1]?
> 
> Ugo
> 
> [1]: http://www.beblogging.com/blog/docs
> 
> -- 
> 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]>
> 


-
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: SSL support of ResourceReader/FileGenerator

2002-06-03 Thread Conny Pemfors

does anybody know how to connect to a database and start using forms for
this purpose such as JSP, or XSL to show data.

kind regards
Conny


- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 3:24 PM
Subject: RE: SSL support of ResourceReader/FileGenerator


> From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
>
> Hi Vadim,
>
> thanks for your reply. I'm not really sure if the problem is totally
offtopic.
> But I must admit that I was a little bit inprecise. As I tried to tell
you
> before, I put the http request
https://139.21.207.160:8443/elster/OTTest.html
> of my cocoon sitemap directly into the browser line and there were no
problems
> with the https configuration on my target server - the page was
correctly
> displayed. But as soon as I use this request in the cocoon framework,
the
> SSLHandshakeException occurs. So it actually seems that the reason for
this
> exception must have to do something with the cocoon client.

IIRC, Cocoon uses URLConnection to get http and https resources. But
this works only after some configuration is done in your JDK/JRE. Check
out java docs on this.

To test that everything is working ok, try simple JSP/XSP with code
like:
  new URL("https://www.verisign.com/";).openStream()

(see
http://java.sun.com/j2se/1.4/docs/guide/security/jsse/samples/urls/URLRe
ader.java)

If you encounter any exception, this means that something is wrong in
the JDK/JRE configuration, and Cocoon also wouldn't be able to process
this URL.


Vadim

>
> Sorry,
> Elmar
>
> -Ursprüngliche Nachricht-
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Samstag, 1. Juni 2002 21:08
> An: [EMAIL PROTECTED]
> Betreff: RE: SSL support of ResourceReader/FileGenerator
>
>
> > From: bob phillips [mailto:[EMAIL PROTECTED]]
> >
> > this is one difference between the cocoon community and the zope
> community:
> > The Zope community tries to help people who use the software, rather
> than
> > immediately shouting off topic.
> >
> > Using SSL with cocoon should be an important part of the discussion
> here, IMO.
>
> From Cocoon (and any other application using URLConnection)
perspective,
> https does not differ from http if it configured correctly. Please
read
> link provided before criticizing.
>
> Vadim
>
> > At 12:05 PM 6/1/2002 -0400, you wrote:
> > > > From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> > > >
> > > > > Hello,
> > > > >
> > > > > I try to get files using ResourceReader/FileGenerator
> > > > (cocoon2.0.2/tomcat4.0.3/jdk1.4.0)  :
> > > > >
> > > > >  
> > > > > 
> > > > >  > > > src="https://139.21.207.160:8443/elster/OTTest.html"/>
> > > > > 
> > > > > 
> > > > >
> > > > > Cocoon server and target server are one and the same instance.
> > > > >
> > > > > When I put the http request directly in my browser, the file
is
> > >correctly
> > > > transferred and displayed. As soon as I use the request  in my
> cocoon
> > > > pipeline, an SSLException SSLHandshakeException
> unknown_certificate
> > >with
> > > > JDK1.4 occurs in tomcat server. Can anyone tell me if, how and
in
> > >which cocoon
> > > > versions SSL is supported for FileGenerator/ResourceReader and
how
> my
> > >problem
> > > > can be solved?
> > >
> > >It has nothing to do with cocoon and totally offtopic.
> > >
> > >Go to java.sun.com for software and installation tips for SSL.
> > >
> >
>
>http://java.sun.com/j2se/1.4/docs/guide/security/jsse/JSSERefGuide.html
> #
> > >Troubleshooting
> > >
> > >
> > >Vadim
> > >
> > >
> > > > >
> > > > > Thanks in advance,
> > > > > Elmar
> > >
> > >
> > >
> >
>-
> > >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]>
>
> -
> 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

Re: Returning result from two select statements in one file

2002-04-26 Thread Conny Pemfors

Hi do anybody understand why I get this message.

Error connecting: java.sql.SQLException: [JDBC Progress Driver]:Database not
sta
rted

kind regards
/Conny
- Original Message -
From: "Hahn Kurt (CHA)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 10:22 AM
Subject: RE: Returning result from two select statements in one file


> Thanks to everyone. I got a lot of answers, the simplest solution was just
> to send a nested query, there was a very comprehensive section in the User
> Guide.
>
> The C2 community is great!!!
>
> Kurt
>
> -
> 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: build problems with JDK 1.4.0

2002-04-05 Thread Conny Pemfors

the problem is that you have to put phpsrvlt.jar and the other jar file into
lib directory.
Then it will not complain. make sure that you don't miss xml-apis.jar,
xalan-XXX.jar, Xerces-XXX.jar


kind regards
Conny

- Original Message -
From: "Adnan Zelkanovic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Matthias Fischer" <[EMAIL PROTECTED]>; "Jörg Flotho"
<[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 10:53 AM
Subject: AW: build problems with JDK 1.4.0


My "JAVA_HOME" is set to "d:\java\jdk140".
I've run "build clean" then "build".

But, I'm still getting the following output from the "build.bat":

Buildfile: build.xml

init:
 [echo] --
 [echo] Apache Cocoon 2.0.1 [1999-2002]
 [echo] --
 [echo] Building with Ant version 1.4.1 compiled on October 11 2001
 [echo] using build file D:\cocoon-2.0.1\build.xml
 [echo] --

optional-tests:

bsf-warn:

jfor-warn:

op-warning:
 [echo] **
 [echo] *
 [echo] *  Classes of the optional package JFOR are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  JFOR is required for the fo2rtf serializer.
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the JFOR package from http://www.jfor.org/ and place the
jar in the lib/optional dir
 [echo] *
 [echo] ***
 [echo]

xmldb-warn:

xt-warn:

php-warn:

op-warning:
 [echo] **
 [echo] *
 [echo] *  Classes of the optional package PHP are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  PHP is required for the php generator.
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the PHP servlet (phpsrvlt.jar) and place the jar in the
lib/optional dir
 [echo] *
 [echo] ***
 [echo]

naming-warn:

op-warning:
 [echo] **
 [echo] *
 [echo] *  Classes of the optional package JNDI are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  JNDI is required for the ldap generator and the parentcm
generator.
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the jndi.jar from Sun and place the jar in the
lib/optional dir
 [echo] *
 [echo] ***
 [echo]

svg-warn:

fop-warn:

tidy-warn:

maybeupload-warn:

lucene-warn:

deli-warn:

velocity-warn:

hsqldb-warn:

resolver-warn:

optional-warnings:

prepare:

generate-java-code-check:

generate-java-code:

filter-jdbc:

nofilter-jdbc:

prepare-jdbc:

prepare-src-main:

prepare-src-servlet:

prepare-src-22:

prepare-src-22-maybeupload:
 [copy] Copying 1 file to
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\environment\http

prepare-src-23:

prepare-src-23-maybeupload:

prepare-src:

compile:
 [echo] Compiling with Java 1.4, debug on, optimize off, deprecation off
[javac] Compiling 317 source files to
D:\cocoon-2.0.1\build\cocoon\classes
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define void rollback(java.sql.Savepoint) from
interface java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define int getHoldability() from interface
java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int, int, int) from interface
java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int) from interface java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\bui

Re: ServletGenerator ?

2002-03-12 Thread Conny Pemfors



use the servlets generators that you can download 
from SUN.
 
kind regards
Conny

  - Original Message - 
  From: 
  Ivan Ivanov 

  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, March 12, 2002 3:34 
  PM
  Subject: ServletGenerator ?
  
  hi 
  i have the following problem 
  i want to have a servlet generating xml content 
  and feeding it to the transformer in the pipeline.
  is that possible ?
  should i use the ServletGenerator and how should 
  i use it (i couldnt find any docs about that)
   
  thanks


Re: Cocoon and Xindice idiots guide?

2002-03-11 Thread Conny Pemfors

I give up, it's impossible

/Conny
- Original Message -
From: "Alex McLintock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 4:37 PM
Subject: Cocoon and Xindice idiots guide?


> Would it be possible for someone to put together an idiots guide to using
> Xindice with Cocoon2?
>
> I am seeing conflicting advice in the mailing lists, docs, and website and
> it is really confusing me. (Hence I am not in a position to write the
> idiots guide myself :-(
>
>
> Assume I don't care about old dbXML versions of the database, Xindice is
> the current version.
> (It was really confusing to have the API and program called the same
thing:
> When I see dbxml I never know whether it refers to the API or old
software.)
>
> Should I be using Generators? I can't find any relevant code in the recent
> Cocoon2.0.rc2 build and am not keen to go to cvs if I can avoid it. The
> website and docs say to use them - but people on the mailing list say not
to.
>
> When using the dbxml:xindice://db/somethingorotherquery source how do I
> tell it *where* the database resides? Is the word "xindice" a machine name
> in this example query?
>
>
> Sorry for asking so many questions in the last couple of days...
> =
> PS I never got to the bottom of my slow PDF generation problem. FOP works
> fine when run from the command line so I have a work around
> Alex
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




Re: cocoon with POI

2002-03-11 Thread Conny Pemfors

do you know how to get the cocoon to work with Tomcat, 
it doesn't want to start: /cocoon/

/Conny
- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:45 PM
Subject: RE: cocoon with POI


CVS version of Cocoon: Yes. Examples are provided too.

Vadim

-Original Message-
From: Niket Anand [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, March 10, 2002 9:11 AM
To: [EMAIL PROTECTED]
Subject: cocoon with POI

Hi all,
I have to show xml data as report in MS-EXCEL. Does cocoon-2.0 provide
POI serializer?
Pls give sites name or examples.
Thanks,
Niket


-
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: Combining XSP files in Cocoon2

2002-03-11 Thread Conny Pemfors

Hi do you know how I get cocoon to work on a tomcat Apache/ Sun solaris
server
I have installed all the java classes that is needed but it doesn't work.


/Conny
- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:40 PM
Subject: RE: Combining XSP files in Cocoon2


> > From: Alex McLintock [mailto:[EMAIL PROTECTED]]
> >
> > Can you merge multiple XSP files in Cocoon 2 into one page?
>
> Ahem... After reading all this... Are you sure you want to merge
> *sources* of XSP pages, and not *results*???
>
> Vadim
>
>
> > I basically want to produce a single PDF with each page from the
> website
> > appearing in it.
> >
> > The FAQ says I can try this
> >
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > Now my problem is that I can't seem to combine two xsp files into one
> valid
> > xsp file.
> >
> > Are there special tags I can use to achieve this? (ie replacements for
> > "newRootElement",
> > "firstXMLfile", and "secondXMLfile")
> >
> > Alex Mc
> >
>
>
> -
> 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]>