Console link to source not working/ struts-config.xml visual

- Running jboss/tomcat under the NitroX server debugging, a stack trace
is spit out. I click on the line in the stack trace that references my
code, and it gives me: 'Source not found for x.y.z '. This used to work
when I ran under the jbossIDE server config.
- When I open my struts-config.xml file, the visual display appears
broken. It only displays 2 action classes, and nothing else. There's a
whole lot more than that in there. Is there something in my
struts-config file it doesn't like?
Here's the file:
<?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>
<!-- ========== Data Sources Definitions
================================== -->
<!--
Define your Struts data sources in a file called
struts-data-sources.xml and place
it in your merge directory.
-->
<!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
<form-bean
name="Scheduling_NewCallBean"
type="com.pubco.icu.struts.scheduling.newcall.NewCallBean"
/>
<form-bean
name="Reports_AttendeeReportBean"
type="com.pubco.icu.struts.report.attendees.attendeeReportBean"
/>
<form-bean
name="Reports_AltListingsReportBean"
type="com.pubco.icu.struts.report.alternate.altListingsReportBean"
/>
<form-bean
name="Maintenance_AdBean"
type="com.pubco.icu.struts.maintenance.ad.AdBean"
/>
<form-bean
name="Maintenance_MarketBean"
type="com.pubco.icu.struts.maintenance.market.MarketBean"
/>
<form-bean
name="Maintenance_AssignWarehouseBean"
type="com.pubco.icu.struts.maintenance.assignWarehouse.AssignWarehouseBean"
/>
<form-bean
name="Reports_ContractorReportBean"
type="com.pubco.icu.struts.report.contractor.contractorReportBean"
/>
<form-bean
name="Maintenance_MeetingFormBean"
type="com.pubco.icu.struts.FormBeanBase"
/>
<form-bean
name="Maintenance_MeetingFormBean"
type="com.pubco.icu.struts.maintenance.meeting.MeetingFormBean"
/>
<form-bean
name="Scheduling_ContractorBean"
type="com.pubco.icu.struts.scheduling.contractor.ContractorBean"
/>
<form-bean
name="Reports_SingleContractorBean"
type="com.pubco.icu.struts.report.singleContractor.singleContractorBean"
/>
<form-bean
name="Maint_AltReasonFormBean"
type="com.pubco.icu.struts.maintenance.altReason.AltReasonFormBean"
/>
<form-bean
name="Reports_AdResponseReportBean"
type="com.pubco.icu.struts.report.adResponses.adResponseReportBean"
/>
<form-bean
name="Maintenance_ManagerFormBean"
type="com.pubco.icu.struts.maintenance.manager.ManagerFormBean"
/>
<form-bean
name="Maintenance_WarehouseBean"
type="org.apache.struts.action.DynaActionForm">
<form-property name="comments" type="java.lang.String" />
<form-property name="directions" type="java.lang.String" />
<form-property name="phoneExt" type="java.lang.String" />
<form-property name="warehouseId" type="java.lang.String" />
<form-property name="apartmentNbr" type="java.lang.String" />
<form-property name="city" type="java.lang.String" />
<form-property name="faxNbr" type="java.lang.String" />
<form-property name="houseNbr" type="java.lang.String" />
<form-property name="phoneNbr" type="java.lang.String" />
<form-property name="state" type="java.lang.String" />
<form-property name="streetName" type="java.lang.String" />
<form-property name="streetPost" type="java.lang.String" />
<form-property name="streetPrefix" type="java.lang.String" />
<form-property name="streetSuffix" type="java.lang.String" />
<form-property name="warehouseName" type="java.lang.String" />
<form-property name="zipCode" type="java.lang.String" />
<form-property name="title" type="java.lang.String" />
<form-property name="archive" type="java.lang.Boolean" />
</form-bean>
</form-beans>
<!-- ========== Global Exceptions Definitions
=================================== -->
<!--
Define your exceptions in a file called global-exceptions.xml and place
it in your merge directory.
-->
<!-- ========== Global Forward Definitions
=================================== -->
<global-forwards>
<forward name="failed" path="/systemError.jsp"/>
<forward name="start" path="/start.do"/>
</global-forwards>
<!-- ========== Action Mapping Definitions
=================================== -->
<action-mappings>
<action
path="/scheduling/newcall/LocationListPrep"
type="com.pubco.icu.struts.scheduling.newcall.LocationListPrep"
name="Scheduling_NewCallBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/locationList.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/market/ImportData"
type="com.pubco.icu.struts.maintenance.market.ImportData"
name="Maintenance_MarketBean"
scope="session"
unknown="false"
validate="true"
>
/action
<action
path="/scheduling/newcall/MeetingListPrep"
type="com.pubco.icu.struts.scheduling.newcall.MeetingListPrep"
name="Scheduling_NewCallBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/MeetingListLookup.do"
redirect="false"
/>
</action>
<action
path="/report/attendees/meetingDirectoryPrep"
type="com.pubco.icu.struts.report.attendees.meetingAttendeesDirectoryPrep"
name="Reports_AttendeeReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/attendees/attendeeReportRequestPage.jsp"
redirect="false"
/>
</action>
<action
path="/report/attendees/meetingAttendeesSubmit"
type="com.pubco.icu.struts.report.attendees.meetingAttendeesSubmit"
name="Reports_AttendeeReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/attendees/attendeeReportRequestPage.jsp"
redirect="false"
/>
<forward
name="runReport"
path="/report/attendees/attendeeReportDisplayPage.jsp"
redirect="false"
/>
<forward
name="failed"
path="/report/attendees/attendeeReportRequestPage.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/market/LocationListLookup"
type="com.pubco.icu.struts.maintenance.market.LocationListLookup"
name="Maintenance_MarketBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="successAdd"
path="/maintenance/market/locationEdit.jsp"
redirect="false"
/>
<forward
name="successEdit"
path="/maintenance/market/locationEdit.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/ad/AdDetailPrep"
type="com.pubco.icu.struts.maintenance.ad.AdDetailPrep"
name="Maintenance_AdBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/ad/adDetail.jsp"
redirect="false"
/>
</action>
<action
path="/report/contractor/contractorReportPrinterPrep"
type="com.pubco.icu.struts.report.contractor.contractorReportPrinterPrep"
name="Reports_ContractorReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/contractor/contractorReportPrinter.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/meeting/AttendeeDetailPrep"
type="com.pubco.icu.struts.maintenance.meeting.AttendeeDetailPrep"
name="Maintenance_MeetingFormBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/meeting/attendeeDetail.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/ad/AdMktSubmit"
type="com.pubco.icu.struts.maintenance.ad.AdMktSubmit"
name="Maintenance_AdBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/ad/AdEditPrep.do"
redirect="false"
/>
<forward
name="cancel"
path="/maintenance/ad/AdEditPrep.do"
redirect="false"
/>
</action>
<action
path="/maintenance/assignWarehouse/AssignWarehouseListPrep"
type="com.pubco.icu.struts.maintenance.assignWarehouse.AssignWarehouseListPrep"
name="Maintenance_AssignWarehouseBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/assignWarehouse/assignWarehouseList.jsp"
redirect="false"
/>
</action>
<action
path="/report/adResponses/adResponsePrep"
type="com.pubco.icu.struts.report.adResponses.adResponsePrep"
name="Reports_AdResponseReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/adResponses/adResponseReportRequest.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/assignWarehouse/AssignWarehouseListLookup"
type="com.pubco.icu.struts.maintenance.assignWarehouse.AssignWarehouseListLookup"
name="Maintenance_AssignWarehouseBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/assignWarehouse/assignWarehouseList.jsp"
redirect="false"
/>
<forward
name="cancel"
path="/start.do"
redirect="false"
/>
<forward
name="failed"
path="/maintenance/assignWarehouse/assignWarehouseList.jsp"
redirect="false"
/>
</action>
<action
path="/report/contractor/sendEmails"
type="com.pubco.icu.struts.report.contractor.SendEmails"
name="Reports_ContractorReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="letterEntry"
path="/report/contractor/sendEmails.jsp"
redirect="false"
/>
<forward
name="sendItDone"
path="/report/contractor/sendEmailsDone.jsp"
redirect="false"
/>
<forward
name="failed"
path="/report/contractor/sendEmails.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/ad/AdEditSubmit"
type="com.pubco.icu.struts.maintenance.ad.AdEditSubmit"
name="Maintenance_AdBean"
scope="session"
parameter="AdEditSubmit_action"
unknown="false"
validate="true"
>
forward
name="cancel"
path="/maintenance/ad/AdListLookup.do"
redirect="false"
/>
<forward
name="failed"
path="/maintenance/ad/AdEditPrep.do"
redirect="false"
/>
<forward
name="addDirectory"
path="/maintenance/ad/AdMktPrep.do"
redirect="false"
/>
<forward
name="successUpdate"
path="/maintenance/ad/AdListLookup.do"
redirect="false"
/>
<forward
name="successIncrease"
path="/maintenance/ad/AdEditPrep.do"
redirect="false"
/>
<forward
name="successDecrease"
path="/maintenance/ad/AdEditPrep.do"
redirect="false"
/>
<forward
name="successDelete"
path="/maintenance/ad/AdEditPrep.do"
redirect="false"
/>
</action>
<action
path="/scheduling/newcall/AdListPrep"
type="com.pubco.icu.struts.scheduling.newcall.AdListPrep"
name="Scheduling_NewCallBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/adList.jsp"
redirect="false"
/>
<forward
name="notallowed"
path="/scheduling/newcall/LocationListLookup.do"
redirect="false"
/>
</action>
<action
path="/report/adResponses/adResponsesSubmit"
type="com.pubco.icu.struts.report.adResponses.adResponsesSubmit"
name="Reports_AdResponseReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/adResponses/adResponseReportDisplay.jsp"
redirect="false"
/>
<forward
name="failed"
path="/report/adResponses/adResponsePrep.do"
redirect="false"
/>
</action>
<action
path="/report/alternate/alternateListsSubmit"
type="com.pubco.icu.struts.report.alternate.alternateListsSubmit"
name="Reports_AltListingsReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/alternate/altListsReportDisplayPage.jsp"
redirect="false"
/>
</action>
<action
path="/scheduling/contractor/ContractorListPrep"
type="com.pubco.icu.struts.scheduling.contractor.ContractorListPrep"
name="Scheduling_ContractorBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/contractor/ContractorListLookup.do"
redirect="false"
/>
</action>
<action
path="/report/singleContractor/singleContractorPrep"
type="com.pubco.icu.struts.report.singleContractor.singleContractorPrep"
name="Reports_SingleContractorBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/contractor/singleContractorDisplay.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/market/DirectoryListPrep"
type="com.pubco.icu.struts.maintenance.market.DirectoryListPrep"
name="Maintenance_MarketBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/market/DirectoryListLookup.do"
redirect="false"
/>
</action>
<action
path="/maintenance/altReason/AltReasonDetailPrep"
type="com.pubco.icu.struts.maintenance.altReason.AltReasonDetailPrep"
name="Maint_AltReasonFormBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/altReason/AltReasonDetail.jsp"
redirect="false"
/>
</action>
<action
path="/scheduling/newcall/LocationListLookup"
type="com.pubco.icu.struts.scheduling.newcall.LocationListLookup"
name="Scheduling_NewCallBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/locationList.jsp"
redirect="false"
/>
<forward
name="failed"
path="/scheduling/newcall/locationList.jsp"
redirect="false"
/>
<forward
name="tryAgain"
path="/scheduling/newcall/LocationListLookup.do"
redirect="false"
/>
</action>
<action
path="/scheduling/contractor/ContractorListLookup"
type="com.pubco.icu.struts.scheduling.contractor.ContractorListLookup"
name="Scheduling_ContractorBean"
scope="session"
parameter="ContractorListLookup_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/contractor/contractorList.jsp"
redirect="false"
/>
<forward
name="failed"
path="/scheduling/contractor/contractorList.jsp"
redirect="false"
/>
<forward
name="addContractor"
path="/scheduling/contractor/ContractorListSubmit.do?action=add"
redirect="false"
/>
<forward
name="findMeetings"
path="/scheduling/contractor/ContractorListSubmit.do?action=findMeetings"
redirect="false"
/>
<forward
name="editContractor"
path="/scheduling/contractor/ContractorListSubmit.do?action=edit"
redirect="false"
/>
</action>
<action
path="/maintenance/altReason/AltReasonListLookup"
type="com.pubco.icu.struts.maintenance.altReason.AltReasonListLookup"
name="Maint_AltReasonFormBean"
scope="session"
parameter="AltReasonListLookup_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/altReason/AltReasonList.jsp"
redirect="false"
/>
<forward
name="failed"
path="/maintenance/altReason/AltReasonList.jsp"
redirect="false"
/>
<forward
name="add"
path="/maintenance/altReason/AltReasonDetailPrep.do"
redirect="false"
/>
</action>
<action
path="/start"
type="com.pubco.icu.struts.Start"
unknown="false"
validate="true"
>
forward
name="success"
path="/title.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/meeting/AttendeeListLookup"
type="com.pubco.icu.struts.maintenance.meeting.AttendeeListLookup"
name="Maintenance_MeetingFormBean"
scope="session"
parameter="AttendeeListLookup_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/meeting/attendeeList.jsp"
redirect="false"
/>
<forward
name="successOK"
path="/maintenance/meeting/MeetingDetailPrep.do"
redirect="false"
/>
<forward
name="cancel"
path="/maintenance/meeting/MeetingDetailPrep.do"
redirect="false"
/>
</action>
<action
path="/maintenance/warehouse/WarehouseDetailPrep"
type="com.pubco.icu.struts.maintenance.warehouse.WarehouseDetailPrep"
name="Maintenance_WarehouseBean"
scope="session"
parameter="WarehouseDetailPrep_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/warehouse/warehouseDetail.jsp"
redirect="false"
/>
</action>
<action
path="/scheduling/newcall/MeetingListLookup"
type="com.pubco.icu.struts.scheduling.newcall.MeetingListLookup"
name="Scheduling_NewCallBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/meetingList.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/meeting/AttendeeListSubmit"
type="com.pubco.icu.struts.maintenance.meeting.AttendeeListSubmit"
name="Maintenance_MeetingFormBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/meeting/MeetingDetailPrep.do"
redirect="false"
/>
</action>
<action
path="/scheduling/contractor/ContractorListSubmit"
type="com.pubco.icu.struts.scheduling.contractor.ContractorListSubmit"
name="Scheduling_ContractorBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="successNewCall"
path="/scheduling/newcall/FinishContractor.do"
redirect="false"
/>
<forward
name="successAdd"
path="/scheduling/contractor/contractorDetail.jsp"
redirect="false"
/>
<forward
name="successEdit"
path="/scheduling/contractor/contractorDetail.jsp"
redirect="false"
/>
<forward
name="successFindMeetings"
path="/scheduling/contractor/meetings.jsp"
redirect="false"
/>
<forward
name="successRecruit"
path="/scheduling/contractor/ContractorListLookup.do"
redirect="false"
/>
<forward
name="successAlternateEdit"
path="/scheduling/contractor/alternateEdit.jsp"
redirect="false"
/>
</action>
<action
path="/scheduling/newcall/AdListSubmit"
type="com.pubco.icu.struts.scheduling.newcall.AdListSubmit"
name="Scheduling_NewCallBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/MeetingListPrep.do"
redirect="false"
/>
</action>
<action
path="/report/attendees/attendeeReportDisplayPrinter"
type="com.pubco.icu.struts.report.attendees.attendeeReportDisplayPrinter"
name="Reports_AttendeeReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/attendees/attendeeReportDisplayPrinter.jsp"
redirect="false"
/>
</action>
<action
path="/report/adResponses/adResponseReportPrinterPrep"
type="com.pubco.icu.struts.report.adResponses.adResponseReportPrinterPrep"
name="Reports_AdResponseReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/adResponses/adResponseReportPrinter.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/meeting/ManagerAdd"
type="com.pubco.icu.struts.maintenance.meeting.ManagerAdd"
name="Maintenance_MeetingFormBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/meeting/MeetingListLookup.do"
redirect="false"
/>
</action>
<action
path="/maintenance/manager/ManagerListPrep"
type="com.pubco.icu.struts.maintenance.manager.ManagerListPrep"
name="Maintenance_ManagerFormBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/manager/ManagerListLookup.do"
redirect="false"
/>
</action>
<action
path="/maintenance/ad/AdDetailSubmit"
type="com.pubco.icu.struts.maintenance.ad.AdDetailSubmit"
name="Maintenance_AdDetailBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/ad/AdListPrep.do"
redirect="false"
/>
<forward
name="cancel"
path="/maintenance/ad/AdListPrep.do"
redirect="false"
/>
<forward
name="failed"
path="/maintenance/ad/adDetail.jsp"
redirect="false"
/>
<forward
name="successInsert"
path="/maintenance/ad/AdListPrep.do"
redirect="false"
/>
</action>
<action
path="/maintenance/warehouse/WarehouseListLookup"
type="com.pubco.icu.struts.maintenance.warehouse.WarehouseListLookup"
name="Maintenance_WarehouseBean"
scope="session"
parameter="WarehouseListLookup_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/warehouse/warehouseList.jsp"
redirect="false"
/>
<forward
name="add"
path="/maintenance/warehouse/WarehouseDetailPrep.do"
redirect="false"
/>
</action>
<action
path="/report/alternate/altListingsReportPrinterPrep"
type="com.pubco.icu.struts.report.alternate.altListingsReportPrinterPrep"
name="Reports_AltListingsReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/alternate/altListsReportPrinterDisplay.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/manager/ManagerListLookup"
type="com.pubco.icu.struts.maintenance.manager.ManagerListLookup"
name="Maintenance_ManagerFormBean"
scope="session"
parameter="ManagerListLookup_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/manager/managerList.jsp"
redirect="false"
/>
<forward
name="failed"
path="/maintenance/manager/managerList.jsp"
redirect="false"
/>
<forward
name="successAddForMeeting"
path="/maintenance/meeting/ManagerAdd.do"
redirect="false"
/>
<forward
name="cancelAddForMeeting"
path="/maintenance/meeting/MeetingListLookup.do"
redirect="false"
/>
</action>
<action
path="/scheduling/contractor/SendEmail"
type="com.pubco.icu.struts.scheduling.contractor.SendEmail"
unknown="false"
validate="true"
>
forward
name="success"
path="/scheduling/newcall/emailConfirmation.jsp"
redirect="false"
/>
<forward
name="failed"
path="/scheduling/contractor/meetings.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/market/DirectoryListLookup"
type="com.pubco.icu.struts.maintenance.market.DirectoryListLookup"
name="Maintenance_MarketBean"
scope="session"
parameter="DirectoryListLookup_action"
unknown="false"
validate="true"
>
forward
name="add"
path="/maintenance/market/directoryAdd.jsp"
redirect="false"
/>
<forward
name="success"
path="/maintenance/market/directoryList.jsp"
redirect="false"
/>
<forward
name="importData"
path="/maintenance/market/ImportData.do"
redirect="false"
/>
<forward
name="editSuccess"
path="/maintenance/market/directoryEdit.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/meeting/AttendeeListPrep"
type="com.pubco.icu.struts.maintenance.meeting.AttendeeListPrep"
name="Maintenance_MeetingFormBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/meeting/AttendeeListLookup.do"
redirect="false"
/>
</action>
<action
path="/report/contractor/contractorSubmit"
type="com.pubco.icu.struts.report.contractor.contractorSubmit"
name="Reports_ContractorReportBean"
scope="session"
unknown="false"
validate="true"
>
forward
name="success"
path="/report/contractor/contractorReportDisplay.jsp"
redirect="false"
/>
</action>
<action
path="/maintenance/meeting/MeetingDetailSubmit"
type="com.pubco.icu.struts.maintenance.meeting.MeetingDetailSubmit"
name="Maintenance_MeetingFormBean"
scope="session"
parameter="MeetingDetailSubmit_action"
unknown="false"
validate="true"
>
forward
name="success"
path="/maintenance/meeting/MeetingListLookup.do"
redirect="false"
/>
<forward
name="cancel"
path="/maintenance/meeting/MeetingListLookup.do"
redirect="false"
/>
<forward
name="failed"
path="/maintenance/meeting/

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">

Similar Messages

  • How to use data-sources tag in struts-config.xml

    hi all,
    I am doing programs in sturts. My program purpose is to retrieve data from the database.My database is MySql. I know that we can write connection code in Action Class, it is ok for some less prog's if i want to use the sane connection code in more Action Classes it is vasting time and so.
    So i want to use <data-sources> tag that is available in struts-config.xml. I know that thre is tag with this name, but the problem is i don't know how to use this tag. If any budy know how to use this please tell me the syntax or any example.
    plese... reply soon..

    hi all,
    I am doing programs in sturts. My program
    My program purpose is to retrieve data from the
    database.My database is MySql. I know that we can
    write connection code in Action Class, it is ok for
    some less prog's if i want to use the sane connection
    code in more Action Classes it is vasting time and
    so.I don't think it's a good idea to put database code in Action classes. (That's one of the biggest drawbacks of Struts - it's completely tied to Actions, HTTP, and the Web.) Better to move that code into plain old Java objects and let the Actions call them.
    You'll be able to test them without the container or Struts, and you'll be able to reuse those objects in other, non-Web contexts.
    So i want to use <data-sources> tag that is available
    in struts-config.xml. I know that thre is tag withThis is the wrong place to configure a connection pool, too. Struts should have nothing to do with it. What if you change Web frameworks to WebWork or Spring? The connection pool should be configured in the container that hosts your app, not Struts.
    this name, but the problem is i don't know how to use
    this tag. If any budy know how to use this please
    tell me the syntax or any example.
    plese... reply soon..Don't do it. Think about doing it in your container, not Struts.
    %

  • How to access Datasource tag info (struts-config.xml)  in POJO

    Hello friends,
    I am doing a project in struts.I have stored the database connection information in data-source tag of struts-config.xml file.This is the code.
    <data-sources>
    <data-source>
    <set-property property="autoCommit" value="false"/>
    <set-property property="description" value="oracle Data Source"/>
    <set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
    <set-property property="maxCount" value="10"/>
    <set-property property="minCount" value="2"/>
    <set-property property="user" value="system"/>
    <set-property property="password" value="manager"/>
    <set-property property="url"
    value="jdbc:oracle:thin:@localhost:1521:gd"/>
    </data-source>
    </data-sources>
    Now I want to access this data in POJO.I know how to use it in action class but unable to use it in POJO.To access it in action class , the code goes like this....
    ServletContext context=servlet.getServletContext();
    DataSource datasource=(DataSource)context.getAttribute(Action.DATA_SOURCE_KEY);
    Connection con=datasource.getConnection();
    Can anyone tell me what to do?.Any help will be highly appreciated.Thank you in advance.

    You will need to use the JSR 88 API to access deployment descriptor configuration.
    See the Programming Deployment for Oracle WebLogic Server documentation for more information.

  • 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

  • Multiple Data source in Struts-Config.xml

    Hi ,
    I am Amit Garg and i am new to this forum....
    Can any one help me out with the problem that i need to have 3 data source in my struts-config file and how will my getDatasource(request) method recoganise which data source to pick and access.

    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)

  • After installing firefox 27 "save link as" is not working

    after installing firefox 27 "save link as" is not working started a few days ago use to work fine before v27 was installed. please help.

    Hello hansram, '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • The target struts-config.xml cannot be started because it is not a runnable

    I'm tying to run the Tree Binding example (ADF UIX Tree Binding Sample) -- (http://otn.oracle.com/sample_code/products/jdev/index.html).
    I have defined an application workspace and DB connection for it, but get this error when I attempt to "run" the ViewJSP project.
    "The target struts-config.xml cannot be started because it is not a runnable target."
    Running JDev 9051 against DB9i. I am new to this version of JDev, but have familiarity with the previous releases (904x).
    What do I need to do here? How to I configure JDev and to make "structs-config.xml" a "runnable" target?
    Any help would be appreciated.

    You need to run one of the components in struts-config.xml, like a JSP page or struts action.
    Select the starting page or action in struts page flow, right mouse and choose run.
    raghu
    JDev Team

  • D-Link dub e100 not work in mac 10.10

    hi , i just upgraded my macbook pro to mac 10.10 and after upgrade my USB-to-ethernet device (D-link dub e100) not work and in setting says me self assigned ip
    please help.

    Thanks for the suggestion.
    I have found that clicking on the photo works on export, but not all of the time.
    I tried redefining a keyboard shortcut.  That does not work since the "Menu: View/Zoom In" function does not work either.
    Strange that it is only a problem with multiple photos open and they appear in tabs.  I have tried deselecting "Open new documents as tabs" under preferences.  That 'fixes' the problem since the zoom in / out does not work only with multiple tabs open, but it works with multiple windows open.   I suspect that this 'fix' will work on the export problem too, since I will be exporting the active window.
    So essentially, the 'open new documents as tabs' is so buggy that it should not be used.
    Hopefully Adobe will not try to charge me for an upgrade to CS5 in order to fix this problem.

  • 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">

  • How to  configure  for struts-config.xml

    Hi
    I am having a JSp which is Mapped to anothr action through the registration.The registartion is mapped to action
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ page import="org.apache.struts.validator.ValidatorPlugIn" session="true" %>
    <%@ page import="org.apache.struts.Globals" %>
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <html:html locale="true">
    <head>
    <title><bean:message key="index.title"/></title>
    <html:base/>
    </head>
    <body bgcolor="white">
    <logic:notPresent name="<%= Globals.MESSAGES_KEY %>" >
      <font color="red">
        ERROR:  Application resources not loaded -- check servlet container
        logs for error messages.
      </font>
    </logic:notPresent>
    <%-- :TODO: Need code to do this with moudles
    <logic:notPresent name="<%= ValidatorPlugIn.VALIDATOR_KEY %>" >
      <font color="red">
        ERROR:  Validator resources not loaded -- check Commons Logging
        logs for error messages.
      </font>
    </logic:notPresent>
    --%>
    <h3><bean:message key="registrationForm.title"/>1222AAAAAAAAAAAAA</h3>
    <ul>
      <li><html:link action="Test.jsp">Test212121.jsp</html:link >
       <li><html:link action="/registration"><bean:message key="registrationForm.title"/></html:link></li>
       <%System.out.println("hellooooooooooooo");%>
       <!-- :TODO: Should have a non-JaveScript message-by-field example -->
       <li>
          <html:link action="/jsRegistration"><bean:message key="jsRegistrationForm.title"/></html:link> -
          <bean:message key="jsRegistrationForm.description"/>
       </li>
       <li>
          <html:link action="/multiRegistration"><bean:message key="multiRegistrationForm.title"/></html:link> -
          <bean:message key="multiRegistrationForm.description"/>
       </li>
    </ul>
    <a href="registration.jsp">Registration Test</a>
    <p> </p>
    <h3><bean:message key="typeForm.title"/></h3>
    <ul>
       <li>
          <html:link action="/type"><bean:message key="typeForm.title"/></html:link> -
          <bean:message key="typeForm.description"/>
       </li>
       <li>
          <html:link action="/editJsType"><bean:message key="jsTypeForm.title"/></html:link> -
          <bean:message key="jsTypeForm.description"/>
       </li>
    </ul>
    <p> </p>
    <h3>Change Language | Changez Le Langage</h3>
    <ul>
       <li><html:link action="/locale?language=en">English | Anglais</html:link></li>
       <li>
          <html:link action="/locale?language=fr">French | Francais</html:link> -
          <bean:message key="localeForm.fr"/>
       </li>
       <li>
          <html:link action="/locale?language=fr&country=CA">French Canadian | Francais Canadien</html:link> -
          <bean:message key="localeForm.frCA"/>
       </li>
       <li>
          <html:link action="/locale?language=ja" useLocalEncoding="true">Japanese | Japonais</html:link> -
          <bean:message key="localeForm.ja"/>
       </li>
    </ul>
    <p> </p>
    ==============struts-config.xml=================\<?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>
    <!--============================================== Form Bean Definitions -->
    <form-beans>
    <!-- Registration form bean -->
    <form-bean name="registrationForm" type="validator.RegistrationForm" />
    <!-- Multi-Part Registration form bean -->
    <form-bean name="multiRegistrationForm" type="validator.RegistrationForm" />
    <!-- Type form bean -->
    <form-bean name="typeForm" type="validator.TypeForm" />
    <!-- JavaScript Type form bean -->
    <form-bean name="jsTypeForm" type="validator.TypeForm" />
    </form-beans>
    <!-- ======================================== Global Forward Definitions -->
    <global-forwards>
    <forward name="home" path="/index.jsp" />
    </global-forwards>
    <!-- ========================================= Action Mapping Definitions -->
    <action-mappings>
    <action path="/welcome" forward="/index.jsp" />
    <!-- Registration Action
         -->
    <forward name="registration" path="/registration.do" /> //// ==========>here it is mapped
         <action path="/registration" forward="/registration.jsp" />
         <action path="/registration-submit" type="validator.RegistrationAction" name="registrationForm" scope="request" validate="true" input="input">
    <forward name="input" path="/registration.do" />
    <forward name="success" path="/index.jsp" />
    </action>
         <action path="/jsRegistration" forward="/jsRegistration.jsp" />
    <!-- Multi-Part Registration Action -->
    <action path="/multiRegistration" forward="/multiRegistration1.jsp" />
    <action path="/multiRegistration-submit" type="validator.MultiRegistrationAction" name="multiRegistrationForm" scope="request" validate="false">
    <forward name="success" path="/welcome.do" />
    <forward name="input1" path="/multiRegistration1.jsp" />
    <forward name="input2" path="/multiRegistration2.jsp" />
    </action>
    <!-- Type Action -->
    <action path="/type" forward="/type.jsp" />
    <action path="/type-submit" type="validator.TypeAction" name="typeForm" scope="request" validate="true" input="input">
    <forward name="input" path="/type.do" />
    <forward name="success" path="/welcome.do" />
    </action>
    <!-- JavaScript Type Action -->
    <action path="/editJsType" type="validator.EditTypeAction" scope="request" validate="false">
    <forward name="success" path="/jsType.do" />
    </action>
    <action path="/jsType" forward="/jsType.jsp" />
    <action path="/jsType-submit" type="validator.TypeAction" name="jsTypeForm" scope="request" validate="true" input="input">
    <forward name="input" path="/editJsType-submit.do?typeForm.reset=false" />
    <forward name="success" path="/welcome.do" />
    </action>
    <!-- Locale Action -->
    <action path="/locale" type="validator.LocaleAction" name="localeForm" scope="request">
    <forward name="success" path="/welcome.do" />
    </action>
    </action-mappings>
    <!-- ============================================= Controller Definition -->
    <controller inputForward="true" />
    <!-- ===================================== Message Resources Definitions -->
    <message-resources parameter="validator.MessageResources" />
    <!-- ============================================ Plug Ins Configuration -->
    <!--
    Add multiple validator resource files by setting the pathnames property
    with a comma delimitted list of resource files to load.
    -->
    <plug-in className="validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validator/validation.xml" />
    <set-property property="stopOnFirstError" value="true" />
    </plug-in>
    </struts-config>
    <html:img page="/struts-power.gif" altKey="index.powered"/>
    </body>
    </html:html>

    Hey,
    U can do it the way u want. Use DispatchAction Class instead of Action Class. Just go through the documentation for this. If u still have problem let me know.
    Thanks
    KM
    Hi,
    I am new to struts and when i am doing my application i find some >>difficulty i.e,
    I have two buttons on a jsp page Save,Delete.when I click on >>save ,saveAction must be called.if we click delete deleteAction to be >>called.
    for this how can I configure in struts-config.xml file. and how it >>knows which button has been clicked.
    Can any one please guid me.
    Thanks

  • Passing a QueryString in Struts-Config.xml

    Hi,
    How to pass a queryString in Struts-Config.xml??
    For eg,
    <forward name="Success"                    path="/TestAction.do?method=nextPage&Id=100">
                   </forward>
    Not working in struts 1.1. Where it is taking only one parameter where it is not taking the "&" part?? What is the problem here. Please do provide
    a solution for this.
    Thanks,
    JavaCrazyLover

    Hi
    If you want to pass two or more parameters in struts-config.xml do it like this
    eg : <forward name="Success" path="/TestAction.do?method=nextPage&Id=100">
    </forward>
    It worked for me. instead of & use &

  • Using chinese characters in struts-config.xml

    Hi
    i am developing an application in Chinese language where i need to create all the urls in the Chinese language. i am using struts 1.3.5.can anyone tell me is it possible to use Chinese characters in struts-config.xml action mappings? i tried but it is not working. is there ant way really?
    Regards,
    A.

    Don't know about struts specifically, but for Chinese URLs to work you would need to convert to punycode at some point, to comply with IDNA: http://en.wikipedia.org/wiki/Punycode
    Are you doing that?

  • Jdev 11g - Error while opening struts-config.xml

    Hi,
    could you help me please, I have this error when I try to open my struts-config.xml file:
    Message
    BME-99003: An error occurred, so processing could not continue.
    Cause
    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.helper.Polyline.getExtent(Polyline.java:314)
         at oracle.bm.diagrammer.shape.BaseDiagramEdge.getExtent(BaseDiagramEdge.java:1482)
         at oracle.bm.diagrammer.util.BaseShapeSet.getExtent(BaseShapeSet.java:569)
         at oracle.bm.diagrammer.BaseDiagram.getDiagramResizeSize(BaseDiagram.java:3933)
         at oracle.bm.diagrammer.BaseDiagram$DiagramRemovePagesLockMonitor.doReleaseAction(BaseDiagram.java:2548)
         at oracle.bm.diagrammer.DistributableLockMonitor.releaseDistributableLock(DistributableLockMonitor.java:99)
         at oracle.bm.diagrammer.DistributableLockMonitor.performLockedAction(DistributableLockMonitor.java:79)
         at oracle.bm.diagrammer.BaseDiagram.performDiagramRemovePagesLockedAction(BaseDiagram.java:2581)
         at oracle.bm.addinUtil.IDEAppContext.buildDiagramImpl(IDEAppContext.java:2509)
         at oracle.bm.addinUtil.IDEAppContext.buildDiagram(IDEAppContext.java:2327)
         at oracle.bm.addinUtil.DiagAppPanel.buildDiagram(DiagAppPanel.java:50)
         at oracle.bm.addinUtil.IDEAppContext.openLoad(IDEAppContext.java:3857)
         at oracle.bm.addinUtil.IDEAppContext.open(IDEAppContext.java:3517)
         at oracle.adfdt.controller.diagram.PageFlowEditor.open(PageFlowEditor.java:82)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:276)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:181)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:94)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:379)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1400)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1334)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1260)
         at oracle.ideimpl.navigator.OpenEditorController.whenOpenEditor(OpenEditorController.java:41)
         at oracle.ideimpl.navigator.OpenEditorContextMenuListener.handleDefaultAction(OpenEditorContextMenuListener.java:51)
         at oracle.ide.controller.ContextMenuListenersHook$LazyContextMenuListener.handleDefaultAction(ContextMenuListenersHook.java:199)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:412)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1792)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:2127)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:2148)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:198)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.
    ________________________________________________________________________________

    Hi,
    I have recreate my file from scratch and it is working now... JDev replace its old oxd file and it is working, maybe it was during the migration process from 10.1.3.4 to 11.1.1.0.2.

  • 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

Maybe you are looking for