Re: JspC compile JSP with JSTL
Kelly: The -- is a known bug in a previous version of xerces. xerces 2.3.0 was released in the last 24 hrs. ad is supposed to cure the problem. Let me know if it works. Regards, Jack Lauman nwcascades.com Kelly Chen wrote: I just wonder if anyone have done this before. I am using JspC to compile JSP from the command line. It was working OK until I tried to use JSTL. As soon as I add the following lines to the to be compiled JSP %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % JspC starts to run into error. I debug a bit more into Jasper, the root problem is caused by a SAX exception [jasper2] [TldLocationsCache] tldConfigJar(/WEB-INF/lib/standard.jar): Process ing entry 'META-INF/c.tld' [jasper2] Parsing /WEB-INF/lib/standard.jar [jasper2] The string -- is not permitted within comments.+ line307 [jasper2] org.xml.sax.SAXParseException: The string -- is not permitted with in comments. [jasper2] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) [jasper2] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sour e) [jasper2] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java: 6) [jasper2] at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(Pars rUtils.java:171) [jasper2] at org.apache.jasper.compiler.TldLocationsCache.parseTldForUri(T dLocationsCache.java:288) [jasper2] at org.apache.jasper.compiler.TldLocationsCache.tldConfigJar(Tld ocationsCache.java:254) [jasper2] at org.apache.jasper.compiler.TldLocationsCache.processJars(TldL cationsCache.java:218) . I couldn't really make much sense out of the error message. the standard.jar is jakarta-taglibs, standard-1.0.2. I have been trying to use different version of dom/sax parser, different version of Jasper library. The result is all the same. Do I miss anything obvious? I know Jasper supports 1.2 JSTL and it must have been worked from Tomcat, because I have seen UI page shows JSP with the core taglib without issue. I just couldn't figure why JspC couldn't do the same. -- Kelly Chen Tumbleweed Communication Corp. T:650-216-2043 700 Saginaw Drive F:650-216-2565 Redwood City, CA 94063 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
standardContext.namingInitFailed
I'm getting the following error in my log files after each webapp is loaded: StandardContext[/soap]: Cannot find message associated with key standardContext.namingInitFailed I assume this has something to do with JNDI... how can I fix it? Jack -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat fails to start...
Works fine now thanks! Jack Glenn Nielsen wrote: I ran across that today and committed a change to CVS which fixes the problem. Thanks for reporting it. Glenn Jack Lauman wrote: Tomcat 4.x (CVS 12-25-2001) fails to start. I'm using the following configuration: RedHat 7.0 (glibc 2.2.4-18.7.0.3) jdk1.3.1_02 commons-utils-1.1 commons-collections-1.0 commons-digester-1.1.1 commons-dbcp-20011222 commons-modeler-20011222 commons-pool-20011222 crimson-1.1.3 xerces-1.4.4 I got the following error when executing $CATALINA_HOME/bin/startup.sh and would appreciate any assistance in resolving it. Thanks, Jack End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.ServerSocketFactory at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:155) at org.apache.commons.digester.Digester.endElement(Digester.java:757) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1170) at org.apache.catalina.startup.Catalina.start(Catalina.java:444) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:246) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.ServerSocketFactory java.lang.ClassNotFoundException: org.apache.catalina.ServerSocketFactory at org.apache.commons.digester.Digester.createSAXException(Digester.java:1763) at org.apache.commons.digester.Digester.createSAXException(Digester.java:1785) at org.apache.commons.digester.Digester.endElement(Digester.java:760) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1170) at org.apache.catalina.startup.Catalina.start(Catalina.java:444) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:246) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- -- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder| MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat fails to start...
Tomcat 4.x (CVS 12-25-2001) fails to start. I'm using the following configuration: RedHat 7.0 (glibc 2.2.4-18.7.0.3) jdk1.3.1_02 commons-utils-1.1 commons-collections-1.0 commons-digester-1.1.1 commons-dbcp-20011222 commons-modeler-20011222 commons-pool-20011222 crimson-1.1.3 xerces-1.4.4 I got the following error when executing $CATALINA_HOME/bin/startup.sh and would appreciate any assistance in resolving it. Thanks, Jack End event threw exception java.lang.ClassNotFoundException: org.apache.catalina.ServerSocketFactory at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:155) at org.apache.commons.digester.Digester.endElement(Digester.java:757) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1170) at org.apache.catalina.startup.Catalina.start(Catalina.java:444) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:246) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.ServerSocketFactory java.lang.ClassNotFoundException: org.apache.catalina.ServerSocketFactory at org.apache.commons.digester.Digester.createSAXException(Digester.java:1763) at org.apache.commons.digester.Digester.createSAXException(Digester.java:1785) at org.apache.commons.digester.Digester.endElement(Digester.java:760) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1170) at org.apache.catalina.startup.Catalina.start(Catalina.java:444) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:246) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Trying New Connectors Build Stuff
For those interested, here's how I got it to work: Platform: RedHat Linux7.0 OS: Linux 2.2.19 Apache ver: 1.3.19 (w/SSL 0.9.6a-2.8.3) Apache Dir: /var/lib/apache Conf dir: /etc/httpd/conf TOMCAT_HOME: /usr/java/tomcat Dowloaded apr and apr-util from cvs. Configured both with: ./configure --prefix=/usr \ --enable-DEAPI \ --libexcdir=/usr/lib \ --sysconfdir=/etc/httpd/conf \ --disable-threads Configured the connectors directory: ./configure --prefix=/usr --enable-DEAPI \ --with-apache=/usr/sbin \ (apxs lives here) --with-apr=/usr/java/apr \ --libexecdir=/usr/lib \ --sysconfdir=/etc/httpd/conf NOTES: I had to manually copy APRVARS from the apr directory to the apr-util directory to get apr-util to compile without complaining. I had to disable threads to get 'apachectl configtest' to stop complaining about 'apr_pthreads'. Other than that it compiled without any warnings, and apache had no problems loading it. Regards, Jack Lauman Craig R. McClanahan wrote: The autoconf stuff is a total mystery to me, but here's my experience so far. Platform: Red Hat Linux 7.1 Problem 1 - Can't find APXS: I tried ./configure --with-apr=/usr/local --with-apxs=x with various patterns for x (/usr/local/apache, /usr/local/apache/bin, /usr/local/apache/bin/apxs) and could not get it to recognize where my apxs binary was (in /usr/local/apache/bin). Temporary workaround: add /usr/local/apache/bin to the PATH environment variable and execute ./configure --with-apr=/usr/local --with-apxs to let the configure script find apxs on the path. Problem 2 - Can't compile mod_webapp: The Makedefs file that is created has the following line: APXS = @APXS@ which causes the build of the mod_webapp connector to blow up: Linking Apache 1.3.x module make[1]: APXS@: Command not found make[1]: *** [mod_webapp.so] Error 127 Workaround: manually patch Makedefs to say APXS = /usr/local/apache/bin/apxs Problem 3 - configtest fails Moved mod_webapp.so into /usr/local/apache/libexec and added some config directives to the httpd.conf file, including LoadModule webapp_module libexec/mod_webapp.so but running the configtest option throws this error: Cannot load /usr/local/apache/libexec/mod_webapp.so into server: /usr/local/lib/libapr.so.0: undefined symbol: pthread_create As you can see, it correctly found where my libapr.so shared library is, but cannot find the pthreads library - even though it's installed. This *could* be because Red Hat 7.1 uses libc-2.2.2.so, and I've heard others have had problems with this. Problem 4 - Documenation for httpd.conf directives Even when all of the above stuff gets fixed, I cannot find any docs on the httpd.conf directives that mod_webapp supports. The notes in the $CATALINA_HOME/conf/server.xml file do not appear to be accurate any more. Where's the docs? Craig