Re: Help connect Cocoon2 to Oracle8

2002-02-28 Thread Bert Van Kets

I had similar problems when trying to connect to a mySQL database.  I 
solved it this way:
- Downloaded a CVS HEAD.
- removed the hsqldbjar from the xml-cocoon2\lib\optional directory
- added my JDBC jar file in the xml-cocoon2\lib\optional directory
-  removed the xml-cocoon2\src\java\org\apache\cocoon\components\hsqldb 
directory
- replaced parameters in the database.properties file in the xml-cocoon2 
directory
- rebuild
- run

The easiest way to test the database is by modifying the 
cocoon\docs\samples\xsp\esql.xsp file to show some data present in the 
database.  Just modify the SQL query and the column name in the 
esql:get-string element.

This did the trick in my case.
Bert

At 17:55 27/02/2002 +0100, you wrote:
I am not able to connect to Oracle8i database.Exception
states that could not connect to datasource  you cannot get a poolable
before the pool is initialized.

type internal-server-error

message Error in sitemap configuration : Could not set up Component for
hint: add-employee

description org.apache.avalon.framework.configuration.ConfigurationExcept=
ion:
Error in sitemap configuration : Could not set up Component for hint: add=
-employee

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/visualizza/prova

exception

org.apache.avalon.framework.configuration.ConfigurationException: Error
in sitemap configuration : Could not set up Component for hint: add-emplo=
yee

path-info

visualizza/prova

stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Error
in sitemap configuration : Could not set up Component for hint: add-emplo=
yee

Coccon.xconf

  datasources
   component-instance name=3Dtest_oracle_pool class=3Dorg.apache.avalo=
n.util.datasource.JdbcDataSource
!--   jdbc name=3Dtest_oracle_pool  --
   !-- Don't forget the oradb parameter for Oracle!!! --
pool-controller min=3D5 max=3D10 oradb=3Dtrue/
dburljdbc:oracle:thin:@server:oras/dburl
userde/user
passwordgi/password
!--   /jdbc   --
   /component-instance


   jdbc name=3Dpersonnel
   !--
   If you have an Oracle database, and are using the the
   pool-controller below, you should add the attribute
   oradb and set it to true.

   pool-controller min=3D5 max=3D10 oradb=3Dtrue/

   That way the test to see if the server has disconnected
   the JdbcConnection will function properly.
   --
   pool-controller min=3D5 max=3D10/
   !--
   If you need to ensure an autocommit is set to true or
   false, then create the auto-commit element below.

   auto-commitfalse/auto-commit

   The default is true.
   --
   dburljdbc:hsqldb:hsql://localhost:9002/dburl
   usersa/user
   password/password
 /jdbc
/datasources


web.xml
init-param
param-nameload-class/param-name
param-value
 oracle.jdbc.driver.OracleDriveror
/param-value

The database driver is classes12.jar and I am able to connect to the same=

database with same driver with standalone java application.
Environment is Tomcat 4,  C2  windows2000
Prior to this  I connected to mySql database sucessfully.

Any help on this will be highly appreciated

Thanks I am not able to connect to Oracle8i database.Exception
states that could not connect to datasource  you cannot get a poolable
before the pool is initialized.

type internal-server-error

message Error in sitemap configuration : Could not set up Component for
hint: add-employee

description org.apache.avalon.framework.configuration.ConfigurationExcept=
ion:
Error in sitemap configuration : Could not set up Component for hint: add=
-employee

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/visualizza/prova

exception

org.apache.avalon.framework.configuration.ConfigurationException: Error
in sitemap configuration : Could not set up Component for hint: add-emplo=
yee

path-info

visualizza/prova

stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Error
in sitemap configuration : Could not set up Component for hint: add-emplo=
yee

Coccon.xconf

  datasources
   component-instance name=3Dtest_oracle_pool class=3Dorg.apache.avalo=
n.util.datasource.JdbcDataSource
!--   jdbc name=3Dtest_oracle_pool  --
   !-- Don't forget the oradb parameter for Oracle!!! --
pool-controller min=3D5 max=3D10 oradb=3Dtrue/
dburljdbc:oracle:thin:@server:oras/dburl
userde/user
passwordgi/password
!--   /jdbc   --
   /component-instance


   jdbc name=3Dpersonnel
   !--
   If you have an Oracle database, and are using the the
   pool-controller below, you should add the attribute
   oradb and set it to true.

   pool-controller min=3D5 max=3D10 oradb=3Dtrue/

   That way the test to see if the server has disconnected
   the JdbcConnection will function properly.
   --
   pool-controller min=3D5 max=3D10/
   !--
   If you 

Database connection error

2002-02-28 Thread Richard Korthuis

Hello,

I'm trying to make an XML-application with a connection to a MySQL-database.
I have the following database.xml:

?xml version=1.0?
page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
programma
sql:execute-query
sql:queryselect datum from rooster where
maand='januari'/sql:query
/sql:execute-query
/programma
/page

In my sitemap.xmap:

map:match pattern=*.xml
map:generate src={1}.xml/
map:transform type=sql
map:parameter name=use-connection value=stretchers/
/map:transform
map:transform src={1}-html.xsl/
map:serialize/
/map:match

In my cocoon.xconf:

datasources
jdbc name=stretchers
pool-controller min=5 max=10/
dburljdbc:mysql://localhost/Stretchers/dburl
userroot/user
password**/password
/jdbc
/datasources

In my web.xml:

init-param
param-nameload-class/param-name
param-value
!-- For MySQL Database --
org.gjt.mm.mysql.Driver
/param-value
/init-param

I have put mm.mysql-2.0.11-bin.jar in %Cocoon%/WEB-INF/lib

I get the following error in %Cocoon%/WEB-INF/logs/core.log.01:

DEBUG   (2002-02-28) 09:33.49:702   [core] (Unknown-URI)
Unknown-thread/LogKitLogger: factory created class was null so a new
instance could not be created.
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available
 at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(Jdb
cConnectionFactory.java:183)
 at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
82)
 at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(HardRe
sourceLimitingPool.java:95)
 at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(JdbcCo
nnectionPool.java:74)
 at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java
:126)
 at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(HardR
esourceLimitingPool.java:104)
 at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
imitingPool.java:91)
 at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnection
Pool.java:195)
 at java.lang.Thread.run(Thread.java:536)
FATAL_E (2002-02-28) 09:33.49:802   [core] (Unknown-URI)
Unknown-thread/LogKitLogger: Excalibur could not create any connections.
Examine your settings to make sure they are correct.  Make sure you can
connect with the same settings on your machine.
...
WARN(2002-02-28) 09:47.24:762   [core] (/stretchers/database.xml)
Ajp13Processor[8009][4]/LogKitLogger: Could not return Connection
java.lang.IllegalStateException: There are no connections in the pool, check
your settings.
 at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.get(JdbcConnection
Pool.java:124)
 at
org.apache.avalon.excalibur.datasource.JdbcDataSource.getConnection(JdbcData
Source.java:201)
 at
org.apache.cocoon.transformation.SQLTransformer$Query.getConnection(SQLTrans
former.java:923)
 at
org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer
.java:978)
 at
org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.
java:271)
 at
org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTr
ansformer.java:417)
 at
org.apache.cocoon.transformation.SQLTransformer.endElement(SQLTransformer.ja
va:691)
 at
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:81)
 at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
 at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.java:1550)
 at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1204)
 at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
 at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:182)
 at org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:331)
 at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:209)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:355)
 at org.apache.cocoon.www.sitemap_xmap.matchN10216(sitemap_xmap.java:1711)
 at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1472)
 at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1409)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:582)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

embedding fonts

2002-02-28 Thread Adnan Zelkanovic

Hello together,

I have a little problem with embedding fonts in cocoon. If I try to build
the metric-file for my ttf with the cocoon-jars it doesn't work. The process
can't find some dom classes. But if I try it with the fop-jars contained in
the standalone-fop-pakage it works well. What does it mean? Does it mean,
that embedded fonts do work with standalone-fop but doesn't work with
cocoon-fop?


Mit freundlichen Grüßen

Adnan Zelkanovic
allgäuNet.Onlinedienste GmbH

Nebelhornstraße 8
86807 Buchloe
Tel. (08241) 96869-33
Fax  (08241) 96869-26
http://www.allgaeu.net
e-mail: [EMAIL PROTECTED]

ein Unternehmen der abc.Mediengruppe



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

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




C2 + SOAP ?

2002-02-28 Thread Jerzy Kut

Can C2 cooperates with SOAP? How?
Is it only pure Java cooperation (own actions or logicsheets) or is there
possible any expolit it from XSP or XML?
Sorry if my question is a little precisious.

Best regards

Jerzy Kut



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

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




Re: C2 + SOAP ?

2002-02-28 Thread yuryx

Jerzy Kut wrote:

Can C2 cooperates with SOAP? How?
Is it only pure Java cooperation (own actions or logicsheets) or is there
possible any expolit it from XSP or XML?
Sorry if my question is a little precisious.

Best regards

Jerzy Kut



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

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

See Xscript and SOAP examples...

Regards
Yury.



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

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




Re: Passing a '+' in a request parameter?

2002-02-28 Thread Derek Hohls

I have now changed the key on the table to use an integer, which allows
me to avoid these problems.

Thanks for all the help and suggestions.

Derek

 [EMAIL PROTECTED] 27/02/2002 11:29:04 
On 27.Feb.2002 -- 08:36 AM, Derek Hohls wrote:
 Based on what you said below - I am now not completely sure what *is*

 causing the problem, but I can see there is one...

Derek,
could you please check for me in core.log how your request parameters
are received by cocoon. It should look like

REQUEST: /cocoon/botox/your_page

CONTEXT PATH: /cocoon
SERVLET PATH: /botox/your_page
PATH INFO: null

[... snip ...]

REQUEST PARAMETERS:

PARAM: 'value2' VALUES: '[c d]'
PARAM: 'value1' VALUES: '[a b]'

For ?value1=a+bvalue2=c+d (because, as someone else put it, + is
really a space) or 

PARAM: 'value2' VALUES: '[c+d]'
PARAM: 'value1' VALUES: '[a+b]'

in case the data was entered with a form and thus uses %2B for a real
+. 

If that's *not* the case, what versions are you using? (cocoon,
tomcat, jdk, operating system, browser)

And how do you notice that data is missing? Have you checked on a SQL
shell or through Cocoon? If through Cocoon, how? Perhaps the data is
all there but there's a problem retrieving it? What DBMS are you
using?

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. http://xml.apache.org/cocoon/faqs.html

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


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

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




Re: Passing a '+' in a request parameter?

2002-02-28 Thread Christian Haul

On 28.Feb.2002 -- 12:38 PM, Derek Hohls wrote:
 I have now changed the key on the table to use an integer, which allows
 me to avoid these problems.

That's good. But actually, I would like to know whether there *is* an
issue with the actions that needs to be fixed. So if you could spare
the time to answer my last mail, others could benefit from it as well.

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. http://xml.apache.org/cocoon/faqs.html

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




RE: desperate help required - build.sh failing

2002-02-28 Thread Vadim Gritsenko

Sorry for reply that took so long...

 From: Malcolm Thorns [mailto:[EMAIL PROTECTED]]
 
 
 I'm new to Cocoon and building as per instructions - the build is
failing
 with the same error every time (shown below).
 
 Can anyone please tell me what the errors are ?

... if you did not yet figured out this - that's because you are
compiling JDK1.3 code with JDK1.2 compiler. Try latest CVS version of
Cocoon - it should compile with JDK1.2 now (however, I did not tested it
- so get back here if more compilation errors exist).

Vadim

 
 Thanks,
 
 Malcolm Thorns
 
 
 ./build.sh -Dinclude.webapp.libs=yes webapp
 
 
 
 Compiling 3 source files to /opt/cocoon-2.0.1/build/cocoon/classes

/opt/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/util/NetUtils.java:
85:
 Exce
 ption java.lang.Exception must be caught, or it must be declared in
the
 throws c
 lause of this method.
 return java.net.URLDecoder.decode( path );
  ^

/opt/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/crawler/
Simp
 leCo
 coonCrawlerImpl.java:426: Method getPath() not found in class
java.net.URL.
 URL links_url = new URL(url, url.getPath()
 ^

/opt/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/crawler/
Simp
 leCo
 coonCrawlerImpl.java:427: Method getPath() not found in class
java.net.URL.
 + ((url.getPath().indexOf(?) == -1) ? ? : )
^

/opt/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/search/S
impl
 eLuc
 eneXMLIndexerImpl.java:130: Method getPath() not found in class
 java.net.URL.
 URL contentURL = new URL(url, url.getPath()
  ^

/opt/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/search/S
impl
 eLuc
 eneXMLIndexerImpl.java:131: Method getPath() not found in class
 java.net.URL.
 + ((url.getPath().indexOf(?) == -1) ? ? : )
^
 5 errors
 
 BUILD FAILED
 
 /opt/cocoon-2.0.1/build.xml:787: Compile failed, messages should have
been
 provi
 ded.


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

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




Livesite

2002-02-28 Thread Montier Patrick

Hello,

A new cocoon 2 web site has been developped by our french company Easance in
3 languages (French, English and japanese) :
http://www.bethe1.com

This web site is the worldwide employment specialist in FASHION, BEAUTY and
selective RETAIL..


Best regards

Patrick Montier - Technical director




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

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




Cocoon and Jetty??

2002-02-28 Thread Brad Cox

I'm new to cocoon. Just downloaded it yesterday and can't get it to run.

AFAIK Jetty doesn't expand wars, so I expanded it manually into 
/cocoon/war. /cocoon and /jetty are symlinks to /usr/local/realdir. 
Configured jetty to treat /cocoon/war as a webapp as always. In 
particular, in /etc/jetty.xml:

Call name=addWebApplication
Arg/cocoon/*/Arg
Arg/cocoon/war//Arg
Arg/jetty/etc/webdefault.xml/Arg
Arg type=booleanfalse/Arg
/Call

and in apache's httpd.conf add.

ProxyPass /cocoon http://localhost:8080/cocoon

I built cocoon as described in the install, modified to use jetty 
instead of tomcat:

./build.sh  -Dinclude.webapp.libs=yes 
-Dinstall.war=/jetty/webapps webapp

The Jetty logs are normal except that they now show Server 1.6 on the 
air, hit ^C to abort, presumably from cocoon.

All this on Linux RH 7.0, Jetty (latest), and IBM SDK 1.3.1 (latest). 
For Cocoon, same results with the release version and via CVS 
checkout/rebuild.

Can someone help me get on the air?

sitemap.log

ERROR   (2002-02-28) 09:28.11:234   [sitemap](/cocoon/) 
SocketListener-0/Handler: Error compiling sitemap
java.lang.NoSuchFieldError: 
org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:165)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:251)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)

error.log
ERROR   (2002-02-28) 09:28.11:269[access](/cocoon/) 
SocketListener-0/CocoonServlet: Problem with servlet
org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoSuchFieldError: 
org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:498)
java.lang.NoSuchFieldError: 
org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:165)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:251)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)
java.lang.NoSuchFieldError: 
org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:165)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:251)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)

access.log
INFO(2002-02-28) 09:27.47:710   [access](/cocoon/) 
SocketListener-1/CocoonServlet: '' Processed by Apache Cocoon 
2.0.2-dev in 410 milliseconds.
DEBUG   (2002-02-28) 09:28.11:167   [access](/cocoon/) 
SocketListener-0/AbstractEnvironment: Resolving 'sitemap.xmap' in 
context 'file:/cocoon/war/'
DEBUG   (2002-02-28) 09:28.11:168   [access](/cocoon/) 
SocketListener-0/AbstractEnvironment: Resolved to 
'file:/cocoon/war/sitemap.xmap'
DEBUG   (2002-02-28) 09:28.11:168   [access](/cocoon/) 
SocketListener-0/AbstractEnvironment: Resolving '' in context 
'file:/cocoon/war/'
DEBUG   (2002-02-28) 09:28.11:169   [access](/cocoon/) 
SocketListener-0/AbstractEnvironment: Resolved to 'file:/cocoon/war/'
ERROR   (2002-02-28) 09:28.11:250   [access](/cocoon/) 
SocketListener-0/CocoonServlet: Problem with servlet
org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoSuchFieldError: 
org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at 

Re: Where do I get phpsrvlt.jar?

2002-02-28 Thread Stefano Mazzocchi

Peter Christoph Alexander Bär wrote:
 
 I'd like to build my C2 dev snapshot with PHP support.
 Where do I get the phpsrvlt.jar?
 
 I can't find it on http://www.php.net/ and elsewhere.
 
 Could it be that I have to build it myself? Where are
 the sources, then?

phpsrvlt.jar is included in the /java directory of the standard PHP
distribution, i would guess the source is in the PHP CVS.

-- 
Stefano Mazzocchi  One must still have chaos in oneself to be
  able to give birth to a dancing star.
[EMAIL PROTECTED] Friedrich Nietzsche




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

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




RE: SVG not working with J2SDK 1.4.0 ?!?

2002-02-28 Thread Georg Von Sperling

Peter,
 
The svg2jpeg serializer in batik 1.1.1 with jdk1.4.0 seems to not work anymore. 
Converting the pipeline to use svg2png serialization works. There is a bug posted on 
bugzilla. I have proposed a fix, and waiting for resolution. Meanwhile, to make the 
fix work, check out xml-batik (HEAD), open 


org.apache.batik.transcoder.image.JPEGTranscoder

and change the constructor by commenting out the line as follows:

/**
 * Constructs a new transcoder that produces jpeg images.
 */
public JPEGTranscoder() {
// hints.put(ImageTranscoder.KEY_BACKGROUND_COLOR, Color.white);
}
 
recompile using ant libs-jar in xml-batik root checkout.
Replace the batik-libs*.jar in cocoon/WEB-INF/lib with the newly compiled 
batik-libs.jar
 
Delete the work directory for cocoon in tomcat/work/
 
Re-start Tomcat
 
The svg2jpeg serializer should work now.
 
Greetings and Salutations
Georg von Sperling
MedAptus, Inc
www.medaptus.com
[EMAIL PROTECTED]



-Original Message- 
From: Peter Christoph Alexander Bär [mailto:[EMAIL PROTECTED]] 
Sent: Wed 2/27/2002 8:10 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: SVG not working with J2SDK 1.4.0 ?!?



A few observations of today. Most relevant to other users is (1),
probably, while (2) and (3) are just comments / reports.

(I Hope that helps to detect bugs and fix them; just let me know,
if this kind of information is of no use --- I don't want to bore
you; I just thought that I could help out the testers with this.)



(1) SVG example not working with J2SDK 1.4.0

I built the C2 development snapshot xml-cocoon2_20020227171804.tar.gz
with J2SDK 1.4.0 from Sun. To get it working, all I had to do was to
replace javac.jar with tools.jar from the J2SDK 1.4.0 in
$CATALINA_HOME/webapps/cocoon/WEB-INF/lib.

Almost everything appears to work, but the SVG example responds with
a blank page.

With Blackdown J2SDK 1.3.1_02a this example works as expected.

All the following is based on the Blackdown 1.3.1_02a VM.

(2) Moreover example does not work
==
The example Dynamic content -- Moreover.com doesn't work, because the 
host can't be found, it seems:

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

Exception during processing of 
http://www.moreover.com/cgi-local/page?o=xmlc=Developer%20news

More precisely:

org.apache.cocoon.ProcessingException: Exception during processing of 
http://www.moreover.com/cgi-local/page?o=xmlc=Developer%20news: 
java.net.UnknownHostException: p.moreover.com



(3) Slashdot, XMLHack.com and Aggregation 1 working, Aggregation 2 not
==
Slashdot, XMLHack.com and the first Aggregation example work, but the
Aggregation throws the same error for the Moreover.com part, just like
the Moreover.com stanalone example.
The seoond aggregation example throws the following error:

Failed to execute pipeline.

 More precisely:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.cocoon.ProcessingException: Exception during processing of 
http://www.moreover.com/cgi-local/page?o=xmlc=Developer%20news: 
java.net.UnknownHostException: p.moreover.com



(4) Portal  authentication example works now
=
With the dev snap mentioned above, even the portal components demo
works. With its immediate predecessors I could start the portal,
but ran into an error just after login.



(5) I failed to build the CVS HEAD version
==
The compiler was complaining about the CLASSPATH, which is empty
in my case, and doesn't cause problems with the dev snapshot, eg.


I wonder what exactly the difference between the CVS tree and the
development snapshot is. They behave different, it seems.


Peter
--
 mailto:[EMAIL PROTECTED] 
-

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

RE: Cocoon and Jetty??

2002-02-28 Thread Vadim Gritsenko

Apparently you had previous version of Cocoon.
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101183982808469w=2
Read solution number (6)

Vadim

 -Original Message-
 From: Brad Cox [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 28, 2002 9:50 AM
 To: [EMAIL PROTECTED]
 Subject: Cocoon and Jetty??
 
 I'm new to cocoon. Just downloaded it yesterday and can't get it to
run.
 
 AFAIK Jetty doesn't expand wars, so I expanded it manually into
 /cocoon/war. /cocoon and /jetty are symlinks to /usr/local/realdir.
 Configured jetty to treat /cocoon/war as a webapp as always. In
 particular, in /etc/jetty.xml:
 
   Call name=addWebApplication
   Arg/cocoon/*/Arg
   Arg/cocoon/war//Arg
   Arg/jetty/etc/webdefault.xml/Arg
   Arg type=booleanfalse/Arg
   /Call
 
 and in apache's httpd.conf add.
 
   ProxyPass /cocoon http://localhost:8080/cocoon
 
 I built cocoon as described in the install, modified to use jetty
 instead of tomcat:
 
   ./build.sh  -Dinclude.webapp.libs=yes
 -Dinstall.war=/jetty/webapps webapp
 
 The Jetty logs are normal except that they now show Server 1.6 on the
 air, hit ^C to abort, presumably from cocoon.
 
 All this on Linux RH 7.0, Jetty (latest), and IBM SDK 1.3.1 (latest).
 For Cocoon, same results with the release version and via CVS
 checkout/rebuild.
 
 Can someone help me get on the air?
 
 sitemap.log
 
 ERROR   (2002-02-28) 09:28.11:234   [sitemap](/cocoon/)
 SocketListener-0/Handler: Error compiling sitemap
 java.lang.NoSuchFieldError:
 org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
   at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
   at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
 ultComponentFactory.java:172)
   at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
 readSafeComponentHandler.java:84)
   at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
 (GeneratorSelector.java:165)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
 ramGeneratorImpl.java:251)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:498)
 
 error.log
 ERROR   (2002-02-28) 09:28.11:269[access](/cocoon/)
 SocketListener-0/CocoonServlet: Problem with servlet
 org.apache.cocoon.ProcessingException: Error compiling sitemap:
 java.lang.NoSuchFieldError:
 org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
   at java.lang.Thread.run(Thread.java:498)
 java.lang.NoSuchFieldError:
 org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
   at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
   at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
 ultComponentFactory.java:172)
   at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
 readSafeComponentHandler.java:84)
   at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
 (GeneratorSelector.java:165)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
 ramGeneratorImpl.java:251)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:498)
 java.lang.NoSuchFieldError:
 org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
   at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
   at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
 ultComponentFactory.java:172)
   at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
 readSafeComponentHandler.java:84)
   at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
 (GeneratorSelector.java:165)
   at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
 ramGeneratorImpl.java:251)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:498)
 
 access.log
 INFO(2002-02-28) 09:27.47:710   [access](/cocoon/)
 SocketListener-1/CocoonServlet: '' Processed by Apache Cocoon
 2.0.2-dev in 410 milliseconds.
 DEBUG   (2002-02-28) 09:28.11:167   [access](/cocoon/)
 SocketListener-0/AbstractEnvironment: Resolving 'sitemap.xmap' in
 context 'file:/cocoon/war/'
 DEBUG   (2002-02-28) 09:28.11:168   [access](/cocoon/)
 SocketListener-0/AbstractEnvironment: Resolved to
 'file:/cocoon/war/sitemap.xmap'
 DEBUG   (2002-02-28) 09:28.11:168   [access](/cocoon/)
 SocketListener-0/AbstractEnvironment: Resolving '' in context
 'file:/cocoon/war/'
 DEBUG   (2002-02-28) 09:28.11:169   [access](/cocoon/)
 SocketListener-0/AbstractEnvironment: Resolved to 'file:/cocoon/war/'
 ERROR   

sunRise tutorial here

2002-02-28 Thread Matthew Langham

Hi,

This afternoon, I quickly (!) wrote up a tutorial on using the
authentication components (sunRise) that were part of the
portal/authentication package we donated a couple of weeks ago.
Basically these components can be used to protect access to pipelines by
defining a handler that then authenticates the user using pipelines.

The tutorial is not pretty :-) but it should serve as an additional source
of information if you want to get started using them.

http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html

Any comments are welcome

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=



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

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




RE: sunRise tutorial here

2002-02-28 Thread Ellis, Neil (FNB)

Hi I've just installed cocoon on a linux box redhat 7.1 with sun jdk, tomcat
4.0 and got this ... I've searched the web to no avail... any ideas?
I got a 500 error with:
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)
root cause 
java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex
caliburComponentManager.java:408)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:406)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

Re: sunRise tutorial here

2002-02-28 Thread Jean-Philippe Courson

You are using tomcat 4.0.2 that causes some problems. For now, use 
tomcat 4.0.1

Ellis, Neil (FNB) wrote:
 Hi I've just installed cocoon on a linux box redhat 7.1 with sun jdk, tomcat
 4.0 and got this ... I've searched the web to no avail... any ideas?
 I got a 500 error with:
 javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
 exception
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
 5)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:214)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1012)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
 )
   at java.lang.Thread.run(Thread.java:484)
 root cause 
 java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
   at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
   at
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
 ader.java:1631)
   at
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
 a:926)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1360)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
   at
 org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex
 caliburComponentManager.java:408)
   at org.apache.cocoon.Cocoon.configure(Cocoon.java:406)
   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267)
   at
 org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
   at
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
 6)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:214)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at
 

Help connection Cocoon2 to Oracle8

2002-02-28 Thread giuseppe . devincenzi

Hello,
I am not able to connect to Oracle8i database.

  Error creating the resource
  Exception in ServerPagesGenerator.generate()
  details
  from
  source org.apache.cocoon.ProcessingException
description org.apache.cocoon.ProcessingException: Exception in 
ServerPagesGenerator.generate():
java.lang.RuntimeException: Could not get the datasource java.sql.SQLException:
There are no connections in the pool, check your settings.

  extra info
org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate():
java.lang.RuntimeException: Could not get the datasource java.sql.SQLException:
There are no connections in the pool, check your settings.

 org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate():
java.lang.RuntimeException: Could not get the datasource java.sql.SQLException:
There are no connections in the pool, check your settings.
at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:212)

at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:210)

at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:359)

at 
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400421(sitemap_xmap.java:6911)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2919)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2469)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005)

at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)

at java.lang.Thread.run(Unknown Source)
java.lang.RuntimeException: Could not get the datasource java.sql.SQLException:
There are no connections in the pool, check your settings.

Sitemap.xmap
!--  Prova Prova Prova Prova Prova Prova Prova Prova Prova --
  map:match pattern=visualizza/*
map:generate type=serverpages src=visualizza/{1}.xsp/
   map:transform type=sql
   map:parameter name=use-connection value=test_oracle_pool/
   /map:transform
   !-- map:transform src=visualizza/dynamica-page2html.xsl
map:parameter name=view-source value=visualizza/{1}.xsp/
/map:transform
   --

map:serialize/
   /map:match
!--  Prova Prova Prova Prova Prova Prova Prova Prova Prova --


Coccon.xconf

   datasources
 jdbc name=personnel logger=core.datasources.personnel 
  !--
  If you have an Oracle database, and are using the the
  pool-controller below, you should add the attribute
  oradb and set it to true.

  pool-controller min=5 max=10 oradb=true/

  That way the test to see if the 

COCOON startup problem

2002-02-28 Thread Booth, James



Installed Cocoon on ECM (Tomcat) server, according to cocoon install 

getting following error when I try and start ECM server


2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /staging )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /admin )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /books )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /cocoon )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /ecm )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /ecmadmin )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /examples )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx(  )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /test )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /webdav )
2002-02-28 09:32:34 - ContextManager: Adding context Ctx( /worklist )
java.lang.NoSuchMethodError
at 
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:38)
at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:433)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:132)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at 
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Exception in thread main etInputStream.doRead(BufferedServletInputStream.java:106)
at 
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128)
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
at 
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:129)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:198)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)

Solution, ideas, comments, smart remarks gratefully accepted

Regards

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



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

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




RE: sunRise tutorial here

2002-02-28 Thread Ellis, Neil (FNB)

My thanks.

 -Original Message-
 From: Jean-Philippe Courson [SMTP:[EMAIL PROTECTED]]
 Sent: 28 February 2002 16:38
 To:   [EMAIL PROTECTED]
 Subject:  Re: sunRise tutorial here
 
 You are using tomcat 4.0.2 that causes some problems. For now, use 
 tomcat 4.0.1
 
 Ellis, Neil (FNB) wrote:
  Hi I've just installed cocoon on a linux box redhat 7.1 with sun jdk,
 tomcat
  4.0 and got this ... I've searched the web to no avail... any ideas?
  I got a 500 error with:
  javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
  exception
  at
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
 93
  5)
  at
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653
 )
  at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
 ja
  va:214)
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  66)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
 ja
  va:190)
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  66)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
  at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
 80
  )
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  66)
  at
 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv
 e.
  java:170)
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  64)
  at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
 70
  )
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  64)
  at
 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  64)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
 va
  :174)
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  66)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.jav
 a:
  1012)
  at
 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:11
 07
  )
  at java.lang.Thread.run(Thread.java:484)
  root cause 
  java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
  at
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
  at
 
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClass
 Lo
  ader.java:1631)
  at
 
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.j
 av
  a:926)
  at
 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.j
 av
  a:1360)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
  at
 
 org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(
 Ex
  caliburComponentManager.java:408)
  at org.apache.cocoon.Cocoon.configure(Cocoon.java:406)
  at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267)
  at
 
 org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:99
 1)
  at
  org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
  at
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
 91
  6)
  at
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653
 )
  at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
 ja
  va:214)
  at
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :5
  66)
  at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
 ja
  va:190)
  at
 
 

Re: sunRise tutorial here

2002-02-28 Thread Bert Van Kets

Perfect!
Exactly what I needed.  With a bit of luck I will get my authentication 
running tonight.  That's a lot quicker than in the asp days (yes, I do 
admit I was a MS guy once).  Now all the rest of the sunRuse doc makes 
sense to me.
Thanks a lot,
Bert


At 17:33 28/02/2002 +0100, you wrote:
Hi,

This afternoon, I quickly (!) wrote up a tutorial on using the
authentication components (sunRise) that were part of the
portal/authentication package we donated a couple of weeks ago.
Basically these components can be used to protect access to pipelines by
defining a handler that then authenticates the user using pipelines.

The tutorial is not pretty :-) but it should serve as an additional source
of information if you want to get started using them.

http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html

Any comments are welcome

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.com
=



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

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


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

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




switching off logging?

2002-02-28 Thread Tsui, Alban

Hi

How do you switch off logging totally in cocoon?

I have tried settings:

!--
  This parameter indicates the log level to use throughout startup of
the system.
  As soon as the logkit.xconf the setting of the logkit.xconf
configuration is
  used instead! Only for startup and if the logkit.xconf is not
readable/available
  this log level is of importance.
 
  Available levels are:
DEBUG:prints all level of log messages.
INFO: prints all level of log messages except DEBUG ones.
WARN: prints all level of log messages except DEBUG and INFO
ones.
ERROR:prints all level of log messages except DEBUG, INFO
and WARN ones.
FATAL-ERROR: prints only log messages of this level
--
init-param
  param-namelog-level/param-name
  param-valueFATAL-ERROR/param-value
/init-param


but cocoon is still logging ... by producing core.log..

What other parameters that I need to change?


Alban

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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

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




Re: switching off logging?

2002-02-28 Thread Nicola Ken Barozzi

From: Tsui, Alban [EMAIL PROTECTED]

 Hi
 
 How do you switch off logging totally in cocoon?
... 

In the comments, there is:
 the logkit.xconf configuration is used 
...
 Only for startup and if the logkit.xconf is not
 readable/available this log level is of importance.

So you should look in logkit.xconf and configure it there.

-- 
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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

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




Old Content to XHTML

2002-02-28 Thread Colm O'Riordan

Hi Guys,

I was wondering whether anyone knows of an effective way of converting
old html content, from a content management system into Valid XML /
XHTML ? I know its slightly outside the biref of this list but it
relates to using old content within a Cocoon project and I need to find
the most cost effective way of doing a batch job to see if there is a
way of avoiding a manual file by file migration.
Suggestions appreciated.

All the best,

ColmOR.

--
Colm O'Riordan | Director
Communicraft
mobile: 353 86 2225078
web: www.communicraft.com



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

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




Re: Old Content to XHTML

2002-02-28 Thread Tony Collen

Colm O'Riordan wrote:

Hi Guys,

I was wondering whether anyone knows of an effective way of converting
old html content, from a content management system into Valid XML /
XHTML ? I know its slightly outside the biref of this list but it
relates to using old content within a Cocoon project and I need to find
the most cost effective way of doing a batch job to see if there is a
way of avoiding a manual file by file migration.
Suggestions appreciated.

Tidy should do the trick:

http://www.w3.org/People/Raggett/tidy/


Regards,

Tony


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

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




RES: Old Content to XHTML

2002-02-28 Thread Gustavo Fernandes

Take a look at the HTML generator.
The html generator reads an html document from the local file system or
from any url. It acts similar to the file generator with the difference that
it reads html documents and converts them using jtidy to xhtml.


-Mensagem original-
De: Colm O'Riordan [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 28 de fevereiro de 2002 21:03
Para: [EMAIL PROTECTED]
Assunto: Old Content to XHTML


Hi Guys,

I was wondering whether anyone knows of an effective way of converting
old html content, from a content management system into Valid XML /
XHTML ? I know its slightly outside the biref of this list but it
relates to using old content within a Cocoon project and I need to find
the most cost effective way of doing a batch job to see if there is a
way of avoiding a manual file by file migration.
Suggestions appreciated.

All the best,

ColmOR.

--
Colm O'Riordan | Director
Communicraft
mobile: 353 86 2225078
web: www.communicraft.com



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

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



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

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




Cannot get MySQL pool connection

2002-02-28 Thread Paul Caton

I'm running Cocoon 2.01 under Tomcat 4.0.2 and Java 1.3.1 on MacOS
X. I've set up a MySQL database called picodb. In my cocoon.xconf file
I've set up the connection as follows:

   jdbc name=picodb_mysql_pool
 pool-controller min=5 max=10/
 auto-committrue/auto-commit
 dburljdbc:mysql://[hostname]/picodb/dburl
 usernobody/user
 password/password
   /jdbc

(Obviously I have the real host name in my actual file)

I've created an XSP page to query the database and it accords exactly
with all the example ESQL pages I've seen in the various Cocoon
tutorials. However, when I call that page I get the message:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
get the datasource
org.apache.avalon.excalibur.datasource.NoAvailableConnectionException:
There are no connections in the pool, check your settings


I've successfully interacted with the database as user nobody using
PHP, so I know the database is up and running. I've checked that the
MySQL driver is being loaded as an init-param in the web.xml file;
I've also checked that the correct MySQL driver class is in the
mm.mysql-2.0.11-bin.jar file in /WEB-INF/lib/. I've checked the FAQ
and mailing list archives, and I see that other people have had a
similar problem, but I've tried all the suggestions I've seen so far
(eg. checking the MySQL driver class is really there; putting 3306 as
the port number on the dburl value) and nothing has worked. Does
anyone have any other ideas I might try?

Paul.

-- 
Paul Caton
Electronic Publications Editor
Women Writers Project

 e-mail: [EMAIL PROTECTED]
tel: (401) 863-3619
address: Box 1841, Brown University, Providence RI 02912




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

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




Re: Old Content to XHTML

2002-02-28 Thread Bert Van Kets

I'd suggest Tidy (http://sourceforge.net/projects/tidy) or JTidy 
(http://sourceforge.net/projects/jtidy) from Sourceforge.  You can 
configure them to adjust errors found in the source HTML.

Come to think of it.  Has anyone thought of implementing JTidy in the 
standard html serialiser to minimize the bytes sent to the browser?  JTidy 
can filter out all the unnecessary whitespace in the html.  This can mean 
an average saving of 20% on the downloaded file size (read: a download 
speed increase of 20%!!)

Bert

At 18:03 28/02/2002 -0600, you wrote:
Hi Guys,

I was wondering whether anyone knows of an effective way of converting
old html content, from a content management system into Valid XML /
XHTML ? I know its slightly outside the biref of this list but it
relates to using old content within a Cocoon project and I need to find
the most cost effective way of doing a batch job to see if there is a
way of avoiding a manual file by file migration.
Suggestions appreciated.

All the best,

ColmOR.

--
Colm O'Riordan | Director
Communicraft
mobile: 353 86 2225078
web: www.communicraft.com



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

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


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

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




Validate xhtml

2002-02-28 Thread Stephen Ng

Right now Cocoon takes (possibly malformed?) html, and runs it through a
program to tidy up the html before shooting it to the browser.

I would like to do something like the opposite of that.  I believe my
code already generates valid xhtml, and don't need to take the extra
processing time to have it cleaned up.  Presumably I can do this by
using the xml serializer, but changing the output type to html?

But I would like to go further than this and have a transformer which
checks my xhtml against a dtd, and give me an error if it is
nonconformant.  (I'd use the transformer only during development).

Has anyone ever tried this?

Steve


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

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




RE: Cocoon and Jetty??

2002-02-28 Thread Brad Cox

At 11:02 AM -0500 2/28/02, Vadim Gritsenko wrote:
Apparently you had previous version of Cocoon.
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101183982808469w=2
Read solution number (6)

Thanks. But re: Do not forget to remove Cocoon's working directory!!!

Where is cocoon's working directory?


  -Original Message-
  From: Brad Cox [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 28, 2002 9:50 AM
  To: [EMAIL PROTECTED]
  Subject: Cocoon and Jetty??

  I'm new to cocoon. Just downloaded it yesterday and can't get it to
run.

  AFAIK Jetty doesn't expand wars, so I expanded it manually into
  /cocoon/war. /cocoon and /jetty are symlinks to /usr/local/realdir.
  Configured jetty to treat /cocoon/war as a webapp as always. In
  particular, in /etc/jetty.xml:

  Call name=addWebApplication
  Arg/cocoon/*/Arg
  Arg/cocoon/war//Arg
  Arg/jetty/etc/webdefault.xml/Arg
  Arg type=booleanfalse/Arg
  /Call

  and in apache's httpd.conf add.

  ProxyPass /cocoon http://localhost:8080/cocoon

  I built cocoon as described in the install, modified to use jetty
  instead of tomcat:

  ./build.sh  -Dinclude.webapp.libs=yes
  -Dinstall.war=/jetty/webapps webapp

  The Jetty logs are normal except that they now show Server 1.6 on the
  air, hit ^C to abort, presumably from cocoon.

  All this on Linux RH 7.0, Jetty (latest), and IBM SDK 1.3.1 (latest).
  For Cocoon, same results with the release version and via CVS
  checkout/rebuild.

  Can someone help me get on the air?

  sitemap.log

  ERROR   (2002-02-28) 09:28.11:234   [sitemap](/cocoon/)
  SocketListener-0/Handler: Error compiling sitemap
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
  at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
  ultComponentFactory.java:172)
  at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
  readSafeComponentHandler.java:84)
  at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
  (GeneratorSelector.java:165)
  at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
  ramGeneratorImpl.java:251)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
  at java.lang.Thread.run(Thread.java:498)

  error.log
  ERROR   (2002-02-28) 09:28.11:269[access](/cocoon/)
  SocketListener-0/CocoonServlet: Problem with servlet
  org.apache.cocoon.ProcessingException: Error compiling sitemap:
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
  at java.lang.Thread.run(Thread.java:498)
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
  at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
  ultComponentFactory.java:172)
  at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
  readSafeComponentHandler.java:84)
  at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
  (GeneratorSelector.java:165)
  at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
  ramGeneratorImpl.java:251)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
  at java.lang.Thread.run(Thread.java:498)
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
  at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
  ultComponentFactory.java:172)
  at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
  readSafeComponentHandler.java:84)
  at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
  (GeneratorSelector.java:165)
  at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
  ramGeneratorImpl.java:251)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
  at java.lang.Thread.run(Thread.java:498)

  access.log
  INFO(2002-02-28) 09:27.47:710   [access](/cocoon/)
  SocketListener-1/CocoonServlet: '' Processed by Apache Cocoon
  2.0.2-dev in 410 milliseconds.
  DEBUG   (2002-02-28) 09:28.11:167   [access](/cocoon/)
  SocketListener-0/AbstractEnvironment: Resolving 'sitemap.xmap' in
  context 'file:/cocoon/war/'
  DEBUG   (2002-02-28) 09:28.11:168   [access](/cocoon/)
  SocketListener-0/AbstractEnvironment: Resolved to
  'file:/cocoon/war/sitemap.xmap'
  DEBUG   (2002-02-28) 09:28.11:168   [access](/cocoon/)
  SocketListener-0/AbstractEnvironment: Resolving '' in 

RE: Cocoon and Jetty??

2002-02-28 Thread Bert Van Kets



Thanks. But re: Do not forget to remove Cocoon's working directory!!!

Where is cocoon's working directory?

tomcat/work/localhost/cocoon is the default work directory


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

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




java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver

2002-02-28 Thread David Parry

I've been trying to get Cocoon 2.0.1 to work with Tomcat 4.0.2 on MacOSX
10.1.3 (with and without the recent Java Update). Tomcat seems to be
working fine... can get servlets and JSPs to work fine.

I've tried putting the cocoon.war into the webapps folder, and also doing
a build of the cocoon.war file into the same place... same results.

What I'm seeing when I go to http://localhost:8080/cocoon is

Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error

type Exception report
...
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
lotsa stuff deleted
root cause
java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver


Looking around some of the FAQ's and stuff, this would tend to indicate a
problem with Xalan and/or JAXP I remember there were issues with this
in the older Tomcat, hence the notes in the FAQ about replacing JAXP...
but I thought this wasn't the case with Tomcat 4.0.

Any suggestions here? Should I get a new JAXP? Should I replace JAXP with
Xalan and/or Xerces? Am I just making wild guesses here?

for what it's worth, these are my environment variables:

setenv PATH ${PATH}:/Users/djp/dev/ant/bin:/Users/djp/bin
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Home
setenv CATALINA_HOME /Users/djp/dev/tomcat
setenv TOMCAT_HOME $CATALINA_HOME

Thanks in advance.


---
David Parry

Pronoic (the opposite of paranoic):
forces are conspiring to make your life better.





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

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




New to Cocoon2 - Can't start - No errors

2002-02-28 Thread Bruce Perryman

Hi,

I got the latest Cocoon2 source from CVS, built it
successfully and place the cocoon.war file in my
CATALINA_HOME/webapps directory. When trying to access
http://localhost:8080/cocoon, it hangs and reports no
errors in the log files.
I'm using J2SDK1.4 on RedHat7.1 and I've tried both TC
4.02 and 4.01. I'm currently on working with TC4.01
because a lot of postings on this site discourages
4.02.
I've also tried some of the suggestions posted on the
site (ie: copying jar files to TCs common/lib dir) but
nothing seems to work.
Any help, manual, readme, etc. would be appreciated greatly.

__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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

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




Install Cocoon with Resin 2.0.5

2002-02-28 Thread Antonio Serrano



I want install cocoon with Resin 2.0.5, but ocurr a error. The 
erroris : 
java.lang.NoSuchMethodError 
atorg.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:88) 
atorg.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:64) 
atorg.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:745) 
atorg.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:225) 
atcom.caucho.server.http.Application.createServlet(Application.java:2834) 
atcom.caucho.server.http.Application.loadServlet(Application.java:2793) 
atcom.caucho.server.http.Application.initServlets(Application.java:1827) 
at 
com.caucho.server.http.Application.init(Application.java:1762) 
atcom.caucho.server.http.VirtualHost.restartApplication(VirtualHost.java:1649) 
atcom.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:1277) 
atcom.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1040) 
atcom.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:337) 
atcom.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270) 
at 
com.caucho.server.TcpConnection.run(TcpConnection.java:140) 
at java.lang.Thread.run(Thread.java:484)I have read in faq that it 
error is for old set of librariesinstalled, this library is Xerces. If 
I change the library in thedirectory /lib of the Resin, it don´t 
start. I have probe to buildcocoon with the library Xerces that 
contain Resin, but ocurr a errorto build. How I can build 
cocoon?


Portal example working on one machine, not on another

2002-02-28 Thread Baer Peter

We consider to use the authentication components for a project here.
In order to learn, how they can be used, we wanted to examine the 
example. However, it works on my machine at home, but not in the office.


After login I see the error message as shown below.


Both machines are SuSE Linux 7.3 with Blackdown J2SDK 1.3.1_02a,
Tomcat 4.0.1 binary release and C2 development snapshot (latest, always
the same version, on the office machine I have additionally tried out 
the last seven dev snapshots).


Everything works fine, at home I can even use the Slashdot XML feed
example (not the Moreover.com, however), while in the office this fails,
probably because we have a proxy.
The proxy cannot be the cause of my problem on the office Linux machine, 
because on MacOS 9 / X and Windows machines in the same network the 
portal and auth. example works just fine.


Can anyone have a look and tell me what this error message wants to tell
me? I have no idea! Thanks in advance!


Here goes my blues:
__


Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server 
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)

root cause

java.lang.NoSuchMethodError
at 
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1185)
at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
at 
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
at 
org.apache.cocoon.environment.http.HttpSession.setAttribute(HttpSession.java:244)
at org.apache.cocoon.sunshine.sunrise.SunRise.storeHandlers(SunRise.java:324)
at org.apache.cocoon.sunshine.sunrise.SunRise.authenticate(SunRise.java:866)
at 
org.apache.cocoon.sunshine.sunrise.acting.LoginAction.act(LoginAction.java:128)
at org.apache.cocoon.www.sitemap_xmap.matchN10395(sitemap_xmap.java:4489)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3049)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2941)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at 

RE: Help connection Cocoon2 to Oracle8

2002-02-28 Thread Luca Morandini

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 28, 2002 12:24 PM
 To: [EMAIL PROTECTED]
 Subject: Help connection Cocoon2 to Oracle8

 The database driver is classes102.zip and I am able to connect to the same
 database with same driver with standalone java application.
 Environment is Tomcat 4,  C2  windows2000
 Any help on this will be highly appreciated

It should be classes12.zip... a typo in the message maybe ?

Anyhow, I use Oracle 8.1.7, on: Windows 2000, Tomcat 4.0.1 and Cocoon 2.0
(and it works).

These are the parameters I use:

web.xml (the one located under $TOMCAT_HOME\webassp\cocoon\WEB-INF
init-param
  param-nameload-class/param-name
  param-value
oracle.jdbc.driver.OracleDriver
  /param-value
/init-param

cocoon.xconf
datasources
jdbc name=noria
pool-controller min=5 max=10 oradb=true/
dburljdbc:oracle:thin:@localhost:1521:ORCL3/dburl
usernoria/user
passwordnoria/password
/jdbc
/datasources

Where ORCL3 is the instance's name

Best regards,

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



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

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




Re: java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver

2002-02-28 Thread David Parry

On 28/2/02 David Parry said:
I've been trying to get Cocoon 2.0.1 to work with Tomcat 4.0.2 on MacOSX
10.1.3 (with and without the recent Java Update). Tomcat seems to be
working fine... can get servlets and JSPs to work fine.

Okay... I just answered my own question thanks to a quick comment on this
list that I only just read...

use Tomcat 4.0.1 not 4.0.2

Seems to fix it and turns installation into a total no-brainer.

Sorry for wastin' time...



---
David Parry

Pronoic (the opposite of paranoic):
forces are conspiring to make your life better.





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

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




Re: Cannot get MySQL pool connection

2002-02-28 Thread Andre Thenot

Paul,

Have you put the mysql driver class in your web.xml file?

init-param
  param-nameload-class/param-name
  param-value
  ...
  org.gjt.mm.mysql.Driver
  /param-value
/init-param

HTH,

Andre.

On Thursday, February 28, 2002, at 01:17 , Paul Caton wrote:

 I'm running Cocoon 2.01 under Tomcat 4.0.2 and Java 1.3.1 on MacOS
 X. I've set up a MySQL database called picodb. In my cocoon.xconf file
 I've set up the connection as follows:

jdbc name=picodb_mysql_pool
  pool-controller min=5 max=10/
  auto-committrue/auto-commit
  dburljdbc:mysql://[hostname]/picodb/dburl
  usernobody/user
  password/password
/jdbc

 (Obviously I have the real host name in my actual file)

 I've created an XSP page to query the database and it accords exactly
 with all the example ESQL pages I've seen in the various Cocoon
 tutorials. However, when I call that page I get the message:

 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
 get the datasource
 org.apache.avalon.excalibur.datasource.NoAvailableConnectionException:
 There are no connections in the pool, check your settings


 I've successfully interacted with the database as user nobody using
 PHP, so I know the database is up and running. I've checked that the
 MySQL driver is being loaded as an init-param in the web.xml file;
 I've also checked that the correct MySQL driver class is in the
 mm.mysql-2.0.11-bin.jar file in /WEB-INF/lib/. I've checked the FAQ
 and mailing list archives, and I see that other people have had a
 similar problem, but I've tried all the suggestions I've seen so far
 (eg. checking the MySQL driver class is really there; putting 3306 as
 the port number on the dburl value) and nothing has worked. Does
 anyone have any other ideas I might try?

 Paul.


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

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




RE: Install Cocoon with Resin 2.0.5

2002-02-28 Thread Mathews, Silvy (HQP)



I did 
install cocoon on Resin 2.0.5 . I did not replace any library files in the \LIB 
directory of resin. I did a build on cocoon using the following 
command
.\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%RESIN_HOME%\webapps 
install
When I 
start the first time, everything runs fine including the database connection to 
hsql. However when I close the server and restart it, it gives me the following 
error.
Resin 
2.0.5 (built Fri Jan 11 08:29:05 PST 2002)Copyright(c) 1998-2001 Caucho 
Technology. All rights reserved.

Starting Resin on Thu, 28 Feb 2002 12:41:52 -0800 (PST)http listening 
to *:8080srun listening to 127.0.0.1:6802[2002-02-28 12:41:53.672] 
initializing application http://localhost/cocoonLoading catalog: 
/D:/silvys/resin-2.0.5/webapps/cocoon/resources/entities/catalog[2002-02-28 
12:41:56.927] initializing application http://localhost/examples/login[2002-02-28 
12:41:56.937] initializing application http://localhost/examples/tags[2002-02-28 
12:41:56.937] initializing application http://localhost/examples/templates[2002-02-28 
12:41:56.937] initializing application http://localhost/examples/xsl[2002-02-28 
12:41:56.937] initializing application http://localhost/java_tut[2002-02-28 
12:41:56.937] initializing application http://localhost/examples/navigation[2002-02-28 
12:41:56.937] initializing application http://localhost/examples/basic[2002-02-28 
12:41:56.937] initializing application http://localhost/[2002-02-28 12:41:56.937] 
initializing application http://localhost/examples/tictactoeServer.run/init: 
java.sql.SQLException: File input/output error: 
D:\silvys\resin-2.0.5\webapps\cocoon\WEB-INF\db\cocoondb.backupjava.sql.SQLException: 
File input/output error: 
D:\silvys\resin-2.0.5\webapps\cocoon\WEB-INF\db\cocoondb.backup 
at 
org.hsqldb.Trace.getError(Trace.java:180) 
at 
org.hsqldb.Trace.getError(Trace.java:144) 
at 
org.hsqldb.Trace.error(Trace.java:205) 
at 
org.hsqldb.Log.restoreBackup(Log.java:731) 
at 
org.hsqldb.Log.open(Log.java:212) 
at 
org.hsqldb.Database.init(Database.java:96) 
at 
org.hsqldb.Server.run(Server.java:137) 
at 
org.hsqldb.Server.main(Server.java:78) 
at 
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101) 
at java.lang.Thread.run(Thread.java:484)

Can 
anybody answer this for me.

Silvy 
Mathews


  -Original Message-From: Antonio Serrano 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, February 28, 2002 10:26 
  AMTo: [EMAIL PROTECTED]Subject: Install Cocoon 
  with Resin 2.0.5
  I want install cocoon with Resin 2.0.5, but ocurr a error. The 
  erroris 
  :java.lang.NoSuchMethodError 
  atorg.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:88) 
  atorg.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:64) 
  atorg.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:745) 
  atorg.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:225) 
  atcom.caucho.server.http.Application.createServlet(Application.java:2834) 
  atcom.caucho.server.http.Application.loadServlet(Application.java:2793) 
  atcom.caucho.server.http.Application.initServlets(Application.java:1827) 
  at 
  com.caucho.server.http.Application.init(Application.java:1762) 
  atcom.caucho.server.http.VirtualHost.restartApplication(VirtualHost.java:1649) 
  atcom.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:1277) 
  atcom.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1040) 
  atcom.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:337) 
  atcom.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270) 
  at 
  com.caucho.server.TcpConnection.run(TcpConnection.java:140) 
  at java.lang.Thread.run(Thread.java:484)I have read in faq that it 
  error is for old set of librariesinstalled, this library is Xerces. 
  If I change the library in thedirectory /lib of the Resin, it don´t 
  start. I have probe to buildcocoon with the library Xerces that 
  contain Resin, but ocurr a errorto build. How I can build 
  cocoon?


Re: Cannot get MySQL pool connection

2002-02-28 Thread Andre Thenot

Paul,

Please disregard my previous posting -- I didn't see the part 
where you had already checked web.xml.

I am also on Mac OS X, and I put the mm.mysql jar in Java's ext 
directory, as I figured pretty much anything I do on that 
machine will appreciate having mysql available. Here's the 
complete path:

/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/mm.
mysql-2.0.8-bin.jar

A.

On Thursday, February 28, 2002, at 01:17 , Paul Caton wrote:


 I've successfully interacted with the database as user nobody using
 PHP, so I know the database is up and running. I've checked that the
 MySQL driver is being loaded as an init-param in the web.xml file;
 I've also checked that the correct MySQL driver class is in the
 mm.mysql-2.0.11-bin.jar file in /WEB-INF/lib/. I've checked the FAQ
 and mailing list archives, and I see that other people have had a
 similar problem, but I've tried all the suggestions I've seen so far
 (eg. checking the MySQL driver class is really there; putting 3306 as
 the port number on the dburl value) and nothing has worked. Does
 anyone have any other ideas I might try?


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

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




RE: Install Cocoon with Resin 2.0.5

2002-02-28 Thread Vadim Gritsenko

What Cocoon version do you have? This error is already fixed in CVS (and
may be in C2.0.1 also). Try upgrading.

Vadim

-Original Message-
From: Mathews, Silvy (HQP) [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 28, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Install Cocoon with Resin 2.0.5

I did install cocoon on Resin 2.0.5 . I did not replace any library
files in the \LIB directory of resin. I did a build on cocoon using the
following command
.\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%RESIN_HOME%\webapps
install
When I start the first time, everything runs fine including the database
connection to hsql. However when I close the server and restart it, it
gives me the following error.
Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
Copyright(c) 1998-2001 Caucho Technology.  All rights reserved.
 
Starting Resin on Thu, 28 Feb 2002 12:41:52 -0800 (PST)
http listening to *:8080
srun listening to 127.0.0.1:6802
[2002-02-28 12:41:53.672] initializing application
http://localhost/cocoon
Loading catalog:
/D:/silvys/resin-2.0.5/webapps/cocoon/resources/entities/catalog
[2002-02-28 12:41:56.927] initializing application
http://localhost/examples/login
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/tags
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/templates
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/xsl
[2002-02-28 12:41:56.937] initializing application
http://localhost/java_tut
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/navigation
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/basic
[2002-02-28 12:41:56.937] initializing application http://localhost/
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/tictactoe
Server.run/init: java.sql.SQLException: File input/output error:
D:\silvys\resin-2.0.5\webapps\cocoon\WEB-INF\db\cocoondb.backup
java.sql.SQLException: File input/output error:
D:\silvys\resin-2.0.5\webapps\cocoon\WEB-INF\db\cocoondb.backup
    at org.hsqldb.Trace.getError(Trace.java:180)
    at org.hsqldb.Trace.getError(Trace.java:144)
    at org.hsqldb.Trace.error(Trace.java:205)
    at org.hsqldb.Log.restoreBackup(Log.java:731)
    at org.hsqldb.Log.open(Log.java:212)
    at org.hsqldb.Database.init(Database.java:96)
    at org.hsqldb.Server.run(Server.java:137)
    at org.hsqldb.Server.main(Server.java:78)
    at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
    at java.lang.Thread.run(Thread.java:484)
 
Can anybody answer this for me.
 
Silvy Mathews

-Original Message-
From: Antonio Serrano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 10:26 AM
To: [EMAIL PROTECTED]
Subject: Install Cocoon with Resin 2.0.5
 I want install cocoon with Resin 2.0.5, but ocurr a error. The error
 is :
 
java.lang.NoSuchMethodError
 at
 org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.
init(DefaultConfigurationBuilder.java:88)
   at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.i
nit(DefaultConfigurationBuilder.java:64)
 at
 org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:7
45)
 at
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:225)
 at
 com.caucho.server.http.Application.createServlet(Application.java:2834)
 at
 com.caucho.server.http.Application.loadServlet(Application.java:2793)
 at
 com.caucho.server.http.Application.initServlets(Application.java:1827)
 at com.caucho.server.http.Application.init(Application.java:1762)
 at
 com.caucho.server.http.VirtualHost.restartApplication(VirtualHost.java:
1649)
 at
 com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:1277)
 at
 com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1
040)
 at
 com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:3
37)
 at
 com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.jav
a:270)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
 at java.lang.Thread.run(Thread.java:484)
 I have read in faq that it error is for old set of libraries
 installed, this library is Xerces. If I change the library in the
 directory /lib of the Resin, it don´t start. I have probe to build
 cocoon with the library Xerces that contain Resin, but ocurr a error
 to build. How I can build cocoon?


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

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




RE: Install Cocoon with Resin 2.0.5

2002-02-28 Thread Mathews, Silvy (HQP)
Title: RE: Install Cocoon with Resin 2.0.5





I have version 2.0. I will try 2.0.1 and see.
Silvy


-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: RE: Install Cocoon with Resin 2.0.5



What Cocoon version do you have? This error is already fixed in CVS (and
may be in C2.0.1 also). Try upgrading.


Vadim


-Original Message-
From: Mathews, Silvy (HQP) [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 28, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Install Cocoon with Resin 2.0.5


I did install cocoon on Resin 2.0.5 . I did not replace any library
files in the \LIB directory of resin. I did a build on cocoon using the
following command
.\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%RESIN_HOME%\webapps
install
When I start the first time, everything runs fine including the database
connection to hsql. However when I close the server and restart it, it
gives me the following error.
Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
Copyright(c) 1998-2001 Caucho Technology.  All rights reserved.
 
Starting Resin on Thu, 28 Feb 2002 12:41:52 -0800 (PST)
http listening to *:8080
srun listening to 127.0.0.1:6802
[2002-02-28 12:41:53.672] initializing application
http://localhost/cocoon
Loading catalog:
/D:/silvys/resin-2.0.5/webapps/cocoon/resources/entities/catalog
[2002-02-28 12:41:56.927] initializing application
http://localhost/examples/login
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/tags
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/templates
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/xsl
[2002-02-28 12:41:56.937] initializing application
http://localhost/java_tut
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/navigation
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/basic
[2002-02-28 12:41:56.937] initializing application http://localhost/
[2002-02-28 12:41:56.937] initializing application
http://localhost/examples/tictactoe
Server.run/init: java.sql.SQLException: File input/output error:
D:\silvys\resin-2.0.5\webapps\cocoon\WEB-INF\db\cocoondb.backup
java.sql.SQLException: File input/output error:
D:\silvys\resin-2.0.5\webapps\cocoon\WEB-INF\db\cocoondb.backup
    at org.hsqldb.Trace.getError(Trace.java:180)
    at org.hsqldb.Trace.getError(Trace.java:144)
    at org.hsqldb.Trace.error(Trace.java:205)
    at org.hsqldb.Log.restoreBackup(Log.java:731)
    at org.hsqldb.Log.open(Log.java:212)
    at org.hsqldb.Database.init(Database.java:96)
    at org.hsqldb.Server.run(Server.java:137)
    at org.hsqldb.Server.main(Server.java:78)
    at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
    at java.lang.Thread.run(Thread.java:484)
 
Can anybody answer this for me.
 
Silvy Mathews


-Original Message-
From: Antonio Serrano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 10:26 AM
To: [EMAIL PROTECTED]
Subject: Install Cocoon with Resin 2.0.5
 I want install cocoon with Resin 2.0.5, but ocurr a error. The error
 is :
 
java.lang.NoSuchMethodError
 at
 org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.
init(DefaultConfigurationBuilder.java:88)
   at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.i
nit(DefaultConfigurationBuilder.java:64)
 at
 org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:7
45)
 at
 org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:225)
 at
 com.caucho.server.http.Application.createServlet(Application.java:2834)
 at
 com.caucho.server.http.Application.loadServlet(Application.java:2793)
 at
 com.caucho.server.http.Application.initServlets(Application.java:1827)
 at com.caucho.server.http.Application.init(Application.java:1762)
 at
 com.caucho.server.http.VirtualHost.restartApplication(VirtualHost.java:
1649)
 at
 com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:1277)
 at
 com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1
040)
 at
 com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:3
37)
 at
 com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.jav
a:270)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
 at java.lang.Thread.run(Thread.java:484)
 I have read in faq that it error is for old set of libraries
 installed, this library is Xerces. If I change the library in the
 directory /lib of the Resin, it don´t start. I have probe to build
 cocoon with the library Xerces that contain Resin, but ocurr a error
 to build. How I can build cocoon?



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

encoding Cp1252 is not supported

2002-02-28 Thread Sam NewYork

I recently installed Cocoon2 with JBoss-2.4.3_Tomcat-3.2.3.  I followed all 
the instructions on the installation page which involved removing parser.jar 
and jaxp.jar and replacing that with xerces-1.4.4.jar

Now when I try to work with my JSP files in another webapp outside of 
cocoon, I get the following message:

Internal Servlet Error:

org.apache.jasper.compiler.CompileException: 
D:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\webapps\ecp\jsp\navigation\top_nav_media.jsp(1,0) 
Unable to open taglibrary /WEB-INF/tlds/taglib.tld : Parse Error in the tag 
library descriptor: The encoding Cp1252 is not supported.
at 
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713)
at 
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)


My taglib.tld in the ecp webapp explicity has an ISO-8859-1 encoding in it.  
Any one have any ideas what's going on?  Any help will be appreciated.

Thanks,
Sam

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp;


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

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




Re: Cannot get MySQL pool connection

2002-02-28 Thread Paul Caton

Thanks for the suggestion, Andre. I tried it, but I just got the same
error as before :-(




On Thu, 28 Feb 2002, Andre Thenot wrote:

 I am also on Mac OS X, and I put the mm.mysql jar in Java's ext 
 directory, as I figured pretty much anything I do on that 
 machine will appreciate having mysql available. Here's the 
 complete path:
 
 /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/mm.
 mysql-2.0.8-bin.jar




-- 
Paul Caton
Electronic Publications Editor
Women Writers Project

 e-mail: [EMAIL PROTECTED]
tel: (401) 863-3619
address: Box 1841, Brown University, Providence RI 02912




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

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




Re: problems with cocoon-2.0.1 and resin-2.0.3

2002-02-28 Thread Donald Ball

On Thu, 28 Feb 2002, Torsten Curdt wrote:

 That's exactly what I had...

 ...a fresh checkout solved it. see

  http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101377449417740w=2

so you're saying that 2.0.1 is known to be broken with resin, but the
latest cvs does work?

- donald


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

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




RE: Weird problem with JDK 1.4 on win32

2002-02-28 Thread Vadim Gritsenko

Stefano,

Could you try build.bat from the CVS? Now, if JAVA_HOME is present, it
will take precedence over Java in system path.

Vadim

 -Original Message-
 From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 20, 2002 5:48 PM
 To: Apache Cocoon; Apache Cocoon Users
 Subject: Weird problem with JDK 1.4 on win32
 
 I just compiled the fresh CVS and I got a bunch of compilation errors
 such as
 
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection
 must
 be declared abstract. It does not define void setHoldability(int) from
 interface java.sql.Connection.
 [javac] public class EsqlConnection implements Connection {
 [javac]  ^
 
 and so on.
 
 The ant task should be turning that code into comments if JDBC3 is not
 found.
 
 Now, if you install JDK 1.4 on windows, it copies java.exe and
javaw.exe
 in your %WINDOWS_SYSTEM% directory (c:\winnt\system32 on my machine).
 
 But i wanted to use JDK 1.3.1 to compile Cocoon so I updated my
profile
 to have the JAVA_HOME and PATH set up correctly.
 
 The problem seems to be that Ant calls System.run() and the JDK 1.4
 java.exe is picked up, no matter what PATH definition you have.
 
 So, the JVM that runs ant is JDK 1.3, but the one used to check
 availability of JDBC3 is JDK 1.4, thus the problem.
 
 Deleting java.exe and javaw.exe from /winnt/system32 resolved the
 problem.
 
 --
 Stefano Mazzocchi  One must still have chaos in oneself to be
   able to give birth to a dancing star.
 [EMAIL PROTECTED] Friedrich Nietzsche
 


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

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




RE: encoding Cp1252 is not supported

2002-02-28 Thread Vadim Gritsenko

 From: Sam NewYork [mailto:[EMAIL PROTECTED]]
 
 I recently installed Cocoon2 with JBoss-2.4.3_Tomcat-3.2.3.  I
followed all
 the instructions on the installation page which involved removing
parser.jar
 and jaxp.jar and replacing that with xerces-1.4.4.jar
 
 Now when I try to work with my JSP files in another webapp outside of
 cocoon, I get the following message:
 
 Internal Servlet Error:
 
 org.apache.jasper.compiler.CompileException:
 D:\JBoss-2.4.3_Tomcat-
 3.2.3\tomcat\webapps\ecp\jsp\navigation\top_nav_media.jsp(1,0)
 Unable to open taglibrary /WEB-INF/tlds/taglib.tld : Parse Error in
the tag
 library descriptor: The encoding Cp1252 is not supported.
   at

org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
eEvent
 Listener.java:713)
   at

org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
Listen
 er.java:116)
 
 
 My taglib.tld in the ecp webapp explicity has an ISO-8859-1 encoding
in it.
 Any one have any ideas what's going on?  Any help will be appreciated.

What's the role of Cocoon in there?
Try tomcat-users mailing list.

Vadim

 
 Thanks,
 Sam


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

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




RE: problems with cocoon-2.0.1 and resin-2.0.3

2002-02-28 Thread Vadim Gritsenko

 From: Donald Ball [mailto:[EMAIL PROTECTED]]
 
 On Thu, 28 Feb 2002, Torsten Curdt wrote:
 
  That's exactly what I had...
 
  ...a fresh checkout solved it. see
 
 
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101377449417740w=2
 
 so you're saying that 2.0.1 is known to be broken with resin, but the
 latest cvs does work?

Haven't upgraded Resin for a while, still working on 2.0.4... But I
doubt that C2.0.1 does not work with Resin. It was working for me... And
it still does.

Vadim

 
 - donald
 



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

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




RE: encoding Cp1252 is not supported

2002-02-28 Thread Sam NewYork

You are right.  Although it only happened after I installed Cocoon2.  I'll 
check the tomcat mailing list.

Thanks again.
Sam


From: Vadim Gritsenko [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: encoding Cp1252 is not supported
Date: Thu, 28 Feb 2002 17:00:51 -0500

  From: Sam NewYork [mailto:[EMAIL PROTECTED]]
 
  I recently installed Cocoon2 with JBoss-2.4.3_Tomcat-3.2.3.  I
followed all
  the instructions on the installation page which involved removing
parser.jar
  and jaxp.jar and replacing that with xerces-1.4.4.jar
 
  Now when I try to work with my JSP files in another webapp outside of
  cocoon, I get the following message:
 
  Internal Servlet Error:
 
  org.apache.jasper.compiler.CompileException:
  D:\JBoss-2.4.3_Tomcat-
  3.2.3\tomcat\webapps\ecp\jsp\navigation\top_nav_media.jsp(1,0)
  Unable to open taglibrary /WEB-INF/tlds/taglib.tld : Parse Error in
the tag
  library descriptor: The encoding Cp1252 is not supported.
  at
 
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
eEvent
  Listener.java:713)
  at
 
org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
Listen
  er.java:116)
 
 
  My taglib.tld in the ecp webapp explicity has an ISO-8859-1 encoding
in it.
  Any one have any ideas what's going on?  Any help will be appreciated.

What's the role of Cocoon in there?
Try tomcat-users mailing list.

Vadim

 
  Thanks,
  Sam


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

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





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

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




RE: encoding Cp1252 is not supported

2002-02-28 Thread Vadim Gritsenko

It might be also xerces - 'cause you changed the parser during
installation. Check xerces's support of encodings.

Vadim

 -Original Message-
 From: Sam NewYork [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 28, 2002 5:23 PM
 To: [EMAIL PROTECTED]
 Subject: RE: encoding Cp1252 is not supported
 
 You are right.  Although it only happened after I installed Cocoon2.
I'll
 check the tomcat mailing list.
 
 Thanks again.
 Sam
 
 
 From: Vadim Gritsenko [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: encoding Cp1252 is not supported
 Date: Thu, 28 Feb 2002 17:00:51 -0500
 
   From: Sam NewYork [mailto:[EMAIL PROTECTED]]
  
   I recently installed Cocoon2 with JBoss-2.4.3_Tomcat-3.2.3.  I
 followed all
   the instructions on the installation page which involved removing
 parser.jar
   and jaxp.jar and replacing that with xerces-1.4.4.jar
  
   Now when I try to work with my JSP files in another webapp outside
of
   cocoon, I get the following message:
  
   Internal Servlet Error:
  
   org.apache.jasper.compiler.CompileException:
   D:\JBoss-2.4.3_Tomcat-
   3.2.3\tomcat\webapps\ecp\jsp\navigation\top_nav_media.jsp(1,0)
   Unable to open taglibrary /WEB-INF/tlds/taglib.tld : Parse Error
in
 the tag
   library descriptor: The encoding Cp1252 is not supported.
 at
  

org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPar
s
 eEvent
   Listener.java:713)
 at
  

org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegatin
g
 Listen
   er.java:116)
  
  
   My taglib.tld in the ecp webapp explicity has an ISO-8859-1
encoding
 in it.
   Any one have any ideas what's going on?  Any help will be
appreciated.
 
 What's the role of Cocoon in there?
 Try tomcat-users mailing list.
 
 Vadim
 
  
   Thanks,
   Sam
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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

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




Resources and parameter scopes

2002-02-28 Thread Lai, Harry

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

-- 
Harry Lai 
[EMAIL PROTECTED] 
512.342.2623 x2170 

 

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

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




Execute some logic at startup

2002-02-28 Thread Chitharanjan Das








Hello,

 Is
there a mechanism in Cocoon 2.0, where one can execute something and cache it.

 For
eg: Read all the Users and cache it an object, to do
User authentication or cache the schema of objects to execute queries etc.



 The
alternative is to cache the information after the first access
.



I would like to do the Ist
approach i.e. to have an ability to execute some logic at startup of Cocoon.



Any help in this area would be deeply appreciated ..





Regds,

Chiths







accordia,
inc 

34347 Maybird Circle

Fremont, CA 94555



650
279 1137

[EMAIL PROTECTED]



The information contained
in this communication is intended solely for the use of the individual or
entity to whom it is addressed and others authorized to receive it. It may
contain confidential or legally privileged information. If you are not the
intended recipient you are hereby notified that any disclosure, copying,
distribution or taking any action in reliance on the contents of this
information is strictly prohibited and may be unlawful. If you have received
this communication in error, please notify us immediately by responding to this
email and then delete it from your system. Accordia Inc.
is neither liable for the proper and incomplete transmission of the information
contained in this communication nor for any delay in its receipt










RE: Cocoon and Jetty??

2002-02-28 Thread Brad Cox

I'm still unable to get cocoon running on jetty. Been at it all day.

I'm using the CVS version of xml-cocoon, built according to 
instructions. I've replaced all xalan, xercse, crimson, and xml-api 
files in /jetty/lib with those from cocoon, and done everything else 
recommended in the article (below). Yes, I've removed the build 
directory (which is in /tmp in jetty's case).

Current symptoms follow. Looks like a classloader problem but danged 
if I can find it.

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does 
not implement XMLReader

description java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:368)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:331)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:294)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)


request-uri

/cocoon/


path-info

At 11:02 AM -0500 2/28/02, Vadim Gritsenko wrote:
Apparently you had previous version of Cocoon.
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101183982808469w=2
Read solution number (6)

Vadim

  -Original Message-
  From: Brad Cox [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 28, 2002 9:50 AM
  To: [EMAIL PROTECTED]
  Subject: Cocoon and Jetty??

  I'm new to cocoon. Just downloaded it yesterday and can't get it to
run.

  AFAIK Jetty doesn't expand wars, so I expanded it manually into
  /cocoon/war. /cocoon and /jetty are symlinks to /usr/local/realdir.
  Configured jetty to treat /cocoon/war as a webapp as always. In
  particular, in /etc/jetty.xml:

  Call name=addWebApplication
  Arg/cocoon/*/Arg
  Arg/cocoon/war//Arg
  Arg/jetty/etc/webdefault.xml/Arg
  Arg type=booleanfalse/Arg
  /Call

  and in apache's httpd.conf add.

  ProxyPass /cocoon http://localhost:8080/cocoon

  I built cocoon as described in the install, modified to use jetty
  instead of tomcat:

  ./build.sh  -Dinclude.webapp.libs=yes
  -Dinstall.war=/jetty/webapps webapp

  The Jetty logs are normal except that they now show Server 1.6 on the
  air, hit ^C to abort, presumably from cocoon.

  All this on Linux RH 7.0, Jetty (latest), and IBM SDK 1.3.1 (latest).
  For Cocoon, same results with the release version and via CVS
  checkout/rebuild.

  Can someone help me get on the air?

  sitemap.log

  ERROR   (2002-02-28) 09:28.11:234   [sitemap](/cocoon/)
  SocketListener-0/Handler: Error compiling sitemap
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
  at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
  ultComponentFactory.java:172)
  at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
  readSafeComponentHandler.java:84)
  at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
  (GeneratorSelector.java:165)
  at

org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Prog
  ramGeneratorImpl.java:251)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
  at java.lang.Thread.run(Thread.java:498)

  error.log
  ERROR   (2002-02-28) 09:28.11:269[access](/cocoon/)
  SocketListener-0/CocoonServlet: Problem with servlet
  org.apache.cocoon.ProcessingException: Error compiling sitemap:
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
  at java.lang.Thread.run(Thread.java:498)
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
  at

org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(Defa
  ultComponentFactory.java:172)
  at

org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(Th
  readSafeComponentHandler.java:84)
  at

org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator
  (GeneratorSelector.java:165)
  at


RE: Cocoon and Jetty??

2002-02-28 Thread Rob Finneran

Hey Brad nice to see you around again,

Take it step by step. First completely replace crimson with xerces as your
xml parser.

Remove javax.xml.jaxp.jar and org.apache.crimson.jar from jetty/lib.
Then make sure jetty loads fine WITHOUT Crimson before attempting to use
cocoon.

Although these lines come from my jboss/bin/run.bat file, they should still
be elpful.
The settings are pretty much universal:

REM *** tools.jar needs to be in CLASSPATH for JSP's to compile:
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;/jdk1.3.1_02/lib/tools.jar

REM *** Latest Xerces and Xalan (I downloaded and installed seperatly from
C2:
REM  Xerces-2_0_0 and Xalan-j_2_3_0 Configuration 
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;/src/xerces-2_0_0/xercesImpl.jar
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;/src/xerces-2_0_0/xmlParserAPIs.jar
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;/src/Xalan-j_2_3_0/bin/xalan.jar

REM set up jaxp properties to reference parser and transformer
implementations:
set
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Docum
entBuilderFactoryImpl
set
JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXP
arserFactoryImpl
set
JAXP=%JAXP% -Djavax.xml.transform.TransformerFactory=org.apache.xalan.proces
sor.TransformerFactoryImpl

REM Here how I start JBOSS:
java %JAXP% -classpath %JBOSS_CLASSPATH% org.jboss.Main %1 %2 %3 %4 %5 %6
%7 %8 %9

Hope this helps!!

Rob

-Original Message-
From: Brad Cox [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 5:31 PM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon and Jetty??


I'm still unable to get cocoon running on jetty. Been at it all day.

I'm using the CVS version of xml-cocoon, built according to
instructions. I've replaced all xalan, xercse, crimson, and xml-api
files in /jetty/lib with those from cocoon, and done everything else
recommended in the article (below). Yes, I've removed the build
directory (which is in /tmp in jetty's case).

Current symptoms follow. Looks like a classloader problem but danged
if I can find it.

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does
not implement XMLReader

description java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:377)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:368)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:331)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:294)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:498)


request-uri

/cocoon/


path-info

At 11:02 AM -0500 2/28/02, Vadim Gritsenko wrote:
Apparently you had previous version of Cocoon.
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101183982808469w=2
Read solution number (6)

Vadim

  -Original Message-
  From: Brad Cox [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 28, 2002 9:50 AM
  To: [EMAIL PROTECTED]
  Subject: Cocoon and Jetty??

  I'm new to cocoon. Just downloaded it yesterday and can't get it to
run.

  AFAIK Jetty doesn't expand wars, so I expanded it manually into
  /cocoon/war. /cocoon and /jetty are symlinks to /usr/local/realdir.
  Configured jetty to treat /cocoon/war as a webapp as always. In
  particular, in /etc/jetty.xml:

  Call name=addWebApplication
  Arg/cocoon/*/Arg
  Arg/cocoon/war//Arg
  Arg/jetty/etc/webdefault.xml/Arg
  Arg type=booleanfalse/Arg
  /Call

  and in apache's httpd.conf add.

  ProxyPass /cocoon http://localhost:8080/cocoon

  I built cocoon as described in the install, modified to use jetty
  instead of tomcat:

  ./build.sh  -Dinclude.webapp.libs=yes
  -Dinstall.war=/jetty/webapps webapp

  The Jetty logs are normal except that they now show Server 1.6 on the
  air, hit ^C to abort, presumably from cocoon.

  All this on Linux RH 7.0, Jetty (latest), and IBM SDK 1.3.1 (latest).
  For Cocoon, same results with the release version and via CVS
  checkout/rebuild.

  Can someone help me get on the air?

  sitemap.log

  ERROR   (2002-02-28) 09:28.11:234   [sitemap](/cocoon/)
  SocketListener-0/Handler: Error compiling sitemap
  java.lang.NoSuchFieldError:
  org.apache.cocoon.sitemap.AbstractSitemap: field manager not found
  at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:347)
   

Work with SVG / Taglib

2002-02-28 Thread Bednarz, education-one GmbH

Hi there,

I woul like to use my SVG compression taglib from
http://printx.org/svgembed/index.php inside Cocoon. The SVG serializer is
too large and to unstable for my purposes. Does anyone has an idea how to
move an existing jsp tag libraray to cocoon?

Thanks,

Andreas


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

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




valid value type of action fields?

2002-02-28 Thread marco

Does anyone know all the valid value of the type property of the following
tags? Which type should used agaisnt the data type of MySQL columns?

employee
  connectionpersonnel/connection
  table name=employee_table
keys
  key param=employee dbcol=id type=int mode=manual/
/keys
values
  value param=name dbcol=name type=string/
  value param=department dbcol=department_id type=int/
/values
  /table
/employee

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

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




Re: valid value type of action fields?

2002-02-28 Thread giacomo

On Fri, 1 Mar 2002, marco wrote:

Hava a look at
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/AbstractDatabaseAction.html

Giacomo

 Does anyone know all the valid value of the type property of the following
 tags? Which type should used agaisnt the data type of MySQL columns?

 employee
   connectionpersonnel/connection
   table name=employee_table
 keys
   key param=employee dbcol=id type=int mode=manual/
 /keys
 values
   value param=name dbcol=name type=string/
   value param=department dbcol=department_id type=int/
 /values
   /table
 /employee

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

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






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

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




Re: Validate xhtml

2002-02-28 Thread Nicola Ken Barozzi

From: Stephen Ng [EMAIL PROTECTED]


 Right now Cocoon takes (possibly malformed?) html, and runs it through a
 program to tidy up the html before shooting it to the browser.

And also does extra checking that JTidy doesn't do on duplicate attributes.
This *does* excat in a performance penalty, so if you are sure that your
html is xhtml, you should go with the default (xml)file Generator.

 I would like to do something like the opposite of that.  I believe my
 code already generates valid xhtml, and don't need to take the extra
 processing time to have it cleaned up.  Presumably I can do this by
 using the xml serializer, but changing the output type to html?

JTidy is run in the HTML Generation step. The output is -of course- correct
xml since Cocoon SAX pipeline processed it.

 But I would like to go further than this and have a transformer which
 checks my xhtml against a dtd, and give me an error if it is
 nonconformant.  (I'd use the transformer only during development).

 Has anyone ever tried this?

AFAIK, conformance checking is done on parsing, ie Generation time. To do
this without using a Transformer, you can just have a development pipeline
that Generates from the results of the pipeline you want to check for
conformance.

--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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

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