Re: portal example fails
No, I never got the portal example to work. Please reply to the list in future. On Mon, 2002-08-26 at 20:40, Kenneth J. Hughes wrote: Hi Murray, did you resolve this problem? (I'm having the same problem, even after having copied xercesImpl-xxx.jar xml-apis.jar xalan-xxx.jar into ${JAVA_HOME}/jre/lib/endorsed and also into ${CATALINA_HOME}/common/lib for good measure as per http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102561831105814w=2 Still I'm not able to bring up the portal, getting the same error that you cite. Help appreciated. Thanks, Ken On Wed, 2002-08-21 at 16:42, Steven Cummings wrote: Murray, If you're using JDK 1.4 place Cocoon's Xerces and Xalans jars in the endorsed libs folders. I was able to do this successfully as per this previous mailing list message: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102550708710890w=2 Thanks, but I have already done this, as suggested in the Cocoon installation instructions. So that doesn't seem to be the solution. /S Murray Cumming [EMAIL PROTECTED] wrote: I'm trying to use the portal example in 2.0.3, with standalone Tomcat 4.0.4. After logging-on, I get a page with this error. Is this a known problem? I would try the cvs version, but it doesn't seem so simple to build from cvs. java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.sitemap_xmap.matchN4004A5(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:5363) at org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3330) at org.apache.cocoon.www.sitemap_xmap.process(/var/cache/tomcat4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3100) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) 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:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java) -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
On Thu, 2002-08-15 at 18:55, Turner, John wrote: The only thing you need in your httpd.conf, if you are using Tomcat's autogen function for mod_jk.conf, is this line: Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf Isn't that the whole point of the original message? I also find that mod_jk.conf is not being generated. I'm using the rpms on RedHat 7.2. Is this a known problem? -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
On Fri, 2002-08-16 at 15:11, Turner, John wrote: I posted a How-To at http://www.johnturner.com/howto/apache-tomcat-howto.html that details, step by step, exactly how I built my system. I've received comments via email from several people that say it worked for them...any comments or suggestions for updating it are welcome and will be added to the document as time permits. If mod_jk.conf is not being created, there is a problem with either the RPM for tomcat, or the RPM is correct and the Listener directives in server.xml are not correct. The Listener directives cause the output of mod_jk.conf. My How-To explains the two initial Listener directives I installed in my server.xml. There are also docs on the tomcat website that detail the Listener directives. Thanks. That's helpful, and the auto/mod_jk.conf is generated now. Previously I was using this: http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml which is very similar. For the record, even with the rpms, the auto/mod_jk.conf on Redhat 7.2 is wrong because it expects mod_jk.so to be in /etc/httpd/libexec rather than /etc/httpd/modules. I added a symlink to fix that. I probably just made an error in the configuration file the first time around. Thanks. It still isn't working, but that will be some other problem. -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Getting mod_webapp - should I give up?
So, nobody can help me to build mod_webapp, and there is no rpm of it to download. Does this just mean that it can't be built? I don't remember where I read that mod_webapp was the correct way to integrate Apache2 and Tomcat4. The documentation is a bit fragmented. Is mod_jk* the true way to do this? If so, could someone give me a URL to a definitive page that says this and how to get/build it? I just want to integrate Apache2 and tomcat4, not do anything special. About a year ago I did successfully integrate Apache1 and tomcat, but I haven't worked with tomcat since then. On Tue, 2002-08-13 at 17:20, Murray Cumming wrote: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting mod_webapp - should I give up?
So, I'll forget about mod_webapp because no one knows how to build it and the people who built it once say that it doesn't work well anyway. So, I'll try mod_jk, though I'm concerned that it's marked as deprecated in the apache bugzilla. Now, I just need a URL of some instructions for building mod_jk, because there are no binaries or rpms for mod_jk either, at least not for Tomcat4. Note that I'm trying to use Apache2. On Thu, 2002-08-15 at 10:16, John Burgess wrote: As far as I can see, mod_webapp was designed to be an easier to setup way of integrating apache and tomcat and it succeeds in this on windows for apache 1.3 and tomcat 4.0x. However, it will serve all content from a directory you configure it for from tomcat whereas mod_jk* will leave html, jpg, gif etc to Apache. The way round this is to have your pics and static pages in a different location that is served by Apache alone and referenced as /static/xxx or similar but this then loses the convenience of a single war file containing everything needed for the application (it can even include a mod_jk conf file which can help with mapping servlets without the need for the ugly /servlet/servlet_name of the auto-created jk conf filers of tomcat 3) Worse than the above, I have found that large requests or frequent requests or just at random cause tomcat to give an error about the client terminating or some such and hang. With mod_jk this doesn't happen (or with tomcat standalone). Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: Murray Cumming [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:04 AM To: Murray Cumming Cc: Tomcat-User Subject: Getting mod_webapp - should I give up? So, nobody can help me to build mod_webapp, and there is no rpm of it to download. Does this just mean that it can't be built? I don't remember where I read that mod_webapp was the correct way to integrate Apache2 and Tomcat4. The documentation is a bit fragmented. Is mod_jk* the true way to do this? If so, could someone give me a URL to a definitive page that says this and how to get/build it? I just want to integrate Apache2 and tomcat4, not do anything special. About a year ago I did successfully integrate Apache1 and tomcat, but I haven't worked with tomcat since then. On Tue, 2002-08-13 at 17:20, Murray Cumming wrote: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting mod_webapp
On Sun, 2002-08-11 at 19:58, Murray Cumming wrote: I'm sure this should be on an FAQ somewhere, but I have a good look all over the place and I can't find any definitive help. I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2 To keeps things simple, I've installed from the RPM. I believe I need the mod_webapp apache module that's provided by tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this. Instead, I tried building tomcat-jakarta-connectors from source, but maybe I'm not familiar enough with the ant build system: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting mod_webapp
On Mon, 2002-08-12 at 12:33, Adrian wrote: You have to have the servlet.jar in your classpath just like when you build a connector. Thanks, but I'm afraid I need to have this spelled out. I don't seem to have any CLASSPATH environment variable set. With ant, is there some standard way to add a path to the classpath used while building? I`ve built `em on FreeBSD, so I know it can be a pain. There was a site www.pubbitch.org/jboss that helped point me in the right direction. This page: http://www.pubbitch.org/jboss.html suggests building it with a manual gcc command line, but I would really prefer to use the regular build system. There are other pages there about using mod_jk2 instead, but everything I've seen so far suggests that mod_webapp is the regular choice. I just want to set it up in the most standard way possible. I`ve got to build a linux box today for a customer with James and Tomcat, write back if you still need help. - Original Message - From: Murray Cumming [EMAIL PROTECTED] To: Tomcat-User [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 2:58 PM Subject: Getting mod_webapp I'm sure this should be on an FAQ somewhere, but I have a good look all over the place and I can't find any definitive help. I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2 To keeps things simple, I've installed from the RPM. I believe I need the mod_webapp apache module that's provided by tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this. Instead, I tried building tomcat-jakarta-connectors from source, but maybe I'm not familiar enough with the ant build system: If I run ant from the top level I get this error: [javac] Compiling 31 source files to /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes [javac] /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm on/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; And if I run ant from the webapp directory, I get this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting mod_webapp
On Mon, 2002-08-12 at 13:46, Adrian wrote: Are you running apache2 ? Yes. It's installed by default on RedHat 7.2 If not you need to get the APR Erm, what's an APR? and unzip it in the webapp dir. Keep me updated, we`ll get you through it. Going to work, write me back If I can help. I check my mail there too. - Original Message - From: Murray Cumming [EMAIL PROTECTED] To: Adrian [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 12, 2002 7:45 AM Subject: Re: Getting mod_webapp On Mon, 2002-08-12 at 12:33, Adrian wrote: You have to have the servlet.jar in your classpath just like when you build a connector. Thanks, but I'm afraid I need to have this spelled out. I don't seem to have any CLASSPATH environment variable set. With ant, is there some standard way to add a path to the classpath used while building? I`ve built `em on FreeBSD, so I know it can be a pain. There was a site www.pubbitch.org/jboss that helped point me in the right direction. This page: http://www.pubbitch.org/jboss.html suggests building it with a manual gcc command line, but I would really prefer to use the regular build system. There are other pages there about using mod_jk2 instead, but everything I've seen so far suggests that mod_webapp is the regular choice. I just want to set it up in the most standard way possible. I`ve got to build a linux box today for a customer with James and Tomcat, write back if you still need help. - Original Message - From: Murray Cumming [EMAIL PROTECTED] To: Tomcat-User [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 2:58 PM Subject: Getting mod_webapp I'm sure this should be on an FAQ somewhere, but I have a good look all over the place and I can't find any definitive help. I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2 To keeps things simple, I've installed from the RPM. I believe I need the mod_webapp apache module that's provided by tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this. Instead, I tried building tomcat-jakarta-connectors from source, but maybe I'm not familiar enough with the ant build system: If I run ant from the top level I get this error: [javac] Compiling 31 source files to /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes [javac] /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/comm on/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; And if I run ant from the webapp directory, I get this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Getting mod_webapp
I'm sure this should be on an FAQ somewhere, but I have a good look all over the place and I can't find any definitive help. I'm using Tomcat 4.0.4 (because I've read that Cocoon 2 needs it rather than Tomcat 3), trying to make it work though Apache2 on RedHat 7.2 To keeps things simple, I've installed from the RPM. I believe I need the mod_webapp apache module that's provided by tomcat-jakarta-connectors4.0.4, but I can't find any RPM of this. Instead, I tried building tomcat-jakarta-connectors from source, but maybe I'm not familiar enough with the ant build system: If I run ant from the top level I get this error: [javac] Compiling 31 source files to /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/build/classes [javac] /home/murrayc/jakarta-tomcat-connectors-4.0.4-src/jk/java/org/apache/jk/common/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; And if I run ant from the webapp directory, I get this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]