Cocoon 2 - Internal server error

2002-03-03 Thread vg

Hi,

I am stuck with getting Cocoon 2 - Internal server error error message when I want 
to access my cocoon page.
I am running Tomcat 4.0 on Windows 2000 and my Java version is: j2sdk1.4.0. I've 
copied  cocoon.war into: C:\Program Files\Apache Tomcat 4.0\webapps as it was 
described in install section. I stop and start my Web Server but I get: 
=
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 
C:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/io/OutputStream.class). 
=
and all the way down until I get 18 errors.
What's the problem. I am trying to understand. It use to work with my JDK1.3. I 
suspect it's to do may be with my recent JDK (i.e. version 1.4) which I've installed 
today.

I am going to remove my jdk1.4 and put back my jdk1.3 and see what would happen. But I 
though the latest development kit should contain everything plus additional 
classes/additions.

If you know what is causing the problem and could help me that would help me alot.


Thanks an advance.



Regards



Vardan GHULYAN





talk21 your FREE portable and private address on the net at http://www.talk21.com



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

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




Re: Installing Cocoon 2.0.1 on a WebLogic 6.1 SP2

2002-03-03 Thread Andreas Kuehne

Hi Mark !

I had this problem, too.
This problem can be solved by 'cleaning' the META_INF/MANIFEST.MF file. There are two 
empty lines at the end of the file which cause the 
StringIndexOutOfBoundsException. Delete the lines !

Unfortunately I encountered other Exceptions after solving the above. I appreciate to 
hear your experience.

Greetings from Germany

Andreas Kuehne



 I have been having problems installing Cocoon2 on a Solaris 8 
 machine running Weblogic 6.1 SP2.
 
  
 
 I built the src code and created the cocoon.war file and placed it in 
 the application dir. Stoped the server (weblogic) and started it again. 
 Made sure it was deployed and also select the server for deployment. But 
 while deploying it i get this error:
 
  
 
 please any help would be appreciated...
 
  
 
 Mar 1, 2002 4:34:01 PM EST Error J2EE Error deploying application 
 cocoon: Could not load cocoon
 Mar 1, 2002 4:34:57 PM EST Error J2EE Error deploying application 
 cocoon: Could not load cocoon
 Mar 1, 2002 4:34:57 PM EST Error Management 
 InvocationTargetException setting attribute Deployed on MBean 
 vba:Location=dpris,Name=cocoon,Type=ApplicationConfig to value true. 
 Method: public void 
 weblogic.management.mbeans.custom.Application.setDeployed(boolean) 
 throws 
 weblogic.management.DeploymentException,weblogic.management.UndeploymentException
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 at java.lang.String.substring(String.java:1525)
 at 
 weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469)
 
 ...
 
 ...
 
 ...
 
 ...
 
 about 40 more lines.
 



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

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




Re: Problems getting Cocoon 2.0.2 to run

2002-03-03 Thread Mark . Vovsi


Sean,

I just went through the same thing in the last couple of days. But finally
I got it to work with jdk1.4 by getting a copy of cocoon(2.0.2) via CVS
(instructions are on the web), and most importantly Tomcat 4.0.1. With
Tomcat 4.0.2 I got the hanging you're describing.

Mark.



   

  Sean Griffin   

  trenchguinea@yahTo:   [EMAIL PROTECTED] 

  oo.com  cc: 

   Subject:  Problems getting Cocoon 2.0.2 
to run  
  03/02/2002 06:25 

  PM   

  Please respond to

  cocoon-users 

   

   





After hours of trying many different things trying to get Cocoon to run,
both from the command-line and through Tomcat, I continue to trace things
back to compiling the sitemap.  I know that the FAQ says something about
Cocoon taking a long time to start and the build.bat file echos that
compiling the sitemap may take a long time, but how long is long?  I let it
compile overnight (7 hours at 1GHz) and it still wasn't done in the
morning.  I'm using JDK 1.4 on WinXP.  I tried taking the last release
version (Cocoon 2.0.1) but I had some sort of incompatibility issues with
JRE1.4.  It said that Cocoon wasn't recent enough to understand the class
version 48.0.  Anyway, is it usual to take this long or is it caught in an
infinite loop.  It sure seems to be the latter.

Thanks for any help.
Sean




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

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




use DefaultConfiguration class (avalon API)

2002-03-03 Thread yuryx

Hi !
Can anyone help me with following:
With my 'cocoon's action' I have to use DefaultConfiguration class. I 
need modify my config file from this class (with use methods 
setAttribute and setValue) -it possible?
But I dont know how to create it (I need examples :( ) with link to my 
config file. :(

Thanx.
Yury.



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

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




RE: Cocoon 2 - Internal server error

2002-03-03 Thread Vadim Gritsenko

You have got old compiler library, from JDK 1.3 release. Remove all
javac.jar from the Cocoon (build clean should do it), make sure
JAVA_HOME points to JDK1.4.

Also you can read about JDK1.4:
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/in
stalling/index.xml?rev=1.9content-type=text/vnd.viewcvs-markup

Vadim

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 02, 2002 5:52 PM
 To: [EMAIL PROTECTED]
 Subject: Cocoon 2 - Internal server error
 
 Hi,
 
 I am stuck with getting Cocoon 2 - Internal server error error
message when
 I want to access my cocoon page.
 I am running Tomcat 4.0 on Windows 2000 and my Java version is:
j2sdk1.4.0.
 I've copied  cocoon.war into: C:\Program Files\Apache Tomcat
4.0\webapps as
 it was described in install section. I stop and start my Web Server
but I get:
 =
 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 C:\Program
 Files\Java\j2re1.4.0\lib\rt.jar(java/io/OutputStream.class).
 =
 and all the way down until I get 18 errors.
 What's the problem. I am trying to understand. It use to work with my
JDK1.3.
 I suspect it's to do may be with my recent JDK (i.e. version 1.4)
which I've
 installed today.
 
 I am going to remove my jdk1.4 and put back my jdk1.3 and see what
would
 happen. But I though the latest development kit should contain
everything plus
 additional classes/additions.
 
 If you know what is causing the problem and could help me that would
help me
 alot.
 
 
 Thanks an advance.
 
 
 
 Regards
 
 
 
 Vardan GHULYAN


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

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




RE: use DefaultConfiguration class (avalon API)

2002-03-03 Thread Vadim Gritsenko

 From: yuryx [mailto:[EMAIL PROTECTED]]
 
 Hi !
 Can anyone help me with following:
 With my 'cocoon's action' I have to use DefaultConfiguration class. I
 need modify my config file from this class (with use methods
 setAttribute and setValue) -it possible?

Try DefaultConfigurationSerializer from the
org.apache.avalon.framework.configuration.


 But I dont know how to create it (I need examples :( ) with link to my
 config file. :(

Creating configuration object is quite simple. Snippet from
JavascriptProgram.java:
--
config = new DefaultConfiguration(, GeneratorSelector);
child = new DefaultConfiguration(file, );
child.setValue(file.toString());
config.addChild(child);

for (Iterator i = dependecies.iterator(); i.hasNext(); ) {
child = new DefaultConfiguration(dependency, );
child.setValue(i.next().toString());
config.addChild(child);
}
--

Vadim


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

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




Re: use DefaultConfiguration class (avalon API)

2002-03-03 Thread yuryx




Creating configuration object is quite simple. Snippet from
JavascriptProgram.java:
--
config = new DefaultConfiguration(, GeneratorSelector);
child = new DefaultConfiguration(file, );
child.setValue(file.toString());
config.addChild(child);

for (Iterator i = dependecies.iterator(); i.hasNext(); ) {
child = new DefaultConfiguration(dependency, );
child.setValue(i.next().toString());
config.addChild(child);
}
--

Vadim


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

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

Thanx Vadim, but what is the dependecies ? It's may be  something class 
(object)?
And how define path-to-file ? As full path (real path like 
/home/.../config.file) or with cocoon-context path (like 
docs/samples/config.file)?

Yury.




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

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




javax.xml.transform.TransformerException: Stylesheet directed termination

2002-03-03 Thread Niket Anand



Hi All,
I am trying to run 2.0.2 dev. After adding patterns 
in sitemap, I am getting this exception...but same pattern is running fine in 
cocoon2.0. 
Please guide me where I am going 
wrong.
Earlier I was getting problemoninvoking 
action class on click og image button asinput type="image" 
src="images/submit.gif"name="cocoon-action" value="Add 
Department". This problem is solved by building 2.0.2 dev version and 
changes to input type="image" 
src="javascript:void(0);"name="cocoon-action-Add Department" value="add 
department".
But now I wantto integrate my last work on 
cocoon2.0 and this 2.0.2dev, sohowcan I do this? I know this is 
silly problem...but I am facing problemonintegrating both. How can I 
integrate or whichjar files I should add on my last work on 
cocoon2.0?
Please tell me step by step. I am facing this type 
of exception if I replace cocoon2.0.jar with cocoon-2.0.2dev.jar in 
F:\jakarta-tomcat-4.0.1\webapps\cocoon\WEB-INF\lib and added other jar files of 
cocoon-2.0.2dev.
After getting this error I replaced sitemap.xmap 
and cocoon.xconf also. but I am not able to see welcome page.please guide 
me..
Thanks,
Niket

FATAL_E (2002-03-03) 23:37.46:835 
[core.xslt-processor](/mercalinktest/) HttpProcessor[8080][4]/TraxErrorHandler: 
Error in TraxTransformer: javax.xml.transform.TransformerException: Stylesheet 
directed terminationjavax.xml.transform.TransformerException: Stylesheet 
directed terminationat 
org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)at 
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)at 
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)at 
org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)at 
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:438)at 
org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)at 
java.lang.Thread.run(Thread.java:484)FATAL_E (2002-03-03) 
23:37.46:835 [core.xslt-processor](/mercalinktest/) 
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: Stylesheet directed 
terminationjavax.xml.transform.TransformerException: Stylesheet directed 
terminationat 
org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)at 
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)at 
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)at 
org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)at 
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:438)at 
org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)at 
java.lang.Thread.run(Thread.java:484)ERROR (2002-03-03) 
23:37.47:406 [sitemap](/mercalinktest/) 
HttpProcessor[8080][4]/Handler: Error compiling 
sitemaporg.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Could not load class 
for program 'org\apache\cocoon\www\sitemap_xmap' due to a 
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmapat 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:338)at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:294)at 
org.apache.cocoon.sitemap.Handler.run(Handler.java:270)at 
java.lang.Thread.run(Thread.java:484)org.apache.cocoon.components.language.LanguageException: 
Could not load class for program 'org\apache\cocoon\www\sitemap_xmap' due to a 
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmapat 
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:186)at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:201)at 

RE: javax.xml.transform.TransformerException: Stylesheet directed termination

2002-03-03 Thread Vadim Gritsenko

Stylesheet directed termination and following Error compiling
sitemap usually means that you have some invalid/unsupported syntax in
your sitemap. If it is the case, the message should be printed somewhere
in the log, like Stylesheet directed termination, SystemID:.,
message: 

Message will tell what is the reason of stylesheet termination.

Take a look at the xml-cocoon2/src/webapp/mount/lint/sitemap.xmap file
to get an idea what is valid syntax and what is not.

Hope this helps,
Vadim

-Original Message-
From: Niket Anand [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, March 03, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: javax.xml.transform.TransformerException: Stylesheet directed
termination

Hi All,
I am trying to run 2.0.2 dev. After adding patterns in sitemap, I am
getting this exception...but same pattern is running fine in cocoon2.0. 
Please guide me where I am going wrong.
Earlier I was getting problem on invoking action class on click og image
button as input type=image
src=images/submit.gif name=cocoon-action value=Add Department .
This problem is solved by building 2.0.2 dev version and changes to
input type=image src=images/submit.gif name=cocoon-action-Add
Department value=add department.
But now I want to integrate my last work on cocoon2.0 and this 2.0.2dev,
so how can I do this? I know this is silly problem...but I am facing
problem on integrating both. How can I integrate or which jar files I
should add on my last work on cocoon2.0?
Please tell me step by step. I am facing this type of exception if I
replace cocoon2.0.jar with cocoon-2.0.2dev.jar in
F:\jakarta-tomcat-4.0.1\webapps\cocoon\WEB-INF\lib and added other jar
files of cocoon-2.0.2dev.
After getting this error I replaced sitemap.xmap and cocoon.xconf also.
but I am not able to see welcome page.please guide me..
Thanks,
Niket
 
FATAL_E (2002-03-03) 23:37.46:835  
[core.xslt-processor](/mercalinktest/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
javax.xml.transform.TransformerException: Stylesheet directed
termination
javax.xml.transform.TransformerException: Stylesheet directed
termination
 at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)
 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2243)
 at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
 at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.jav
a:279)
 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2243)
 at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)
 at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEac
h.java:438)
 at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)
 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2243)
 at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2069)
 at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
 at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
96)
 at java.lang.Thread.run(Thread.java:484)
FATAL_E (2002-03-03) 23:37.46:835  
[core.xslt-processor](/mercalinktest/)
HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer:
javax.xml.transform.TransformerException: Stylesheet directed
termination
javax.xml.transform.TransformerException: Stylesheet directed
termination
 at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:168)
 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2243)
 at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
 at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.jav
a:279)
 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2243)
 at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)
 at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEac
h.java:438)
 at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)
 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2243)
 at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2069)
 at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
 at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
96)
 at java.lang.Thread.run(Thread.java:484)
ERROR   (2002-03-03) 23:37.47:406   [sitemap](/mercalinktest/)
HttpProcessor[8080][4]/Handler: Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org\apache\cocoon\www\sitemap_xmap' due to a
java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap
 at

Re: Cocoon-URL (weekly summary of interesting links on cocoon-*)

2002-03-03 Thread Andrew Savory

On Sat, 2 Mar 2002, Stefano Mazzocchi wrote:

 Andrew Savory wrote:
  Not at the moment, but hey, it's published with Cocoon so give me a few
  minutes and I'll add an RSS feed ;-)
 
 Tell me: did you always wanted to be able to say something like that?

I have ;-)

An RSS feed is now available at:

http://www.luminas.co.uk/technology/cocoon/url/current.rss

(Matthew: it's not a blog, it's an evil script...)


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)20 8553 6622
Luminas Internet Applications  Fax:  +44 (0)870 28 47489
This is not an official statement or order.Web:www.luminas.co.uk


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

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




Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3

2002-03-03 Thread Bud Gibson

I did this using the source distribution of cocoon 2.01.  I have not yet 
taken the step of removing the xalan, etc. jars from the cocoon.war.

It worked well.  I could even access jsp.  I was finally able to see xsp.

I will note that I got some hangs.  In those places, if I hit the stop 
button and and then resubmitted the url, that worked.  The particular 
place that comes to mind is xsp session management when I clicked on the 
encoded url link.  I am using mozilla 0.9.8.  The little mozilla icon 
kept on spinning but nothing came.  I hit stop on the browser, then the 
link again, and the page loaded fine.

I am not sure where this would be logged, otherwise I would send a 
little error log if it were available.

Bud

PS  cocoon was running under RH 6.2 with jdk 1.3.1_02.  The kernel is 
2.2.18 with VA Linux smp hacks.


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

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




Re: Newbie FAQ (was Re: Just starting COCOON

2002-03-03 Thread Roger I Martin PhD

I am using 4.0.2-b1 just fine but am on a Windows 2000 box.

Are you deleting the generated jakarta-tomcat-4.0.2-b1\webapp\Cocoon
directory and the jakarta-tomcat-4.0.2-b1\work\localhost\cocoon directory
between tries?

Do the logs in jakarta-tomcat-4.0.2-b1\logs tell you anything?

Do other war files deploy such as the petstore example from j2ee?

Just thinking about it a little.  Regards,

Rog
- Original Message -
From: Peter Schwenke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 18, 2002 6:54 PM
Subject: Re: Newbie FAQ (was Re: Just starting COCOON


 Peter Flynn writes:
   Peter Schwenke writes:
There has been discussions on the list that it is better to stick
with Tomcat 4.0.2 for now.
   
(http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101363193404329w=2)
  
   But that's what I'm trying to install.

  
Is the war file OK - Can you do a jar tvf on it? Permissions OK etc
  
   Yep.
  
   -rw-r--r--1 tomcat4  tomcat4  12052601 Feb 15 16:12 cocoon.war
  
 I and some co-workers have also been trying to get Cocoon
 running. I was recently put on a different project, but my
 co-workers report that downgrading to Tomcat 4.0.1 made things
 work. You might try that.
  
   Ah. Should that have read 4.0.1 above? Many thanks, I'll try.

 Sorry.  I meant to say 4.0.1.


 ...Peter

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

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





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

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




Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3

2002-03-03 Thread Nicola Ken Barozzi

From: Bud Gibson [EMAIL PROTECTED]

 I will note that I got some hangs.  In those places, if I hit the stop
 button and and then resubmitted the url, that worked.
[...]
 PS  cocoon was running under RH 6.2 with jdk 1.3.1_02.  The kernel is
 2.2.18 with VA Linux smp hacks.

I get this behaviour too with Tomcat 4b7, W2000, JDK 1.4, Explorer 6.0! :-o

I used to think it was due to resource contention, since the browser and the
server are on the same machine, but now that you have such a different
configuration, i wonder...

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


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

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




Re: [STATUS] Cocoon Roadmap

2002-03-03 Thread Sylvain Wallez

Stefano Mazzocchi wrote:

People,

I know some of you are discouradged by the lack of overall 'polishness'
of the latest and greatest version of Cocoon.

I think I can speak for the entire development community if I greatly
apologize for that. And I think you deserve it.

Yes, we are all volunteers, but one way or another, we are earning
something from this (if ever, visibility, respect and, last but not
least, fun and knowledge) and we must continue the level of the past
quality of our work in order to keep things going and to keep things
sane.

In this regard, I want to tell you a few things that are going on:

1) DOCUMENTATION: the documentation has been cleaned up a little, the
stylesheets of the web site polished to look much more readable and
light. Some documents were removed because we plan to incorporate more
stuff into that.

In this regard, please, help us making this better!

The reason why documentation is normally not that good is that we
generally don't need it since we can look into the code (which is the
best documentation, if you know where to look) or simply email the guy
who wrote it.

But this doesn't scale: documentation is the only way to make knowledge
scale well.

So, if you have *any* kind of notes, mockups, emails-to-your-boss,
courses you made to your colleagues, about cocoon and friends, please,
let us know! It doesn't matter if they are not formatted properly, if
they are not using our Documentation DTD or anything, don't worry, go to
bugzilla (http://nagoya.apache.org) and throw it into the PATCH queue,
somebody will pick it up, refactor it, place in into the docs and, most
important, *give you credits for it*!

It's *that* easy, believe me.

To make things easier for those who want to write with our document DTD, 
I've written a CSS2 stylesheet for it. I tested it with the XMLmind XML 
editor (aka XXE, see http://www.xmlmind.com/xmleditor/) : it's a cool 
open-source CSS2 enabled XML editor written in Java, which provides 
word-processor like document editing.

Since the CSS renders like the web site, writing a doc in the document 
DTD is like writing a web page ! Check it out in 
src/documentation/xdocs/css, and be indulgent since it's my first CSS2 
stylesheet :)

snip/

Doesn't matter if you think you don't know enough: it's *exactly*
because you don't feel like a guru (yet!) that your opinions, views,
input is important to all the other people that haven't finished
climbing the 'unfortunately steep' Cocoon learning curve :/

2) SPEED: we are currently *very* close in having Xalan XSLTC working
for Cocoon. XSLTC is a new XSLT processor that was donated to Apache by
Sun Microsytems and, just like XSP, transforms a stylesheet into
bytecode.

Tests on my machine show 600% speed improvement over Xalan-J!!! And 200%
speed improvement over MSXML (the native library that powers Internet
Explorer)!!!

That's sooo great : no, Java isn't slow !

along with an incredibly lower memory footprint (thus, reduced garbage
collection, and overall improved performance and scalability)

There are a few compliance bugs to sort out, but we are confident that
we'll be able to ship Cocoon with XSLTC in the near future (if not in
2.0.2, for sure in 2.0.3)

At the same time, we are looking into faster and more scalable ways to
store the cached files.

With these two things together, Cocoon might be able to increase
performance in the next couple of releases between 200% and 600%
(depending on your use of XSLT and cache, of course). We are very
excited about this.

Another issue what we are working on is the sitemap interpretation vs.
compilation: we currently have two engines for the sitemap, the one
based on XSLT-generated code  and then compiled (the one you are using
right now) and a new interpreted-based one. 

We believe that with Hotspot server JVMs, the interpreted version might
be faster, but we don't have numbers to show that today. For sure,
sitemap reload time is almost instant now, compared to the compiled
solution. And this is very nice for development cycles.

Quick tests showed that request processing can be up to 10% faster than 
with the compiled engine (see 
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101169776323572w=4 ).

I expect the interpreted sitemap engine to be shipped very soon,
probably already in 2.0.2.

So, if nobody objects, I'll move it to the main trunk for 2.0.2.

3) SYMMETRY: the cocoon devs have always been aware of the intrinsic
cocoon asymmetry between content flowing out and content flowing in.

There are number of things that we are working on in this regard:

 3.1) Writeable Sources: we are working on making the protocol handlers
symmetrical, meaning that you can read from any resource (say
dbxml://database/docs/news) and also *write* on it. (this should remove
the need to create custom write-somewhere transformers for each type of
resource being used to write on)

This is a reality with the latest CVS for files (using the 'file:' 
protocol). Writing 

Re: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3

2002-03-03 Thread Peter Schwenke


I've also seen this on Cocoon 2.0.1, TC 4.0.1 on RH7.1 kernel 2.4.2-2
and JDK 1.3.1_01.  Browser is mozilla is 0.9.7.  We all have
sufficiently different setups.  I didn't see it with  TC3.2.1 and
Cocoon 2RC2 on the same machine. It will either be Cocoon or Tomcat.   

I'll try to work it out next time it happens.

...Peter


Nicola Ken Barozzi writes:
  From: Bud Gibson [EMAIL PROTECTED]
  
   I will note that I got some hangs.  In those places, if I hit the stop
   button and and then resubmitted the url, that worked.
  [...]
   PS  cocoon was running under RH 6.2 with jdk 1.3.1_02.  The kernel is
   2.2.18 with VA Linux smp hacks.
  
  I get this behaviour too with Tomcat 4b7, W2000, JDK 1.4, Explorer 6.0! :-o
  
  I used to think it was due to resource contention, since the browser and the
  server are on the same machine, but now that you have such a different
  configuration, i wonder...
  
  --
  Nicola Ken Barozzi [EMAIL PROTECTED]
  - verba volant, scripta manent -
 (discussions get forgotten, just code remains)
  -
  
  
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

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




RE: Cocoon and Jetty

2002-03-03 Thread Rob Finneran

Hello Listees,

I remember Brad from seeing him on the Jetty list. He helped me out one day
when I was having some problems - so I think he's a good guy, despite his
frustrations.

As for my own experience with Cocoon:

I can report success with C2 and the JBoss-2.4.4/Jetty-3.1.3 combination
right out of the box.

The real trick was for me to get Xerces working with
JBoss-2.4.4/Jetty-3.1.3. After I accomplished that, I simply copied the
cocoon .war file to the JBoss deploy directory and then it was working fine.

While I think Python and Zope are good tools, I prefer the power and
flexibility of the Java-based open-source solutions.

Rob


-Original Message-
From: Brad Cox [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 7:34 AM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon and Jetty


At 11:11 AM +0100 3/2/02, giacomo wrote:
  After wasting this whole week trying  to get Cocoon out of the box
  with not one suggestions from cocoon developers, I'm beginning to get
  the message.

Maybe you missed the reply from Vadim. He *is* a cocoon developer.

Then my apologies to Vadim. This was not apparent from his sig.

Finally my suggestion to you would be try it on another servlet engine
as my experience is that is usually *does* run out of the box following
the installation guidlines from the documents.

As I said, the problem is not with Jetty. I've tried it with two
versions of tomcat with similar results to those reported below.

I'm not interested in taking anything out on this list. I'm
interested in getting my app on the air, while repaying the help I
did receive (largely) from users with a bread crumb trail to zope,
which  appears to be a superior alternative to cocoon that DOES work
out of the box and does have support from its developers. Bye now.

On Friday 01 March 2002 03:17 pm, Anthony W. Marino wrote:
Under a regular user acct, I've reinstalled the latest cocoon(cvs) dist
with
several different releases of TC4 (4.01,4.02, 4.03, 4.10) with NO positive
results.
The above log results remain the same.


--
Brad Cox, PhD; [EMAIL PROTECTED] 703 361 4751
o For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
o Java Interactive Learning Environment http://virtualschool.edu/jile
o Java Web Application Architecture: http://virtualschool.edu/jwaa



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

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



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

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




RE: Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3

2002-03-03 Thread Vadim Gritsenko

 From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
 
 From: Bud Gibson [EMAIL PROTECTED]
 
  I will note that I got some hangs.  In those places, if I hit the
stop
  button and and then resubmitted the url, that worked.
 [...]
  PS  cocoon was running under RH 6.2 with jdk 1.3.1_02.  The kernel
is
  2.2.18 with VA Linux smp hacks.
 
 I get this behaviour too with Tomcat 4b7, W2000, JDK 1.4, Explorer
6.0! :-o
 
 I used to think it was due to resource contention, since the browser
and the
 server are on the same machine, but now that you have such a different
 configuration, i wonder...

Keep wondering: I get this on W2K with IE6.0 and *without* Cocoon and
Tomcat ;)

Seems to me IE can hang occasionally here and there for no apparent
reason at all... Especially if there are some connection issues or
server returns error.

Vadim



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

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