Take out this from your struts-config.xml:
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
Why? The claim is that tiles isn't being used so you don't need a
controller line listing the TilesRequestProcessor. The exception shows
Tiles is blowing up during the tiles initialization process, which usually
means a problem exists with your tiles-defs.xml file or it cannot find that
file. Take that line out and it defaults to the standard RequestProcessor
instead of the TilesRequestProcessor you explicitly named.
If you wish to use Tiles, put this entry in the plug-in area of your
struts-config.xml AND put some appropriate tile definitions in the
tiles-defs.xml file (plus put it in the appropriate location) as listed
below:
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<!-- Path to XML definition file -->
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<!-- Set Module-awareness to true --- OPTIONAL -->
<set-property property="moduleAware" value="true" />
</plug-in>
Regards,
David
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 15, 2005 7:03 PM
To: Struts Users Mailing List
Subject: Re: Problem using <plug-in> mechanismen
Hubert Rabago wrote:
>Yes. You could've been using a pre-1.1 struts.jar.
>
>
Ok, i found the old jar. My first Problem is solved ;-).
But the next Error is comming. I don't use tiles and get the following
Exception. I read in in the mailing-archive that someone had solved the
Problem.
http://www.mail-archive.com/[email protected]/msg17041.html
He wrote, that's a problem with the struts-config.xml that comes with
the struts-blanket.jar. He modified the struts-config.xml. But how?
What's wrong?
I tryed with and without to define the tiles-plugin. No success.
I would be happy about a tip.
Thanxx
Mark
###################################
The Exception:
java.lang.ClassCastException
at
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRe
questProcessor.java:86)
at
org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.jav
a:77)
at
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.jav
a:585)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1162)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
########################################
The 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 Bean Definitions -->
<form-beans>
<!-- loginForm -->
<form-bean
name="loginForm"
type="control.LoginForm"/>
<!-- Language -->
<form-bean
name="languageForm"
type="control.LanguageForm"/>
<!-- Shop Catalog -->
<form-bean
name="shopCatalogForm"
type="control.ShopCatalogForm"/>
<!-- Shop Category -->
<form-bean
name="shopCategoryForm"
type="control.ShopCategoryForm"/>
<!-- Shop Product -->
<form-bean
name="shopProductForm"
type="control.ShopProductForm"/>
<!-- Shop Product -->
<form-bean
name="changeProductStatusForm"
type="control.ChangeProductStatusForm"/>
<!-- Shop ShoppingCard -->
<form-bean
name="shopAddProduct2ShoppingCartForm"
type="control.ShopAddProduct2ShoppingCartForm"/>
<!-- Shop Order-View -->
<form-bean
name="changeOrderItemStatusForm"
type="control.ChangeOrderItemStatusForm"/>
<!-- change the Order View -->
<form-bean
name="changeObserveDeviceForm"
type="control.ChangeObserveDeviceForm"/>
<!-- Delete a Message of the Mailbox -->
<form-bean
name="deleteMessageForm"
type="control.DeleteMessageForm"/>
<!-- Debug -->
<form-bean
name="debugForm"
type="control.debugForm"/>
</form-beans>
<!-- =================== Global Exception Definitions -->
<global-exceptions>
<!-- sample exception handler
<exception
key="expired.password"
type="app.ExpiredPasswordException"
path="/changePassword.jsp"/>
end sample -->
</global-exceptions>
<!-- ==================== Global Forward Definitions -->
<global-forwards>
<forward
name="passengerCall"
path="/pax/passengerCall.jsp"/>
<forward
name="shop"
path="/pax/shop.jsp"/>
<forward
name="language"
path="/pax/language.jsp"/>
<forward
name="debug"
path="/pax/debug.jsp"/>
<forward
name="SO"
path="/pax/simulator/passengerOrder.jsp"/>
</global-forwards>
<!-- ==================== Action Mapping Definitions -->
<action-mappings>
<action
path = "/Login"
type = "control.LoginAction"
scope = "request"
name = "loginForm"
validate = "true"
input = "/login.jsp">
<forward name = "SuccessPassenger"
path="/pax/language.jsp"/>
<forward name = "SuccessGalley"
path="/pax/galley/galley.jsp"/>
<forward name = "SuccessTrolley"
path="/pax/trolley/trolley.jsp"/>
<forward name = "Failure"
path="/login.jsp"/>
</action>
<!-- Language -->
<action
path = "/ViewLanguageSettings"
type = "control.ViewLanguageSettingsAction"
input = "/login.jsp"
scope = "request">
<forward
name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessPassenger"
path = "/pax/language.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/language.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/language.jsp"/>
</action>
<action
path = "/SavePassengerLanguageSettings"
type = "control.SaveLanguageSettingsAction"
name = "languageForm"
scope = "request"
validate = "true"
input = "/language.jsp">
<forward
name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/language.jsp"/>
</action>
<action
path = "/SaveGalleyLanguageSettings"
type = "control.SaveLanguageSettingsAction"
name = "languageForm"
scope = "request"
validate = "true"
input = "/language.jsp">
<forward
name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/galley/language.jsp"/>
</action>
<action
path = "/SaveTrolleyLanguageSettings"
type = "control.SaveLanguageSettingsAction"
name = "languageForm"
scope = "request"
validate = "true"
input = "/language.jsp">
<forward
name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/trolley/language.jsp"/>
</action>
<!-- PAX-ShopCatalog -->
<action
path = "/ViewShop"
type = "control.ShopCatalogAction"
scope = "request"
input = "/login.jsp">
<forward
name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/shop.jsp"/>
</action>
<!-- PAX-ShopCategory -->
<action
path = "/ViewShopCategory"
type = "control.ShopCategoryAction"
name = "shopCategoryForm"
scope = "request"
validate = "true"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/shop.jsp"/>
</action>
<!-- PAX-ShopProduct -->
<action
path = "/ViewShopProduct"
type = "control.ShopProductAction"
name = "shopProductForm"
scope = "request"
validate = "true"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/shop.jsp"/>
</action>
<!-- PAX-ShopProductStatus -->
<action
path = "/ChangeProductStatus"
type = "control.ChangeProductStatusAction"
name = "changeProductStatusForm"
scope = "request"
validate = "true"
input = "/login.jsp">
<forward name = "Login"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/getOrder.jsp"/>
</action>
<!-- PAX-/ Product to ShoppingCart -->
<action
path = "/ShopAddProduct2ShoppingCart"
type = "control.ShopAddProduct2ShoppingCartAction"
name = "shopAddProduct2ShoppingCartForm"
scope = "request"
validate = "true"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/shop.jsp"/>
</action>
<!-- PAX-/ Product to ShoppingCart -->
<action
path = "/ViewShopShoppingCart"
type = "control.ShopShoppingCartAction"
scope = "request"
input = "/pax/shop.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/shop.jsp"/>
</action>
<!-- PAX-/ ShopOrder -->
<action
path = "/ShopOrder"
type = "control.ShopOrderAction"
scope = "request"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/shop.jsp"/>
</action>
<!-- PAX-/ get the Order-View -->
<action
path = "/GetOrder"
type = "control.GetOrderAction"
scope = "request">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessPassenger"
path = "/pax/getOrder.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/getOrder.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/getOrder.jsp"/>
</action>
<!-- PAX-/ change the Order-Item-Status -->
<action
path = "/ChangeOrderItemStatus"
type = "control.ChangeOrderItemStatusAction"
name = "changeOrderItemStatusForm"
scope = "request"
validate = "true"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
</action>
<!-- PAX-/ view all Catalog s to change Productstatus etc. -->
<action
path = "/CatalogOptions"
type = "control.CatalogOptionsAction"
scope = "request">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessGalley"
path =
"/pax/galley/catalogOptions.jsp"/>
<forward
name = "SuccessTrolley"
path =
"/pax/trolley/catalogOptions.jsp"/>
</action>
<!-- PAX-/ change Productstatus etc. -->
<action
path = "/ProductOptions"
type = "control.ProductOptionsAction"
name = "shopCatalogForm"
validate = "true"
scope = "request"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/productOptions.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/productOptions.jsp"/>
</action>
<!-- PAX-/ change the Preferences View of Order etc. -->
<action
path = "/Preferences"
type = "control.DevicePreferenceAction"
scope = "request">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/preferences.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/preferences.jsp"/>
</action>
<!-- PAX-/ change Productstatus etc. -->
<action
path = "/ChangeViewOfOrder"
type = "control.ChangeObserveDeviceAction"
name = "changeObserveDeviceForm"
validate = "true"
scope = "request"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/productOptions.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/productOptions.jsp"/>
</action>
<!-- PAX-/ Mailbox -->
<action
path = "/Mailbox"
type = "control.MailboxAction"
scope = "request"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/mailbox.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/mailbox.jsp"/>
</action>
<!-- PAX-/ Mailbox -->
<action
path = "/DeleteMessage"
type = "control.DeleteMessageAction"
name = "deleteMessageForm"
validate = "true"
scope = "request"
input = "/login.jsp">
<forward name = "Login"
path = "/login.jsp"/>
<forward
name = "SuccessGalley"
path = "/pax/galley/mailbox.jsp"/>
<forward
name = "SuccessTrolley"
path = "/pax/trolley/mailbox.jsp"/>
</action>
<!-- PAX-Simulator to Order Products -->
<action
path = "/SimulatorOrder"
type = "control.SimulatorPassengerAction"
scope = "request"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path =
"/pax/simulator/passengerOrder.jsp"/>
</action>
<!-- PAX-Simulator to deliver orders -->
<action
path = "/SimulatorStaff"
type = "control.SimulatorStaffAction"
scope = "request"
input = "/login.jsp">
<forward name = "Failure"
path = "/login.jsp"/>
<forward
name = "Success"
path = "/pax/simulator/staffOrder.jsp"/>
</action>
<!-- PAX-Debug -->
<action
path = "/Debug"
type = "control.DebugAction"
name = "debugForm"
scope = "request"
validate = "true"
input = "/pax/debug.jsp">
<forward name = "Login"
path = "/login.jsp"/>
<forward
name = "success"
path = "/pax/shop.jsp"/>
</action>
</action-mappings>
<!-- ===================================== Controller Configuration -->
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<!-- ================================ Message Resources Definitions -->
<message-resources parameter="resources.application" />
<!-- ======================================= Plug Ins Configuration -->
<!-- ========== Tiles plugin =================== -->
<!-- -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml"/>
</plug-in>
<!-- Start the Watchdog to obesrve the staff-devices -->
<plug-in className="control.plugin.WatchdogPlugin"/>
</struts-config>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]