Re: Missing classes building 2.1.7

2005-08-30 Thread Joerg Heinicke

On 30.08.2005 02:08, Peter Flynn wrote:


(Actually I meant, when the .war file was distributed ducking :-)


;-)


Just did that. I was hoping it would work when I hit up localhost:8080
for the tomcat home page prior to trying localhost:8080/cocoon and the
disk light went on solid and I could hear the disk furiously working :-)

Tomcat unpacked the war file OK, but it still says


HTTP Status 404 - Servlet Cocoon is not available

type Status report

message Servlet Cocoon is not available

description The requested resource (Servlet Cocoon is not available) 
is not available.

Apache Tomcat/5.0


Hmm, strange. You probably have to look into the log files of Tomcat now 
(if Cocoon has not been started there should not be Cocoon logs).


Another possibility - at least for introductory tests - is to use 
Jetty: cocoon servlet on the command line.


There doesn't appear to be any command jetty nor any command cocoon.


Huh? There is a build.sh/.bat and a cocoon.sh/.bat in the same root 
directory of the cocoon dist.



I didn't try it before, because I'm fairly confident that Cocoon itself
works once it's running :-)


Yes, it does :)


I've been using it since Cocoon-1, and my
problems have mostly been with getting it installed, not with running it
once it's in. And it's usually been my own ignorance that's to blame:
the docs are written for the Java expert, rather than the XML user.


That's indeed a problem. But there is much work in progress on the 
documentation. The main goal: everybody can work on the documentation. 
This moves the task from the committers and so from experts on Cocoon 
more to users of Cocoon.


Joerg

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



Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn

Mark Lundquist wrote:

It's cocoon.sh servlet. 


My fault. I keep forgetting to add the .sh to all the script calls...

OK Cocoon runs fine at port .

Now to find the tomcat logs.

///Peter

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



Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn

Joerg Heinicke wrote:
description The requested resource (Servlet Cocoon is not available) 
is not available.

Apache Tomcat/5.0



Hmm, strange. You probably have to look into the log files of Tomcat now 
(if Cocoon has not been started there should not be Cocoon logs).


Having tracked down the tomcat logs to /var/log/tomcat5 (thank you Red 
Hat), we see:


(this was the day before, when I did a build webapp)

INFO: Installing web application at context path /cocoon from URL 
file:/var/lib/tomcat5/webapps/cocoon
- Reading standard config 
net/sourceforge/myfaces/resource/standard-faces-config.xml

- Reading config jar:file:/tmp/myfacesnsph7s.jar!/META-INF/faces-config.xml
- Reading config jar:file:/tmp/myfacesnsph7t.jar!/META-INF/faces-config.xml
- Error initializing ServletContext
javax.faces.FacesException: java.io.IOException: Stream closed.
   at 
net.sourceforge.myfaces.config.FacesConfigurator.feedJarConfig(java.lang.String) 
(Unknown Source)

[snip]
- ServletContext '/var/lib/tomcat5/webapps/cocoon' initialized.
- The database 'db' root directory has been set to 
/var/lib/tomcat5/webapps/cocoon/WEB-INF/db. Keep in mind that if a war 
upgrade will take place the database will be lost.

- Database points to /var/lib/tomcat5/webapps/cocoon/WEB-INF/db
- Filer 'org.apache.xindice.core.filer.BTreeFiler' is not available
org.apache.xindice.core.filer.FilerException: Error creating SysSymbols.tbl
[snip]
Caused by: java.io.FileNotFoundException: 
/var/lib/tomcat5/webapps/cocoon/WEB-INF/db/system/SysSymbols/SysSymbols.tbl 
(No such file or directory)


And then yesterday when I did a build war:

INFO: Installing web application at context path /cocoon from URL 
file:/var/lib/tomcat5/webapps/cocoon
- Reading standard config 
net/sourceforge/myfaces/resource/standard-faces-config.xml

- Reading config jar:file:/tmp/myfacesihu7z0.jar!/META-INF/faces-config.xml
- Reading config jar:file:/tmp/myfacesihu7z1.jar!/META-INF/faces-config.xml
- Error initializing ServletContext
javax.faces.FacesException: java.io.IOException: Stream closed.
[snip]
29 Aug 2005 23:40:04 - org.apache.slide.common.Namespace - INFO - 
Loading namespace cocoon configuration
29 Aug 2005 23:40:04 - org.apache.slide.common.Domain - ERROR - 
org.apache.slide.structure.ObjectNotFoundException: No object found at 
/actions/read
org.apache.slide.structure.ObjectNotFoundException: No object found at 
/actions/read
   at 
org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.retrieveObject() 
(Unknown Source)


etc etc da capo ad nauseam.

Something's missing but I don't know if it's Red Hat's kludge of tomcat5
or Java. Or Cocoon. Or a mixture :-)

///Peter

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



Re: Missing classes building 2.1.7

2005-08-30 Thread Joerg Heinicke

On 30.08.2005 23:57, Peter Flynn wrote:

Having tracked down the tomcat logs to /var/log/tomcat5 (thank you Red 
Hat), we see:


(this was the day before, when I did a build webapp)

INFO: Installing web application at context path /cocoon from URL 
file:/var/lib/tomcat5/webapps/cocoon
- Reading standard config 
net/sourceforge/myfaces/resource/standard-faces-config.xml

- Reading config jar:file:/tmp/myfacesnsph7s.jar!/META-INF/faces-config.xml
- Reading config jar:file:/tmp/myfacesnsph7t.jar!/META-INF/faces-config.xml
- Error initializing ServletContext
javax.faces.FacesException: java.io.IOException: Stream closed.
   at 
net.sourceforge.myfaces.config.FacesConfigurator.feedJarConfig(java.lang.String) 
(Unknown Source)

[snip]
- ServletContext '/var/lib/tomcat5/webapps/cocoon' initialized.
- The database 'db' root directory has been set to 
/var/lib/tomcat5/webapps/cocoon/WEB-INF/db. Keep in mind that if a war 
upgrade will take place the database will be lost.

- Database points to /var/lib/tomcat5/webapps/cocoon/WEB-INF/db
- Filer 'org.apache.xindice.core.filer.BTreeFiler' is not available
org.apache.xindice.core.filer.FilerException: Error creating SysSymbols.tbl
[snip]
Caused by: java.io.FileNotFoundException: 
/var/lib/tomcat5/webapps/cocoon/WEB-INF/db/system/SysSymbols/SysSymbols.tbl 
(No such file or directory)


And then yesterday when I did a build war:

INFO: Installing web application at context path /cocoon from URL 
file:/var/lib/tomcat5/webapps/cocoon
- Reading standard config 
net/sourceforge/myfaces/resource/standard-faces-config.xml

- Reading config jar:file:/tmp/myfacesihu7z0.jar!/META-INF/faces-config.xml
- Reading config jar:file:/tmp/myfacesihu7z1.jar!/META-INF/faces-config.xml
- Error initializing ServletContext
javax.faces.FacesException: java.io.IOException: Stream closed.
[snip]
29 Aug 2005 23:40:04 - org.apache.slide.common.Namespace - INFO - 
Loading namespace cocoon configuration
29 Aug 2005 23:40:04 - org.apache.slide.common.Domain - ERROR - 
org.apache.slide.structure.ObjectNotFoundException: No object found at 
/actions/read
org.apache.slide.structure.ObjectNotFoundException: No object found at 
/actions/read
   at 
org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.retrieveObject() 
(Unknown Source)


etc etc da capo ad nauseam.

Something's missing but I don't know if it's Red Hat's kludge of tomcat5
or Java. Or Cocoon. Or a mixture :-)


Sorry, but I don't know any of these errors, so I can't help you with 
them directly. Only the suggestion to build a Cocoon with the offending 
blocks (looks like xmldb and slide) excluded.


Joerg

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



Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn

Joerg Heinicke wrote:

Sorry, but I don't know any of these errors, so I can't help you with 
them directly. Only the suggestion to build a Cocoon with the offending 
blocks (looks like xmldb and slide) excluded.


Nope...I just downloaded a fresh Tomcat 5.5.9 from Apache and installed 
that. Cocoon worked straight off.


Answer: it won't work with the preinstalled tomcat5 that comes with FC4.

///Peter

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



Re: Missing classes building 2.1.7

2005-08-29 Thread Joerg Heinicke

On 29.08.2005 01:12, Peter Flynn wrote:


Umm...now that it's built OK, I moved webapps to tomcat/webapps/cocoon
and copied the xalan etc, and restarted tomcat, but tomcat says Servlet
Cocoon is not available.

sigh/ It was sooo much easier with a .war file.


Why don't you do it that way the? ;-) build war creates a WAR file for 
you. Another possibility - at least for introductory tests - is to use 
Jetty: cocoon servlet on the command line.


Joerg

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



Re: Missing classes building 2.1.7

2005-08-29 Thread Peter Flynn

Joerg Heinicke wrote:

On 29.08.2005 01:12, Peter Flynn wrote:


Umm...now that it's built OK, I moved webapps to tomcat/webapps/cocoon
and copied the xalan etc, and restarted tomcat, but tomcat says Servlet
Cocoon is not available.

sigh/ It was sooo much easier with a .war file.


(Actually I meant, when the .war file was distributed ducking :-)

Why don't you do it that way then? ;-) build war creates a WAR file for 
you. 


Just did that. I was hoping it would work when I hit up localhost:8080
for the tomcat home page prior to trying localhost:8080/cocoon and the
disk light went on solid and I could hear the disk furiously working :-)

Tomcat unpacked the war file OK, but it still says


HTTP Status 404 - Servlet Cocoon is not available

type Status report

message Servlet Cocoon is not available

description The requested resource (Servlet Cocoon is not available) is not 
available.
Apache Tomcat/5.0


Pity.

Another possibility - at least for introductory tests - is to use 
Jetty: cocoon servlet on the command line.


There doesn't appear to be any command jetty nor any command cocoon.


# jetty cocoon servlet
bash: jetty: command not found
# cocoon servlet
bash: cocoon: command not found
#


I'm sure I saw an explicit command to do this, in the docs or the wiki, 
but I can't find it.


I didn't try it before, because I'm fairly confident that Cocoon itself
works once it's running :-)  I've been using it since Cocoon-1, and my
problems have mostly been with getting it installed, not with running it
once it's in. And it's usually been my own ignorance that's to blame:
the docs are written for the Java expert, rather than the XML user.

///Peter

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



Re: Missing classes building 2.1.7

2005-08-29 Thread Mark Lundquist

Hi Peter,

On Aug 29, 2005, at 5:08 PM, Peter Flynn wrote:

There doesn't appear to be any command jetty nor any command 
cocoon.



# jetty cocoon servlet
bash: jetty: command not found
# cocoon servlet
bash: cocoon: command not found
#


I'm sure I saw an explicit command to do this, in the docs or the 
wiki, but I can't find it.


It's cocoon.sh servlet.  Or ./cocoon.sh servlet if you don't have 
. on your path.


HTH,
—ml—


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



Missing classes building 2.1.7

2005-08-28 Thread Peter Flynn
I downloaded 2.1.7 on a fresh installation of FC4 with the Tomcat 5.0 
RPM and Sun's JDK 1.5.0_04. When I tried ./build.sh it went through the

motions, but came up with two errors:

 java.lang.ClassNotFoundException: 
org.apache.tools.ant.taskdefs.optional.XslpLiaison
java.lang.ClassNotFoundException: 
org.apache.tools.ant.taskdefs.optional.TraXLiaison


Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4
but build.sh clearly disables it in order to use its own copy, so I'm
puzzled as to why it can't find these classes.

There are a few mentions of this problem on the Web (eg PlanetCocoon)
but nothing that I can find in the Wiki, and the FAQ page at
http://cocoon.apache.org/2.1/faq/faq-install.html is empty (dead? or
just no-one has posted to it yet? or am I in the wrong place?)

///Peter

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



Re: Missing classes building 2.1.7

2005-08-28 Thread Joerg Heinicke

On 28.08.2005 21:54, Peter Flynn wrote:

I downloaded 2.1.7 on a fresh installation of FC4 with the Tomcat 5.0 
RPM and Sun's JDK 1.5.0_04. When I tried ./build.sh it went through the

motions, but came up with two errors:

 java.lang.ClassNotFoundException: 
org.apache.tools.ant.taskdefs.optional.XslpLiaison
java.lang.ClassNotFoundException: 
org.apache.tools.ant.taskdefs.optional.TraXLiaison


Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4


That's the problem.


but build.sh clearly disables it in order to use its own copy,


Unfortunately not: 
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=112474471307581w=4



so I'm puzzled as to why it can't find these classes.


http://wiki.apache.org/cocoon/Installing

Joerg

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



Re: Missing classes building 2.1.7

2005-08-28 Thread Peter Flynn

Joerg Heinicke wrote:

On 28.08.2005 21:54, Peter Flynn wrote:

Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4


That's the problem.


I thought it might be. The ghost of Red Hat strikes again...


but build.sh clearly disables it in order to use its own copy,


Unfortunately not: 
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=112474471307581w=4


Aha. Grrr. Thank you...OK, soft links to their binaries removed, and
I updated the Wiki page at http://wiki.apache.org/cocoon/Installing
to reflect the changes for FC4.


so I'm puzzled as to why it can't find these classes.


I wasn't seeing the Could not create task or type of type: if. error
so I hadn't found the page.

It seems to like building now, but it comes up with a different error:

package net.php does not exist
public class PhpServlet extends net.php.servlet implements Runnable {
   ^

and then dozens of warnings that @something cannot be used, or can't be 
found, or the reference isn't found.


///Peter

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



Re: Missing classes building 2.1.7

2005-08-28 Thread Joerg Heinicke

On 28.08.2005 23:55, Peter Flynn wrote:


Aha. Grrr. Thank you...OK, soft links to their binaries removed, and
I updated the Wiki page at http://wiki.apache.org/cocoon/Installing
to reflect the changes for FC4.


Thanks.


I wasn't seeing the Could not create task or type of type: if. error
so I hadn't found the page.


Strange enough that the same root cause can lead to different symptoms.


It seems to like building now, but it comes up with a different error:

package net.php does not exist
public class PhpServlet extends net.php.servlet implements Runnable {
   ^


Also strange. Cocoon comes with mock objects for the case you have not 
put a php jar into your setup. Normally this works fine. For the case 
you don't need the php block you should simply exclude it from your 
build (see blocks.properties for more information). Otherwise put a php 
jar into lin/local.


and then dozens of warnings that @something cannot be used, or can't be 
found, or the reference isn't found.


This is no problem I think. It's just Javadoc claiming about unknown tags.

Joerg

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



Re: Missing classes building 2.1.7

2005-08-28 Thread Peter Flynn

Joerg Heinicke wrote:

package net.php does not exist
public class PhpServlet extends net.php.servlet implements Runnable {


Also strange. Cocoon comes with mock objects for the case you have not 
put a php jar into your setup. Normally this works fine. For the case 
you don't need the php block you should simply exclude it from your 
build (see blocks.properties for more information). Otherwise put a php 
jar into lin/local.


I won't be wanting PHP anyway so it'll get excluded eventually.

and then dozens of warnings that @something cannot be used, or can't 
be found, or the reference isn't found.


This is no problem I think. It's just Javadoc claiming about unknown tags.


grrJavadoc/grr

Umm...now that it's built OK, I moved webapps to tomcat/webapps/cocoon
and copied the xalan etc, and restarted tomcat, but tomcat says Servlet
Cocoon is not available.

sigh/ It was sooo much easier with a .war file.

///Peter

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