I am trying to debug a series of Java/JSP applications being run on an Apache/Tomcat installation. The Apache/Tomcat installation has several websites and other JSP applications running fine. Basically, I need help trying to resolve a number of error messages. Unfortunately, I am not familiar with the code and would describe myself as a novice JSP/Java coder. I am familiar with the Apache and Tomcat setup.
Here is the Error which appears in the browser window when I try to load the test.jsp file:
org.apache.jasper.JasperEx
ception: /resources/layouts/default
.jsp(30,18
) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
org.apache.jasper.compiler
.DefaultEr
rorHandler
.jspError(
DefaultErr
orHandler.
java:40)
Here is the error which shows up in the catalina.out log file:
ERROR org.apache.catalina.core.C
ontainerBa
se.[Catali
na].[local
host].[/po
rtal].[jsp
] - Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperEx
ception: /resources/layouts/default
.jsp(30,18
) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
Here is the code for the test.jsp file.
<%@ taglib uri="
http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@ taglib uri="
http://java.sun.com/jsp/jstl/core" prefix="c" %>
<sql:query var="rs" dataSource="jdbc/smDB">
select
`where`, `version`
from
Test
</sql:query>
<sql:query var="gg" dataSource="jdbc/soDb">
select
first_name "First",
last_name "Last"
from
se_test
where
first_name = "GREN"
</sql:query>
<sql:query var="se" dataSource="jdbc/DB2">
select
epa.APP_DEPARTMENT_NAME "Dept",
epe.EMB_EMPLOYEE_NAME "Name"
from
Employee.P_APPOINTMENT epa
inner join Employee.P_EMPLOYEE epe
on epa.EMB_PERSON_ID = epe.EMB_PERSON_ID
where
epa.EMB_PERSON_ID = 46
</sql:query>
<html>
<head>
<title>DB Test</title>
</head>
<body>
<h2>Results</h2>
<h2>Results</h2>
<c:forEach var="row" items="${rs.rows}">
Where: ${row.where}<br/>
Version: ${row.version}<br/>
</c:forEach>
<c:forEach var="row" items="${se.rows}">
Where: ${row.Dept}<br/>
Version: ${row.Name}<br/>
</c:forEach>
<br>
<c:forEach var="row" items="${gg.rows}">
Name: ${row.First}
${row.Last}<br/>
</c:forEach>
<a href="
http://mydomain.skool.edu/Shibboleth.sso/Logout?return=https://a4.skool.edu/tritON/logout?target=http://mydomain.skool.edu/">Logou
t</a>
</body>
</html>
The databases exists and the queries work. I think some Java classes might be missing or not being found or something?
Any ideas what might be causing this problem?
-G