Help Error Catalina

2002-03-15 Thread Giuseppe De Vincenzi

Hi all,

My system win2000, TOMCAT 4.0 Cocoon2 , with following
JDK version ...
Java(TM) 2 Runtime Environment, Standard Edition 1.3.1

** Initially when i start TOMCAT, it start without any problem
and i can access it from http://localhost:8080/. Below is the start up
message shown **

** Once again, i start the TOMCAT again . the result shown
from command prompt is same as above ... no problem show . But when i check
the catalina.out ... i seen these message **

Catalina.start: LifecycleException:  Error creating server socket:
java.net.BindException: Address already in use
LifecycleException:  Error creating server socket:  java.net.BindException:
Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:483)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:477)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

?
add these lines to the catalina.sh script as appropriate
if [ -z "$CATALINA_OPTS" ] ; then
  CATALINA_OPTS="-XdoCloseWithReadPending"
fi
. But when i check
the catalina.out ... i seen ERROR
?
Bye & Thank's
  Giuseppe.







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

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




[NT2000,jdk1.3.1_01,tomcat4.0.3,cocoon2.0.1]ClassNotFoundException

2002-03-15 Thread Christian . Ribeaud

Hi,

I installed cocoon on my machine. I get a "java.lang.NoClassDefFoundError:
javax/xml/transform/URIResolver" if I try to start it although all needed
libraries are present in the %TOMCAT_HOME%\webapps\cocoon\WEB-INF\lib. The
tomcat localhost log also confirms the loading of the guilty library
"xml-apis.jar". If I put the cocoon libraries in the tomcat libraries
folder, everything works. But I would like to understand why the first
architecture does not work. I would be very grateful if someone could help
me. Thanks and have a nice day,

christian



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

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




newbie: install error "Language Exception"

2002-03-15 Thread charles gebhard

cocoon 2.0.1 - binary version
sun j2sdk1.4.0
tomcat 4.0.3
linux

howdy,
i get the following error when hitting http://localhost/cocoon/

type fatal
message Language Exception
description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 0, column 0: could not parse error message: error:
Invalid class file format in
/usr/java/j2sdk1.4.0/jre/lib/rt.jar(java/io/OutputStream.class). The
major.minor version '48.0' is too recent for this tool to understand.
(more errors omitted)

i've looked over the mail archive and couldn't find an answer. i've tried
downgrading to jdk1.3 and tomcat 4.0.1 (got different errors) and still no
luck.  i'd appreciate any help.

on a side note, is there an easier way to get cocoon running than what is
stated in the cocoon install guide?  thanks.
-chuck


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

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




Problems installing cocoon2 in IBM Visual Age for Java 3.5

2002-03-15 Thread Ali, Farhan

Hi, 
How to install cocoon2 in Visual Age for Java. After creating all projects
for the core libraries of cocoon. I am still getting some errors like
org.apache.log4j.Hierarchy is missing and some more.
Plz help me out whats the problem

Ali

-Original Message-
From: m.marggraf [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 5:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems restarting cocoon2 with WebSphere 4.0.1


Did you also tried the JSP-Samples?
(from the main entry-site -> Dynamic Content -> JSPGenerator/JSPReader)

I have problems and questions with the jsp's.
Did you also all the changes described from jack hirasawa 
for WAS3.5.4?

michael

Volker Schneider schrieb:
> 
> Dear cocoon-users,
> 
> after clearing the cocoon's working directory in WebSphere I restarted
> cocoon using the adminclient. After that, WebSphere's servlet engine hangs
> and I can't get any response from it. Maybe cocoon 2 didn't shut down
> properly. Yesterday we solved the problem by restarting the whole
WebSphere,
> but that isn't a really solution because other applications will be shut
> down as well. Does anybody know a solution for that?
> 
> Thanks, best regards
> - Volker -
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

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

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

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

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




Re: Problems restarting cocoon2 with WebSphere 4.0.1

2002-03-15 Thread m.marggraf

Did you also tried the JSP-Samples?
(from the main entry-site -> Dynamic Content -> JSPGenerator/JSPReader)

I have problems and questions with the jsp's.
Did you also all the changes described from jack hirasawa 
for WAS3.5.4?

michael

Volker Schneider schrieb:
> 
> Dear cocoon-users,
> 
> after clearing the cocoon's working directory in WebSphere I restarted
> cocoon using the adminclient. After that, WebSphere's servlet engine hangs
> and I can't get any response from it. Maybe cocoon 2 didn't shut down
> properly. Yesterday we solved the problem by restarting the whole WebSphere,
> but that isn't a really solution because other applications will be shut
> down as well. Does anybody know a solution for that?
> 
> Thanks, best regards
> - Volker -
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

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

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




Re: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread leo leonid


ok, here we go...
take a look at the attached stacktrace.

> According to my SimpleLuceneCocoonIndexerImpl version (v1.6), in this
> line ProcessingException is created which embeds IOException.
> IOException stack trace should be printed right after this stack trace.
> Could you send stack trace of this IOException?

> Vadim


java.io.FileNotFoundException: 
/usr/jakarta/jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/index/_7k.f54 
(Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:98)
at java.io.RandomAccessFile.(RandomAccessFile.java:143)
at org.apache.lucene.store.FSInputStream$Descriptor.(Unknown Source)
at org.apache.lucene.store.FSInputStream.(Unknown Source)
at org.apache.lucene.store.FSDirectory.openFile(Unknown Source)
at org.apache.lucene.index.SegmentReader.openNorms(Unknown Source)
at org.apache.lucene.index.SegmentReader.(Unknown Source)
at org.apache.lucene.index.IndexWriter.mergeSegments(Unknown Source)
at org.apache.lucene.index.IndexWriter.mergeSegments(Unknown Source)
at org.apache.lucene.index.IndexWriter.optimize(Unknown Source)
at 
org.apache.cocoon.components.search.SimpleLuceneCocoonIndexerImpl.index(SimpleLuceneCocoonIndexerImpl.java:260)
at 
org.apache.cocoon.www.hw1.dox.search.create_index_xsp.createIndex(/usr/jakarta/jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/org/apache/cocoon/www/hw1/dox/search/create_index_xsp.java:100)
at 
org.apache.cocoon.www.hw1.dox.search.create_index_xsp.generate(/usr/jakarta/jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/org/apache/cocoon/www/hw1/dox/search/create_index_xsp.java:184)
at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:260)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
at 
org.apache.cocoon.www.sitemap_xmap.matchN10249(/usr/jakarta/jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:2107)
at 
org.apache.cocoon.www.sitemap_xmap.process(/usr/jakarta/jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1694)
at 
org.apache.cocoon.www.sitemap_xmap.process(/usr/jakarta/jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1630)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:978)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
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:190)
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:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
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:468)
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.

RE: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread Vadim Gritsenko

> From: leo leonid [mailto:[EMAIL PROTECTED]]
> 
> 
> I have 1337 files in index with a temporary test setup of 8192
> descriptors at the exception.

>From previous mail:
>>>
 at 
org.apache.cocoon.components.search.SimpleLuceneCocoonIndexerImpl.index
(SimpleLuceneCocoonIndexerImpl.java:262)
 at
<<<

According to my SimpleLuceneCocoonIndexerImpl version (v1.6), in this
line ProcessingException is created which embeds IOException.
IOException stack trace should be printed right after this stack trace.
Could you send stack trace of this IOException?

Vadim

> 
> > Just curios: how many files do you have in the Lucene index
directory
> > (right before exception)?
> 
> /leo
> 


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

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




RE: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread leo leonid


I have 1337 files in index with a temporary test setup of 8192
descriptors at the exception.

> Just curios: how many files do you have in the Lucene index directory
> (right before exception)?

/leo


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

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




RE: information required

2002-03-15 Thread Vadim Gritsenko

> From: Isaac Nadar [mailto:[EMAIL PROTECTED]]
> 
> Hello,
>Iam a developer working for Megaware Technologies.
>  I have some problems of installing cocoon 2.0.x in weblogic6.1sp2..
 
>From my experience... WL6.1 has too many bugs to allow painless
installation. Stay tuned for detailed installation instructions (will
write as soon as get some time for it).

Vadim

>  1. which version of cocoon should I take.
>  2. how to get it installed.
> 
>  The instructions available at the Cocoon site is not fruitful.
> 
>  If you can give me some tips it will be very helpful to me.
> 
> Thanks,
> Regards,
> S.Isaac



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

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




RE: Security/encryption

2002-03-15 Thread Vadim Gritsenko

> From: Peter Robins [mailto:[EMAIL PROTECTED]]
> 
> Altho I can put most of my sensitive data in an RDBMS with proper
security,
> when I see things like db passwords lying around in non-secure XML
files,
> which can easily be referenced programmatically, then alarm bells
start
> ringing. I haven't found any reference anywhere to encrypting data
elements
> such as this. Can Cocoon handle this?

Peter,

How do you handle plain text DB password in the weblogic's config.xml
file? Or in the JRun server's local.properties file? Or Tomcat's
server.xml?

I guess that you can apply same technique to the Cocoon's cocoon.xconf.

PS Cocoon uses Avalon's JDBC pools, so you may want to ask this on
Avalon list.

Vadim


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

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




RE: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread Vadim Gritsenko

> From: leo leonid [mailto:[EMAIL PROTECTED]]
> 
> 
> On Friday, March 15, 2002, at 08:46  Uhr, Vadim Gritsenko wrote:
> 
> > Still, what's your OS/file limit?
> 
> RH7.2 linux:
> cputime   unlimited
> filesize  unlimited
> datasize  unlimited
> stacksize 8192 kbytes
> coredumpsize  0 kbytes
> memoryuse unlimited
> descriptors   1024
> memorylocked  unlimited
> maxproc   1535
> openfiles 1024

Just curios: how many files do you have in the Lucene index directory
(right before exception)?

Vadim

> /leo
> 


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

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




RE: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread leo leonid


On Friday, March 15, 2002, at 08:46  Uhr, Vadim Gritsenko wrote:

> Still, what's your OS/file limit?

RH7.2 linux:
cputime unlimited
filesizeunlimited
datasizeunlimited
stacksize   8192 kbytes
coredumpsize0 kbytes
memoryuse   unlimited
descriptors 1024 
memorylockedunlimited
maxproc 1535 
openfiles   1024 

/leo

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

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




RE: Building Cocoon 2.0.1 under jdk 1.4

2002-03-15 Thread Vadim Gritsenko

> From: Edward Muller [mailto:[EMAIL PROTECTED]]
> 
> I am getting the following errors building cocoon 2.0.1 under jdk 1.4
on
> linux. Is this a know issue? Is it fixed in cvs?

It's an issue of build process detecting presence of the JDBC3.0. If you
don't have jdk1.3.x (or older) in the path/classpath it should not
arise.

Check build.xml and jdbc3.present property if you want to understand
what's going on.

Vadim

> 
> /home/edwardam/cocoon-
>
2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/
EsqlCo
> nnection.java:22: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnection must
be
> declared abstract. It does not define java.sql.Statement
createStatement(int,
> int, int) from interface java.sql.Connection.
> public class EsqlConnection implements Connection {
>  ^




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

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




RE: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread Vadim Gritsenko

> From: leo leonid [mailto:[EMAIL PROTECTED]]
> 
> On Friday, March 15, 2002, at 08:46  Uhr, Vadim Gritsenko wrote:
> 
> > I guess it is because you are under DOS. You have to add some kind
of
> 
> > FILES=500
> 
> > line to the config.sys.
> 
> > Vadim
> 
> 
> maybe you better go to sleep now...

Nah, I better go home when work is over ;)

Still, what's your OS/file limit?


> and hand this problem over to your coders :-)
> 
> it seems that the resources (open file descriptors) are getting short
> maybe they are never closed. The problem occurs in traversing
> a somehow bigger file tree. I am not sure if the descriptors are lost
> on the files to index or on the traversed directory hierarchy.

Crawler/Indexer accesses Cocoon over java.net, so no files involved
here. Assuming that core Cocoon does not leak files (I never heard about
it), I would suggest you to look into Lucene's IndexWriter - may be it
takes too much files or does not close or looses them.


> code snippet from SimpleLuceneCocoonIndexerImpl.java:
> 
>   try {
> lxi = (LuceneXMLIndexer)
manager.lookup(LuceneXMLIndexer.ROLE);
> 
> writer = new IndexWriter(index, analyzer, create);
> writer.mergeFactor = this.mergeFactor;
> 
> cocoonCrawler = (CocoonCrawler)
> manager.lookup(CocoonCrawler.ROLE);
> cocoonCrawler.crawl(base_url);
> 
> Iterator cocoonCrawlerIterator = cocoonCrawler.iterator();
> while (cocoonCrawlerIterator.hasNext()) {
> URL crawl_url = (URL) cocoonCrawlerIterator.next();



> // build lucene documents from the content of the
crawl_url
> Iterator i = lxi.build(crawl_url).iterator();
> 
> // add all built lucene documents
> while (i.hasNext()) {
> writer.addDocument((Document) i.next());
> }
> }
> // optimize it
> writer.optimize();
> } catch (IOException ioe) {
> throw new ProcessingException("IOException in index()",
ioe);
> } catch (ComponentException ce) {
> [... stuff deleted ...]
> 
> 
> Thx in advance for better help...

Is this one better?

> /leo

Vadim


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

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




No more problem with Cocoon!!!

2002-03-15 Thread cyril vidal

Vadim,

All it's OK with Tomcat 4.0.1.
Thanks a lot for having helped me!
Next time, I will use the right version...

Cyril.

- Original Message -
From: "cyril vidal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 8:27 PM
Subject: Re: Installation Cocoon 2.0.1


> It still doesn't work.
> By the way, I don't understand why by just copying the cocoon.war file
into
> tomcat/webapps directory, it doesn't work.
> If read the installation instructions, for the binary version, it should,
> no?
> Something must be wrong but I really don't undertsand why (my servlet
engine
> runs well and the problem doesn't come from it)
> It's the last time I disturb the list with this problem, but I would like
so
> much It would run...
> Perhaps, with the content of my autoexec.bat, It would help:
> SET COMSPEC=C:\WINDOWS\COMMAND.COM
> SET windir=C:\WINDOWS
> SET winbootdir=C:\WINDOWS
> SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.2\bin;
> SET CLASSPATH=C:\tomcat\common\lib\servlet.jar
> SET JAVA_HOME=c:\jdk1.2
> SET CATALINA_HOME=c:\tomcat
> SET PROMPT=$p$g
> SET TEMP=C:\WINDOWS\TEMP
> SET TMP=C:\WINDOWS\TEMP
> Thanks
> Cyril.
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 15, 2002 7:43 PM
> Subject: RE: Installation Cocoon 2.0.1
>
>
> > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> >
> > Hi vadim,
> >
> > I've also followed your instructions for the binary version.
> > 1°) Instead of XercesImpl-2.0.0.jar, I've got xerces-1.4.4.jar. It
> doesn't
> > matter?
>
> No.
>
> > 2°) I apologize for my  absolute ignorance, but I don't know how to
> execute
> > these two instructions:
> > 6. Clean Cocoon:
> > > build clean
> > >
> > > 7. Build Cocoon:
> > > build -Dinclude.webapp.libs=yes webapp
> > >
>
> That's for source distribution.
>
> Vadim
>
> > May you still once help me?
> > Thanks a lot,
> > Cyril
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 14, 2002 8:57 PM
> > Subject: RE: Installation Cocoon 2.0.1
> >
> >
> > > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Vadim,
> > > >
> > > > Actually, i've downloaded the Cocoon 2.0.1 binary version.
> > > > Can't it really don't work by this way?
> > >
> > > Steps were written for src version. You can try with binary version
> > > also. First unpack cocoon.war in tomcat/webapps/cocoon, remove
> > > cocoon.war; then follow instructions, only instead of lib/core
> directory
> > > you will have tomcat/cocoon/WEB-INF/lib directory.
> > >
> > > PS remove also tomcat/work/* directories.
> > >
> > > Vadim
>
> 
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




No more problem with Cocoon

2002-03-15 Thread cyril vidal

Vadim,

With Tomcat 4.0.1, all is OK!!!
Thanks a lot for having helped me.
Next time, I will use the right version...
Cyril
- Original Message -
From: "cyril vidal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 8:27 PM
Subject: Re: Installation Cocoon 2.0.1


> It still doesn't work.
> By the way, I don't understand why by just copying the cocoon.war file
into
> tomcat/webapps directory, it doesn't work.
> If read the installation instructions, for the binary version, it should,
> no?
> Something must be wrong but I really don't undertsand why (my servlet
engine
> runs well and the problem doesn't come from it)
> It's the last time I disturb the list with this problem, but I would like
so
> much It would run...
> Perhaps, with the content of my autoexec.bat, It would help:
> SET COMSPEC=C:\WINDOWS\COMMAND.COM
> SET windir=C:\WINDOWS
> SET winbootdir=C:\WINDOWS
> SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.2\bin;
> SET CLASSPATH=C:\tomcat\common\lib\servlet.jar
> SET JAVA_HOME=c:\jdk1.2
> SET CATALINA_HOME=c:\tomcat
> SET PROMPT=$p$g
> SET TEMP=C:\WINDOWS\TEMP
> SET TMP=C:\WINDOWS\TEMP
> Thanks
> Cyril.
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 15, 2002 7:43 PM
> Subject: RE: Installation Cocoon 2.0.1
>
>
> > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> >
> > Hi vadim,
> >
> > I've also followed your instructions for the binary version.
> > 1°) Instead of XercesImpl-2.0.0.jar, I've got xerces-1.4.4.jar. It
> doesn't
> > matter?
>
> No.
>
> > 2°) I apologize for my  absolute ignorance, but I don't know how to
> execute
> > these two instructions:
> > 6. Clean Cocoon:
> > > build clean
> > >
> > > 7. Build Cocoon:
> > > build -Dinclude.webapp.libs=yes webapp
> > >
>
> That's for source distribution.
>
> Vadim
>
> > May you still once help me?
> > Thanks a lot,
> > Cyril
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 14, 2002 8:57 PM
> > Subject: RE: Installation Cocoon 2.0.1
> >
> >
> > > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Vadim,
> > > >
> > > > Actually, i've downloaded the Cocoon 2.0.1 binary version.
> > > > Can't it really don't work by this way?
> > >
> > > Steps were written for src version. You can try with binary version
> > > also. First unpack cocoon.war in tomcat/webapps/cocoon, remove
> > > cocoon.war; then follow instructions, only instead of lib/core
> directory
> > > you will have tomcat/cocoon/WEB-INF/lib directory.
> > >
> > > PS remove also tomcat/work/* directories.
> > >
> > > Vadim
>
> 
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




Building Cocoon 2.0.1 under jdk 1.4

2002-03-15 Thread Edward Muller

I am getting the following errors building cocoon 2.0.1 under jdk 1.4 on
linux. Is this a know issue? Is it fixed in cvs?

/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be 
declared abstract. It does not define java.sql.Statement createStatement(int, int, 
int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be 
declared abstract. It does not define void releaseSavepoint(java.sql.Savepoint) from 
interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be 
declared abstract. It does not define void rollback(java.sql.Savepoint) from interface 
java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be 
declared abstract. It does not define java.sql.PreparedStatement 
prepareStatement(java.lang.String, int, int, int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be 
declared abstract. It does not define java.sql.PreparedStatement 
prepareStatement(java.lang.String, int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be 
declared abstract. It does not define java.sql.PreparedStatement 
prepareStatement(java.lang.String, int[]) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, java.lang.String[]) from interface
java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.Savepoint setSavepoint()
from interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.Savepoint
setSavepoint(java.lang.String) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 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.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define int getHoldability() from
interface java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
/home/edwardam/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22:
 class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.CallableStatement
prepareCall(java.lang.String, int, int, int) from interface
java.sql.Connection.
public class EsqlConnection implements Connection {
 ^
12 errors

BUILD FAILED

-- 
--
Edward Muller - Director of Information Services
LearningPatterns.com Inc.

Mobile: 973.715.0230
   NYC:

AW: XML Stored in a Database

2002-03-15 Thread Axel Honfi



-Ursprüngliche Nachricht-
Von: Alan Tibbetts [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 15. März 2002 19:52
An: [EMAIL PROTECTED]
Betreff: XML Stored in a Database


Hi

I've trawled the archives and samples, but can't see the answer to this one.

I have XML stored as a string in a database, e.g.

"Hello, this is dynamic."

I'm using XSP/Logicsheets (and my own db access classes) to retrieve this
data into another XML element, eg.

String dynamicXML = getFromDatabase();

dynamicXML.

I want this to result in:



Hello, this is dynamic.



Unfortunately, the 'dynamic XML' is being treated as text during the
transformation.  Looking at the source of the resulting HTML page I see:

lt;paragraph>Hello, this is
dynamic.

So I think my XML after the XSP is processed looks like:


lt;paragraph>Hello, this is
dynamic.


How do I get XSP/XSL to treat the data coming from the db as XML and
properly insert it into the document tree?  I thought it might be an XSL
problem, but can't see a command that looks like it will do the job.

BTW. I'm using Cocoon 2.0.1/Tomcat 4.0.1/JDK 1.3.1/Win2K

Cheers

Alan


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

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

At first glance I think that a quick and dirty way would be to define your
&-expressions in XSL so that they will be substituted while transformed.

maybe it'll help you

Axel





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

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




Re: XML Stored in a Database

2002-03-15 Thread Christian Haul

On 15.Mar.2002 -- 06:51 PM, Alan Tibbetts wrote:
> Hi
> 
> I've trawled the archives and samples, but can't see the answer to this one.

Alan, you haven't done a good job. This is a FAQ. Please look at the util
logicsheet. It allows you to include anything as XML.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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




Re: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread leo leonid

Date: Sat, 16 Mar 2002 02:40:03 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit



On Friday, March 15, 2002, at 08:46  Uhr, Vadim Gritsenko wrote:

> I guess it is because you are under DOS. You have to add some kind of

> FILES=500

> line to the config.sys.

> Vadim



maybe you better go to sleep now...

and hand this problem over to your coders :-)

it seems that the resources (open file descriptors) are getting short
maybe they are never closed. The problem occurs in traversing
a somehow bigger file tree. I am not sure if the descriptors are lost
on the files to index or on the traversed directory hierarchy.

code snippet from SimpleLuceneCocoonIndexerImpl.java:

  try {
lxi = (LuceneXMLIndexer) manager.lookup(LuceneXMLIndexer.ROLE);

writer = new IndexWriter(index, analyzer, create);
writer.mergeFactor = this.mergeFactor;

cocoonCrawler = (CocoonCrawler)
manager.lookup(CocoonCrawler.ROLE);
cocoonCrawler.crawl(base_url);

Iterator cocoonCrawlerIterator = cocoonCrawler.iterator();
while (cocoonCrawlerIterator.hasNext()) {
URL crawl_url = (URL) cocoonCrawlerIterator.next();

if (!crawl_url.getHost().equals(base_url.getHost()) ||
crawl_url.getPort() != base_url.getPort()) {

// skip urls using different host, or port than host,
// or port of base url
if (getLogger().isDebugEnabled()) {
getLogger().debug("Skipping crawling URL " +
crawl_url.toString() +
" as base_url is " + base_url.toString());
}
continue;
}

// build lucene documents from the content of the crawl_url
Iterator i = lxi.build(crawl_url).iterator();

// add all built lucene documents
while (i.hasNext()) {
writer.addDocument((Document) i.next());
}
}
// optimize it
writer.optimize();
} catch (IOException ioe) {
throw new ProcessingException("IOException in index()", ioe);
} catch (ComponentException ce) {
[... stuff deleted ...]


Thx in advance for better help...
/leo


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

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




RE: help with a sitemap problem

2002-03-15 Thread Vadim Gritsenko

Steven,

 

Take care,
Vadim

> From: Steven Sedlmeyer [mailto:[EMAIL PROTECTED]]
> 
> Ok, I've looked through the docs and near as I can tell this should be
> Ok...although it clearly isn't.  I have the following pipeline in my
> sitemap:
> 
> 
>   
> 
> 
>   
> 
> 
>   
>   
> 
>   
>   
> 
> 
> 
>   
> 
> 
> If I understand things correctly this should result in the agregation
of the
> file bar.xml and the xml output of the pipeline matching the request
for
> /foo defined above being transformed by the stylesheet foobar.xsl when
I
> request bar.html.  Instead I get the following error at the browser:
> 
> type fatal
> message Language Exception
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error
compiling
> sitemap_xmap: Line 1262, column 97: '}' expected Line 0, column 0: 1
error
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> 
> And, when I check out the generated java source the final method in
the file
> is the following:
> 
> //line numbers not supported with wildc// method for handling
"bar.html"
> private final boolean matchN101A6(
> SitemapRedirector redirector,
> Environment environment,
StreamPipeline
> pipeline,
> EventPipeline eventPipeline,
> boolean internalRequest, List
> listOfMaps)
> throws ConnectionResetException,
ResourceNotFoundException,
> Exception {
> Map map;
> Parameters param;
> Map objectModel = environment.getObjectModel();
> String cocoon_view = environment.getView();
> String cocoon_action = environment.getAction();
> final boolean debug_enabled = getLogger().isDebugEnabled();
> 
> if ((map = matches("wildcard", matcher_N101A6_expr,
"bar.html",
> Parameters.EMPTY_PARAMETERS, objectModel)) != null) {
>   if (debug_enabled) getLogger().debug("Matched wildcard
pattern
> bar.html");
>   listOfMaps.add (map);
>   this.dumpParameters(listOfMaps);
> 
> 
> 
> getLogger().debug("Component
> aggregator:!content-aggregator!(Parameters.EMPTY_PARAMETERS)");
> eventPipeline.setGenerator ("!content-aggregator!",
>   null, Parameters.EMPTY_PARAMETERS
> );
> 
> ContentAggregator contentAggregator_N101A9 =
> (ContentAggregator)eventPipeline.getGenerator();
> 
> 
> No, I didn't miss part of it, that's where it stops...  I'm getting
really
> tired of scratching my head and looking stupid when people ask me if
I've
> gotten it to work yet so I'm getting desperate for some help.  I'd
really
> appreciate it if someone could at least point me in the right
direction to
> figure this out.
> 
> Thanks in advance,
> 
> Steve Sedlmeyer
> [EMAIL PROTECTED]


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

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




Re: help with a sitemap problem

2002-03-15 Thread Ivan Rubin

Steven,

cocoon:/ it's ok, and who's matching what does not matter at sitemap 
compilation.



you have to specify the root element for your aggregated content.

Sorry if I mislead you,

Ivan

Steven Sedlmeyer wrote:

> Ok, I've looked through the docs and near as I can tell this should be
> Ok...although it clearly isn't.  I have the following pipeline in my
> sitemap:
> 
> 
>   
> 
> 
>   
> 
> 
>   
>   
> 
>   
>   
> 
> 
> 
>   
> 
> 
> If I understand things correctly this should result in the agregation of the
> file bar.xml and the xml output of the pipeline matching the request for
> /foo defined above being transformed by the stylesheet foobar.xsl when I
> request bar.html.  Instead I get the following error at the browser:
> 
> type fatal
> message Language Exception
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> sitemap_xmap: Line 1262, column 97: '}' expected Line 0, column 0: 1 error 
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> 
> And, when I check out the generated java source the final method in the file
> is the following:
> 
> //line numbers not supported with wildc// method for handling "bar.html"
> private final boolean matchN101A6(
> SitemapRedirector redirector,
> Environment environment, StreamPipeline
> pipeline,
> EventPipeline eventPipeline,
> boolean internalRequest, List
> listOfMaps)
> throws ConnectionResetException, ResourceNotFoundException,
> Exception {
> Map map;
> Parameters param;
> Map objectModel = environment.getObjectModel();
> String cocoon_view = environment.getView();
> String cocoon_action = environment.getAction();
> final boolean debug_enabled = getLogger().isDebugEnabled();
> 
> if ((map = matches("wildcard", matcher_N101A6_expr, "bar.html",
> Parameters.EMPTY_PARAMETERS, objectModel)) != null) {
>   if (debug_enabled) getLogger().debug("Matched wildcard pattern
> bar.html");
>   listOfMaps.add (map);
>   this.dumpParameters(listOfMaps);
>   
> 
> 
> getLogger().debug("Component
> aggregator:!content-aggregator!(Parameters.EMPTY_PARAMETERS)");
> eventPipeline.setGenerator ("!content-aggregator!",
>   null, Parameters.EMPTY_PARAMETERS
> );
>   
> ContentAggregator contentAggregator_N101A9 =
> (ContentAggregator)eventPipeline.getGenerator();
> 
> 
> No, I didn't miss part of it, that's where it stops...  I'm getting really
> tired of scratching my head and looking stupid when people ask me if I've
> gotten it to work yet so I'm getting desperate for some help.  I'd really
> appreciate it if someone could at least point me in the right direction to
> figure this out.
> 
> Thanks in advance,
> 
> Steve Sedlmeyer
> [EMAIL PROTECTED]
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 



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

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




Re: problem with cocoon 2

2002-03-15 Thread Mariano



Can anybody help me with this problem... I don'0t 
understand why i can't see any page.
 


Re: help with a sitemap problem

2002-03-15 Thread Ivan Rubin

Steven,

I don't know if this is generating (sic) your problem,
but src="cocoon:/foo" in your map:part aggregation is not refering to 
the pipeline you're defining there under the name "foo"

It should be just "foo"? cocoon:/xxx refers to an internal pipeline 
named 

And who's handling "content/bar.xml"?

Ivan

Steven Sedlmeyer wrote:

> Ok, I've looked through the docs and near as I can tell this should be
> Ok...although it clearly isn't.  I have the following pipeline in my
> sitemap:
> 
> 
>   
> 
> 
>   
> 
> 
>   
>   
> 
>   
>   
> 
> 
> 
>   
> 
> 
> If I understand things correctly this should result in the agregation of the
> file bar.xml and the xml output of the pipeline matching the request for
> /foo defined above being transformed by the stylesheet foobar.xsl when I
> request bar.html.  Instead I get the following error at the browser:
> 
> type fatal
> message Language Exception
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> sitemap_xmap: Line 1262, column 97: '}' expected Line 0, column 0: 1 error 
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> 
> And, when I check out the generated java source the final method in the file
> is the following:
> 
> //line numbers not supported with wildc// method for handling "bar.html"
> private final boolean matchN101A6(
> SitemapRedirector redirector,
> Environment environment, StreamPipeline
> pipeline,
> EventPipeline eventPipeline,
> boolean internalRequest, List
> listOfMaps)
> throws ConnectionResetException, ResourceNotFoundException,
> Exception {
> Map map;
> Parameters param;
> Map objectModel = environment.getObjectModel();
> String cocoon_view = environment.getView();
> String cocoon_action = environment.getAction();
> final boolean debug_enabled = getLogger().isDebugEnabled();
> 
> if ((map = matches("wildcard", matcher_N101A6_expr, "bar.html",
> Parameters.EMPTY_PARAMETERS, objectModel)) != null) {
>   if (debug_enabled) getLogger().debug("Matched wildcard pattern
> bar.html");
>   listOfMaps.add (map);
>   this.dumpParameters(listOfMaps);
>   
> 
> 
> getLogger().debug("Component
> aggregator:!content-aggregator!(Parameters.EMPTY_PARAMETERS)");
> eventPipeline.setGenerator ("!content-aggregator!",
>   null, Parameters.EMPTY_PARAMETERS
> );
>   
> ContentAggregator contentAggregator_N101A9 =
> (ContentAggregator)eventPipeline.getGenerator();
> 
> 
> No, I didn't miss part of it, that's where it stops...  I'm getting really
> tired of scratching my head and looking stupid when people ask me if I've
> gotten it to work yet so I'm getting desperate for some help.  I'd really
> appreciate it if someone could at least point me in the right direction to
> figure this out.
> 
> Thanks in advance,
> 
> Steve Sedlmeyer
> [EMAIL PROTECTED]
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 



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

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




RE: Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread Vadim Gritsenko

I guess it is because you are under DOS. You have to add some kind of 

FILES=500

line to the config.sys.

Vadim

> From: leo leonid [mailto:[EMAIL PROTECTED]]
> 
> 
> When I try to apply the lucene indexer of the current 2.0.2-dev
> CVS-version (which works fine on the C2-documentation files) to my
site,
> I  get an error:  "Too many open files". The error occurs only after
> indexing normally for ca. 30 min.
> Does anybody know what might be wrong there?
> thanks
> /Leo
> 
> DEBUG   (2002-03-15) 18:12.22:954
> [sitemap.generator.serverpages](/hw1/search/create)
> HttpProcessor[8080][2]/ServerPagesGenerator: ProcessingException in
> generate()
> org.apache.cocoon.ProcessingException: IOException in index():
> java.io.FileNotFoundException: /usr/jakarta/jakarta-
> tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/index/_7k.f54 (Too
many
> open files)
>  at
>
org.apache.cocoon.components.search.SimpleLuceneCocoonIndexerImpl.index
> (SimpleLuceneCocoonIndexerImpl.java:262)
>  at
>
org.apache.cocoon.www.hw1.dox.search.create_index_xsp.createIndex(/usr/j
akarta
> /
> jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-
> files/org/apache/cocoon/www/hw1/dox/search/create_index_xsp.java:100)
> ...


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

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




passing parameters to sunlets

2002-03-15 Thread Halacsy Peter

Hello,
I tried to integrate some application to sunSpot portal but I can't route parameters 
to sunlets. For example I want to integrate a simple calendar application that 
produces a html calendar. You can click on days, weeks to change view. I code the 
parameters into links. The sunSpot generator gets the parameter but doesn't gives them 
to my sunlet.

Any idea?

BTW has anybody use sunSpot in a heavy loaded environment (100,000 user 
200,000-300,000 request a day)

peter

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

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




help with a sitemap problem

2002-03-15 Thread Steven Sedlmeyer

Ok, I've looked through the docs and near as I can tell this should be
Ok...although it clearly isn't.  I have the following pipeline in my
sitemap:


  


  


  
  

  
  



  


If I understand things correctly this should result in the agregation of the
file bar.xml and the xml output of the pipeline matching the request for
/foo defined above being transformed by the stylesheet foobar.xsl when I
request bar.html.  Instead I get the following error at the browser:

type fatal
message Language Exception
description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 1262, column 97: '}' expected Line 0, column 0: 1 error 
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet

And, when I check out the generated java source the final method in the file
is the following:

//line numbers not supported with wildc// method for handling "bar.html"
private final boolean matchN101A6(
SitemapRedirector redirector,
Environment environment, StreamPipeline
pipeline,
EventPipeline eventPipeline,
boolean internalRequest, List
listOfMaps)
throws ConnectionResetException, ResourceNotFoundException,
Exception {
Map map;
Parameters param;
Map objectModel = environment.getObjectModel();
String cocoon_view = environment.getView();
String cocoon_action = environment.getAction();
final boolean debug_enabled = getLogger().isDebugEnabled();

if ((map = matches("wildcard", matcher_N101A6_expr, "bar.html",
Parameters.EMPTY_PARAMETERS, objectModel)) != null) {
  if (debug_enabled) getLogger().debug("Matched wildcard pattern
bar.html");
  listOfMaps.add (map);
  this.dumpParameters(listOfMaps);
  


getLogger().debug("Component
aggregator:!content-aggregator!(Parameters.EMPTY_PARAMETERS)");
eventPipeline.setGenerator ("!content-aggregator!",
  null, Parameters.EMPTY_PARAMETERS
);
  
ContentAggregator contentAggregator_N101A9 =
(ContentAggregator)eventPipeline.getGenerator();


No, I didn't miss part of it, that's where it stops...  I'm getting really
tired of scratching my head and looking stupid when people ask me if I've
gotten it to work yet so I'm getting desperate for some help.  I'd really
appreciate it if someone could at least point me in the right direction to
figure this out.

Thanks in advance,

Steve Sedlmeyer
[EMAIL PROTECTED]

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

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




Problem with SimpleLuceneCocoonIndexerImpl (Too many open files)

2002-03-15 Thread leo leonid


When I try to apply the lucene indexer of the current 2.0.2-dev 
CVS-version (which works fine on the C2-documentation files) to my site, 
I  get an error:  "Too many open files". The error occurs only after 
indexing normally for ca. 30 min.
Does anybody know what might be wrong there?
thanks
/Leo

DEBUG   (2002-03-15) 18:12.22:954   
[sitemap.generator.serverpages](/hw1/search/create) 
HttpProcessor[8080][2]/ServerPagesGenerator: ProcessingException in 
generate()
org.apache.cocoon.ProcessingException: IOException in index(): 
java.io.FileNotFoundException: /usr/jakarta/jakarta-
tomcat-4.0.2-b2/work/localhost/hw1/cocoon-files/index/_7k.f54 (Too many 
open files)
 at 
org.apache.cocoon.components.search.SimpleLuceneCocoonIndexerImpl.index
(SimpleLuceneCocoonIndexerImpl.java:262)
 at 
org.apache.cocoon.www.hw1.dox.search.create_index_xsp.createIndex(/usr/jakarta/
jakarta-tomcat-4.0.2-b2/work/localhost/hw1/cocoon-
files/org/apache/cocoon/www/hw1/dox/search/create_index_xsp.java:100)
...


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

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




RE: Installation Cocoon 2.0.1

2002-03-15 Thread Vadim Gritsenko

> From: cyril vidal [mailto:[EMAIL PROTECTED]]
> 
> It still doesn't work.
> By the way, I don't understand why by just copying the cocoon.war file
into
> tomcat/webapps directory, it doesn't work.

BECAUSE YOU HAVE TO USE Tomcat 4.0.1 FOR THIS. THEN IT RUNS OUT OF THE
BOX.


> If read the installation instructions, for the binary version, it
should,
> no?

For Tomcat 4.0.1 ONLY

Vadim


> Something must be wrong but I really don't undertsand why (my servlet
engine
> runs well and the problem doesn't come from it)
> It's the last time I disturb the list with this problem, but I would
like so
> much It would run...
> Perhaps, with the content of my autoexec.bat, It would help:
> SET COMSPEC=C:\WINDOWS\COMMAND.COM
> SET windir=C:\WINDOWS
> SET winbootdir=C:\WINDOWS
> SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.2\bin;
> SET CLASSPATH=C:\tomcat\common\lib\servlet.jar
> SET JAVA_HOME=c:\jdk1.2
> SET CATALINA_HOME=c:\tomcat
> SET PROMPT=$p$g
> SET TEMP=C:\WINDOWS\TEMP
> SET TMP=C:\WINDOWS\TEMP
> Thanks
> Cyril.
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 15, 2002 7:43 PM
> Subject: RE: Installation Cocoon 2.0.1
> 
> 
> > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> >
> > Hi vadim,
> >
> > I've also followed your instructions for the binary version.
> > 1°) Instead of XercesImpl-2.0.0.jar, I've got xerces-1.4.4.jar. It
> doesn't
> > matter?
> 
> No.
> 
> > 2°) I apologize for my  absolute ignorance, but I don't know how to
> execute
> > these two instructions:
> > 6. Clean Cocoon:
> > > build clean
> > >
> > > 7. Build Cocoon:
> > > build -Dinclude.webapp.libs=yes webapp
> > >
> 
> That's for source distribution.
> 
> Vadim
> 
> > May you still once help me?
> > Thanks a lot,
> > Cyril
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 14, 2002 8:57 PM
> > Subject: RE: Installation Cocoon 2.0.1
> >
> >
> > > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Vadim,
> > > >
> > > > Actually, i've downloaded the Cocoon 2.0.1 binary version.
> > > > Can't it really don't work by this way?
> > >
> > > Steps were written for src version. You can try with binary
version
> > > also. First unpack cocoon.war in tomcat/webapps/cocoon, remove
> > > cocoon.war; then follow instructions, only instead of lib/core
> directory
> > > you will have tomcat/cocoon/WEB-INF/lib directory.
> > >
> > > PS remove also tomcat/work/* directories.
> > >
> > > Vadim
> 
> 
> 


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

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




problem with cocoon 2

2002-03-15 Thread Mariano



hi falks,
    i have isntalled cocoon 2 under 
tomcat 4 . I have placed my war under /var/tomcat4/webapps. When i point with 
the browser to myhost:8180/cocoon I just see a "Directory List for /" but no 
file
what could it be?
thanks in advance
mariano


XML Stored in a Database

2002-03-15 Thread Alan Tibbetts

Hi

I've trawled the archives and samples, but can't see the answer to this one.

I have XML stored as a string in a database, e.g.

"Hello, this is dynamic."

I'm using XSP/Logicsheets (and my own db access classes) to retrieve this
data into another XML element, eg.

String dynamicXML = getFromDatabase();

dynamicXML.

I want this to result in:



Hello, this is dynamic.



Unfortunately, the 'dynamic XML' is being treated as text during the
transformation.  Looking at the source of the resulting HTML page I see:

lt;paragraph>Hello, this is
dynamic.

So I think my XML after the XSP is processed looks like:


lt;paragraph>Hello, this is
dynamic.


How do I get XSP/XSL to treat the data coming from the db as XML and
properly insert it into the document tree?  I thought it might be an XSL
problem, but can't see a command that looks like it will do the job.

BTW. I'm using Cocoon 2.0.1/Tomcat 4.0.1/JDK 1.3.1/Win2K

Cheers

Alan


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

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




RE: Urgent: How to invoke a stram Generator and invoke pipelines thru API calls (or Command line

2002-03-15 Thread Vadim Gritsenko

> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> 
> Hello All,



> As indicated above, the sitemap returns an SVG document for a given
XML.
> 
> The code snippet of my JSP page looks like

Hm. Why JSP?


> 
>   ...
>   <%
>   Iterator itr = request.getAttribute("Graphs");
>   String graphXML = null;
>   If (itr.hasNext()) {
>   graphXML = (String) itr.next();
>   graphXMLStream = new
> ByteArrayInputStream(graphXML.toBytes[]};
>   %>
>   //invoke the pipeline entry svgxmlstream and use
> the embed command
>   ...
>   ...
> 
>

> 
> 
> 
> My questiona are
> 
> 1.how does one invoke a pipeline with a stream type
> generator.(Preferably with a cinclude transformer)

IIRC, you should POST XML there.


> 2. Is it possible to invoke Pipelines via java API calls (not through
> URL)

See CocoonServlet.java or Main.java. Or java.net.URL.


> 3. Is there any pointer to documentation as how to use Cocoon from
> Command line

see run.bat

Vadim

 
> Thanks a lot it advance,
> 
> Regds,
> Chiths



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

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




Re: Pizza

2002-03-15 Thread Ed Jenkins

The original purpose of the XML string was to put sample data into session 
and then get it back out again.  It was a temporary measure because the 
back-end (web processor) components were not finished at that time and I 
wanted to begin testing the front end already.  Now the web processor is 
completed.  In the XSP file, the place where the function was being called 
is now commented out, so that the data I get from session is now whatever 
data is put there by the web processor.  The function was left intact, 
however, as a means of documenting what is expected from the web processor.  
I am updating it now to use StringBuffer.

Ed

---

From: Yyy Xxx <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Pizza
Date: Fri, 15 Mar 2002 07:25:03 -0800 (PST)

On a totally different level...

This has XML hard-coded inside a Cocoon XSP as a Java
string.  That's a little odd.
Isn't there some way to bring the XML out of Java and
into Cocoon where it may be better utilized?
Perhaps a refactoring is in order.

 >-Original Message-
 >From: Ed Jenkins
[mailto:[EMAIL PROTECTED]]
 >Sent: Friday, 15 March 2002 9:20
 >To: [EMAIL PROTECTED]
 >Subject: Pizza
 >
 >
 >Yesterday, we upgraded to Cocoon 2.0.2dev.  In that
 >version, in
 >cocoon.xconf, the default compiler was switched from
 >Javac to Pizza.
 >
 >Pizza is reporting some compilation errors in my XSP
 >files that were OK when
 >
 >compiled with Javac.  Also, I believe the JLS would
not
 >consider this to be
 >an error.
 >
 >Here is a small example of the code:
 >
 >
 >  private void setSomething()
 >  {
 >  String s =
 >  "
 >  
 >  three
 >  three
 >  
 >  ";
 >
request.getSession().setAttribute("something",
 >s);
 >  }
 >
 >
 >Here are the errors I'm getting:
 >
 >Line 106, column 13:  unclosed character literal
 >Line 106, column 12:  illegal start of expression
 >Line 139, column 14:  unclosed character literal
 >
 >When I change it to this, the errors go away:
 >
 >String s = "";
 >
 >I think it doesn't like it when a string literal is
split
 >up into multiple
 >lines.  What's up with that?
 >
 >I see that Pizza is made by SourceForge.  Who should
I
 >contact there to ask
 >about this?  www.sf.net is currently down.
 >
 >Ed

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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

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





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


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

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




RE: Installation Cocoon 2.0.1

2002-03-15 Thread Vadim Gritsenko

> From: cyril vidal [mailto:[EMAIL PROTECTED]]
> 
> Hi vadim,
> 
> I've also followed your instructions for the binary version.
> 1°) Instead of XercesImpl-2.0.0.jar, I've got xerces-1.4.4.jar. It
doesn't
> matter?

No.

> 2°) I apologize for my  absolute ignorance, but I don't know how to
execute
> these two instructions:
> 6. Clean Cocoon:
> > build clean
> >
> > 7. Build Cocoon:
> > build -Dinclude.webapp.libs=yes webapp
> >

That's for source distribution.

Vadim

> May you still once help me?
> Thanks a lot,
> Cyril
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 14, 2002 8:57 PM
> Subject: RE: Installation Cocoon 2.0.1
> 
> 
> > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > >
> > > Vadim,
> > >
> > > Actually, i've downloaded the Cocoon 2.0.1 binary version.
> > > Can't it really don't work by this way?
> >
> > Steps were written for src version. You can try with binary version
> > also. First unpack cocoon.war in tomcat/webapps/cocoon, remove
> > cocoon.war; then follow instructions, only instead of lib/core
directory
> > you will have tomcat/cocoon/WEB-INF/lib directory.
> >
> > PS remove also tomcat/work/* directories.
> >
> > Vadim




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

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




RE: problems with unicode 0x85

2002-03-15 Thread Vadim Gritsenko

> From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]]
> 
> > This sounds like you do not have correct encoding declared in your
xml
> > file, like:
> >
> > 
> >
> 
> Hmmm... I use UTF-8 encoding for my XML documents because I had
assumed it
> was a standard.  Am I suppose to be using something else?
> 

Yes, if you use invalid (for UTF-8) characters.

Vadim

> Rob
> 


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

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




Re: Installation Cocoon 2.0.1

2002-03-15 Thread cyril vidal

Hi vadim,

I've also followed your instructions for the binary version.
1°) Instead of XercesImpl-2.0.0.jar, I've got xerces-1.4.4.jar. It doesn't
matter?
2°) I apologize for my  absolute ignorance, but I don't know how to execute
these two instructions:
6. Clean Cocoon:
> build clean
>
> 7. Build Cocoon:
> build -Dinclude.webapp.libs=yes webapp
>
May you still once help me?
Thanks a lot,
Cyril
- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 8:57 PM
Subject: RE: Installation Cocoon 2.0.1


> > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> >
> > Vadim,
> >
> > Actually, i've downloaded the Cocoon 2.0.1 binary version.
> > Can't it really don't work by this way?
>
> Steps were written for src version. You can try with binary version
> also. First unpack cocoon.war in tomcat/webapps/cocoon, remove
> cocoon.war; then follow instructions, only instead of lib/core directory
> you will have tomcat/cocoon/WEB-INF/lib directory.
>
> PS remove also tomcat/work/* directories.
>
> Vadim
>
>
> > Cyril.
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 14, 2002 7:56 PM
> > Subject: RE: Installation Cocoon 2.0.1
> >
> >
> > > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Vadim,
> > > >
> > > > thanks for the tip.
> > > > I've read your tutorial.
> > > > Bu I don't find the cocoon directory you're talking about in step
> 2 :
> > > > xml-cocoon2\lib\core  -:(.
> > > > Could you please tell me how to see it?
> > > > I apologize for these really basics questions...
> > >
> > > xml-cocoon2 referes to place were *source Cocoon distribution* is
> > > installed. If you don't have lib/core, you must have at least lib/.
> > >
> > > If you have binary distribution, try source one. Snapshot is
> available
> > > from http://cvs.apache.org/snapshots/xml-cocoon2/, or download
> release:
> > > http://xml.apache.org/cocoon/dist/cocoon-2.0.1-src.zip
> > >
> > >
> > > Vadim
> > >
> > >
> > > > Cyril.
> > > > - Original Message -
> > > > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, March 14, 2002 6:32 PM
> > > > Subject: RE: Installation Cocoon 2.0.1
> > > >
> > > >
> > > > Read
> > > > http://marc.theaimsgroup.com/?t=10150987843&r=1&w=2
> > > >
> > > > Vadim
> > > >
> > > > -Original Message-
> > > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, March 14, 2002 12:11 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Installation Cocoon 2.0.1
> > > >
> > > > Hello!
> > > >
> > > > I'm trying to install Cocoon 2.0.1 with the servlet engine Tomcat
> > > 4.0.3
> > > > on Windows Millenium, but it doesn't work.
> > > > This is what I've done:
> > > > a) I've downloaded Cocoon on c:\cocoon (Tomcat is on c:/tomcat)
> > > > b) I've copied the file c:\cocoon\cocoon.war on c:\tomcat\webapps
> > > > c) I've run Tomcat
> > > > d) I've written http://localhost:8080/cocoon/ on IE6
> > > >
> > > > but unfortunelately, I've always the same http 500 Internal Server
> > > > Error:
> > > > exception
> > > > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
> > > threw
> > > > exception
> > > > at
> > > >
> > >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> > > > a:935)
> > > > at org.apache.catalina.core.StandardWrapper.allocate(Compiled
> > > > Code)
> > > > at
> > > >
> > >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > > > e.java:214)
> > > > at
> > > >
> > >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> > > > va:566)
> > > > 
> > > > and below this one
> > > > root cause
> > > > java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
> > > > at java.lang.ClassLoader.defineClass0(Native Method)
> > > > at java.lang.ClassLoader.defineClass(Compiled Code)
> > > > at java.security.SecureClassLoader.defineClass(Compiled Code)
> > > > at
> > > >
> > >
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled
> > > > Code)
> > > > at
> > > > org.apache.catalina.loader.WebappClassLoader.findClass(Compiled
> Code)
> > > > at
> > > > org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled
> Code)
> > > > at java.lang.ClassLoader.loadClass(Compiled Code)
> > > > at java.lang.ClassLoader.loadClass(Compiled Code)
> > > > at
> > > >
> > >
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.configur
> > > > e(Compiled Code)
> > > >
> > > > I don't know what to do. What's wrong?
> > > > Thanks a lot for your answers,
> > > > Cyril.
> > > >
> > > >
> > > >
> -
> > > > Please check that your question has not already been answered in
> the
> > > > FAQ before posting. 
> > > >
> > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>

Urgent: How to invoke a stram Generator and invoke pipelines thru API calls (or Command line

2002-03-15 Thread Chitharanjan Das

Hello All,


I have the following requirement, I am trying to plot some graphs using
SVG.
The input for the graphs's are some XML documents, which are generated
from some queries to the database.
I have already implemented java code to retrieve the data in XML.

I have also created sitemap entry that will generated the graph for a
given XML

   




//The following is pipeline entry for handling stream

 



As indicated above, the sitemap returns an SVG document for a given XML.

The code snippet of my JSP page looks like 


---

... 
<%
Iterator itr = request.getAttribute("Graphs");
String graphXML = null;
If (itr.hasNext()) {
graphXML = (String) itr.next();
graphXMLStream = new
ByteArrayInputStream(graphXML.toBytes[]};
%>
//invoke the pipeline entry svgxmlstream and use
the embed command
...
...





My questiona are 

1.how does one invoke a pipeline with a stream type
generator.(Preferably with a cinclude transformer)
2. Is it possible to invoke Pipelines via java API calls (not through
URL)
3. Is there any pointer to documentation as how to use Cocoon from
Command line

Thanks a lot it advance,

Regds,
Chiths





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

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




Re: problems with unicode 0x85

2002-03-15 Thread Robert J. Lebowitz

> This sounds like you do not have correct encoding declared in your xml
> file, like:
>
> 
>

Hmmm... I use UTF-8 encoding for my XML documents because I had assumed it
was a standard.  Am I suppose to be using something else?

Rob


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

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




Let's improve (was: Re: Contents of map:handle-errors?)

2002-03-15 Thread Nicola Ken Barozzi

From: "Peter Robins" <[EMAIL PROTECTED]>

> In my 2.0 setup, I had a map:handle-errors with a simple map:read of an
html
> file. This worked fine. However, with 2.0.1, this no longer compiles.

It shouldn't have compiled; the sitemap checks have become stricter.

>  I
> looked in the documentation (yes, really!): sitemap.html describes
something
> called map:error-handler (I assume this is an, er, error) and says that
>
> "you do not define a generator inside the error handler. Beside this
> issue you configure the error handler like a pipeline. Thus you can choose
> your transformer, and serializer, and all other features of pipeline
> processing"

This is correct.

> If I look in the DTD on the other hand it tells me I can have generators,
> xformers and serializers (sic: what would I do with more than 1
serializer?).
> I tried adding read to the DTD but this had no effect - which didn't
surprise
> me, as afaics the DTD isn't actually used by anything.

Ok, then the DTD is wrong. I'll have to patch it.

> Although read would, istm, be the simplest way of handling page not found
> errors, what I actually want to do is an aggregate, but the compiler
doesn't
> like that either. Nor does it like a redirect or the cocoon:/ protocol.
>
> So, how can I get a handle on this error, and handle without error those
> errors that the handle-errors error-handler won't handle?  ;-)

;-)

You brought out a thing that has been already discussed al lot on
cocoon-dev, but AFAIK we didn't reach a conclusion that satisfies all.

I hope you users can give me some hints on what you want. "Has anyone
arguments against this?" in the following text are the points I would like
to have feedback on.

--
 Design decisions on handle-error
--

When I made the handle-error pipeline, I thought that it was made to notify
the user of what went wrong.
So I made up a simple DTD for it, and decided to keep it fixed.
[Has anyone arguments against this?]

To prevent misuse of this part of the pipeline that can come if you can
define any Generator in it, I decided to keep the Generator fixed. The user
can then manipulate the error XML to fit any style it needs.
[Has anyone arguments against this?]

There is also a need to access the error contents by actions and selectors.
So I recently changed the works of this internally, and the sitemap model
contains the error notification as an object, enabling it to be used by
actions, selectors, etc.
[Has anyone arguments against this?]

Redirecting in this pipeline could be a problem, since it can redirect to a
pipeline that has an error, which redirects to another one that has an
error, and so on.
[Has anyone arguments against this?]

Using a Reader makes the recursive error problem still possible, since the
Reader can read the pipeline it comes from, or any other pipeline that
generates an error.
[Has anyone arguments against this?]

So, all these decisions mave the error handling what it is today.
Comments, suggestions and constructive criticism is very welcome :-)

So if I get enough feedback, I will modify  to make it more
useful.
[Has anyone arguments against this?];-)

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

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




Re: Streaming PDF.

2002-03-15 Thread Sylvain Wallez

Olivier Rossel wrote:

> I wonder if FOP serializer can stream PDF documents instead of 
> buffering the whole document before sending it.
> I was told that it is because of a nasty bug in IE/Acrobat plug-in. 
> But the FOP Serializer has already the capability.
>
> Is it true?
> Can this behaviour be enabled?

Yes, Olivier, I will make it configurable.
(damn, he's 10 meters away from me and sends the question to the list ;)

Does someone know the status of this bug in recent IE versions ?

Sylvain

-- 
Sylvain Wallez
  Anyware Technologies  Apache Cocoon
  http://www.anyware-tech.com   mailto:[EMAIL PROTECTED]




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

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




Re: cocoon.jar instead of cocoon.war

2002-03-15 Thread Olivier Rossel

Cristina Ulivi wrote:

> Hi.
>
> I'm using Tomcat 4.0.1 & Cocoon 2.0.1 with Windows 2000.
>
> Now I put my xml pages and jsp pages in 
> the  "\jakarta-tomcat-4.0.1\webapps\cocoon" directory.
>
> I'd like to put my xml pages and jsp pages in another directory like 
> "c:\myintranet".
>
> How can I do?
>
> With the previous version of Cocoon, I'd put the cocoon.jar under 
> Tomcat lib; but now there is the Cocoon.war file and I don't know how 
> can I do.
>
>  
>
> Thanks
>
> Cristina
>
>  
>
i do not think that you can put those files at any other place instead 
of under the contextRoot (== the directory "cocoon" under "webapps").
You can decide to move this cocoon directory somewhere else, and map it 
in the conf/server.xml of Tomcat (: you declare explicitly a context,
named cocoon and its directory is c:\...\cocoon)



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

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




RE: Pizza

2002-03-15 Thread Piroumian, Konstantin

> From: Yyy Xxx [mailto:[EMAIL PROTECTED]] 
> 
> On a totally different level...
> 
> This has XML hard-coded inside a Cocoon XSP as a Java
> string.  That's a little odd.

I would say, it's _very_ add, because the main purpose of XSP is to make XML
generation easier than hard-coding it in Java code as strings. But maybe
there's some other reason, let's listen...

> Isn't there some way to bring the XML out of Java and
> into Cocoon where it may be better utilized?

XSP is for that

> Perhaps a refactoring is in order.
> 
> >-Original Message-
> >From: Ed Jenkins
> [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, 15 March 2002 9:20
> >To: [EMAIL PROTECTED]
> >Subject: Pizza
> >
> >
> >Yesterday, we upgraded to Cocoon 2.0.2dev.  In that 
> >version, in
> >cocoon.xconf, the default compiler was switched from 
> >Javac to Pizza.
> >
> >Pizza is reporting some compilation errors in my XSP 
> >files that were OK when
> >
> >compiled with Javac.  Also, I believe the JLS would
> not 
> >consider this to be
> >an error.
> >
> >Here is a small example of the code:
> >
> >
> >  private void setSomething()
> >  {
> >  String s =
> >  "
> >  
> >  three
> >  three
> >  
> >  ";
> > 
> request.getSession().setAttribute("something", 
> >s);
> >  }
> >
> >
> >Here are the errors I'm getting:
> >
> >Line 106, column 13:  unclosed character literal
> >Line 106, column 12:  illegal start of expression
> >Line 139, column 14:  unclosed character literal
> >
> >When I change it to this, the errors go away:
> >
> >String s = "";
> >
> >I think it doesn't like it when a string literal is
> split 
> >up into multiple
> >lines.  What's up with that?
> >
> >I see that Pizza is made by SourceForge.  Who should
> I 
> >contact there to ask
> >about this?  www.sf.net is currently down.
> >
> >Ed
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




cocoon.jar instead of cocoon.war

2002-03-15 Thread Cristina Ulivi



Hi.
I'm using Tomcat 4.0.1 & Cocoon 2.0.1 
with Windows 2000.
Now I put my xml pages and jsp pages in 
the  "\jakarta-tomcat-4.0.1\webapps\cocoon" 
directory.
I'd like to put my xml pages and jsp pages in 
another directory like "c:\myintranet".
How can I do?
With the previous version of Cocoon, I'd put the 
cocoon.jar under Tomcat lib; but now there is the Cocoon.war file and I don't 
know how can I do.
 
Thanks
Cristina
 


Re: Pizza

2002-03-15 Thread Yyy Xxx

On a totally different level...

This has XML hard-coded inside a Cocoon XSP as a Java
string.  That's a little odd.
Isn't there some way to bring the XML out of Java and
into Cocoon where it may be better utilized?
Perhaps a refactoring is in order.

>-Original Message-
>From: Ed Jenkins
[mailto:[EMAIL PROTECTED]]
>Sent: Friday, 15 March 2002 9:20
>To: [EMAIL PROTECTED]
>Subject: Pizza
>
>
>Yesterday, we upgraded to Cocoon 2.0.2dev.  In that 
>version, in
>cocoon.xconf, the default compiler was switched from 
>Javac to Pizza.
>
>Pizza is reporting some compilation errors in my XSP 
>files that were OK when
>
>compiled with Javac.  Also, I believe the JLS would
not 
>consider this to be
>an error.
>
>Here is a small example of the code:
>
>
>  private void setSomething()
>  {
>  String s =
>  "
>  
>  three
>  three
>  
>  ";
> 
request.getSession().setAttribute("something", 
>s);
>  }
>
>
>Here are the errors I'm getting:
>
>Line 106, column 13:  unclosed character literal
>Line 106, column 12:  illegal start of expression
>Line 139, column 14:  unclosed character literal
>
>When I change it to this, the errors go away:
>
>String s = "";
>
>I think it doesn't like it when a string literal is
split 
>up into multiple
>lines.  What's up with that?
>
>I see that Pizza is made by SourceForge.  Who should
I 
>contact there to ask
>about this?  www.sf.net is currently down.
>
>Ed

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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

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




Problems with loggers

2002-03-15 Thread Peter Robins

I recently upgraded from 2.0 to 2.0.1. Have 2 directories in 
tomcat/webapps, one for Cocoon as provided, one for my own application. In 
2.0 the logging worked fine, with each writing to its own logfiles. With 
2.0.1, this no longer works: each on its own (only 1 tomcat/webapps) works 
fine, but when I try and run both at once, the 2nd says 'error: could not set 
up cocoon logger' and writes everything to the console. I found a previous 
thread re this msg, but it referred to a different situation. 

Also, I can't get the logger to work in command-line mode. Regardless of what 
I put in the -k or -l params, it writes msgs to console.

I think I'm missing something somewhere. I've looked at the logkit webpage, 
but can't see anything relevant. What do I have to change where to get the 
logger to write to its logfiles properly?

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

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




Security/encryption

2002-03-15 Thread Peter Robins

Altho I can put most of my sensitive data in an RDBMS with proper security, 
when I see things like db passwords lying around in non-secure XML files, 
which can easily be referenced programmatically, then alarm bells start 
ringing. I haven't found any reference anywhere to encrypting data elements 
such as this. Can Cocoon handle this?

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

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




Contents of map:handle-errors?

2002-03-15 Thread Peter Robins

In my 2.0 setup, I had a map:handle-errors with a simple map:read of an html 
file. This worked fine. However, with 2.0.1, this no longer compiles. I 
looked in the documentation (yes, really!): sitemap.html describes something 
called map:error-handler (I assume this is an, er, error) and says that 

"you do not define a generator inside the error handler. Beside this 
issue you configure the error handler like a pipeline. Thus you can choose 
your transformer, and serializer, and all other features of pipeline 
processing"

If I look in the DTD on the other hand it tells me I can have generators, 
xformers and serializers (sic: what would I do with more than 1 serializer?). 
I tried adding read to the DTD but this had no effect - which didn't surprise 
me, as afaics the DTD isn't actually used by anything.

Although read would, istm, be the simplest way of handling page not found 
errors, what I actually want to do is an aggregate, but the compiler doesn't 
like that either. Nor does it like a redirect or the cocoon:/ protocol.

So, how can I get a handle on this error, and handle without error those 
errors that the handle-errors error-handler won't handle?  ;-)

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

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




Tomcat/Cocoon/UnknownHostException

2002-03-15 Thread Ingmar Koecher

If I put the following line in my xml document

http://www.ourserver.com/EAD/ead.dtd";>

then I get the following Exception from Cocoon: 

java.net.UnknownHostException: www.ourserver.com

(I put the detailed log at the end of the message). But when I change that
line to



it suddenly works. However, when from the server running Cocoon I can
perfectly access the dtd, e.g. by typing "lynx
http://www.ourserver.com/EAD/ead.dtd";. What's up with that? Why can't Cocoon
access it??? I understand that this is probably a pretty general error
message, but I don't see why Cocoon wouldn't be able to connect - or is it
generally not able to connect to remote hosts?

===
Configuration:
Tomcat4 + Cocoon 2.0.1
Linux redhat

java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010925 (JIT enabled:
jitc))
===


Thanks for suggestions,

Ingmar.


Detailed log from above:
java.net.UnknownHostException: www.ourserver.com
at java.net.InetAddress.getAllByName0(InetAddress.java:585)
at java.net.InetAddress.getAllByName0(InetAddress.java:554)
at java.net.InetAddress.getByName(InetAddress.java:463)
at java.net.Socket.(Socket.java:112)
at sun.net.NetworkClient.doConnect(NetworkClient.java:56)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:347)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:534)
at sun.net.www.http.HttpClient.(HttpClient.java:282)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:3
93)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:487)
at java.net.URL.openStream(URL.java:816)
at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac
tory.java:149)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit
y(DefaultEntityHandler.java:772)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse
t(DefaultEntityHandler.java:571)
at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1139)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2145)
at
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j
ava:2100)
at
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
DocumentScanner.java:831)
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.matchN1035A(sitemap_xmap.java:3602)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2358)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1980)
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)
 .



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

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




Streaming PDF.

2002-03-15 Thread Olivier Rossel

I wonder if FOP serializer can stream PDF documents instead of buffering 
the whole document before sending it.
I was told that it is because of a nasty bug in IE/Acrobat plug-in. But 
the FOP Serializer has already the capability.

Is it true?
Can this behaviour be enabled?




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

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




RE: Latest Xalan

2002-03-15 Thread Vadim Gritsenko

> From: Stephen Ng [mailto:[EMAIL PROTECTED]]
> 
> I think I've found a bug in the xalan (v. 2.2?) that comes with 2.01.
> Has anyone had any luck using Cocoon 2.0.1 with the latest Xalan
> (2.3.1)?

No issues here. Will be part of 2.0.2

Vadim

> 
> Steve




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

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




Latest Xalan

2002-03-15 Thread Stephen Ng

I think I've found a bug in the xalan (v. 2.2?) that comes with 2.01.
Has anyone had any luck using Cocoon 2.0.1 with the latest Xalan
(2.3.1)?

Steve


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

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




RE: Compiling new generators etc.

2002-03-15 Thread Vadim Gritsenko

> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> 
> Dear cocoon-users,
> 
> must new java classes (for my application) have to be compiled
separately or
> does Cocoon2 the compilation for me if I put the java files to the
right
> place (the "classes" subdirectory) ?

Yes, No.


> All my experiments seem to confirm this assumption.
> 
> If this is true, how can I integrate the new classes (as jar files)
into the
> CLASSPATH ?

WEB-INF/lib (in the webapp) or lib/optional (in the source dist tree. Do
build after adding libs)

Vadim



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

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




Re: Pizza

2002-03-15 Thread Joseph Jupin

Actually, guys, try the following:

StringBuffer sb = new StringBuffer();
sb.append("");
sb.append("three);
sb.append("trhee);
sb.append("");

String s = sb.toString();

that way, he can keep the breakout he wanted - and 
stringBuffer can add as many return ("\n") as you want by 
merely appended.  cool.

peace.  JOe...
ps -> btw, java has always maintained that it's more 
efficient to work with stringbuffers when manipulating 
non-static items...

On Fri, 15 Mar 2002 10:26:03 +1100
  "Faulkner, Perry" <[EMAIL PROTECTED]> wrote:
>Ed,
>
>The alternate, for readability would be:
>
>  String s =
>" " +
>" three" +
>" three" +
>" ";
>
>or a variation!
>
>The lang spec says - no embedded line terminators, 
>unfortunately for your
>original!
>
>Perry
>
>-Original Message-
>From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 15 March 2002 10:22
>To: [EMAIL PROTECTED]
>Subject: RE: Pizza
>
>
>I tried that.  I put the xml all on one line (without \n) 
>and it compiled.  
>But I liked having it split up because it was readable.
>
>Ed
>
>---
>
>From: "Faulkner, Perry" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" 
><[EMAIL PROTECTED]>
>Subject: RE: Pizza
>Date: Fri, 15 Mar 2002 09:55:26 +1100
>
>Hi Ed,
>
>Will
>
>  String s = 
>"\nthree\nthree\n";
>
>solve the problem?
>
>Perry
>
>-Original Message-
>From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 15 March 2002 9:20
>To: [EMAIL PROTECTED]
>Subject: Pizza
>
>
>Yesterday, we upgraded to Cocoon 2.0.2dev.  In that 
>version, in
>cocoon.xconf, the default compiler was switched from 
>Javac to Pizza.
>
>Pizza is reporting some compilation errors in my XSP 
>files that were OK when
>
>compiled with Javac.  Also, I believe the JLS would not 
>consider this to be
>an error.
>
>Here is a small example of the code:
>
>
>  private void setSomething()
>  {
>  String s =
>  "
>  
>  three
>  three
>  
>  ";
>  request.getSession().setAttribute("something", 
>s);
>  }
>
>
>Here are the errors I'm getting:
>
>Line 106, column 13:  unclosed character literal
>Line 106, column 12:  illegal start of expression
>Line 139, column 14:  unclosed character literal
>
>When I change it to this, the errors go away:
>
>String s = "";
>
>I think it doesn't like it when a string literal is split 
>up into multiple
>lines.  What's up with that?
>
>I see that Pizza is made by SourceForge.  Who should I 
>contact there to ask
>about this?  www.sf.net is currently down.
>
>Ed
>
>
>_
>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. 
>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>
>-
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>
>
>
>
>
>_
>Join the world's largest e-mail service with MSN Hotmail. 
>http://www.hotmail.com
>
>
>-
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>
>-
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>


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

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




RE: Cocoon2, SOAP: How to process xml-content?

2002-03-15 Thread William Brogden

> -Original Message-
> From: Erwin Burgstaller [mailto:[EMAIL PROTECTED]] On Behalf 
> Of Erwin Burgstaller
> Sent: Friday, March 15, 2002 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cocoon2, SOAP: How to process xml-content?
> 
> 
> On Fri, Mar 15, 2002 at 08:01:32AM +0100, Erwin Burgstaller wrote:
> > Apache::SOAP. So I hope I will find how to configure the service to
> > return an org.w3c.dom.Element, will I?
> 
> Ok, I've got the service to write:
> 
> [..]
> 
>  SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml";>
> 
> [..]
> 
> But that does not change anything.

 Your SOAP server appears to be converting XML tags to escaped form, 
but thats exactly what you don't want. How is the data originally 
stored, with real tags or in the escaped form.

WBB



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

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




Re: db connection pool

2002-03-15 Thread Berin Loritsch

Sozonnik Andrew wrote:
 > Moved back to JDK 1.3.1 - all works fine.

In JDK 1.4, the classes for JDBC access were changed.  As a result,
the DB connection code *must* be compiled with a JDK 1.4 compiler.

I have tested the database connection code under JDK 1.4, though I
admit that I did not test it against the Oracle database.  It is
*possible* that the Oracle driver does not work under JDK 1.4, though
if you used the old style ESQL values and got things working I suspect
it is the fact that the pooling code needed to be recompiled.

 >
 > With respect,
 > Sozonnik Andrew.
 >
 >
 >
 > -Original Message-
 > From: Sozonnik Andrew [mailto:[EMAIL PROTECTED]]
 > Sent: Friday, March 15, 2002 12:36 PM
 > To: [EMAIL PROTECTED]
 > Subject: db connection pool
 >
 >
 > Hello !
 >
 > I have trying to work with Cocoon 2 db connections pool
 > Cocoon2 2.0.2-dev  JDK 1.4 Oracle8i
 >
 > 1)
 >
 > 
 >   load-class
 >   
 > oracle.jdbc.driver.OracleDriver
 >   
 > 
 >
 > 2)
 >
 > 
 > 
 >   
 >   jdbc:oracle:thin:@localhost:1521:mydatabase
 >   mylogin
 >   myPassword
 > 
 >   
 >
 > After loading Cocoon, database connections are initiated, but in log I
 > see this :
 >
 > DEBUG   (2002-03-15) 09:31.33:956   [core.oracle] (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 Jdbc Connection class available
 > at
 > org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
 > (JdbcConnectionFactory.java:183)
 > at
 > org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.j
 > ava:82)
 > at
 > org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Ha
 > rdResourceLimitingPool.java:95)
 > at
 > org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Jd
 > bcConnectionPool.java:74)
 > at
 > org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.
 > java:126)
 > at
 > org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(H
 > ardResourceLimitingPool.java:104)
 > at
 > org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResou
 > rceLimitingPool.java:91)
 > at
 > org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnec
 > tionPool.java:195)
 > at java.lang.Thread.run(Thread.java:536)
 > FATAL_E (2002-03-15) 09:31.33:956   [core.oracle] (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.
 >
 > But connections are present in database.
 >
 > The settings are correct, because I can acces database from xsp ...
 > 
 > oracle.jdbc.driver.OracleDriver
 > 
 > And so on.
 >
 > Can anybody help me, please ?
 >
 > With respect,
 > Sozonnik Andrew.
 >
 >
 >
 >
 >
 >
 > -
 > Please check that your question has not already been answered in the FAQ
 > before posting. 
 >
 > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
 > For additional commands, e-mail: <[EMAIL PROTECTED]>
 >
 >
 >
 > -
 > Please check that your question has not already been answered in the
 > FAQ before posting. 
 >
 > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
 > For additional commands, e-mail: <[EMAIL PROTECTED]>
 >
 >





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

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




Re: Cocoon2, SOAP: How to process xml-content?

2002-03-15 Thread Erwin Burgstaller

On Fri, Mar 15, 2002 at 08:01:32AM +0100, Erwin Burgstaller wrote:
> Apache::SOAP. So I hope I will find how to configure the service to
> return an org.w3c.dom.Element, will I?

Ok, I've got the service to write:

[..]

http://xml.apache.org/xml-soap/literalxml";>

[..]

But that does not change anything.

Let me ask another question: Is it possible to get the output of a
function handled as xml?

For example:

---
[..]


private String hello() {
  return "Hello";
}


[..]

hello()
---

Will result the text node handled to the next transformer as it is shown
in the function and not as: Hello while the generated
java code looks like: return "Hello".

Erwin


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

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




Compiling new generators etc.

2002-03-15 Thread Volker Schneider

Dear cocoon-users,

must new java classes (for my application) have to be compiled separately or
does Cocoon2 the compilation for me if I put the java files to the right
place (the "classes" subdirectory) ?

All my experiments seem to confirm this assumption.

If this is true, how can I integrate the new classes (as jar files) into the
CLASSPATH ?

Best regards,
- Volker -


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

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




RE: problems with unicode 0x85

2002-03-15 Thread Vadim Gritsenko

> From: Robert J. Lebowitz [mailto:[EMAIL PROTECTED]]
> 
> I suspect that this is more of a generic XML question, but I have an
error
> showing up when I use the TRAXTransformer on one of my xml documents.
> 
> It doesn't like the presence of a unicode 0x85 character.
> 
> I'm not even sure where this character is within the xml source, but
was
> wondering if there isn't some kind processing instruction I can use to
> translate the 0x85 to some other acceptable value?


This sounds like you do not have correct encoding declared in your xml
file, like:




Vadim
 
> Rob
> 


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

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




java.net.SocketException: Connection aborted by peer: socket write error

2002-03-15 Thread KOZLOV Roman

Hi all,

Could you please help. How I can eliminate the following exception
(copied from console) ?
. . .
Starting service Tomcat-Apache
Apache Tomcat/4.0
java.lang.RuntimeException: java.net.SocketException: Connection aborted
by peer
: socket write error
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3174)
at java.lang.Thread.run(Thread.java:484)
==

I've just requested http://localhost:8080/bdl/search_card for which
I have the following pipeline:

  
. . .



   
 
   
   
 
   

   

 
 
 
 
 
 
 
 
 
 
 
  
  
  
  
  
  
  
  
  
  
  
  
  
   
  
  
   
. . .
==


In the core.log I can see:

HttpProcessor[8080][3]/CachingStreamPipeline: IOException in
ProcessReader
java.net.SocketException: Connection aborted by peer: socket write error

 at java.net.SocketOutputStream.socketWrite(Native Method)
. . .
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:249)

 at
org.apache.cocoon.www.sitemap_xmap.matchN102A4(sitemap_xmap.java:3745)
. . .
 at java.lang.Thread.run(Thread.java:484)
WARN(2002-03-15) 14:45.05:085   [core] (/bdl/css/ome.css)
HttpProcessor[8080][3]/sitemap_xmap: Error, try to process the error
page
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.net.SocketException: Connection aborted by peer: socket write error

. . .
==

When I look at the sitemap_xmap.java for the matchN102A4 I see:

. . .
//line numbers not supported with xalan
try {

  // method for handling "**css/*.css"
  if (matchN102A4(redirector, environment, pipeline,
  eventPipeline, internalRequest, listOfMaps))
return true;


  // method for handling "**scripts/*.js"
. . .
  //line numbers not supported with xalan// method for handling
"**css/*.css"
  private final boolean matchN102A4(SitemapRedirector redirector,
Environment environment,
StreamPipeline pipeline,
EventPipeline eventPipeline, boolean
internalRequest,
List listOfMaps) throws
ConnectionResetException,
  ResourceNotFoundException, Exception {
Map map;
Parameters param;
Map objectModel = environment.getObjectModel();
String cocoon_view = environment.getView();
String cocoon_action = environment.getAction();
final boolean debug_enabled = getLogger().isDebugEnabled();

if ((map = matches("wildcard", matcher_N102A4_expr, "**css/*.css",
   Parameters.EMPTY_PARAMETERS, objectModel)) !=
null) {
  if (debug_enabled)
getLogger().debug("Matched wildcard pattern **css/*.css");
  listOfMaps.add (map);
  this.dumpParameters(listOfMaps);



  getLogger().debug("Component
reader:resource(Parameters.EMPTY_PARAMETERS)");

  if (debug_enabled)
getLogger().debug("Source= " + substitute(listOfMaps,
"html/css/{2}.css"));

  getLogger().debug("Mime-type= text/css");
  pipeline.setReader ("resource",
  substitute(listOfMaps, "html/css/{2}.css"),
  Parameters.EMPTY_PARAMETERS, "text/css");

  if (!internalRequest) {
return pipeline.process(environment);
  }


  if (true)
return true;


  listOfMaps.remove (listOfMaps.size() - 1);
  this.dumpParameters(listOfMaps);
}
return false;
  }
  // method for handling "**scripts/*.js"
. . .
===

What the matter?

Thank you in advance.

Roman



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

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




RE: db connection pool

2002-03-15 Thread Sozonnik Andrew


Moved back to JDK 1.3.1 - all works fine.

With respect,
Sozonnik Andrew.



-Original Message-
From: Sozonnik Andrew [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 15, 2002 12:36 PM
To: [EMAIL PROTECTED]
Subject: db connection pool


Hello !

I have trying to work with Cocoon 2 db connections pool 
Cocoon2 2.0.2-dev  JDK 1.4 Oracle8i

1)


  load-class
  
oracle.jdbc.driver.OracleDriver
  


2)



  
  jdbc:oracle:thin:@localhost:1521:mydatabase
  mylogin
  myPassword

  

After loading Cocoon, database connections are initiated, but in log I
see this :

DEBUG   (2002-03-15) 09:31.33:956   [core.oracle] (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 Jdbc Connection class available
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
(JdbcConnectionFactory.java:183)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.j
ava:82)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Ha
rdResourceLimitingPool.java:95)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Jd
bcConnectionPool.java:74)
at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.
java:126)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(H
ardResourceLimitingPool.java:104)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResou
rceLimitingPool.java:91)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnec
tionPool.java:195)
at java.lang.Thread.run(Thread.java:536)
FATAL_E (2002-03-15) 09:31.33:956   [core.oracle] (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.

But connections are present in database.

The settings are correct, because I can acces database from xsp ...

oracle.jdbc.driver.OracleDriver

And so on.

Can anybody help me, please ?

With respect,
Sozonnik Andrew.






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

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



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

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




problems with unicode 0x85

2002-03-15 Thread Robert J. Lebowitz

I suspect that this is more of a generic XML question, but I have an error
showing up when I use the TRAXTransformer on one of my xml documents.

It doesn't like the presence of a unicode 0x85 character.

I'm not even sure where this character is within the xml source, but was
wondering if there isn't some kind processing instruction I can use to
translate the 0x85 to some other acceptable value?

Rob




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

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




db connection pool

2002-03-15 Thread Sozonnik Andrew

Hello !

I have trying to work with Cocoon 2 db connections pool 
Cocoon2 2.0.2-dev  JDK 1.4 Oracle8i

1)


  load-class
  
oracle.jdbc.driver.OracleDriver
  


2)



  
  jdbc:oracle:thin:@localhost:1521:mydatabase
  mylogin
  myPassword

  

After loading Cocoon, database connections are initiated, but in log I
see this :

DEBUG   (2002-03-15) 09:31.33:956   [core.oracle] (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 Jdbc Connection class available
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
(JdbcConnectionFactory.java:183)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.j
ava:82)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable(Ha
rdResourceLimitingPool.java:95)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable(Jd
bcConnectionPool.java:74)
at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.
java:126)
at
org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGrow(H
ardResourceLimitingPool.java:104)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResou
rceLimitingPool.java:91)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnec
tionPool.java:195)
at java.lang.Thread.run(Thread.java:536)
FATAL_E (2002-03-15) 09:31.33:956   [core.oracle] (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.

But connections are present in database.

The settings are correct, because I can acces database from xsp
...

 oracle.jdbc.driver.OracleDriver

And so on.

Can anybody help me, please ?

With respect,
Sozonnik Andrew.






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

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




RE: I'd really love to POST forms...

2002-03-15 Thread Matthieu Beneteau

Ok, my mistake...
I must confess I hadn't even tried (!), and it perfectly worked at the first
try.
My apologies...

Thanks Vadim !

Matthieu


> -Message d'origine-
> De : Vadim Gritsenko
> [mailto:[EMAIL PROTECTED]@quaternove.fr]
> Envoye : jeudi 14 mars 2002 19:54
> Objet : RE: I'd really love to POST forms...
>
>
> > From: Matthieu BenÊteau [mailto:[EMAIL PROTECTED]]
> >
> > Hi folks,
> >
> > I'm using Cocoon-2.0.1 with Tomcat-4.0.1.
> >
> > I'm working on a Cocoon-based editor that allows to edit and modify
> XML
> > files with a web browser. It uses several HTML forms.
> >
> > RequestGenerator is just fine to retrieve the parameters of a GET
> request.
> > But as my application is growing, my forms are getting bigger and I
> need to
> > submit them with the POST method.
>
> RequestGenerator *should* work with posted forms also. Please try it;
> get back if it does not work with patches ;) or bug report.
>
> Vadim
>
> > Unfortunately, it seems that the only generator dealing with POST is
> the
> > StreamGenerator, which expects some XML data. And I have no way to
> submit
> > the content of my forms as XML data.
> >
> > Does anyone know why there is no generator to make me happy?
> > I would really love to POST forms!...
> >
> >
> > Matthieu
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>


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

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




Cocoon a CeBIT!?

2002-03-15 Thread Matthew Langham

Hi,

is anyone else showing Cocoon and/or Cocoon based solutions at CeBIT this
week? If so can you let me know offline - thanks.

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N 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. 

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




[PATCH] endine.dtd for xml-stylebook project

2002-03-15 Thread Vincent Massol

Hi,

The xml-stylebook project has been failing for a few days (not the
project itself but projects who are using it). The reason is that
apparently Xerces has become more strict and does not accept XML/DTDs
which do not have a "version" defined.

Here's a patch that makes xml-stylebook work again. Could someone with
the right karma apply it ?

Thanks
-Vincent



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

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




files upload

2002-03-15 Thread Sergey G. Aslanov

Hi, all

  How can I turn off automatical uploading files by Cocoon
  (2.0.x) in case when I use other engine for uploading?

-- 
Sergey G. Aslanov
CBOSS Group,
Web-technologies department
mailto:[EMAIL PROTECTED]
tel: +7 095 7555655


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

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




information required

2002-03-15 Thread Isaac Nadar

Hello,
   Iam a developer working for Megaware Technologies.
 I have some problems of installing cocoon 2.0.x in weblogic6.1sp2..

 1. which version of cocoon should I take.
 2. how to get it installed.

 The instructions available at the Cocoon site is not fruitful.

 If you can give me some tips it will be very helpful to me.

Thanks,
Regards,
S.Isaac

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

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