Anchor names in the struts-config.xml file

Hi,
I'm trying to use anchor names in the <forward> tag of and <action> in the struts-config.xml. I using the following approach: <forward name="success" path="/client/clientInfo.jsp#details" redirect="true"/>
I have declared the anchor name in my jsp as <a name="details"></a>.
Although the page is presented, the anchor target is ignored.
I already tried accessing the page directly from the browser address and the anchor name works fine. It's only ignored when I try to access it from the struts-config file.
Any Idea?
Thanks

Hi Mary,
It works fine with WebLogic 6.1 and Struts [a nightly build just before 1.1 release]
<action path="/Action01"
          type="action.Action01"
          name="baseFormBean"
          scope="request">
     <forward name="success" path="/JSP/Test04.jsp#link1" redirect="true"/>
</action>     
in Test04.jsp
Go to Link1
<!--data -->
<a name="link1">Link1</a>
It went to "Link1" when the action was invoked.
However, you do not need to convert every thing (all tags) to "struts" to incorporate/use struts features.
Let me know you environment [App server, Struts version]
Cheers,

Similar Messages

  • I am getting the following waring in the struts-config.xml file

    I am getting the following waring in the struts-config.xml file
    Warning(3,16): <Line 3, Column 16>: XML-24538: (Error) Can not find definition for element 'struts-config'
    Warning: Invalid value for property "property" on component "property": Another set-property element for this property already exists. Invalid value for property "property" on component "property":
    Another set-property element for this property already exists. Invalid value for property "property" on component "property":
    and the line 3 in the file is the tag <struts-config>
    has anyone encountered this problem or is there is solution to eliminate the warning, i have validated the xml file wihich is good, i have validated against DTD, which is also good.
    Thanks in advance
    Victor

    Hi Lee,
    I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsEditLink" path="/unitsEdit.do"/>
    </action>
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsCreateLink" path="/unitsCreate.do"/>
    </action>
    I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
    Please shed some light.
    Thanks,
    Regards,
    Michael

  • No route to host:connect -- error in the struts-config.xml file

    hi all,
    acutally am doing a struts application in that i have written everything properly
    but getting this kinda no route to host:connect error
    my struts-config.xml file is like this...
    <struts-config>
    <form-beans>
    <form-bean name="myForm" type="MyForm">
    </form-beans>
    <action-mappings>
    <action path="/action"
                   name="myForm"
                   type="MyAction"
                   scope="request"
                   validate="true" >
                   <forward name="success" path="/success.jsp" />
                   <forward name="failure" path="/failure.jsp" />
         </action>
    </action-mappings>
    </struts-config>
    sikandar 

    Hi Lee,
    I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsEditLink" path="/unitsEdit.do"/>
    </action>
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsCreateLink" path="/unitsCreate.do"/>
    </action>
    I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
    Please shed some light.
    Thanks,
    Regards,
    Michael

  • More than one struts-config.xml files in one project

    Hi all
    Can we have more than one struts-config.xml files in one project developed using struts.
    If so what is purpose and how to do this.
    Anybody please explain on this topic.
    Thanks
    Parvathy

    Hi all
    Can we have more than one struts-config.xml files in
    one project developed using struts.
    yes it is possible
    If so what is purpose and how to do this.
    it is use for odular application so developer won't share a single configureation file.. as you know struts-config.xml is defined on the web.xml
    like this:
    <servlet>
    <servlet-name>mybank</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>config/module1</param-name>
    <param-value>
    /WEB-INF/struts-module1-config.xml
    </param-value>
    </init-param>
    </servlet>

  • COnfiguring Struts-config.xml file for two level popup windows?

    This is the code for 1st level
    <action path="/search/advanced" scope="request" parameter="method"
                   type="org.fao.gilw.agris.action.AdvancedSearchAction" name="advancedForm" validate="false">
                   <forward name="failed" path="/search/advanced.jsp" redirect="false"/>
                   <forward name="success" path="/search/advanced.jsp" redirect="false"/>
              </action>"search" is the main window, in this window I'm opening/loading a pop-up window called " advanced" ..the above code is for this
    Now again i want to pop-up another window in "advanced" page
    So how to configure for this in Struts-config.xml file...?

    Better post this question at a Struts related forum. There is a mailinglist at their own homepage and a forum at Nabble.com.

  • Struts Config.XML file error

    if Error in page (value not entered in textfield) , it will be redirected to a same page with server valid error page . After redirecting javascript,css r not working(means not included)
    but it is working when page is first time loaded.
    help me what could be the problem?
    struts config.xml file
                           <forward name="success"
                        path="/jsp-modEmp/success.jsp"
                        redirect="false"></forward>
                   <forward name="fail" contextRelative="true"
                        path="/jsp-modEmp/addempform.jsp"
                        redirect="false"/>Edited by: K.Ramesh on Jun 5, 2008 6:05 AM
    Edited by: K.Ramesh on Jun 5, 2008 6:05 AM

    Thanks for reply..
    We r invoking javascript/css using relative path only.
    i'm redirecting to the same page only if error happens with including error page
    <script language="javascript" type="text/javascript" src="js-modEmp/addEmpval.js">
    </script>
    <script language="javascript" type="text/javascript" src="js-modEmp/datetimepicker.js">
    </script>
    <link rel="stylesheet" type="text/css" href="css-modEmp/styles.css">

  • The Managed Bean in the faces-config.xml File

    I am still very new to JSF. I am confused about the managed bean.
    For example, I have a button in my web page. A click on this button invokes an action; say, ListAction.java.
    In this ListAction class, I instantiate a business delegate; say, ListPersonnel.java and call a method in this business delegate to return an ArrayList: personnel. Of course, this business delegate goes through facade, DAO, etc. to populate the ArrayList. This ArrayList is a collecation of a JavaBean called PersonnelBean that gets and sets a number of personnel information; such as ssn, name, etc.
    Upon this ArrayList is successfully populated and received by the ListAction class, I am going to display a web page with a table. In JSF, it is <h:dataTable ...>.
    My questions are regarding the managed bean in the faces-config.xml file.
    1. Which one is my <managed-bean-class>? packageName.ListAction? or packageName.PersonnelBean? or something else?
    2. What should be my <managed-bean-name>? I guess that I can give a name I like. Is it right? What about xyz?
    3. Then, how do I specify the "value" attribute of my <h:dataTable ...> tag when I display a web page to show the data table? Is it correct to specify value="#{xyz.personnel}"? What is the correct specification if it is wrong?
    4. I guess that I can give any name to the "var" attribute in the <h:dataTable ...> tag. Is it right?

    1. Which one is my <managed-bean-class>?
    packageName.ListAction? or
    packageName.PersonnelBean? or something else?ListAction
    2. What should be my <managed-bean-name>? I guess
    that I can give a name I like. Is it right? What
    about xyz?Anything you like. xyz is OK.
    3. Then, how do I specify the "value" attribute of my
    <h:dataTable ...> tag when I display a web page to
    show the data table? Is it correct to specify
    value="#{xyz.personnel}"? What is the correct
    specification if it is wrong?xyz.personnel is OK assuming that ListAction class has a public
    method getPersonnel() which returns the ArrayList of PersonnellBeans.
    4. I guess that I can give any name to the "var"
    attribute in the <h:dataTable ...> tag. Is it right?Yes, you can give any name you like.

  • What belongs in the faces-config.xml file? Just bean and navigation info?

    I am looking for detailed information on the faces-config.xml file.
    I've used examples up to this point and I was wondering where the documentation for this configuration file was at.
    At this point, I know that bean management and navigation information is in this file, but are there other settings?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Pringi: The tag explantion information, why isn't that easily found on Sun's web site or document site?
    This has been the most frustrating part - finding pieces of information here and there... and not in one location.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can the client know if the SSL certificate specified in the service-config.xml file is invalid/u

    Hi,
    How can the client know if the SSL certificate specified in the service-config.xml file is invalid/untrusted/expired? For example using iOS client, the trusted certificate will not work and the client has no way to know that the certificate is untrusted. Can the lcds server return any specific exceptions for SSL errors?
    Thanks,
    Swathi.

    We use a standard Java keystore and certificate validation can be handled as per standard best practices. At present we do not provide a hook point to validate the server certificate. However, you can register a bootstrap service which validates the certificate on system startup: http://help.adobe.com/en_US/dataservicesjee/4.6/Developing/WSc3ff6d0ea77859461172e0811f00f 6fe7f-7ffeUpdate.html This would require you to pass another copy of the keystore configuration to you Bootstrap service and then you can inspect the certificate in the keystore and validate it.

  • A function in my struts-config.xml file

    Struts: Calling a function from a JSP
    Author: boltonian
    Hi, I have defined a function listConfig.do in my struts-config.xml, I was wondering how I can get a .jsp >>page to automatically call this fucntion whenenver it is loaded. What did the author of this post mean when they said "I have defined a function in my xml file"
    Trying to get my head round this whole struts thing...

    Check out this page mate
    http://www.reumann.net/struts/lesson1.do

  • Forward tag in struts-config.xml file

    Hi,
    Well.. I am a newbie to Struts. Not exactly a newbie but have done little bit of work in it. I am stuck at a particular point. I am sure you can help me..
    The <forward name=�abc� path=�/abc.jsp� /> in struts-config.xml is used for redirection. In the action class the abc is used in the findforward method. But this can be used only when you want to simply redirect a page to another. I want to do the same but I want to redirect the page using a query string.e.g http://servername:port/abc.do?val=123 something like that. How will I do this?
    Thanking you in Advance

    Hi,
    Well.. I am a newbie to Struts. Not exactly a newbie but have done little bit of work in it. I am stuck at a particular point. I am sure you can help me..
    The <forward name="abc" path="/abc.jsp" /> in struts-config.xml is used for redirection. In the action class the abc is used in the findforward method. But this can be used only when you want to simply redirect a page to another. I want to do the same but I want to redirect the page using a query string.e.g http://servername:port/abc.do?val=123 something like that. How will I do this?
    Thanking you in Advance
    Pradnya

  • Problem trying to save the faces-config.xml file (ADF BC)

    When I try to save this file, I get the following error:
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
         at oracle.bm.diagrammer.shape.BaseDiagramEdge.startMove(BaseDiagramEdge.java:2721)
         at oracle.bm.diagrammer.track.MoveTracker.<init>(MoveTracker.java:215)
         at oracle.bm.diagrammer.track.SelectionTracker.mousePressed(SelectionTracker.java:754)
         at oracle.bm.diagrammer.track.ModularTracker.processEvent(ModularTracker.java:191)
         at oracle.bm.diagrammer.track.SelectionTracker.processEvent(SelectionTracker.java:138)
         at oracle.bm.diagrammer.track.TrackerStack.processEvent(TrackerStack.java:389)
         at oracle.bm.diagrammer.BaseDiagramView$53.processEvent(BaseDiagramView.java:719)
         at oracle.bm.diagrammer.PageView$PageViewPanel.fireEvent(PageView.java:2904)
         at oracle.bm.diagrammer.PageView$PageViewPanel.processEvent(PageView.java:3090)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Also, a few of my navigations have the label of "!NLS Error"
    If anyone has any information to help me I would appreciate it, thank you.

    i replaced the "faces-config.oxd_faces" file. it is found under:
    C:\jdevadf\jdev\YourApplication\ViewController\model\public_html\WEB-INF
    if you have an older copy of this file, just replace it, your faces-config.xml file might get moved around, mine took me over an hour to rearrange my page flows but it did the trick.

  • I need detailed explanation of the OC4J config/*.xml files.

    Anybody know where I can find good descriptions of the OC4J config files?? I've found some stuff on www.orionserver.com but they aren't good enough. Specifically, I have someone who wants a <lib> entry made for his app into the server.xml file. I want to know exactly what that tag means, how it is interpreted, etc... I want to have a complete understanding of all of the tags in all these files so I can deal with all the different methods of deploying applications...

    Thanks, but I've seen those and they really don't help much. I've got a situation where many developers are deploying many different apps in different ways. One guy wants to add a <library> entry into server.xml for one of his application-specific jar files. I really think this is a bad idea but I can't say anything without documentation stating what the purpose of this tag in server.xml file is, and what the ramifications are if we mess with it. How might that affect the performance of OC4J, or how might it mess up other apps under OC4J?

  • Error regarding to the configuration of "Data Source" in Struts-config.xml

    Hi,
    Any 1 just help me out. I am using NetBeans 4.1 bundeled with Sun App server 8.1. Now I wanted to make the database connectivity with the front -end using"Data-source" tag in the struts-config.xml file . I am using the Oracle 9i as database.But I am not able to do it , it's showing me again and again error.I got realy fed up with this. I have checked the code as well as the the struts-config.xml file syntaxes with many other books and online resources, I couldn't find any sort of anomaly over here.So some 1 plzz help me regarding this as early as possible.I am attaching the Struts-config .xml file code as well as the error messaage over here.
    Struts-config.xml file code is...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
    <!-- ============================================ Data Source Configuration -->
    <data-sources>
    <data-source type="org.apache.commons.dbcp.BasicDataSource" key="RoseKey">
    <set-property
    property="driverClassName"
    value="oracle.jdbc.driver.OracleDriver" />
    <set-property
    property="url"
    value="jdbc:oracle:thin://10.31.8.49:1521:USGFS" />
    <set-property
    property="username"
    value="EPTP2DEV" />
    <set-property
    property="password"
    value="EPTP2DEV" />
    <set-property
    property="maxActive"
    value="10" />
    <set-property
    property="maxWait"
    value="5000" />
    <set-property
    property="defaultAutoCommit"
    value="false" />
    <set-property
    property="defaultReadOnly"
    value="false" />
    <!--set-property
    property="validationQuery"
    value="SELECT COUNT(*) FROM address" /-->
    </data-source>
    </data-sources>
    <!-- ======================================== Form Bean Definitions -->
    <form-beans>
    <form-bean
    name="AddressForm"
    type="app.AddressForm"/>
    <form-bean
    name="DVDForm"
    type="app.DVD"/>
    </form-beans>
    <!-- =================================== Global Forward Definitions -->
    <!--global-forwards>
    <forward
    name="logoff"
    path="/Logoff.do"/>
    <forward
    name="logon"
    path="/Logon.do"/>
    <forward
    name="welcome"
    path="/Welcome.do"/>
    </global-forwards-->
    <!--global-forward>
    <forward
    name="Address1"
    path="/pages/Address.jsp"/>
    </global-forward-->
    <!-- =================================== Action Mapping Definitions -->
    <action-mappings>
    <!--action
    path="/Welcome"
    type="org.apache.struts.actions.ForwardAction"
    parameter="/pages/Welcome.jsp"/>
    <action
    path="/Logon"
    type="org.apache.struts.actions.ForwardAction"
    parameter="/pages/Logon.jsp"/-->
    <action
    path="/Address"
    type="app.AddressAction"
    name="AddressForm"
    scope="request"
    validate="true"
    input="/pages/Address.jsp">
    <forward
    name="success"
    path="/pages/success.jsp"/>
    </action>
    <action
    path="/TestAction"
    type="app.TestAction">
    <forward
    name="testAction"
    path="/pages/TestAction.jsp"/>
    </action>
    <action
    path="/TestDVD"
    type="app.DVDAction"
    name="DVDForm">
    <forward
    name="testDVD"
    path="/pages/Movie.jsp"/>
    </action>
    <action
    path="/DataSource"
    type="app.TestDataSource">
    <forward
    name="joy"
    path="/pages/joy.jsp"/>
    </action>
    </action-mappings>
    <message-resources parameter="resources.ApplicationResources"/>
    </struts-config>
    And the error I am getting in the Server console is ..
    org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection)
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
    at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:598)
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
    at javax.servlet.GenericServlet.init(GenericServlet.java:261)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
    at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
    at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
    ... 92 more
    AND..
    javax.servlet.UnavailableException: Initializing application data source RoseKey
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
    at javax.servlet.GenericServlet.init(GenericServlet.java:261)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
    at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Plz some1 help me as soon as possible with some ideas so that I can resolve the issue.

    Hi Amit Garg,
    <data-sources>
    <data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "DBA">
    </data-source>
    <data-sources>
    <data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "AISDEV">
    </data-source>
    </data-sources>
    u just configure ur struts-config.xml file in the above manner and use the following steps in ur action servlet to retrive the DataSource object
    getDatasource(request,"DBA") for accessing first datasource
    getDatasource(request,"AISDEV") for accessing second datasource.
    byeeeeee

  • Struts-config.xml not being parsed properly

    Hi,
    I'm new to struts and am having a weird problem. I've researched a lot and talked to a lot of developers and I still have a problem. The problem is as follows.
    I am getting the following error when deploying my ear file on weblogic8.1:
    <BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "bpa".
    javax.servlet.UnavailableException: Parsing error processing resource path
         at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
         at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
         at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
         at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5647)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
         at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2022)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2063)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2592)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2515)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2317)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2399)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2311)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2479)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170).
    Now, when looking at the struts-config file, everything seems fine. However, when i remove the <form-bean> declarations, i don't get this error. Of course, without the form-bean declarations, the application comes to a halt when it needs them. I've tried almost everything under the sun and nothing has worked so far, i'm sure it's probably something simple and i'll feel like a complete idiot when it's figured out, but until then, can anyone help???
    The config file looks as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>
    <!-- Register User form bean -->
    <form-bean name="registerCustomerForm" type="au.com.bpa.web.RegisterCustomerForm" />
         <!-- List Applications - customer - form bean -->
    <form-bean name="listApplicationsForm" type="au.com.bpa.web.ListApplicationsForm" />
         <!-- List Applications - cts - form bean -->
    <form-bean name="listApplicationsCTSForm" type="au.com.bpa.web.ListApplicationsCTSForm" />
         <!-- List Applications - call centre - form bean -->
    <form-bean name="listApplicationsCallCentreForm" type="au.com.bpa.web.ListApplicationsCallCentreForm" />
    <!-- Single Residence Application form bean -->
         <form-bean name="singleResidenceApplicationForm" type="au.com.bpa.web.SingleResidenceApplicationForm" />
    <!-- Single Residence Application Processing form bean -->
         <form-bean name="singleResidenceApplicationProcessingForm" type="au.com.bpa.web.SingleResidenceApplicationProcessingForm" />
         <!-- Upload Floor Plan Attachment form bean -->
    <form-bean name="uploadArchitecturalFloorPlanAttachmentForm" type="au.com.bpa.web.UploadAttachmentForm" />
         <!-- Upload Site Plan Attachment form bean -->
    <form-bean name="uploadSitePlanAttachmentForm" type="au.com.bpa.web.UploadAttachmentForm" />
         <!-- Upload Other Attachment form bean -->
    <form-bean name="uploadAttachmentForm" type="au.com.bpa.web.UploadAttachmentForm" />
         <!-- Remove Attachment(s) form bean -->
    <form-bean name="removeAttachmentsForm" type="au.com.bpa.web.RemoveAttachmentsForm" />
         <!-- Reject Application form bean -->
         <form-bean name="rejectApplicationForm" type="org.apache.struts.action.DynaActionForm">
              <form-property name="applicationPK" type="java.lang.Integer" />
              <form-property name="comments" type="java.lang.String" />
         </form-bean>
         <!-- Edit restricted names form bean -->
         <form-bean name="editRestrictedNamesForm" type="org.apache.struts.validator.DynaValidatorForm">
              <form-property name="category" type="java.lang.String" />
              <form-property name="name" type="java.lang.String" />
         </form-bean>
         <!-- Find by Id form bean -->
         <form-bean name="findApplicationByIdForm" type="org.apache.struts.action.DynaActionForm">
              <form-property name="idType" type="java.lang.String" initial="applicationId" />
              <form-property name="idValue" type="java.lang.String" />
         </form-bean>
         <!-- Business Reports form bean -->
         <form-bean name="businessReportsForm" type="org.apache.struts.action.DynaActionForm">
              <form-property name="reportType" type="java.lang.String" />
              <form-property name="from" type="java.lang.String" />
              <form-property name="to" type="java.lang.String" />
         </form-bean>
    </form-beans>
    <!-- ========== Global Exception Definitions ============================== -->
    <global-exceptions>
    <exception type="java.lang.Exception" key="errors.java.lang.Exception" path="/errors/applicationException.jsp" />
    </global-exceptions>
    <!-- ========== Global Forward Definitions ============================== -->
    <global-forwards>
    <forward name="invalidSession" path="/errors/invalidSession.jsp" />
    <forward name="applicationException" path="/errors/applicationException.jsp" />
         <forward name="notFound" path="/errors/notFound.jsp" />
         <forward name="logoff" path="/common/logoff" />
         <forward name="goSingleResidenceApplication" path="/common/goSingleResidenceApplication.do" />
         <forward name="viewApplication" path="/common/viewApplication.do" />
         <!-- customer -->
         <forward name="customer/viewApplicationList" path="/customer/viewApplicationList.do" />
         <!-- cts -->
         <forward name="cts/viewApplicationList" path="/cts/viewApplicationList.do" />
         <forward name="cts/unlockAndExit" path="/cts/unlockAndExit.do" />
         <!-- call centre -->
         <forward name="call-centre/viewApplicationList" path="/call-centre/viewApplicationList.do" />
    </global-forwards>
    <!-- ========== Action Mapping Definitions ============================== -->
    <action-mappings>
         <!-- Common Actions - All Roles -->
         <!-- saves a request token -->
         <action path="/goRegisterCustomer" type="au.com.bpa.web.SaveTokenAction">
    <forward name="success" path="/registerCustomer.jsp" />
    </action>
    <!-- Register a User -->
    <action path="/registerCustomer" type="au.com.bpa.web.RegisterCustomerAction" name="registerCustomerForm" input="/registerCustomer.jsp" scope="request" validate="true">
    <forward name="success" path="/registerCustomer-success.jsp" />
         <forward name="invalidToken" path="/errors/invalidToken.jsp" />
    </action>
         <!-- Process a logon -->
         <action path="/common/logon" type="au.com.bpa.web.LogonAction" scope="request" validate="true">
    <forward name="guest" path="/common/disclaimer.jsp" />
         <forward name="customer" path="/common/disclaimer.jsp" />
         <forward name="cts" path="/cts/index.jsp" />
         <forward name="admin" path="/admin/index.jsp" />
         <forward name="browserError" path="/errors/browserError.jsp" />
    </action>
    <!-- Single Residence Application Form -->
    <action path="/common/singleResidenceApplication" type="au.com.bpa.web.SingleResidenceApplicationAction" name="singleResidenceApplicationForm" scope="request" input="/common/singleResidenceApplication.jsp" validate="true">
         <forward name="submitted" path="/common/singleResidenceApplication-submitted.jsp" />
         <forward name="manual" path="/common/singleResidenceApplication-manualValidationRequired.jsp" />
         <forward name="invalidToken" path="/errors/invalidToken.jsp" />
    </action>
         <!-- submit a single residence app - saves a request token -->
         <action path="/common/goSingleResidenceApplication" type="au.com.bpa.web.SaveTokenAction">
    <forward name="success" path="/common/singleResidenceApplication.jsp" />
    </action>
    <!-- Upload Architectural Floor Plan Attachment Form -->
    <action path="/common/uploadArchitecturalFloorPlanAttachment" type="au.com.bpa.web.UploadAttachmentAction" name="uploadArchitecturalFloorPlanAttachmentForm" scope="request">
    <exception type="java.lang.Exception" key="errors.singleResidenceApplication.file" path="/common/addAttachment-error.jsp" />
         <forward name="success" path="/common/addAttachment-success.jsp" />
         <forward name="fileTypeError" path="/common/addAttachment-fileTypeError.jsp" />
         <forward name="applicationException" path="/common/addAttachment-error.jsp" />
    </action>
    <!-- Upload Site Plan Attachment Form -->
    <action path="/common/uploadSitePlanAttachment" type="au.com.bpa.web.UploadAttachmentAction" name="uploadSitePlanAttachmentForm" scope="request">
    <exception type="java.lang.Exception" key="errors.singleResidenceApplication.file" path="/common/addAttachment-error.jsp" />
         <forward name="success" path="/common/addAttachment-success.jsp" />
         <forward name="fileTypeError" path="/common/addAttachment-fileTypeError.jsp" />
         <forward name="applicationException" path="/common/addAttachment-error.jsp" />
    </action>
    <!-- Upload Attachment Form -->
    <action path="/common/uploadAttachment" type="au.com.bpa.web.UploadAttachmentAction" name="uploadAttachmentForm" scope="request">
    <exception type="java.lang.Exception" key="errors.singleResidenceApplication.file" path="/common/addAttachment-error.jsp" />
         <forward name="success" path="/common/addAttachment-success.jsp" />
         <forward name="fileTypeError" path="/common/addAttachment-fileTypeError.jsp" />
         <forward name="applicationException" path="/common/addAttachment-error.jsp" />
    </action>
    <!-- Remove Attachment Form -->
    <action path="/common/removeAttachments" type="au.com.bpa.web.RemoveAttachmentsAction" name="removeAttachmentsForm" scope="request" validate="true">
         <forward name="success" path="/common/removeAttachments-success.jsp" />
    </action>
         <!-- view / edit an application -->
         <action path="/common/viewApplication" type="au.com.bpa.web.ViewApplicationAction">
    <forward name="editSingleResidenceApplication" path="/common/singleResidenceApplication.jsp" />
         <forward name="viewSingleResidenceApplication" path="/common/singleResidenceApplicationView.jsp" />
    </action>
         <!-- Customer Actions - Customer Role -->
         <!-- view list of submitted applications - customer -->
         <action path="/customer/viewApplicationList" type="au.com.bpa.web.ListApplicationsAction" name="listApplicationsForm" scope="request" validate="false">
    <forward name="success" path="/customer/listApplications.jsp" />
    </action>
         <action path="/customer/findApplicationById" type="au.com.bpa.web.ListApplicationsAction" name="findApplicationByIdForm" scope="request" validate="false">
    <forward name="success" path="/customer/listApplications.jsp" />
    </action>
         <!-- CTS Staff Actions - CTS Role -->
         <!-- view list of applications - cts -->
         <action path="/cts/viewApplicationList" type="au.com.bpa.web.ListApplicationsCTSAction" name="listApplicationsCTSForm" scope="request" validate="false">
    <forward name="success" path="/cts/listApplications.jsp" />
    </action>
         <action path="/cts/findApplicationById" type="au.com.bpa.web.ListApplicationsCTSAction" name="findApplicationByIdForm" scope="request" validate="false">
    <forward name="success" path="/cts/listApplications.jsp" />
    </action>
         <!-- save user preferences -->
         <action path="/cts/saveUserPreferences" type="au.com.bpa.web.SaveUserPreferencesAction">
    <forward name="success" path="/cts/listApplications.jsp" />
    </action>
         <!-- process an application -->
         <action path="/cts/processApplication" type="au.com.bpa.web.ProcessApplicationAction">
    <forward name="success" path="/cts/processApplication.jsp" />
         <forward name="noApplicationsAvailable" path="/cts/processApplication-noApplicationsAvailable.jsp" />
         <forward name="sewerInGroupApplication" path="/cts/sewerInGroupApplication.jsp" />
         <forward name="insufficientFunds" path="/cts/insufficientFunds" />
    </action>
         <!-- process an application -->
    <!-- Single Residence Application Processing Form -->
    <action path="/cts/singleResidenceProcessingApplication" type="au.com.bpa.web.SingleResidenceApplicationProcessingAction" name="singleResidenceApplicationProcessingForm" scope="request" input="/cts/processApplication.jsp" validate="true">
         <forward name="invalidToken" path="/errors/invalidToken.jsp" />
         <forward name="success" path="/cts/processApplication-success.jsp" />
         <forward name="notValidated" path="/cts/processApplication.do" />
    </action>
         <!-- update a validation run -->
         <action path="/cts/updateValidationRun" type="au.com.bpa.web.UpdateValidationRunAction">
    <forward name="success" path="/cts/processApplication-success.jsp" />
    <forward name="notValidated" path="/cts/processApplication.do" />
    </action>
    <!-- unlock application and return to list -->
    <action path="/cts/unlockAndExit" type="au.com.bpa.web.UnlockApplicationAction" scope="request">
              <!-- forwards to global forward cts/viewApplicationList -->
         </action>
    <!-- export application and return to list -->
    <action path="/cts/exportApplication" type="au.com.bpa.web.ExportApplicationAction" scope="request">
              <!-- forwards to global forward cts/viewApplicationList -->
         </action>
         <!-- approve application and return to list -->
         <action path="/cts/forceApplicationApproval" type="au.com.bpa.web.ForceApplicationApprovalAction" scope="request">
              <!-- forwards to global forward cts/viewApplicationList -->
         </action>
    <!-- reject application and return to list -->
         <action path="/cts/rejectApplication" type="au.com.bpa.web.RejectApplicationAction" name="rejectApplicationForm" scope="request">
              <!-- forwards to global forward cts/viewApplicationList -->
         </action>
         <!-- resolve insufficient funds -->
         <action path="/cts/resolveInsufficientFunds" type="au.com.bpa.web.ResolveInsufficientFundsAction">
    <forward name="success" path="/cts/insufficientFundsResolved.jsp" />
         <forward name="failure" path="/cts/insufficientFundsNotResolved.jsp" />
    </action>
         <!-- Call Centre Staff Actions - Call Centre Role -->
         <!-- view list of applications - cts -->
         <action path="/call-centre/viewApplicationList" type="au.com.bpa.web.ListApplicationsCallCentreAction" name="listApplicationsCallCentreForm" scope="request" validate="false">
    <forward name="success" path="/call-centre/listApplications.jsp" />
    </action>
         <action path="/call-centre/findApplicationById" type="au.com.bpa.web.ListApplicationsCallCentreAction" name="findApplicationByIdForm" scope="request" validate="false">
    <forward name="success" path="/call-centre/listApplications.jsp" />
    </action>
         <!-- save user preferences -->
         <action path="/call-centre/saveUserPreferences" type="au.com.bpa.web.SaveUserPreferencesAction">
    <forward name="success" path="/call-centre/listApplications.jsp" />
    </action>
         <!-- view / edit an application -->
         <action path="/call-centre/viewApplication" type="au.com.bpa.web.ViewApplicationCallCentreAction">
         <forward name="viewSingleResidenceApplication" path="/call-centre/viewApplication.jsp" />
    </action>
         <!-- Admin Actions - Admin Role -->
    <!-- show edit restricted names -->
         <action path="/admin/editRestrictedNames" type="au.com.bpa.web.EditRestrictedNamesAction" name="editRestrictedNamesForm" scope="request" input="/admin/restrictedNames.jsp" validate="false">
              <forward name="success" path="/admin/restrictedNames.jsp" />
         </action>
         <!-- add edit restricted and return to list -->
         <action path="/admin/addRestrictedName" type="au.com.bpa.web.AddRestrictedNameAction" name="editRestrictedNamesForm" scope="request" input="/admin/restrictedNames.jsp" validate="true">
              <forward name="success" path="/admin/editRestrictedNames.do" />
              <forward name="invalidToken" path="/errors/invalidToken.jsp" />
         </action>
         <!-- delete edit restricted and return to list -->
         <action path="/admin/deleteRestrictedName" type="au.com.bpa.web.DeleteRestrictedNameAction" name="editRestrictedNamesForm" scope="request" input="/admin/restrictedNames.jsp" validate="false">
              <forward name="success" path="/admin/editRestrictedNames.do" />
         </action>
         <!-- show a business report -->
         <action path="/admin/showBusinessReport" type="au.com.bpa.web.BusinessReportsAction" name="businessReportsForm" scope="request" validate="false">
              <forward name="detailedProcessingStatistics" path="/admin/reportProcessingStatistics.jsp" />
              <forward name="detailedPerformanceStatistics" path="/admin/reportPerformanceStatistics.jsp" />
              <forward name="reasonsForRejection" path="/admin/reportReasonsForRejection.jsp" />
              <forward name="reasonsForManualProcessing" path="/admin/reportReasonsForManualProcessing.jsp" />
              <forward name="keyPerformanceIndicators" path="/admin/reportKeyPerformanceIndicators.jsp" />
              <forward name="applsWithoutWaterService" path="/admin/reportApplsWithoutWaterService.jsp" />
         </action>
    </action-mappings>
    <!-- ========== Controller Configuration ================================ -->
    <controller>
    <set-property property="maxFileSize" value="2M" />
         <set-property property="debug" value="4" />
    </controller>
    <!-- ========== Message Resources Definitions =========================== -->
    <message-resources parameter="au.com.bpa.web.ApplicationResources"/>
    <!-- ========== Plug Ins Configuration ================================== -->
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
    </plug-in>
    </struts-config>
    This application was originally designed using JBuilder, but now i'm migrating it to Eclipse.
    Also, i tried to change the path to one of the form-beans to something that didn't exist, just to see what error i got, and it didn't do anything.
    Any help would be much appreciated.
    Osireion.

    hi
    i am facing the same problem....while iam trying to execute the following error has occured...
    i checked the struts-config.xml file ..if i remove the form beans tag then every thing will be correct ...can some body help me please..........
    javax.servlet.UnavailableException: Parsing error processing resource path
         at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
         at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)

Maybe you are looking for

  • Report based on function returning query

    Hi all, I created a function FCT_1 in a package PKG, here is an exemple : function FCT_1(te in number) return varchar2 is q varchar2(4000); begin if te = '1' then q := 'Select * from Clientele'; else q := 'Select * from Compagnie'; end if; return q;

  • Returning error while listing  reportees of a user by using worklist api.

    Hi, I am trying to list reportees of a user by using bpel worklist APi in custom application.the following is the code fragment of that: BPMUser bpmUser = gu.getWorkflowServiceClient().getAuthorizationService("dm.hoogly").lookupUser(gu.getWorkflowSer

  • Files moved to external hardrive now iTunes library is empty

    I moved iTunes to an external hard drive, but when I go to use iTunes the library is blank. I still have the library on the new drive, how do I get it to appear back on iTunes. My iPod has not been docked so the library in on the iPod as well. Please

  • How to design a simple binary one-shot

    I need a simple binary one-shot that when a signal becomes true, a new value goes True for one evaluation and does not get re-triggered until the original signal becomes false and then true again. I have tried many ways and either the wait for the si

  • Emails on Z10 and NOT on Mac

    For some reason when I open an email on my Z10 it doesn't seem to appear on my Mac PC? Is there anyway I can alter this?