Switchable BC4J Datasources

Somewhere in the BC4J help system I saw where at runtime a datasource could be changed such as changing the username or schema. but I cannot find it now that I need it. We have a situation where we have multiple databases which identical schemas and tables but different data. When a user logs into the application I need to dynamically adjust the DataSource the Application Module uses to connect with the correct Database.

The appendix of the dynamic JDBC credentials article contains information for dynamically specifying the connect string:
http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html#Advanced: Supporting Dynamic JDBC URLs
It should work to specify the JDBC datasource name in the same manner as the connect string -- replace
the ConnectionStrategy.DB_CONNECT_STRING_PROPERTY name with Configuration.JDBC_DS_NAME in the article's code.
Hope this helps.
JR

Similar Messages

  • Struts and BC4J Datasource tag

    Why is the BC4J Datasource tag not supported in a Struts project?

    It isn't a bug in MarlinCore. You just need to set the <form>s method to POST.

  • BC4J datasource connection configuration

    When I change the connection for a BC4J AppModule using the 'Configurations' option on the popup menu for the application module, JDeveloper ADDS! the new connection to the bc4j.xcfg file. The old connection remains in the config file and the application module continues to use the original connection. Can someone tell me if I can change the connection without manually hacking the bc4j.xcfg.
    Thanks.

    If you are on a Windows machine, setup a data connection in
    the ODBC control panel on the machine itself first, then connect to
    it using the ODBC Socket option in the DB section of CF ADmin
    Considering the advancement of XML data and other available
    data options, txt files are not used that much any longer. It would
    likely be just as fast to simply open the TXT file with CFFILE and
    parse it that way.

  • Application is creating duplicate rowkeys

    I have a BC4J/Struts/JSP application where I am displaying a view of records for edit with a hidden form field using rowkey. Not all the time, but sometimes when I view the html source, the rowkey for 2 of the records are the same. What would cause this? Is there a setting in the app module that might cause this? Did my app module get corrupted somehow? Is this possible?
    Here is my jsp page:
    <%@ page language="java" %>
    <%@ page errorPage="/WEB-INF/jsp/Error.jsp" %>
    <%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/lib/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/lib/DataTags.tld" prefix="bc4j" %>
    <!-- Security -->
    <% String THIS_PAGE_FUNCTION_CODE = "CELSTB"; %>
    <% boolean userCanWrite = false; %>
    <%@ include file="../../../CheckPermissions.txt" %>
    <!-- /Security -->
    <% String strYes = "Y";
    String strNo = "N"; %>
    <bc4j:ApplicationModule id="appCellSiteTables" configname="com.aws.marrs.businessTier.tableMaintenance.cellSiteTables.CellSiteTables_AppModule.CellSiteTables_AppModuleLocal" releasemode="Stateful"/>
    <bc4j:DataSource id="rowSetCellSiteTables" appid="appCellSiteTables" viewobject="CellSiteTableView" rangesize="40"/>
    <%
    //Set the filter Criteria
    rowSetCellSiteTables.getRowSet().setWhereClauseParams((String[]) request.getSession().getAttribute("FilterCriteriaArray"));
    //Re-execute the query whenever we specify new filter criteria. Don't re-execute the query while paging.
    String pagingFlag = oracle.jbo.html.HtmlServices.getRequestParameters(pageContext).getParameter("paging");
    if (pagingFlag == null || !pagingFlag.equals("true"))
    rowSetCellSiteTables.getRowSet().executeQuery();
    %>
    <%-- Next line needed for record navigation --%>
    <bc4j:DataHandler appid="appCellSiteTables" relativeUrlPath="../../../PagingDataHandler.jsp"/>
    <html>
    <head>
         <title>Cell Site Table</title>
         <LINK href="<html:rewrite forward='IntranetStyle'/>" rel=stylesheet type=text/css>
         <SCRIPT language="Javascript1.2" src="<html:rewrite forward='SynchScrollingScript'/>"></SCRIPT>
         <SCRIPT language="Javascript1.2" src="<html:rewrite
    forward='CheckRecordsSelectedScript'/>">
    </SCRIPT>     
    <script language="javascript">
    // Filter the event log
    function SubmitForm(myAction) {
    with (window.document.forms[0])
    if (myAction == "Edit")
    action="CellSiteTableFrameEdit.do";
    target="MainFrame";
    submit();
    else if (myAction == "Delete")
    if (confirm('Are you sure you want to delete the selected records ? '))
    action="CellSiteTableDelete.do";
    target="MainFrame";
    submit();
    else if (myAction == "Exit")
    top.location.href='ExitTableMaintenance.do';
    return true;
    </script>
    </head>
    <body LEFTMARGIN=0 TOPMARGIN=0>
    <%-- Next line needed for record navigation. Creates RecordCountLabel hidden field detailing current rowset range --%>
    <bc4j:DataScroller datasource="rowSetCellSiteTables" relativeUrlPath="../../../PagingDataScroller.jsp" />
    <%-- Update the PagingCount label on our header page using the RecordCountLabel. --%>
    <script language="javascript">
    if (parent.frames['HeaderFrame'].document.getElementById("PagingCount") != null) parent.frames['HeaderFrame'].PagingCount.innerText = RecordCountLabel.value;
    </script>
    <form name="frmMaintenance" method="POST">
    <table width="1500" border="1" cellspacing="1" cellpadding="0" valign="bottom" align="left" bgcolor="#BEBEBE">
    <% int rowCount = 0; %>
    <bc4j:RowsetIterate datasource="rowSetCellSiteTables" userange="true">
    <%
    String isExcl, isProc = null;
    isExcl = (String)rowSetCellSiteTables.getRowSet().getCurrentRow().getAttribute("IsExcluded");
    if(isExcl == null)
    { isProc = strNo; }
    else if(isExcl.equalsIgnoreCase(strYes)) //strYes declared above, once, in page scope
    { isProc = strNo; }
    else
    { isProc = strYes; }
    %>
    <tr class="row<%=(rowCount % 2 + 1) %>">
    <td width="80" class="tiny" align="left"><bc4j:ShowValue dataitem="ClusterCsaId"/></td>          
    <td width="80" class="tiny" align="left"><bc4j:ShowValue dataitem="CityCsaId"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="Sidbid"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="SwitchId"/></td>          
    <td width="75" class="tiny" align="left"><bc4j:ShowValue dataitem="CellSiteId"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="CellFaceSector"/></td>          
    <td width="155" class="tiny" align="left"><bc4j:ShowValue dataitem="CellFaceLocation"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="DataSourceFlag"/></td>
    <td width="105" class="tiny" align="left"><bc4j:ShowValue dataitem="CellSiteName"/></td>
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="Usid"/></td>          
    <td width="40" class="tiny" align="left"><%= isProc %></td>
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="CompanyCode"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IsOverride"/></td>
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="HomeCompanyPercentage"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IncursionCompany1"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IncursionCompany1Percent"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IncursionCompany2"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IncursionCompany2Percent"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IncursionCompany3"/></td>          
    <td width="40" class="tiny" align="left"><bc4j:ShowValue dataitem="IncursionCompany3Percent"/></td>          
    <td width="200" class="tiny" align="left"><bc4j:ShowValue dataitem="Comments"/></td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysEdit" id="e<%= (rowCount + 1) %>" value="<bc4j:ShowValue dataitem="RowKey"/>">
    </td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysDelete" id="d<%= (rowCount + 1) %>" value="<bc4j:ShowValue dataitem="RowKey"/>">
    </td>
    </tr>          
    <% ++rowCount; %>
    </bc4j:RowsetIterate>           
         <tr><td colspan="23"> </td></tr>     
    <logic:present name="deleteMsg" scope="session">
    <tr align="left"><td colspan=23 class="tinyred"><%= request.getSession().getAttribute("deleteMsg") %></td></tr>
    <% request.getSession().removeAttribute("deleteMsg"); %>
    </logic:present>
         <tr align="center">
    <td colspan=23>
    <% if (userCanWrite) { %>
    <input type="button" name="btnAdd" value="Add" class="tiny" onClick="javascript:top.MainFrame.location.href='CellSiteTableFrameAdd.do';">  
    <input type="button" name="btnEdit" value="Edit" class="tiny" onClick="javascript:if (RecordsSelected('e','edit.')) SubmitForm('Edit');">  
    <input type="button" name="btnDelete" value="Delete" class="tiny" onClick="javascript:if (RecordsSelected('d','delete.')) SubmitForm('Delete');">  
    <% } %>
    <input type="button" name="btnExit" value="Exit" class="tiny" onClick="javascript:SubmitForm('Exit');">
    </td>
    </tr>          
    </table>
    </form>
    </body>
    </html>
    <bc4j:ReleasePageResources appid="appCellSiteTables" releasemode="Stateful"/>
    Here is the html output showing the last 2 records having duplicate rowkey values:
    <table width="1500" border="1" cellspacing="1" cellpadding="0" valign="bottom" align="left" bgcolor="#BEBEBE">
    <tr class="row1">
    <td width="80" class="tiny" align="left">OR_WA_AK</td>          
    <td width="80" class="tiny" align="left">SEATTLE_WA</td>          
    <td width="40" class="tiny" align="left">00047</td>          
    <td width="40" class="tiny" align="left">005</td>          
    <td width="75" class="tiny" align="left">9997</td>          
    <td width="40" class="tiny" align="left">X</td>          
    <td width="155" class="tiny" align="left">TEST</td>          
    <td width="40" class="tiny" align="left">A</td>
    <td width="105" class="tiny" align="left">997 RECORD</td>
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">Y</td>
    <td width="40" class="tiny" align="left">5560</td>          
    <td width="40" class="tiny" align="left">N</td>
    <td width="40" class="tiny" align="left">100</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="200" class="tiny" align="left">TEST RECORD</td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysEdit" id="e1" value="0005000000015800000004393939380000000530303034370000000330303500000001410000000E000000FCEAA87FA5">
    </td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysDelete" id="d1" value="0005000000015800000004393939380000000530303034370000000330303500000001410000000E000000FCEAA87FA5">
    </td>
    </tr>          
    <tr class="row2">
    <td width="80" class="tiny" align="left">OR_WA_AK</td>          
    <td width="80" class="tiny" align="left">SEATTLE_WA</td>          
    <td width="40" class="tiny" align="left">00047</td>          
    <td width="40" class="tiny" align="left">005</td>          
    <td width="75" class="tiny" align="left">9998</td>          
    <td width="40" class="tiny" align="left">X</td>          
    <td width="155" class="tiny" align="left">MIKE KRIVOS</td>          
    <td width="40" class="tiny" align="left">A</td>
    <td width="105" class="tiny" align="left">MODIFICATIONS UNLIMITED WEST PALM BEACH FLORIDA US</td>
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">Y</td>
    <td width="40" class="tiny" align="left">5560</td>          
    <td width="40" class="tiny" align="left">N</td>
    <td width="40" class="tiny" align="left">100</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="200" class="tiny" align="left">TEST RECORD</td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysEdit" id="e2" value="0005000000015800000004393939390000000530303034370000000330303500000001410000000F000000FCEAA87FA5">
    </td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysDelete" id="d2" value="0005000000015800000004393939390000000530303034370000000330303500000001410000000F000000FCEAA87FA5">
    </td>
    </tr>          
    <tr class="row1">
    <td width="80" class="tiny" align="left">OR_WA_AK</td>          
    <td width="80" class="tiny" align="left">SEATTLE_WA</td>          
    <td width="40" class="tiny" align="left">00047</td>          
    <td width="40" class="tiny" align="left">005</td>          
    <td width="75" class="tiny" align="left">9999</td>          
    <td width="40" class="tiny" align="left">X</td>          
    <td width="155" class="tiny" align="left">TEST RECORD 9999</td>          
    <td width="40" class="tiny" align="left">A</td>
    <td width="105" class="tiny" align="left">RECORD</td>
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">Y</td>
    <td width="40" class="tiny" align="left">5560</td>          
    <td width="40" class="tiny" align="left">N</td>
    <td width="40" class="tiny" align="left">100</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="40" class="tiny" align="left"></td>          
    <td width="40" class="tiny" align="left">0</td>          
    <td width="200" class="tiny" align="left">TEST RECORD</td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysEdit" id="e3" value="0005000000015800000004393939390000000530303034370000000330303500000001410000000F000000FCEAA87FA5">
    </td>
    <td width="30" class="tiny" align="center">
    <input type="checkbox" name="RowKeysDelete" id="d3" value="0005000000015800000004393939390000000530303034370000000330303500000001410000000F000000FCEAA87FA5">
    </td>
    </tr>          
         <tr><td colspan="23"> </td></tr>     
         <tr align="center">
    <td colspan=23>
    <input type="button" name="btnAdd" value="Add" class="tiny" onClick="javascript:top.MainFrame.location.href='CellSiteTableFrameAdd.do';">  
    <input type="button" name="btnEdit" value="Edit" class="tiny" onClick="javascript:if (RecordsSelected('e','edit.')) SubmitForm('Edit');">  
    <input type="button" name="btnDelete" value="Delete" class="tiny" onClick="javascript:if (RecordsSelected('d','delete.')) SubmitForm('Delete');">  
    <input type="button" name="btnExit" value="Exit" class="tiny" onClick="javascript:SubmitForm('Exit');">
    </td>
    </tr>          
    </table>

    Not sure, but have you checked the key attributes of your view object?
    If your VO is build out of several EOs you need to mark enough PK attributes of your underlying EOs to get unique row keys.

  • HOW TO: Use Input tags to edit records

    The question has been asked, "What does using the BC4J Input data tags provide
    over standard HTML input fields?" It is true that either type of input field allows
    your JSP to take user input and update your BC4J datasource. Both types of input
    fields submit a name-value pair to a JSP processing page that bind the data with
    a datasource row and attribute. However, unless you use the BC4J Input data tags,
    users will not be able to edit data in existing records. To see the difference,
    use the JDeveloper DataPage Wizard to create an Insert Record form and an Edit
    Record form.</p>
    To create the Insert Record form:</p>
    <ol>
    [*]Use the Business Components Wizard to create an entity object and view object for a database table you can update.
    [*]In the same project or another project, if you wish, use the DataPage Wizard to create an Insert Form for the view object.
    [*]Look in your JSP project folder in the Navigator and notice that two pages were generated: one JSP to render the insert HTML form and the other JSP to process the incoming parameters.
    [*]Open the file VO_Insert.jsp and notice that it does not use the BC4J input data tags.
    </ol>
    In the Insert form, the input data tags are not needed to render static HTML form elements such as empty text fields. It is important to note, however, that the name of these text fields corresponds to the attributes of your selected view object. This is extremely important because the processing page looks for parameters corresponding to the names of the attributes to update the view object datasource.</p>
    Now, create the Edit Record form:
    <ol>
    [*]Use the DataPage Wizard again, but this time select Edit Form for the view
    object.
    [*]Open the file VO_Edit.jsp and notice that it uses the BC4J input data tags,
    which contain the prefix <jbo:Input ...>.
    [*]Look in your JSP project folder in the Navigator and again notice that two
    pages were generated: one JSP to render the edit HTML form and the other JSP
    to process the incoming parameters.
    [*]Open the file VO_Edit.jsp and notice that it uses the BC4J input data tags.
    </ol>
    In the Edit form, the BC4J input data tags are needed because in this case,
    the page has to query the current value of the record and place that data into
    the text field. The Edit form uses a second page to process the edited values.</p>
    To summarize the differences:</p>
    Use the <jbo:Input ...> data tags when you need to create an Edit Existing Record type of JSP page. This page will query the current data from the view object datasource and display it in each input field.
    OR
    Use standard HTML input fields when you do not need to query the database to show existing records. This is the case in a static Insert Record form where only empty HTML fields are rendered.
    The end goal of each Input tag is to supply a name-value pair to a processing
    page which will then update the database according to the value passed to it.
    For example in order to update the &quot;Ename&quot; column of the Emp table,
    a name-value pair such as Ename=&quot;smith&quot; must be passed via an HTML
    form to a processing page. The processing page will then be able to update the
    table with the new value of the attribute using the following code:
    <jbo:Row id="myrow" datasource="ds" rowkeyparam="MyRowKey" action="Update">
    <jbo:SetAttribute dataitem="*"/>
    </jbo:Row>
    </p>
    By setting the attribute 'dataitem=&quot;*&quot;' in the SetAttribute tag,
    it is able to update all database columns where a name-value pair is supplied.
    The SetAttribute tag must be used inside of the Row tag to allow an operation
    on a single row.</p>
    The Row tag is able to identify a specific row through the rowkeyparam attribute.
    The rowkeyparam takes the HTML request parameter that contains the value of
    a BC4J rowkey. It is the BC4J rowkey that uniquely identifies the row within
    a rowset. By default Row tag by default obtains the rowkey for the cu rrent row.
    (You can also specify the row when you want to perform a Find action as explained
    in the OTN topic &quot;How To: Navigating Using DataTags&quot;.)
    </p>

    Ok. I didn't understand your question.
    You have to do some settings for adding new  rows for the analysis grid in Analyzer. And in the new rows you can input the characteristic values. To enable the new rows
    In Analyzer - uncheck the setting Suppress New Lines in the proprties of the Analysis grid item.
    In WAD - Check the property Number of New Lines (NEW_LINES_COUNT) of Analysis grid item. You use this parameter to insert any required number of empty rows into the table. The parameter is set to 0 by default.

  • Deployment error while deploying targeters in BCC

    Hi,
    I am trying to create a targeter with content groups and media internal texts. Whenever i deploy a project with these assets, i get deployment error.
    It says "Deployment '169200010' to target 'production' encountered a system level deployment error during data transfer. An automatic rollback deployment has successfully occurred, preserving the state of target 'production'. Click 'Resume' to re-attempt the deployment."
    I checked for the VFS set up for targeters and content groups and they are in place.
    There are 3 assets in the project. It says the asset already exists
    The error log below : I am struck up here and not able to take any step further. Please share your inputs on this
    2013-06-20 22:40:25,569 WARN  [nucleusNamespace.atg.epub.PublishingRepository] (http-172.19.0.197-40180-6) Using default JDBC type for: project:tar82 could not find this column in the table's meta data
    2013-06-20 22:40:51,348 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG Run first apply phase: true
    2013-06-20 22:40:51,349 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG Switch switchable CA datasources:
    2013-06-20 22:40:51,349 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG   isDeploymentRollback(): false
    2013-06-20 22:40:51,360 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG   Current Target live datasource name: DataSourceB
    2013-06-20 22:40:51,360 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG   CA switching datasource: /atg/commerce/jdbc/ProductCatalogSwitchingDataSource_production
    2013-06-20 22:40:51,361 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG     Current live datasource name: DataSourceA
    2013-06-20 22:40:51,361 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG     Current offline datasource name: DataSourceB
    2013-06-20 22:40:51,361 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG     The current CA live datasource is pointing at the Target offline datasource. No CA switch necessary.
    2013-06-20 22:40:51,361 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG Switchable CA datasources switched.
    2013-06-20 22:40:51,408 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG DistributedDeploymentAdapter:DAF Deployment with ID: 169200010 not previously deployed.
    2013-06-20 22:40:51,414 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG DistributedDeploymentAdapter:Creating standard DeploymentData
    2013-06-20 22:40:51,446 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG Forward deploying following active workspaces: [workspace:118102]
    2013-06-20 22:40:53,770 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG DistributedDeploymentAdapter:Deploy Data
    2013-06-20 22:40:53,771 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG DistributedDeploymentAdapter:Starting DAF deployment with ID: 169200010
    2013-06-20 22:40:53,776 INFO  [nucleusNamespace.atg.deployment.DeploymentManager] (Thread-103) Database: Oracle
    2013-06-20 22:40:53,922 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-103) DEBUG DistributedDeploymentAdapter:Polling Until Data Appplied
    2013-06-20 22:40:53,922 INFO  [nucleusNamespace.atg.deployment.DeploymentManager] (Main deployment thread: ) Starting deployment with id: 169200010
    2013-06-20 22:40:53,950 INFO  [nucleusNamespace.atg.deployment.DeploymentManager] (Main deployment thread: ) Executing deployment in LOCAL mode
    2013-06-20 22:40:55,442 WARN  [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase)) Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
    2013-06-20 22:40:55,461 WARN  [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase))  item = fileMarker:mark106400001 cause = CONTAINER:atg.deployment.file.DeploymentSourceException: Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem; SOURCE:deploymentHandlerFileToAddExists: level 3: Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
    atg.deployment.file.DeploymentTargetException: Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    message = Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem time = Thu Jun 20 22:40:55 CDT 2013  atg.deployment.DeploymentFailure@17dc0e19
    2013-06-20 22:40:55,490 WARN  [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase)) Attempt to add file that already exists: file /atg/registry/RepositoryTargeters/home_spot1_targeter.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
    2013-06-20 22:40:55,490 WARN  [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase))  item = fileMarker:mark106400002 cause = CONTAINER:atg.deployment.file.DeploymentSourceException: Attempt to add file that already exists: file /atg/registry/RepositoryTargeters/home_spot1_targeter.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem; SOURCE:deploymentHandlerFileToAddExists: level 3: Attempt to add file that already exists: file /atg/registry/RepositoryTargeters/home_spot1_targeter.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
    atg.deployment.file.DeploymentTargetException: Attempt to add file that already exists: file /atg/registry/RepositoryTargeters/home_spot1_targeter.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    message = Attempt to add file that already exists: file /atg/registry/RepositoryTargeters/home_spot1_targeter.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem time = Thu Jun 20 22:40:55 CDT 2013  atg.deployment.DeploymentFailure@38d281d4
    2013-06-20 22:40:55,547 WARN  [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase)) Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_content_group.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
    2013-06-20 22:40:55,547 WARN  [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase))  item = fileMarker:mark106400003 cause = CONTAINER:atg.deployment.file.DeploymentSourceException: Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_content_group.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem; SOURCE:deploymentHandlerFileToAddExists: level 3: Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_content_group.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
    atg.deployment.file.DeploymentTargetException: Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_content_group.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    message = Attempt to add file that already exists: file /atg/registry/RepositoryGroups/home_spot1_content_group.properties in VirtualFileSystem /atg/epub/file/ConfigFileSystem time = Thu Jun 20 22:40:55 CDT 2013  atg.deployment.DeploymentFailure@70126ca0
    2013-06-20 22:40:55,684 ERROR [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase))
    CAUGHT AT:
    CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:java.io.IOException: There was a repository exception while trying to create the file: /atg/registry/RepositoryGroups/home_spot1_user.properties in file system: /atg/epub/file/ConfigFileSystem. exception: atg.repository.RepositoryException: current development line null is not an open workspace..
      at atg.deployment.file.FileWorkerThread.handleErrorLogging(FileWorkerThread.java:1261)
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1276)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    Caused by: deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:java.io.IOException: There was a repository exception while trying to create the file: /atg/registry/RepositoryGroups/home_spot1_user.properties in file system: /atg/epub/file/ConfigFileSystem. exception: atg.repository.RepositoryException: current development line null is not an open workspace..
      at atg.deployment.file.DeploymentSourceException.<init>(DeploymentSourceException.java:74)
      ... 6 more
    SOURCE EXCEPTION:
    deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:java.io.IOException: There was a repository exception while trying to create the file: /atg/registry/RepositoryGroups/home_spot1_user.properties in file system: /atg/epub/file/ConfigFileSystem. exception: atg.repository.RepositoryException: current development line null is not an open workspace..
    2013-06-20 22:40:55,685 ERROR [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-2(Add-Update Phase))  item = fileMarker:mark106400004 cause = CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:java.io.IOException: There was a repository exception while trying to create the file: /atg/registry/RepositoryGroups/home_spot1_user.properties in file system: /atg/epub/file/ConfigFileSystem. exception: atg.repository.RepositoryException: current development line null is not an open workspace..
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    message = IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null time = Thu Jun 20 22:40:55 CDT 2013  atg.deployment.DeploymentFailure@1f344a25
    CAUGHT AT:
    CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:java.io.IOException: There was a repository exception while trying to create the file: /atg/registry/RepositoryGroups/home_spot1_user.properties in file system: /atg/epub/file/ConfigFileSystem. exception: atg.repository.RepositoryException: current development line null is not an open workspace..
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    Caused by: deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/home_spot1_user.properties in VirtualFileSystem null; SOURCE:java.io.IOException: There was a repository exception while trying to create the file: /atg/registry/RepositoryGroups/home_spot1_user.properties in file system: /atg/epub/file/ConfigFileSystem. exception: atg.repository.RepositoryException: current development line null is not an open workspace..
      at atg.deployment.file.DeploymentSourceException.<init>(DeploymentSourceException.java:74)
      ... 5 more
    SOURCE EXCEPTION:

    yes i checked. To clear this out, i created a new project with new set of content groups and targeters.
    It throws this error. I get this error at 30% of deployment
    2013-06-21 12:04:07,944 INFO  [nucleusNamespace.atg.deployment.DeploymentManager] (Thread-124) Database: Oracle
    2013-06-21 12:04:07,959 INFO  [nucleusNamespace.atg.epub.DeploymentServer] (Thread-124) DEBUG DistributedDeploymentAdapter:Polling Until Data Appplied
    2013-06-21 12:04:07,959 INFO  [nucleusNamespace.atg.deployment.DeploymentManager] (Main deployment thread: ) Starting deployment with id: 135200010
    2013-06-21 12:04:07,970 INFO  [nucleusNamespace.atg.deployment.DeploymentManager] (Main deployment thread: ) Executing deployment in LOCAL mode
    2013-06-21 12:04:09,708 ERROR [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-1(Add-Update Phase))
    CAUGHT AT:
    CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
      at atg.deployment.file.FileWorkerThread.handleErrorLogging(FileWorkerThread.java:1261)
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1276)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    Caused by: deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
      at atg.deployment.file.DeploymentSourceException.<init>(DeploymentSourceException.java:74)
      ... 6 more
    SOURCE EXCEPTION:
    deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
    2013-06-21 12:04:09,715 ERROR [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-1(Add-Update Phase))  item = fileMarker:mark115500048 cause = CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    message = IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null time = Fri Jun 21 12:04:09 CDT 2013  atg.deployment.DeploymentFailure@7bbc32e1
    CAUGHT AT:
    CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
      at atg.deployment.file.FileWorkerThread.handleError(FileWorkerThread.java:1278)
      at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:762)
      at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:463)
      at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:562)
      at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:335)
    Caused by: deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
      at atg.deployment.file.DeploymentSourceException.<init>(DeploymentSourceException.java:74)
      ... 5 more
    SOURCE EXCEPTION:
    deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.
    2013-06-21 12:04:09,741 ERROR [nucleusNamespace.atg.deployment.DeploymentManager] (FileWorkerThread-1(Add-Update Phase))  item = fileMarker:mark115500048 cause = CONTAINER:atg.deployment.file.DeploymentSourceException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:deploymentHandlerUnableToWrite: level 4: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null
    CONTAINER:atg.deployment.file.DeploymentTargetException: IOException received while trying to write file /atg/registry/RepositoryGroups/homePage/group1.properties in VirtualFileSystem null; SOURCE:java.io.IOException: Cannot create OutputStream for read-only ContentRepositoryItem: /atg/registry/RepositoryGroups/homePage/group1.properties  OutputStreams can only be created for mutable ContentRepositoryItem objects.

  • Calling a Method From JSP

    Hello People!!!
    I'm trying to call a method inside a viewObject from a JSP page using taglibs, but I don't know how to do this.
    Anyone can help me to do this call ??
    I need to pass a parameter to the method... this parameter is a column value!!
    thanks

    Are you trying to set a whereclause? If so you can always set the whereclause as an argument to your datasource tag.. An example of this is done in the Online Orders sample app at:
    http://otn.oracle.com/sample_code/products/jdev/content.html (see search_results.jsp)
    In general you can use the scriptable variable that you define for your BC4J Datasource to access different BC4J methods.
    Here's some code snippets showing different ways to access the BC4J Rowset (View Object) or the Application Module..
    <jbo:ApplicationModule id="Mypackage3Module" definition="Project3.Mypackage3Module" releasemode="Stateful" />
    <jbo:DataSource id="ds" appid="Mypackage3Module" viewobject="EmpView3" rangesize="3"/>
    <%
    ds.getRowSet().executeQuery();
    ds.getRowSet().first();
    ds.getRowSet()....(etc)
    // etc..
    or
    ds.getApplicationModule()....(etc)
    %>
    JSP Codeinsight will pop up your options..
    To ensure that Insight will work, make sure you have a closing scriplet marker.. "%>"...
    -Chris

  • Errors encountered while doing BCC Full deployment in the Applying phase

    Errors encountered while doing BCC Full deployment in the Applying phase. The stack trace is as below:-
    **** Warning    Fri Aug 02 09:43:24 BST 2013    1375433004207   /atg/epub/PublishingRepository  Using default JDBC type for: project:tar814 could not find this column in the table's meta data
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574278   /atg/epub/DeploymentServer      Run first apply phase: true
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574279   /atg/epub/DeploymentServer      Switch switchable CA datasources:
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574279   /atg/epub/DeploymentServer        isDeploymentRollback(): false
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574284   /atg/epub/DeploymentServer        Current Target live datasource name: DataSourceA
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574285   /atg/epub/DeploymentServer        CA switching datasource: /atg/commerce/jdbc/ProductCatalogSwitchingDataSource_production
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574285   /atg/epub/DeploymentServer          Current live datasource name: DataSourceB
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574285   /atg/epub/DeploymentServer          Current offline datasource name: DataSourceA
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574286   /atg/epub/DeploymentServer          The current CA live datasource is pointing at the Target offline datasource. No CA switch necessary.
    **** debug      Fri Aug 02 09:52:54 BST 2013    1375433574287   /atg/epub/DeploymentServer      Switchable CA datasources switched.
    **** info       Fri Aug 02 09:52:54 BST 2013    1375433574307   /atg/epub/DeploymentServer      DirectSQLReplicationAdapter: Starting FIRST phase data transfer.
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver SQL Statement Failed: [++ReplicationSQL++]
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver INSERT
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver INTO ndcatalog2.extn_block_link
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver      (
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        renderer_id,
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        link,
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        block_id
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver      )
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver SELECT
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        t1.renderer_id,
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        t1.link,
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        t1.block_id
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver FROM
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        extn_block_link t1,
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        extn_block t2
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver WHERE t2.asset_version =
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        ( SELECT MAX ( asset_version )
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver          FROM extn_block
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver          WHERE
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver            (
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver              (
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver                checkin_date <= ?
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver              )
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver            )
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver            AND branch_id = ?
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver            AND block_id = t2.block_id
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver        )
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver AND t2.version_deleted = ?
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver AND t2.branch_id = ?
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver AND t1.asset_version =  t2.asset_version
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver AND t1.block_id = t2.block_id
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver -- Parameters --
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver p[1] = {pd: checkin_date} 2013-07-30 10:23:57.867 (java.sql.Timestamp)
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver p[2] = {pd: branch_id} 10500 (java.lang.String)
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver p[3] = {pd: version_deleted} false (java.lang.Boolean)
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver p[4] = {pd: branch_id} 10500 (java.lang.String)
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver [--ReplicationSQL--]
    **** Error      Fri Aug 02 09:53:12 BST 2013    1375433592737   /com/screwfix/content/block/BlockRepository-ver         java.sql.SQLSyntaxErrorException: ORA-00904: "RENDERER_ID": invalid identifier
    Please note that we are migrating from ATG 2007 to ATG 10.0.1...Also we are doing deployment in this new environment for the first time only.
    Thanks a lot
    Pijush

    Hi Pijush,
    The exception towards the end of the stack trace says the RENDERER_ID is an invalid identifier. the Oracle error 00904 indicates the column name must be wrong. Can you verify the repostiory xml on the BlockRepository and check the column name.
    Regards,
    Srikanth

  • Deployment not progressing in Applying phase

    Hi,
    I configured a site and successfully deployed projects in BCC.
    During deployment of one project we were facing some error and couldnot resolve it, so we deleted the site and created new one with same configurations.
    After that when we are trying initial full deployment, it continued to be in "Applying" state forever.
    If I try to stop the deployment, it is also not happening.
    Did anybody here faced this issue earlier. i found one post on ATG community but no solution was given.
    https://community.atg.com/message/8365#8365
    Thanks in advance,
    Ashish.

    Please find error below and screenshot attached.
    12:29:10,268 INFO [Server] JBoss (MX MicroKernel) [4.3.0.GA_CP06 (build: SVNTag=JBPAPP_4_3_0_GA_CP06 date=200907141446)] Started in 1m:40s:384ms
    12:30:08,841 INFO [DeploymentManager] Purging deployment data for deployment 117700002
    12:30:42,845 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.runFirstApplyPhase(DistributedDeploymentAdapter.java:1199) Run first apply phase: true
    12:30:42,846 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.createStandardDeploymentData(DistributedDeploymentAdapter.java:1308) Creating standard DeploymentData
    12:30:42,895 INFO [SEORepository_production] SQL Repository startup complete
    12:30:42,928 INFO [PersonalizationRepository_production] SQL Repository startup complete
    12:30:42,978 INFO [IECStoreLocatorRepository_production] SQL Repository startup complete
    12:30:43,072 INFO [RefinementRepository_production] SQL Repository startup complete
    12:30:46,547 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1981) Deploy Data
    12:30:46,551 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:929) Switch switchable CA datasources:
    12:30:46,552 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:930) isDeploymentRollback(): false
    12:30:46,553 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:933) Current Target live datasource name: DataSourceA
    12:30:46,553 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.logSwitchable(DistributedDeploymentAdapter.java:1075) CA switching datasource: /atg/commerce/jdbc/ProductCatalogSwitchingDataSource
    12:30:46,554 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.logSwitchable(DistributedDeploymentAdapter.java:1076) Current live datasource name: DataSourceA
    12:30:46,554 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.logSwitchable(DistributedDeploymentAdapter.java:1078) Current staging datasource name: DataSourceB
    12:30:46,554 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:963) The current CA live datasource is not pointing at the Target staging datasource
    12:30:46,554 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:964) Switching CA datasource : /atg/commerce/jdbc/ProductCatalogSwitchingDataSource
    12:30:46,607 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:969) Pop! CA datasource switched.
    12:30:46,607 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:988) Switchable CA datasources switched.
    12:30:46,609 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:992) Verify switchable CA datasources:
    12:30:46,611 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:995) Current Target live datasource name: DataSourceA
    12:30:46,612 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.logSwitchable(DistributedDeploymentAdapter.java:1075) CA switching datasource: /atg/commerce/jdbc/ProductCatalogSwitchingDataSource
    12:30:46,612 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.logSwitchable(DistributedDeploymentAdapter.java:1076) Current live datasource name: DataSourceB
    12:30:46,612 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.logSwitchable(DistributedDeploymentAdapter.java:1078) Current staging datasource name: DataSourceA
    12:30:46,612 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.switchDataSources(DistributedDeploymentAdapter.java:1041) Switchable CA datasources verified.
    12:30:46,614 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.startDafDeployment(DistributedDeploymentAdapter.java:2774) Starting DAF deployment with ID: 117800002
    12:30:46,616 INFO [DeploymentManager] Database: Oracle
    12:30:46,712 INFO [DeploymentServer] DEBUG 117800002:production:atg.deployment.adapter.DistributedDeploymentAdapter.pollTillDataApplied(DistributedDeploymentAdapter.java:2590) Polling Until Data Appplied

  • Problem accessing J2EE DataSource with BC4J

    I'm trying to create MySQL database connection with BC4J via a J2EE DataSource. But without success.
    The errors I receive:
    Launching OC4j...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    2003-03-18 09:40:36 ApplicationModuleProvider - unspecified properties:
    password drivertype user sid connectionstring host encryptiontype port
    ApplicationModuleProvidernull
    java.lang.NullPointerException
    at oracle.cle.persistence.ConnectionProvider.getConnectionString(Connect
    ionProvider.java:606)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.createModule(A
    pplicationModuleProvider.java:331)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.getConnection(
    ApplicationModuleProvider.java:200)
    at oracle.cle.persistence.ConnectionProvider.getConnection(ConnectionPro
    vider.java:669)
    at oracle.cle.persistence.ConnectionManager.getConnection(ConnectionMana
    ger.java:607)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:168)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:92)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getC
    onnection(DataSourceHandlerImpl.java:331)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getA
    pplicationModule(DataSourceHandlerImpl.java:874)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getD
    ataSourceSet(DataSourceHandlerImpl.java:462)
    at oracle.jheadstart.process.GetDataSourceSet.retrieveSimple(GetDataSour
    ceSet.java:538)
    at oracle.jheadstart.process.GetDataSourceSet.persist(GetDataSourceSet.j
    ava:502)
    at oracle.jheadstart.process.PersistingDataSource.start(PersistingDataSo
    urce.java:251)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Process.start(Process.java:97)
    at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
    at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
    at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Service.start(Service.java:389)
    at oracle.clex.process.controller.HttpServletController.doPost(HttpServl
    etController.java:439)
    at oracle.jheadstart.process.controller.JhsHttpServletController.doPost(
    JhsHttpServletController.java:70)
    at oracle.clex.process.controller.HttpServletController.doGet(HttpServle
    tController.java:849)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:797)
    at java.lang.Thread.run(Unknown Source)
    ApplicationModuleProvider: ApplicationModuleProvidernull
    GetDataSourceSet Exception: A Connection could not be made for class: oracle.emp
    depdemo.resource.Department and sessionId: e3c568a09dec48d7b5a6cb86d041d22b orig
    inal message is: ApplicationModuleProvider: ApplicationModuleProvidernull
    See also thread MySQL at the JHeadstart forum.
    data-sources.xml (oc4j\j2ee\home\config):
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@172.16.2.240:1521:dev2"
              inactivity-timeout="30"
         />     
    cle-providers.xml:
    <cle-providers>
    <provider name="EmpDepServiceProvider" class="oracle.clex.persistence.bc4j.ApplicationModuleProvider">
    <property name="persistencebase" value="oracle.empdepdemo.persistence.bc4j"/>
    <property name="modulename" value="oracle.empdepdemo.persistence.bc4j.Bc4jModule"/>
    <property name="failover" value=""/>
    <property name="scope" value="request"/>
    <property name="managestate" value="false"/>
    <property name="configuration" value="Bc4jModuleLocal"/>
    </provider>
    </cle-providers>
    bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="Bc4jModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <DBconnection>jdbc:oracle:thin:@localhost:1521:orcl</DBconnection>
    <JDBCName>ScottTiger</JDBCName>
    <jbo.project>empdep</jbo.project>
    <AppModuleJndiName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</AppModuleJndiName>
    <ApplicationName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="ScottTiger">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="localhost"/>
    <ENTRY name="user" value="Scott"/>
    <ENTRY name="ConnectionName" value="ScottTiger"/>
    <ENTRY name="SID" value="orcl"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    </ConnectionDefinition>
    </BC4JConfig>

    Thank you Dhiraj,
    On my Oracle database it is working. But on MySQL I still have the same problem.
    I'm still ivestigating it.
    Thanks anyway.
    Marcel

  • BC4J and JNDI DataSource Configuration

    Hi,
    I need help in making the BC4J use a DataSource for creating connections. Could you anyone tell me step by step instructions to do it?
    I have created a Database Connection using JDBC for creating a BC4J App Module, View Objects etc.
    Then I created a Business Component Package by using the wizard. Everything worked fine till now. But I was to use a connection pool that is created in my App Server which happens to be a WebLogic 7.0 App Server. I have created a JDBCConnection pool and a JDBCDataSource in the App Server. The configuration for it is as follows in the weblogic configuration file.
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    MaxCapacity="5" Name="OracleConnectionPool"
    Password="{3DES}n51DlVgPmmQ="
    Properties="user=empac;dll=ocijdbc9;protocol=oci"
    Targets="myserver" URL="jdbc:oracle:oci:@DB921C"/>
    <JDBCDataSource JNDIName="OCIDataSource" Name="OCIDataSource"
    PoolName="OracleConnectionPool" Targets="myserver"/>
    I wanted to edit the "Configurations" to specify the JDBC DataSource. When I saved the configuration for the App Module this is how my bc4j.xcfg looks.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="BuyerModuleLocal">
    <java.naming.security.principal>system</java.naming.security.principal>
    <DeployPlatform>LOCAL</DeployPlatform>
    <jbo.TypeMapEntries>Java</jbo.TypeMapEntries>
    <JDBCDataSource>OCIDataSource</JDBCDataSource>
    <jbo.project>BC4JTry</jbo.project>
    <AppModuleJndiName>com.explore.bc4j.BuyerModule</AppModuleJndiName>
    <ApplicationName>com.explore.bc4j.BuyerModule</ApplicationName>
    <java.naming.security.credentials>security</java.naming.security.credentials>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="DB921C">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="joshua"/>
    <ENTRY name="user" value="empac"/>
    <ENTRY name="ConnectionName" value="DB921C"/>
    <ENTRY name="SID" value="DB921C"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="password" value="empac"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    <ENTRY name="DeployPassword" value="true"/>
    </ConnectionDefinition>
    </BC4JConfig>
    When I tried to run a testClient which uses the App Module it is failing giving me an exception saying could not lookup for the DataSource. In one of the detailed error messages, I got this error.
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    I checked the "Configurations" window and it was having
    "oracle.jbo.common.JboInitialContextFactory" for the property "java.naming.factory.initial".
    Could anyone tell me how to solve this issue. I did read the BC4J & JNDI Datasource configuration thread in the same forum and unfortunately that did not help.
    Krish

    What does you test client code look like and can you give us the complete stack trace.
    Dhiraj

  • BC4J and J2EE Patterns (JNDI Datasource)

    Hallo Everybody,
    My Application reads from connections.xml the jdbc connection settings,
    in order to connect to the oracle database.
    I don't like the fact that I have to force my Customer to edit this File by Hand for the JDBC Settings.
    I would like to use a "JNDI Datasource Name" for example jdbc/MyDatabase that will evaluated
    from the Applicationserver (not from bc4j interal JNDI!!!!)
    In this case, the Customer can define the jdbc Connection Settings in his Applicationserver
    by creating a "Resource-Reference" for a javax.sqlDataSource with the name "jdbc/MyDatabase" .
    ( This is also Possible in Tomcat. )
    This is the usual way to configure jdbc Connections in a managed Enviroment.
    How can I say to the Applicaton Module "please obtain your jdbc-connections over the datasource java/MyDataBase" ???
    Is this in bc4j Framework possible ? ( note: I'm new to bc4j but not to j2ee )
    Thank for any Hint,
    regarts,
    Manolis
    (sorry for my bad english, learned it through compiler error messages ;-) )

    See
    Re: What software do I need to get started with GIS development

  • BC4J with non-SQL datasource

    Hi
    Is it possible to use BC4J with non-SQL, non-relational datasources? For example, we are exploring the possibility of using a file-based XML datastore (NOT the XDB) as the back-end for some ADF screens.
    Thanks,
    Sean

    BC4J is designed for SQL databases.
    http://www.oracle.com/technology/products/jdev/collateral/tutorials/903/j2ee_bc4j/prnt/j2ee_bc4j.html#bc4j-faq

  • BC4J using Tomcat DataSource: ClassCast Exception

    Hi
    need help with this problem:
    i have deployed a bc4j module to tomcat.
    the module is confgured to use an excisting datasource within the servlets context.
    everything works fine, like
    o ApplicationModule is created (using the correct Datasource on Tomcat)
    o a ViewObject is looked up by name
    but here it starts to get messy:
    executing the a query on the ViewObject leads to a ClassCast Exception (see below)
    One additional remark:
    The same code works fine, when using a Connection instead of a DataSource.
    But this is J2EE, so why not use a DataSource ?
    Thanks for any ideas
    Volker
    java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement
         at oracle.jbo.server.OracleSQLBuilderImpl.doStatementSetRowPrefetch(OracleSQLBuilderImpl.java:976)
         at oracle.jbo.server.DBTransactionImpl.createPreparedStatement(DBTransactionImpl.java:3346)
         at oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(DBTransactionImpl2.java:425)
         at oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(DBTransactionImpl.java:4173)
         at oracle.jbo.server.ViewObjectImpl.getPreparedStatement(ViewObjectImpl.java:7750)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:586)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:547)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3422)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:663)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3363)
         at de.mtag.demo.server.Demo.start(Demo.java:88)

    I know it´s been a long time since you've posted this question. But did you resolve this problem ? I'm having the exact same situation here.
    Any help would be good.
    Thanks a lot,
    John

  • Connecting locally with BC4J and JDBC DataSource

    I have a BC4J project/module which I'm using as the data access layer for a web application, and that is deployed in 'local' mode on the OC4J server. In the config for the BC4J Module, I'm using the 'JDBC DataSource' connection type. When I deploy to OC4J, the appropriate entries are made in data-sources.xml and things run fine.
    W/in JDev, however, I'd like to be able to use the BC4J Tester and/or some local java classes (ie, run with a main method, outside the context of OC4J) to do some testing as I develop, including accessing the DB via my BC4J module, with the JDBC DataSource connection type. Currently, in order to run outside of the context of OC4J, I need to modify my config to use a connection type of 'JDBC URL' in order to successfully connect via the tester or via a main method driven class. (But then must be sure to change it back to 'JDBC DataSource' prior to redeploying.) If don't do this, and instead try to use the DataSource connection type, I get the errors "oracle.jbo.JboException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/ADD_OWNER_DEV2DS" and "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial" (among others)
    It seems pretty clear that I need to somehow/somewhere specify the context factory or such when running in JDev vs under OC4J, or somehow point the IDE to the local OC4J instance as the source of the info, etc?
    When trying to connect from the development environment, I have a local OC4J instance up and running, and I have what I think is an appropriate entry in data-sources.xml (I've tried this in 4 locations - j2ee\home\config, multi\system\oc4j-config, system9.0.3.1035\oc4j-config and as a new Data Sources Descriptor in the project.)
    Is there a way to set things up such that I can use the 'JDBC DataSource' connection type regardless of whether I'm running inside or outside of OC4J?
    Thanks,
    Jim

    Jim,
    You need some jndi implementation to bind(define) the datasource that can be looked up at runtime. Unfortunately, currently the only jndi implementation available in which you can bind datasources comes from oc4j. So you have to run in oc4j for using the datasource as your connection type.
    Dhiraj

Maybe you are looking for

  • Xml files in search results

    Hi Experts, When i search for string in EP 7.0 it shows all the links related to the search string. In the result i also found some xml files (which are related new items). when i click on this xml file it is showing xml code. Is it possible to open

  • Error in the conversion of a date in ms for october before 1996

    Hi, I have the following problems (using of the jdk 1.5.0_15) One hour is systematicallay added when i ask to convert a date in millisecond for a date with first days of the month of october before 1996. Unit test try {   SimpleDateFormat form = new

  • Password protect PC Suite

    I am using the ActiveLock software to password-protect my phone apps, and this porgram has a list of almost all programs installed on phone (even the default ones) and I am wondering which is the name of the application which makes possible the conne

  • Error message when installing demo aplication

    I'm trying to install the standard demo of isadora but keep getting this message: unable to create folder "/application/isadora/" any ideas. I have contacted the support team at isadora but they have not replied yet was wondering if it's anything to

  • How-to remove a jsf backing bean from session?

    How can I find the reference to a backing bean (with session scope) and then remove the bean? I may have painted myself into a corner. When most of my pages are navigated to, they get key info from session and then initially populate the page fields.