Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2004, 07:29 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to romi_roman
Default problem with the unfolding of an application

Hello! I have a problem with the unfolding of an application.The mistake is:

I imagine it´s because of the struts-config.xml, but I ignore the real cause. I adjunct the
web.xml. Here it is:

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



<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>AviacionResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>


<servlet>
<servlet-name>dbInit</servlet-name>
<servlet-class>utilidad.DBInitServlet</servlet-class>
<init-param>
<param-name>driverClass</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<init-param>
<param-name>jdbcURL</param-name>
<param-value>jdbc:mysql://localhost:3306/aviacion_db</param-value>
</init-param>
<init-param>
<param-name>minCount</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>maxCount</param-name>
<param-value>10</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>


<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

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


<taglib>
<taglib-uri>/bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/template</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>

</web-app>

this is the sruts config.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

<struts-config>

<form-beans>

<form-bean name="paisForm" type="estadoEntidad.Pais"/>

</form-beans>

<action-mappings>


<action path="/home" type="acciones.HomeAction" unknown="true">
<forward name="success" path="/home.jsp"/>
</action>

<action path="/verPais"
type="acciones.VerPaisAction"
input="/home.do">
<forward name="success" path="/verPais.jsp"/>
</action>

<action path="/altaPais"
type="acciones.AltaPaisAction"
input="/altaPais.jsp"
name="paisForm"
scope="request">
<forward name="success" path="/confirmRegistration.jsp"/>

</action>

</action-mappings>

</struts-config>

the problem/error message is:

HTTP Status 500 - No action instance for path /home could be created

type Status report

message No action instance for path /home could be created

description The server encountered an internal error (No action instance for path /home could be created) that prevented it from fulfilling this request.
Apache Tomcat/4.1.30



Thank you very very much.

 
Old November 30th, 2004, 07:00 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sreekar
Default

do this my initializing the servlet config

Sreekar Reddy A
Jr Programmer
Exaltsystems
Hyderabad





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with compiling application hertendreef ASP.NET 2.0 Basics 1 August 16th, 2007 12:17 PM
Problem with an existing application davidrodrigues40 ASP.NET 2.0 Professional 2 March 22nd, 2007 10:13 AM
Problem executing the application blcirre Apache Tomcat 2 July 27th, 2006 02:22 AM
I have a problem in mailing application umair.hasan ASP.NET 1.0 and 1.1 Professional 2 July 26th, 2006 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.