You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by kolaloka <ko...@freemail.hu> on 2007/11/08 21:16:57 UTC
HTTP status 403
Hi All,
I managed to put all the desired jars together and make JBoss 4.2.1 deploy
them without throwing exceptions. I started from Shale-usecases 1.0.4 and
put some jars in addition to it. As soon as I try to access my deployed EJB
application's start page, the following message appears:
HTTP Status 403 -
type Status reporl
message
description Access to the specified resource () has been forbidden.
JBossWeb/2.0.0.GA
I tried to look for the cause by setting DEBUG or TRACE logging to the whole
JBoss, but nothing interesting (at keast for me) found. However, direct HTML
access like http://localhost:8080/s_ejb3_jb421_tobbfele/pages/masodik.html
is OK.
thank you in advance:
My web.xml is (and more config files follow)
<?xml version="1.0"?>
<web-app 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"
version="2.4">
<description>debug web.xml</description>
<!-- JSF RI verify objects at start -->
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
<!-- description>
State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2
</description-->
</context-param>
<!-- Commons Chain Configuration Resources -->
<context-param>
<param-name>org.apache.commons.chain.CONFIG_WEB_RESOURCE</param-name>
<param-value>/WEB-INF/chain-config.xml</param-value>
</context-param>
<!-- Shale Remoting Configuration -->
<context-param>
<!-- Use the second (zero-relative) FacesServlet URL mapping -->
<param-name>org.apache.shale.remoting.FACES_SERVLET_MAPPING_INDEX</param-name>
<param-value>1</param-value>
</context-param>
<!-- Shale Validator Configuration Resources -->
<context-param>
<param-name>org.apache.shale.validator.VALIDATOR_RULES</param-name>
<param-value>
/org/apache/shale/validator/validator-rules.xml,
/WEB-INF/custom-rules.xml
</param-value>
</context-param>
<!-- Start Add for Calendar -->
<context-param>
<param-name>javax.faces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
</context-param>
<!-- Shale Application Controller Filter -->
<context-param>
<param-name>org.apache.shale.view.EXCEPTION_DISPATCH_PATH</param-name>
<param-value>/exception/correct.faces</param-value>
</context-param>
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.-->
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<!-- End Added for Calendar -->
<servlet>
<servlet-name>tiles</servlet-name>
<servlet-class>org.apache.tiles.servlet.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Shale Application Controller Filter -->
<filter>
<filter-name>shale</filter-name>
<filter-class>
org.apache.shale.application.faces.ShaleApplicationFilter
</filter-class>
</filter>
<!-- Shale Application Controller Filter Mapping -->
<filter-mapping>
<filter-name>shale</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<!-- Commons Chain Configuration Listener -->
<listener>
<listener-class>
org.apache.commons.chain.web.ChainListener
</listener-class>
</listener>
<!-- Spring ApplicationContext Configuration Listener -->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<!-- Application Startup/Shutdown Listener -->
<!-- listener>
<listener-class>
org.apache.shale.usecases.webapp.ApplicationListener
</listener-class>
</listener-->
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
applicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
</beans>
chain-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<catalogs>
<!-- Define preprocessing command chain for Shale to execute -->
<catalog name="shale">
<chain name="preprocess">
<!-- Disallow direct access to JSP and JSFP resources -->
<command
className="org.apache.shale.application.ContextRelativePathFilter"
includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp,\S*\.resources,\S*\.jsp,\S*\.jspf"/>
</chain>
</catalog>
</catalogs>
custom-rules.xml:
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules
Configuration 1.3.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">
<form-validation>
<global>
<!-- Generic helyett sajat -->
<validator name="naezparose"
classname="com.loxon.shaleproba.EllenorizParos"
method="parose"
methodParams="int"
msg="ellenorzes.csakhogylegyen">
</validator>
</global>
<formset>
<!-- the 'form name' is always 'org.apache.shale.validator' plus the
'validator name' -->
<form name="org.apache.shale.validator.naezparose">
<!-- the 'field property' always matches the 'validator name'
-->
<field property="naezparose">
<!-- validation error message replacement parameters -->
<arg position="0" name="message" key="submittedValue"
resource="false"/>
<!-- validation method parameters -->
<arg position="0" name="parameter" key="submittedValue"
resource="false"/>
</field>
</form>
</formset>
</form-validation>
faces-config.xml:
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<application>
<!-- Tiles Integration -->
<view-handler>
org.apache.shale.tiles.TilesViewHandler
</view-handler>
<locale-config>
<default-locale>hu</default-locale>
<supported-locale>en</supported-locale>
<supported-locale>hu</supported-locale>
</locale-config>
<message-bundle>mindentbele</message-bundle>
</application>
<navigation-rule>
<from-view-id>/pages/index.jsp</from-view-id>
<navigation-case>
<from-outcome>booking</from-outcome>
<to-view-id>/pages/booking.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<navigation-case>
<from-outcome>index</from-outcome>
<to-view-id>/pages/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>flightServlet</managed-bean-name>
<managed-bean-class>com.loxon.shaleproba.FlightServlet</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
tiles.xml: some problem here, but no tile defined yet
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name="test.localized.definition" template="/layout.jsp">
<put-attribute name="title" value="American English locale" />
<put-attribute name="header" value="/header.jsp" />
<put-attribute name="body" value="/defaultlocale.jsp" />
</definition>
</tiles-definitions>
--
View this message in context: http://www.nabble.com/HTTP-status-403-tf4773292.html#a13654831
Sent from the Shale - User mailing list archive at Nabble.com.
Re: HTTP status 403
Posted by kolaloka <ko...@freemail.hu>.
I reply to myself: the commons-chain configuration prevented access to the
pages. I removed that configuration.
--
View this message in context: http://www.nabble.com/HTTP-status-403-tf4773292.html#a13662969
Sent from the Shale - User mailing list archive at Nabble.com.