Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 86572 invoked from network); 24 Jul 2008 22:27:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 22:27:27 -0000 Received: (qmail 1413 invoked by uid 500); 24 Jul 2008 22:27:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 1384 invoked by uid 500); 24 Jul 2008 22:27:14 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 1372 invoked by uid 99); 24 Jul 2008 22:27:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 15:27:14 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 67.222.38.29 is neither permitted nor denied by domain of mlb@imparisystems.com) Received: from [67.222.38.29] (HELO outbound-mail-129.bluehost.com) (67.222.38.29) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Jul 2008 22:26:17 +0000 Received: (qmail 27941 invoked by uid 0); 24 Jul 2008 22:26:39 -0000 Received: from unknown (HELO host139.hostmonster.com) (74.220.207.139) by outboundproxy4.bluehost.com with SMTP; 24 Jul 2008 22:26:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=imparisystems.com; h=Received:Subject:From:Reply-To:To:In-Reply-To:References:Content-Type:Organization:Date:Message-Id:Mime-Version:X-Mailer:X-Identified-User; b=gUg+2OicsL+AT3O3uDUPA+zukxdRaqpwlT2bF89MsBZZLTCD5PUwTF066G100bAuOsn9zERCnzjxmyV0zjjbRiV5ab0HtpCBTFzZNkuiXQAak5HyAKmSsrrlBLl7Mq/q; Received: from pool-70-106-61-137.hag.east.verizon.net ([70.106.61.137] helo=[192.168.1.101]) by host139.hostmonster.com with esmtpa (Exim 4.69) (envelope-from ) id 1KM9Gg-0001Hc-Ui for users@tomcat.apache.org; Thu, 24 Jul 2008 16:26:39 -0600 Subject: Re: Down the rabbit hole with JDBC From: Matt Burkhardt Reply-To: mlb@imparisystems.com To: Tomcat Users List In-Reply-To: <4888F71A.7040007@cornell.edu> References: <1216931497.7988.47.camel@mlb-laptop> <4888F71A.7040007@cornell.edu> Content-Type: multipart/alternative; boundary="=-bYihCJ+MDeVG0L045yPH" Organization: Impari Systems, Inc. Date: Thu, 24 Jul 2008 18:26:40 -0400 Message-Id: <1216938401.7988.50.camel@mlb-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Identified-User: {569:host139.hostmonster.com:imparisy:imparisystems.com} {sentby:smtp auth 70.106.61.137 authed with mlb@imparisystems.com} X-Virus-Checked: Checked by ClamAV on apache.org --=-bYihCJ+MDeVG0L045yPH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks - it was the first - I just had the files in the WEB-INF directory - not in the lib Is there some method for finding errors / logs? Right now, I'm trying to get an application running, and I'm just guessing. For example, my catalina.log file says INFO: The listener "org.alfresco.web.app.ContextListener" is already configured for this context. The duplicate definition has been ignored. Jul 24, 2008 3:46:11 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Jul 24, 2008 3:46:11 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/alfresco] startup failed due to previous errors Where can I go to find out what's causing this? =20 On Thu, 2008-07-24 at 17:41 -0400, David Smith wrote: > This isn't a JDBC error as much as it's a taglib error. You are trying=20 > to use JSTL taglibs in your web application and tomcat can't find the=20 > libraries that contain the taglib. Things to check: >=20 > 1. standard.jar and jstl.jar are in the webapp's WEB-INF/lib directory=20 > -- at least for jstl 1.1. I believe jstl 1.2 consolidated things into=20 > one jar file. >=20 > 2. The webapp's docBase is not the same as the element's=20 > appBase attribute in server.xml. This has already bitten one person on=20 > the list today. >=20 > --David >=20 > Matt Burkhardt wrote: > > Sorry - I've been slogging through this... > > > > Anyway, I'm trying to get an application working, but all of their > > documentation talks about is tomcat5.5 and I've got tomcat6 > > > > I have gotten the latest Connector/J binary from MySQL and installed in > > into /lib but I would like to test it. So, I went to > > > > http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.= html > > > > and followed the instructions to set up a DBTest - but I get this > > > > HTTP Status 500 -=20 > > > > _______________________________________________________________________= _ > > > > type Exception report > > > > message=20 > > > > description The server encountered an internal error () that prevented > > it from fulfilling this request. > > > > exception=20 > > > > > > org.apache.jasper.JasperException: The absolute uri: http://java.sun.co= m/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deploy= ed with this application > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHa= ndler.java:51) > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.ja= va:409) > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.ja= va:116) > > org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagL= ibraryInfoImpl.java:315) > > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImp= l.java:148) > > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420= ) > > org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) > > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1433) > > org.apache.jasper.compiler.Parser.parse(Parser.java:133) > > org.apache.jasper.compiler.ParserController.doParse(ParserController.j= ava:216) > > org.apache.jasper.compiler.ParserController.parse(ParserController.jav= a:103) > > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:294) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:281) > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.= java:566) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.= java:317) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:33= 7) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > Here's the code that I'm running - are the taglibs incorrect? > > > > <%@ taglib uri=3D"http://java.sun.com/jsp/jstl/sql" prefix=3D"sql" %> > > <%@ taglib uri=3D"http://java.sun.com/jsp/jstl/core" prefix=3D"c" %> > > > > > > select id, foo, bar from testdata > > > > > > > > > > DB Test > > > > > > > >

Results

> > =20 > > > > Foo ${row.foo}
> > Bar ${row.bar}
> >
> > > > > > > > > > > > > > Matt Burkhardt, MSTM > > President > > Impari Systems, Inc. > > =EF=BB=BF401 Rosemont Avenue > > Frederick, MD 21701 > > mlb@imparisystems.com > > www.imparisystems.com > > (301) 644-3911 > > > > > > > > =20 >=20 >=20 > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 Matt Burkhardt, MSTM President Impari Systems, Inc. =EF=BB=BF401 Rosemont Avenue Frederick, MD 21701 mlb@imparisystems.com www.imparisystems.com (301) 644-3911 --=-bYihCJ+MDeVG0L045yPH--