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.
%

Similar Messages

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

  • How to use logic:present tag in struts el tag

    Hi
    I am trying to use struts el tags in the jsp page.I am struggling with the following exception: Cannot find bean: "result" in any scope.I couldn't understand why this error is coming even i had the property "result" in my ActionForm.
    ActionForm:
    package com.finocus.cam.struts.bean;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMapping;
    import com.finocus.cam.common.ValidateFormat;
    public class DetailsForm extends org.apache.struts.action.ActionForm {
         private final static String LOG_TAG = DetailsForm.class.getName() + ".";
         private static final long serialVersionUID = 1L;
         // VARIABLES DECLARATION
         private String name = null;
         private String searchField = null;
         private String searchCriteria = null;
         private String phonenumber = "";
         private String email = "";
         private List results = null;
         private String adminUserName = "";
         private String adminUserEmail = "";
         public DetailsForm() {
         // GETTER AND SETTER METHODS
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public String getSearchCriteria() {
              return searchCriteria;
         public void setSearchCriteria(String searchCriteria) {
              this.searchCriteria = searchCriteria;
         public String getSearchField() {
              return searchField;
         public void setSearchField(String searchField) {
              this.searchField = searchField;
         public String getEmail() {
              return email;
         public void setEmail(String email) {
              this.email = email;
         public List getResults() {
              return results;
         public void setResults(List results) {
              this.results = results;
         public String getPhonenumber() {
              return phonenumber;
         public void setPhonenumber(String phonenumber) {
              this.phonenumber = phonenumber;
         public String getAdminUserEmail() {
              return adminUserEmail;
         public void setAdminUserEmail(String adminUserEmail) {
              this.adminUserEmail = adminUserEmail;
         public String getAdminUserName() {
              return adminUserName;
         public void setAdminUserName(String adminUserName) {
              this.adminUserName = adminUserName;
         // DUMPING THE VALUES IN THE CONSOLE
         public void dumpValues() {
              StringBuffer sb = new StringBuffer();
              sb.append("Name'");
              sb.append(name);
              sb.append("SearchField");
              sb.append(searchField);
              sb.append("searchCriteria");
              sb.append(searchCriteria);
              sb.append("'");
              sb.append(" ");
              System.out.println(sb.toString());
         // RESET() METHOD IS USED FOR STORE FORM'S CURRENT VARIABLES DECLARATION
         public void reset(ActionMapping actionMapping, HttpServletRequest request) {
              System.out.println("reset() method is called");
              this.email = null;
              this.searchCriteria = null;
              this.searchField = null;
              this.results = null;
         // VALIDATE() METHOD IS USED TO VALIDATE THE FORM DATA
         public ActionErrors validate(ActionMapping actionMapping,
                   HttpServletRequest request) {
              ActionErrors errors = new ActionErrors();
              System.out.println("Validate()is called");
              // Determine if name has been entered.
              if (getName() == null || getName().length() == 0
                        || getName().equals(" ")) {
                   errors.add("accountText", new ActionError("searchText.error"));
              } else if ((getSearchField().equals("name") == true)
                        && (ValidateFormat.isValidText(getName()) == false)) {
                   errors.add("validAccountName", new ActionError("validName.error"));
              if (getSearchField() == null || getSearchField().length() == 0) {
                   errors.add("accountSearchField", new ActionError(
                             "searchField.error"));
              } else if ((getSearchField().equals("email") == true)
                        && (ValidateFormat.isValidEmail(getName()) == false)) {
                   errors
                             .add("validAccountEmail", new ActionError(
                                       "validEmail.error"));
              } else if ((getSearchField().equals("phonenumber") == true)
                        && (ValidateFormat.isValidPhoneNoFormat(getName()) == false)) {
                   errors.add("validPhoneFormat", new ActionError(
                             "validPhoneFormat.error"));
              if ((getSearchField().equals("searchallfields"))
                        && ((ValidateFormat.isValidText(getName()) == false)
                                  && (ValidateFormat.isValidEmail(getName()) == false) && (ValidateFormat
                                  .isValidPhoneNoFormat(getName()) == false))) {
                   errors.add("validNameEmail",
                             new ActionError("validNameEmail.error"));
              return errors;
    Action class:
    package com.finocus.cam.struts.action;
    import java.util.ArrayList;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import com.finocus.cam.db.CAMDbAccess;
    import com.finocus.cam.struts.bean.DetailsForm;
    public class DetailsAction extends org.apache.struts.action.Action implements
              com.finocus.cam.common.CAMConstants {
         private final static String LOG_TAG = DetailsAction.class.getName() + ".";
         // Global Forwards
         public static final String GLOBAL_FORWARD_search = "login";
         // Local Forwards
         public static final String SUCCESS_search = "success";
         private boolean dumpRequestParams = true;
         public DetailsAction() {
         public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              System.out.println("SearchAccount execute() is called");
              HttpSession session = request.getSession(true);
              ArrayList results = null;
              DetailsForm search = (DetailsForm) form;
              String name = search.getName();
              String searchField = search.getSearchField();
              String searchCriteria = search.getSearchCriteria();
              // Dumping the values of input patameters
              if (dumpRequestParams == true) {
                   request.setAttribute("SearchCriteria", searchCriteria);
                   request.setAttribute("SearchField", searchField);
                   request.setAttribute("Text", name);
                   search.dumpValues();
              // Perform search based on what criteria and search Field was entered.
              CAMDbAccess dbAccess = CAMDbAccess.getInstance();
              if (null != searchCriteria && searchField != null) {
                   System.out.println("Search Criteria =" + searchCriteria
                             + "Selected Option =" + searchField);
                   if (searchCriteria.equals(Search_Account) && searchField != null) {
                        results = dbAccess.searchByAccountInfo(name, searchCriteria,
                                  searchField);
                        System.out.println(" Search criteria :Exact Match was selected.<BR>");
              // Place search results in SearchForm for access by JSP.
              search.setResults(results);
              // Forward control to this Action's input page.
              return mapping.findForward(SUCCESS_search);
    My jsp page:
    <%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %>
    <%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic-el" %>
    <%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html" %>
    <html:html>
    <head>
    <title>Search Page</title>
    </head>
    <body colorants="LightGreen">
         <table width="100%" bgcolor="LightGreen">
              <tr>
                   <td align="left"><font color="brown"><h3><b>Search Info</b></h3></font><hr></td>
              </tr>
                   <tr>
              <td align="left"><h4><font color="brown"><b>Search Text:</b></font><%=request.getAttribute("Text")%></h4></td>
                   </tr><tr>
              <td align="left"><h4><font color="brown"><b>Search Field:</b></font><%=request.getAttribute("SearchField")%></h4></td>
              </tr><tr>
                   <td align="left"><h4><font color="brown"><b>Search Criteria:</b></font><%=request.getAttribute("SearchCriteria")%></h4></td>
                   </tr><tr>
                   <html:form action="/results.do">
                        <td><center><html:submit value="AllSearchOptions " /></center></td>
                        </html:form>
                   </tr>
              <tr>
                   <td align="left"><font color="brown"><hr><h2><b>Search Results</b></h2></font></td>
              </tr>
              <tr>
              <td>
              <table border="1" cellspacing="1" cellpadding="3" width="70%"
                   bgcolor="white">
                   <logic:present name="searchbyaccount" property="results">
                   Results exists
                        <c:if test="${size==0 }">
                   <center><font color="red"><b>No Results Found</b></font></center>
                   </c:if>
                   <br>
                        <c:if test="${size>0}">
                        Size is greater than ZERO
                             <table border="1" cellspacing="1" cellpadding="3" width="70%"
                                  bgcolor="white">
                                  <tr>
                                      <th>Customerid</th>
                                       <th>First Name</th>
                                       <th>Last Name</th>
                                       <th>Email</th>
                                       <th>phone Number</th>
                                       <th>Details</th>
                                  </tr>
                                       <c:forEach var="result" items="${results}">
                                        <c:out value="${result}"/>
                                       <tr>
                                            <td><bean:write name="result" property="customerid"></bean:write></td>
                                            <td><bean:write name="result"
                                                 property="accountAdminFirstName"></bean:write></td>
                                            <td><bean:write name="result"
                                                 property="accountAdminLastName" /></td>
                                            <td><bean:write name="result" property="accountability" /></td>
                                            <td><bean:write name="result" property="accountAdminPhone" /></td>
                                            <td><html:form action="/accountDetails.do">
                                                      <html:submit value="Details" />
                                            </html:form></td>
                                       </tr>
                                  </c:forEach>
                             </table>
                        </c:if>
              </logic:present>
              </table>
              </td>
              </tr>
         </table>
    </body>
    </html:html> Please refer me where i done a mistake.Thanks in Advance

    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.
    %

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

  • Forward tag in struts-config.xml file

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

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

  • Usage of  roles attribute in action tag of struts-config.xml

    I am new to struts.
    Can any one give the description of roles attribute usage in struts-config.xml.
    Thanks in advance.

    I am new to struts.
    Can any one give the description of roles attribute usage in struts-config.xml.
    Thanks in advance.

  • Struts-Config.xml

    How is struts-config.xml being use?
    there is a line
    <set-property property="txnReq" value="false"/>
    what is it txnReq use for?

    GerGer wrote:
    How is struts-config.xml being use?
    there is a line
    <set-property property="txnReq" value="false"/>
    what is it txnReq use for?Generally, <set-property> means that you are setting a value (false) to the property (txnReq) of a class, which is represented by the value of className attribute. "txnReq" is nothing but a private instance variable of a class with proper getter/setter methods for this field. And, you are using <set-property> tag in struts-config.xml to set this field's value.
    I hope this helps.

  • 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

  • How to define data-sources-alias.xml to use Oracle data source

    Hi,
    I created Oracle jdbc Data Source named "MYDS" in Visual Admin.  I added the alias = MYDS_ALIAS.  I set the Initial Connection to 2.  On the Monitor tab, I see a green line running across the screen.  The datasource MYDS is connected to the Oracle.
    Now, I would like to define "data-sources-alias.xml" to use MYDS.
    When creating data-source-aliases.xml it creates the alias by default on ${com.sap.datasource.default} which is the default DB.
    I followed the link --> How to point data-source-aliases.xml to another Datasource
    and my data-sources-alias.xml is now:
    <data-source-aliases>
         <aliases>
              <data-source-name>$</data-source-name>
              <alias>BRANCH50DS</alias>
         </aliases>
    </data-source-aliases>
    The "EAR generatation has finished successfully", but when "Deploy to J2EE Engine", I got the error below:
    1) How to define data-sources-alias.xml to use Oracle data source?
    2) I found the link (SDA Deployment error) talking about "sda-dd.xml".  How to create "sda-dd.xml" and make it use substitution variables "MYDS"
    Dec 20, 2005 3:53:41 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
    [003]Additional log information about the deployment
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.3.7181 - 630_SP]/>
    <!NAME[C:\usr\sap\J2E\JC00\SDM\program\log\sdmcl20051220205339.log]/>
    <!PATTERN[sdmcl20051220205339.log]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
    <!ENCODING[Cp1252]/>
    <!LOGHEADER[END]/>
    Dec 20, 2005 3:53:39 PM  Info: -
    Starting deployment -
    Dec 20, 2005 3:53:39 PM  Info: Loading selected archives...
    Dec 20, 2005 3:53:39 PM  Info: Loading archive 'C:\usr\sap\J2E\JC00\SDM\program\temp\temp856850022Ear.ear'
    Dec 20, 2005 3:53:40 PM  Info: Selected archives successfully loaded.
    Dec 20, 2005 3:53:40 PM  Info: Actions per selected component:
    Dec 20, 2005 3:53:40 PM  Info: Update: Selected development component '50022Ear'/'sap.com'/'localhost'/'2005.12.20.15.53.28' updates currently deployed development component '50022Ear'/'sap.com'/'localhost'/'2005.12.19.18.39.12'.
    Dec 20, 2005 3:53:40 PM  Info: Saved current Engine state.
    Dec 20, 2005 3:53:40 PM  Info: Error handling strategy: OnErrorStop
    Dec 20, 2005 3:53:40 PM  Info: Update strategy: UpdateAllVersions
    Dec 20, 2005 3:53:40 PM  Info: Starting: Update: Selected development component '50022Ear'/'sap.com'/'localhost'/'2005.12.20.15.53.28' updates currently deployed development component '50022Ear'/'sap.com'/'localhost'/'2005.12.19.18.39.12'.
    Dec 20, 2005 3:53:40 PM  Info: SDA to be deployed: C:\usr\sap\J2E\JC00\SDM\root\origin\sap.com\50022Ear\localhost\2005.12.20.15.53.28\temp856850022Ear.ear
    Dec 20, 2005 3:53:40 PM  Info: Software type of SDA: J2EE
    Dec 20, 2005 3:53:40 PM  Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
    Dec 20, 2005 3:53:41 PM  Info: Begin of log messages of the target system:
    05/12/20 15:53:40 -  ***********************************************************
    05/12/20 15:53:41 -  Start updating EAR file...
    05/12/20 15:53:41 -  start-up mode is lazy
    05/12/20 15:53:41 -  com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [MYDS].
                              at com.sap.engine.deploy.manager.DeployManagerImpl.makeTempEar(DeployManagerImpl.java:3727)
                              at com.sap.engine.deploy.manager.DeployManagerImpl.makeNewEar1(DeployManagerImpl.java:3695)
                              at com.sap.engine.deploy.manager.DeployManagerImpl.deployUpdateAction(DeployManagerImpl.java:523)
                              at com.sap.engine.deploy.manager.DeployManagerImpl.update(DeployManagerImpl.java:512)
                              at com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performDeployment(EngineApplOnlineDeployerImpl.java:196)
                              at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)
                              at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)
                              at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)
                              at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)
                              at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:46)
                              at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)
                              at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)
                              at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)
                              at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)
                              at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)
                              at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.doPhysicalDeployment(DeployerImpl.java:127)
                              at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:96)
                              at com.sap.sdm.apiimpl.local.DeployProcessorImpl.deploy(DeployProcessorImpl.java:67)
                              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.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.requestRemoteCall(RemoteProxyServerImpl.java:127)
                              at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.process(RemoteProxyServerImpl.java:38)
                              at com.sap.sdm.apiimpl.remote.server.ApiClientRoleCmdProcessor.process(ApiClientRoleCmdProcessor.java:81)
                              at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)
                              at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)
                              at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:280)
                              at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)
                              at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)
                              at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)
                              at java.lang.Thread.run(Thread.java:534)
    05/12/20 15:53:41 -  ***********************************************************
    Dec 20, 2005 3:53:41 PM  Info: End of log messages of the target system.
    Dec 20, 2005 3:53:41 PM  Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
    Dec 20, 2005 3:53:41 PM  Error: Aborted: development component '50022Ear'/'sap.com'/'localhost'/'2005.12.20.15.53.28':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [MYDS].
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Dec 20, 2005 3:53:41 PM  Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
    Dec 20, 2005 3:53:41 PM  Error: -
    At least one of the Deployments failed -

    Hi,
    If you remove the $ and braces (as shown below) it will work.
    <data-source-aliases>
    <aliases>
    <data-source-name>MYDS</data-source-name>
    <alias>BRANCH50DS</alias>
    </aliases>
    </data-source-aliases>
    Regards,
    S.Divakar

  • How to use java source in Oracle when select by sqlplus.

    How to use java source in Oracle when select by sqlplus.
    I can create java source in Oracle
    import java.util.*;
    import java.sql.*;
    import java.util.Date;
    public class TimeDate
         public static void main(String[] args)
    public String setDate(int i){
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date((long)i*1000));
    System.out.println("Dateline: "
    + calendar.get(Calendar.HOUR_OF_DAY) + ":"
    + calendar.get(Calendar.MINUTE) + ":"
    + calendar.get(Calendar.SECOND) + "-"
    + calendar.get(Calendar.YEAR) + "/"
    + (calendar.get(Calendar.MONTH) + 1) + "/"
    + calendar.get(Calendar.DATE));
    String n = calendar.get(Calendar.YEAR) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.DATE);
         System.out.print(n);
         return n;
    I have table name TEST
    ID DATE_IN
    1 942685200
    2 952448400
    When I write jsp I use method setDate in class TimeDate
    The result is
    ID DATE_IN
    1 1999/11/16
    2 2003/7/25
    Thanks you very much.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • How to change data source name and context root during deployment

    Hi,
    Env:
    WLS 10.1.3
    JDev 11.1.1.6
    Hudson
    I need to deploy two instances of my ADF application on the same development enviroment. We are using Hudson to deploy. My question is how to change data source name and application context root before second deployment.
    Kuba

    I don't believe there is an inbuilt facility to do this.
    Previously how I've done this is when checking files out using Hudson jovs, before the build I then use an Ant extension called XmlTask (http://www.oopsconsultancy.com/software/xmltask/) to modify the required XML files.
    Can I ask why you're doing this in the first place please? Multi-tenancy? 2 versions of the same app?
    CM.

  • How to change data source of Universe

    Hi,
    I have two databases called A_Database and B_Database
    Same tables and data are in both the databases.
    I created universe U_universe using A_Database. It is working fine
    Now I would like to change from A_Database to B_Database in U_universe without affecting any thing in U_universe because tables and data are same.
    Please let me know following doubts.
    1.How to do above things?
    2.if A_Database and B_Database are in different server, how to overwrite data source in the universe
    3.if A_Database and B_Database are in the same server, how to overwrite data source in the universe
    Thanks and Regards,
    Manjunath

    In Designer, import your universe, click on File>Paramers or click on parameters icon on the tool bar and change connection used by the universe from one pointing to Universe A to one pointed to universe B.
    Also, visit this site : http://help.sap.com/content/bobj/bobj/index.htm
    Look for Universe Designer guide.

  • How to configure Data Sources in a Package Configuration?

    Good morning,
    I'm trying to create a configuration file to deploy my SSIS package on which I have defined 3 data sources shared between several different packages.
    When I open the package configurations option and I create a new file configuration, I can select on it the connection managers defined for the data sources but not the proper data sources.
    It's the first time that I use data sources and I try to create a configuration file for them so I don't know if I'm doing something wrong or my concept about the use of the data sources is wrong.
    Could someone give me a tip/article to know how I can create the configuration file to deploy my package?
    Thank you,
    Virgilio

    What do you mean under "but not the proper data sources"?
    Arthur My Blog

  • Urgent help: how to create data source for Weblogic RMI driver

    Hi,
    Please let me how to create data source for Weblogic RMI driver using Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

    DataSource will internally do that for you (It will use RMI internaly) . You
    dont have to worry about the details of using RMI driver. Thats what is a
    DataSource is for.
    sree
    "pradeep bhat" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree,
    What u have written is abt configuting Datasource for type 2 and
    4 drivers.
    But I want to know how to create data source for RMI driver. If
    I map this datasource to connection pool that is created for
    type 2 or 4 drivers, i don't understand why RMI drivers are
    required in first place. If i do map the data source to connection pool
    created
    for type 2 or 4 drivers then where i
    would not have used the URL as jdbc:weblogic:rmi and Driver as
    weblogic.jdbc.rmi.Driver.
    Hope u will help me.
    pradeep bhat
    "Sree Bodapati" <[email protected]> wrote:
    Hi Pradeep
    To create a connection pool you have to use a database driver not RMI
    driver. So use a thin driver or the WebLogic jDriver for Oracle to setup
    your connection pool. Once the connection pool is created you can create
    a
    DataSource and use this datasource to connect to the database.
    The RMI driver can be used to get connections from the database via the
    connection pool and in that case you dont need a datasource. Recommended
    approach is to use a DataSource.
    hth
    sree
    "PRADEEP BHAT" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    Please let me how to create data source for Weblogic RMI driver using
    Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new
    DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

Maybe you are looking for