Skip to Content
0
Former Member
Jun 02, 2004 at 07:56 PM

Struts and SAP 6.2: deploy problem

51 Views

Hi,

I guess most of you might have had the same problem that I am presently having. I went through the Forum but i could not find a good solution.

I have developed a sample struts1.1 application using Websphere. It runs well on the Websphere Application Server. But when i deploy the same application on the SAP WAS 6.2 i get the following error accessing the jsp file

Internal Server Error 500!

com.inqmy.services.servlets_jsp.server.jsp.ParseException: ID17195: Error in parsing taglib tag in web.xml or .tld file of the taglib library.

at com.inqmy.services.servlets_jsp.server.jsp.syntax.JspTaglibDirective.verifyAttributes(JspTaglibDirective.java:136)

at com.inqmy.services.servlets_jsp.server.jsp.syntax.JspDirective.parse0(JspDirective.java:144)

at com.inqmy.services.servlets_jsp.server.jsp.syntax.JspDirective.parse(JspDirective.java:104)

at com.inqmy.services.servlets_jsp.server.jsp.syntax.ElementCollection.parse(ElementCollection.java:89)

at com.inqmy.services.servlets_jsp.server.jsp.syntax.ParserImpl.parse(ParserImpl.java:505)

at com.inqmy.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:259)

at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.getClassName(JSPServlet.java:335)

at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.service(JSPServlet.java:209)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)

at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:792)

at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:658)

at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)

at com.inqmy.services.httpserver.server.Response.handle(Response.java:166)

at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1153)

at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)

at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

at java.security.AccessController.doPrivileged(Native Method)

at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:153)

Here is the XML file that was developed by the Websphere Studio.

<?xml version="1.0" encoding="UTF-8"?>

http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app id="WebApp">

<display-name>StrutsTest</display-name>

<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>

<init-param>

<param-name>application</param-name>

<param-value>strutstest.resources.ApplicationResources</param-value>

</init-param>

<load-on-startup>2</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>action</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>

<welcome-file-list>

<welcome-file>index.html</welcome-file>

index.htm

<welcome-file>index.jsp</welcome-file>

<welcome-file>default.html</welcome-file>

default.htm

<welcome-file>default.jsp</welcome-file>

</welcome-file-list>

<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>

http://jakarta.apache.org/taglibs/application-1.0>

<taglib-location>/WEB-INF/lib/taglibs-application.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/page-1.0>

<taglib-location>/WEB-INF/lib/taglibs-page.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/request-1.0>

<taglib-location>/WEB-INF/lib/taglibs-request.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/response-1.0>

<taglib-location>/WEB-INF/lib/taglibs-response.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/session-1.0>

<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>

http://jakarta.apache.org/taglibs/i18n-1.0>

<taglib-location>/WEB-INF/lib/i18n.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/datetime-1.0>

<taglib-location>/WEB-INF/lib/taglibs-datetime.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/string-1.0.1>

<taglib-location>/WEB-INF/lib/taglibs-string.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/utility>

<taglib-location>/WEB-INF/lib/utility.jar</taglib-location>

</taglib>

<taglib>

http://jakarta.apache.org/taglibs/mailer-1.1>

<taglib-location>/WEB-INF/lib/taglibs-mailer.jar</taglib-location>

</taglib>

</web-app>

As you can see i have included all the required taglibraries in casei have missed any..

Here is the struts-config.xml file

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"

"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>

<!-- Data Sources -->

<data-sources>

</data-sources>

<!-- Form Beans -->

<form-beans>

<form-bean name="formBean" type="strutstest.forms.FormBean">

</form-bean>

</form-beans>

<!-- Global Exceptions -->

<global-exceptions>

</global-exceptions>

<!-- Global Forwards -->

<global-forwards>

</global-forwards>

<!-- Action Mappings -->

<action-mappings>

<action name="formBean" path="/computeDay" scope="request" type="strutstest.actions.ComputeDayAction" input="index.jsp">

<forward name="success" path="/index.jsp">

</forward>

<forward name="failure" path="/output.jsp">

</forward>

</action>

</action-mappings>

<!-- Message Resources -->

<message-resources parameter="strutstest.resources.ApplicationResources"/>

</struts-config>

if you guys can help me out with this problem....

Thank you

Ravi