  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Unable to access resources | Unable to access resources 2007-12-01 - By Nuwan Chandrasoma
Back Hi,
Based on your struts.xml, i dont think you have a URL configured like this
/EcoSim/web/welcome.action
so why don't you type this URL in the browser and see what is the outcome
/EcoSim/WelcomeAction.action
Thanks,
Nuwan
thecyth wrote: > I get this error message when I try to access ANY of the > resources in my app. > > The requested resource (/EcoSim/web/welcome.action) is not > available. > > Here's my setup: > > -- ---- ---- ----- > welcome.jsp: > <%@ page contentType="text/html; charset=UTF-8 (See http://UTF-8.ora-code.com)" %> > <%@ taglib prefix="s" uri="/struts-tags" %> > <html> > <head> > <title>Please log-in...</title> > </head> > <body> > <s:form action="WelcomeAction" method="POST"> > ... > </s:form> > </body> > </html> > -- ---- ---- ----- > web.xml: > <?xml version="1.0"?> > <!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_9" version="2.4" > xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > <display-name>EcoSim</display-name> > <filter> > <filter-name>struts2</filter-name> > <filter- > class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> > </filter> > > <filter-mapping> > <filter-name>struts2</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > <welcome-file-list> > <welcome-file>index.html</welcome-file> > </welcome-file-list> > </web-app> > -- ---- ---- ---- ------ > struts.xml: > <!DOCTYPE struts PUBLIC > "-//Apache Software Foundation//DTD Struts Configuration > 2.0//EN" > "http://struts.apache.org/dtds/struts-2 (See http://uts-2.ora-code.com).0.dtd"> > > <struts><!-- Configuration for the default package. --> > <package name="actions" namespace="/" > extends="struts-default"> > <action name="WelcomeAction" > class="actions.WelcomeAction"> > <result>/web/success.jsp</result> > </action> > </package> > </struts> > -- ---- ------ > > I can get the struts blank project loaded just fine. When I deploy > my war file, the system gets angry at > me... I've been stuck on this problem for days now, any help > would be greatly appreciated! >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |