Meaningless Drivel is fun!*
The moose likes Oracle/OAS and the fly likes OAS Struts Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "OAS Struts Configuration" Watch "OAS Struts Configuration" New topic
Author

OAS Struts Configuration

Meera Krishnan
Greenhorn

Joined: Dec 24, 2006
Posts: 9
Hi,


while deploying to Oracle application server 10.1.2 i get this error.Any help will be greatly appreciated.

------Error-----

500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collectionat org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:747)at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)at _T__AddParticipant._jspService(_T__AddParticipant.java:49)[SRC:/T_AddParticipant.jsp:8]at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)at java.lang.Thread.run(Thread.java:534)


struts-config.xml

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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>
<form-beans>
<form-bean name="AddParticipantForm1" type="com.HCL.struts.servicebranch.admin.T_AddParticipantForm"/>
</form-beans>
<global-forwards>
<forward name="redirect" path="/T_AddParticipant.jsp"/>
</global-forwards>

<action-mappings>
<action path="/ParticipationAdminAdd"
type="com.HCL.struts.servicebranch.admin.T_AddParticipantAction"
scope="session"
name="AddParticipantForm1" unknown="false">
<forward name="success" path="/T_AddParticipant.jsp" />
<forward name="failure" path="/Failure.jsp" />
</action>
</action-mappings>
</struts-config>

web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>cts</display-name>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>/WEB-INF/classes/ApplicationResources.properties</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/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>
<load-on-startup>2</load-on-startup>
</servlet>

<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>T_AddParticipant.jsp</welcome-file>
</welcome-file-list>

<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
</web-app>

Thanks and regards,
Meera.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

"Meera",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Meera Krishnan
Greenhorn

Joined: Dec 24, 2006
Posts: 9
Dear sir,
As you said I changed my display name as per your rules.

Regards,
Meera Krishnan.
 
jQuery in Action, 2nd edition
 
subject: OAS Struts Configuration
 
Similar Threads
jsp:include causes StringIndex OutOfBoundsException
error with tiles , please help
Unsupported major.minor version 49.0
Cannot find global ActionForward for name welcome
Oracle 10G Application Server : Getting Servlet error