• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The absolute uri: http://jakarta.apache.org/struts/tags-logic cannot be resolved in either web.xml

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to run sample source code written for myEclipse with eclipse IDE. I could not add myEclipse plugins to eclipse thus I added struts 1.1 lib from myEclipse to eclipse manually through Java Build Path . But I get the following error:
The absolute uri: http://jakarta.apache.org/struts/tags-logic cannot be resolved in either web.xml or the jar files deployed with this application.
I would appreciate it if anyone could help me on this issue

jar files:
----------
commons-beanutils
commons-digester
commons-lang
commons-validator
struts
commons-collections
commons-fileupload
commons-logging
jakarta-oro
struts-legacy


index.jsp:
------------
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<logic:forward name="welcome"/>


web.xml:
------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<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>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<security-constraint>
<web-resource-collection>
<web-resource-name>deny access</web-resource-name>
<url-pattern>/jsp/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Denied</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>Denied</role-name>
</security-role>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>


struts-config.xml:
---------------------
<!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 />
<form-beans >
<form-bean name="bookListForm" type="de.laliluna.tutorial.library.struts.form.BookListForm" />
<form-bean name="bookEditForm" type="de.laliluna.tutorial.library.struts.form.BookEditForm" />
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="welcome" path="/default.do" redirect="true" />
</global-forwards>
<action-mappings>
<action forward="/jsp/index.jsp" path="/default" unknown="true" />
<action
attribute="bookListForm"
input="/jsp/bookList.jsp"
name="bookListForm"
parameter="step"
path="/bookList"
scope="request"
type="de.laliluna.tutorial.library.struts.action.BookListAction"
validate="false">
<forward name="showList" path="/jsp/bookList.jsp" />
</action>
<action
attribute="bookEditForm"
name="bookEditForm"
parameter="do"
path="/bookEdit"
scope="request"
type="de.laliluna.tutorial.library.struts.action.BookEditAction">
<forward name="showEdit" path="/jsp/bookEdit.jsp" />
<forward
name="showList"
path="/bookList.do"
redirect="true" />
<forward name="showAdd" path="/jsp/bookAdd.jsp" />
</action>
</action-mappings>
<controller bufferSize="4096" debug="0" />
<message-resources parameter="de.laliluna.tutorial.library.struts.ApplicationResources" />
</struts-config>
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic