You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Mike Steigerwald <St...@UMich.edu> on 2003/04/12 20:32:48 UTC

Unable to load class

Hi, all,

I'm new to taglibs, and relatively new to java, so maybe this really isn't
the stumper it seems to me. I'd appreciate any suggestions.

I have started with, IMHO, a simple sql jsp. However, I'm having a devil of
a time correctly implementing the sql taglibs. My current quandary is this
compiler error:

Unable to load class org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag


This is the offending jsp code:

<%@ taglib uri="/web-inf/tld/c.tld"   prefix="c"   %>
<%@ taglib uri="/web-inf/tld/sql.tld" prefix="sql" %>

<sql:setDataSource var="productDS"
url="jdbc:odbc:agdb"
driver="sun.jdbc.odbc.JdbcOdbcDriver" 
/>



I've looked at the sql.tld file. It looks complete and uncorrupted, but I'm
no expert. Would that be a likely source of error?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


RE: Unable to load class

Posted by Mike Steigerwald <St...@UMich.edu>.
Hi, Dave,

Yes, it is case sensitive. My folder really is lower case. I've tried it
both ways.


-----Original Message-----
From: Dave Newton [mailto:dave@solaraccess.com] 
Sent: Saturday, April 12, 2003 7:55 PM
To: Tag Libraries Users List
Subject: Re: Unable to load class

> Mike Steigerwald wrote:
> > <%@ taglib uri="/web-inf/tld/c.tld"   prefix="c"   %>
> > <%@ taglib uri="/web-inf/tld/sql.tld" prefix="sql" %>

WEB-INF is, btw, case-sensitive (isn't it?)

So if you were telling me you have your libs in web-inf/lib that won't
work, they need to be in WEB-INF/lib.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: Unable to load class

Posted by Dave Newton <da...@solaraccess.com>.
> Mike Steigerwald wrote:
> > <%@ taglib uri="/web-inf/tld/c.tld"   prefix="c"   %>
> > <%@ taglib uri="/web-inf/tld/sql.tld" prefix="sql" %>

WEB-INF is, btw, case-sensitive (isn't it?)

So if you were telling me you have your libs in web-inf/lib that won't
work, they need to be in WEB-INF/lib.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: Unable to load class

Posted by Pierre Delisle <Pi...@Sun.COM>.
Try with the following taglib directives instead:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>

    -- Pierre



Mike Steigerwald wrote:
> Hi, all,
> 
> I'm new to taglibs, and relatively new to java, so maybe this really isn't
> the stumper it seems to me. I'd appreciate any suggestions.
> 
> I have started with, IMHO, a simple sql jsp. However, I'm having a devil of
> a time correctly implementing the sql taglibs. My current quandary is this
> compiler error:
> 
> Unable to load class org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag
> 
> 
> This is the offending jsp code:
> 
> <%@ taglib uri="/web-inf/tld/c.tld"   prefix="c"   %>
> <%@ taglib uri="/web-inf/tld/sql.tld" prefix="sql" %>
> 
> <sql:setDataSource var="productDS"
> url="jdbc:odbc:agdb"
> driver="sun.jdbc.odbc.JdbcOdbcDriver" 
> />
> 
> 
> 
> I've looked at the sql.tld file. It looks complete and uncorrupted, but I'm
> no expert. Would that be a likely source of error?
> 
> Thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org