Advertisement

05.31.2008 at 06:13AM PDT, ID: 23446811
[x]
Attachment Details

I am getting a JasperException using Tomcat 5.5

Asked by sakkie6yster in Apache Tomcat Application Server, Java Server Pages (JSP), Jboss Application Server

Tags: , , , , ,

I'm getting the exception JasperException: org.apache.jasper.JasperException: /general/portalRedirector.jsp(4,56) The prefix html specified in this tag directive has been previously used by an action in file /general/portalRedirector.jsp line when running an application on Tomcat 5.5.

This same application is running without any problems on WAS 5.  I'm trying to convert the application to run on Jboss 4.0.4GA. I was able to get past the login screen (had to get LDAP working on JBoss).  After authentication, the application seem to direct to the portalRedirector.jsp, which seems to cause this error.

I'm including the portalRedirector.jsp and web.xml documents as code snippets:Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
portalRedirector.jsp: (this jsp is fine on WAS 5)
=====================
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html>
<HEAD>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
 
<%@ page 
language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../theme/Master.css" rel="stylesheet"
	type="text/css">
<TITLE>AuthenticalForward Page.</TITLE>
</HEAD>
<BODY>
 
<html:form method="post" action="loginDispatch.do">
	<%
		if (((HttpServletRequest) pageContext.getRequest()).isUserInRole(com.fnb.p4p.service.constants.RoleConstants.SYSTEM_ADMINISTRATOR) ||
			((HttpServletRequest) pageContext.getRequest()).isUserInRole(com.fnb.p4p.service.constants.RoleConstants.VIEW_ONLY_USER) ||
			((HttpServletRequest) pageContext.getRequest()).isUserInRole(com.fnb.p4p.service.constants.RoleConstants.TEAM_LEADER)) {
	%>
		<P>Please be patient while the administration portal loads...</P>
		<script  LANGUAGE="JavaScript">	
			document.forms[0].action='<%=com.fnb.p4p.service.constants.WebConstants.P4P_CONTEXT%>loginDispatch.do?method=toAdminMenu';
			document.forms[0].submit();				
		</script>
	<%
		} else {
	%>
		<P>Please be patient while your production month values are calculated...</P>
		<script>
			document.forms[0].action='<%=com.fnb.p4p.service.constants.WebConstants.P4P_CONTEXT%>loginDispatch.do?method=toEmployeeDashboard';
			document.forms[0].submit();				
		</script>
	<%
		}
	%>
</html:form>
</BODY>
</html:html>
 
The web.xml:
============
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
	<display-name>PayForPerformanceWeb</display-name>
	<filter>
		<filter-name>PostLoginFilter</filter-name>
		<display-name>PostLoginFilter</display-name>
		<description>Post Login Filter</description>
		<filter-class>com.fnb.p4p.web.filters.PostLoginFilter</filter-class>
	</filter>
	<filter>
		<filter-name>InterceptorFilter</filter-name>
		<display-name>InterceptorFilter</display-name>
		<description>Interceptor Filter</description>
		<filter-class>com.fnb.p4p.web.filters.InterceptorFilter</filter-class>
	</filter>
	<filter>
		<filter-name>AuthenticationFilter</filter-name>
		<display-name>AuthenticationFilter</display-name>
		<filter-class>com.fnb.p4p.web.filters.AuthenticationFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>PostLoginFilter</filter-name>
		<url-pattern>/j_security_check</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>InterceptorFilter</filter-name>
		<servlet-name>action</servlet-name>
	</filter-mapping>
	<filter-mapping>
		<filter-name>AuthenticationFilter</filter-name>
		<url-pattern>/AuthenticationFilter</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>AuthenticationFilter</filter-name>
		<servlet-name>action</servlet-name>
	</filter-mapping>	
	<servlet>  
	   <servlet-name>ServletRedirector</servlet-name>  
	   <servlet-class>org.apache.cactus.server.ServletTestRedirector 
	      </servlet-class>  
	</servlet>  
	<servlet>
		<servlet-name>action</servlet-name>
		<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
		<init-param>
			<param-name>config</param-name>
			<param-value>/WEB-INF/struts-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>debug</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>detail</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>validate</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>QualityPercentageTest</servlet-name>
		<display-name>QualityPercentageTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.QualityPercentageTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>MonthlyProductionBonusTest</servlet-name>
		<display-name>MonthlyProductionBonusTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.MonthlyProductionBonusTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>MonthlyPointsBasedRenumerationTest</servlet-name>
		<display-name>MonthlyPointsBasedRenumerationTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.MonthlyPointsBasedRenumerationTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>AveragePointsPerHourTest</servlet-name>
		<display-name>AveragePointsPerHourTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.AveragePointsPerHourTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>TotalPointsEarnedTest</servlet-name>
		<display-name>TotalPointsEarnedTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.TotalPointsEarnedTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>SalaryNotificationTest</servlet-name>
		<display-name>SalaryNotificationTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.SalaryNotificationTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>AwdStatusTest</servlet-name>
		<display-name>AwdStatusTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.AwdStatusTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>HistoryTest</servlet-name>
		<display-name>HistoryTest</display-name>
		<servlet-class>com.fnb.p4p.integration.test.HistoryTest</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>TestReportRequestor</servlet-name>
		<display-name>TestReportRequestor</display-name>
		<servlet-class>com.fnb.p4p.integration.test.TestReportRequestor</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>TestReportProgram</servlet-name>
		<display-name>TestReportProgram</display-name>
		<servlet-class>com.fnb.p4p.integration.test.TestReportProgram</servlet-class>
	</servlet>
	<servlet-mapping>  
	   <servlet-name>ServletRedirector</servlet-name>  
	   <url-pattern>/ServletRedirector</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>QualityPercentageTest</servlet-name>
		<url-pattern>/QualityPercentageTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>MonthlyProductionBonusTest</servlet-name>
		<url-pattern>/MonthlyProductionBonusTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>MonthlyPointsBasedRenumerationTest</servlet-name>
		<url-pattern>/MonthlyPointsBasedRenumerationTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>AveragePointsPerHourTest</servlet-name>
		<url-pattern>/AveragePointsPerHourTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>TotalPointsEarnedTest</servlet-name>
		<url-pattern>/TotalPointsEarnedTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>SalaryNotificationTest</servlet-name>
		<url-pattern>/SalaryNotificationTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>AwdStatusTest</servlet-name>
		<url-pattern>/AwdStatusTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>HistoryTest</servlet-name>
		<url-pattern>/HistoryTest</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>TestReportRequestor</servlet-name>
		<url-pattern>/TestReportRequestor</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>TestReportProgram</servlet-name>
		<url-pattern>/TestReportProgram</url-pattern>
	</servlet-mapping>
	<session-config>
		<session-timeout>10</session-timeout>
	</session-config>
	<welcome-file-list>
		<welcome-file>index.htm</welcome-file>
	</welcome-file-list>
	<error-page>
		<error-code>500</error-code>
		<location>/Error.jsp</location>
	</error-page>
	<error-page>
		<error-code>503</error-code>
		<location>/Error.jsp</location>
	</error-page>
	<taglib>
		<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
		<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
		<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
		<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
		<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
		<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
		<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/application-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-application.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/page-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-page.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/request-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-request.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/response-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-response.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/session-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-session.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>jspsql</taglib-uri>
		<taglib-location>/WEB-INF/lib/jspsql.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/i18n.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-datetime.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/string-1.0.1</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-string.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/utility</taglib-uri>
		<taglib-location>/WEB-INF/lib/utility.jar</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>http://jakarta.apache.org/taglibs/mailer-1.1</taglib-uri>
		<taglib-location>/WEB-INF/lib/taglibs-mailer.jar</taglib-location>
	</taglib>
	<taglib>
        <taglib-uri>/WEB-INF/struts-menu.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
    </taglib>
	<resource-ref id="ResourceRef_1089819053828">
		<description>Styx Connector</description>
		<res-ref-name>eis/styx</res-ref-name>
		<res-type>javax.resource.cci.ConnectionFactory</res-type>
		<res-auth>Application</res-auth>
		<res-sharing-scope>Shareable</res-sharing-scope>
	</resource-ref>
	<security-constraint>
		<display-name>Administrator Constraint</display-name>
		<web-resource-collection>
			<web-resource-name>Administrator Constraint</web-resource-name>
			<description></description>
			<url-pattern>*.jsp</url-pattern>
			<url-pattern>*.do</url-pattern>
			<http-method>GET</http-method>
			<http-method>PUT</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
 	<auth-constraint>
			<description></description>
			<role-name>SystemAdministrator</role-name>
			<role-name>StandardUser</role-name>
			<role-name>QualityChecker</role-name>
			<role-name>TeamLeader</role-name>
			<role-name>QualityAssessor</role-name>
			<role-name>ViewOnlyUser</role-name>
			<role-name>StandardUserFO</role-name>
			<role-name>StandardUserBO</role-name>
			<role-name>Administrator</role-name>			
	</auth-constraint>
	</security-constraint>
	<login-config>
		<auth-method>FORM</auth-method>
 		<realm-name>ldap-security</realm-name>
		<form-login-config>
			<form-login-page>/login.jsp</form-login-page>
			<form-error-page>/login.jsp?error=true</form-error-page>
		</form-login-config>
	</login-config>
	<security-role>
		<description>The system administrator. This role has access to the administration portal.</description>
		<role-name>SystemAdministrator</role-name>
	</security-role>
	<security-role>
		<description>Standard system user.</description>
		<role-name>StandardUser</role-name>
	</security-role>
	<security-role>
		<description>System User</description>
		<role-name>QualityChecker</role-name>
	</security-role>
	<security-role>
		<description>System User</description>
		<role-name>TeamLeader</role-name>
	</security-role>
	<security-role>
		<description></description> 
		<role-name>QualityAssessor</role-name>
	</security-role>
	<security-role>
		<description></description>
		<role-name>ViewOnlyUser</role-name>
	</security-role>
	<security-role>
		<description></description>
		<role-name>StandardUserFO</role-name>
	</security-role>
	<security-role>
		<description></description>
		<role-name>StandardUserBO</role-name>
	</security-role>
	<security-role>
		<description></description>
		<role-name>Administrator</role-name>
	</security-role>	
</web-app>
[+][-]05.31.2008 at 06:49AM PDT, ID: 21683717

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Tomcat Application Server, Java Server Pages (JSP), Jboss Application Server
Tags: Apache, Tomcat & JBoss, Tomcat 5.5 & JBoss 4.0.4GA, Struts, HTML, JSP, Firefox 2.0, org.apache.jasper.JasperException: /general/portalRedirector.jsp(4,56) The prefix html specified in this tag directive has been previously used by an action in file /general/portalRedirector.jsp line
Sign Up Now!
Solution Provided By: rrz@871311
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.31.2008 at 07:05AM PDT, ID: 21683756

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.31.2008 at 09:37AM PDT, ID: 21684230

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2008 at 01:38PM PDT, ID: 21685005

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 12:39AM PDT, ID: 21690181

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628