Jndi jdbc App Server Integration

We are seeing the following error in -
/jes/var/opt/SUNWappserver/domains/domain1/logs/server.log
[#|2007-07-26T10:58:47.790-0400|FINE|sun-appserver-ee8.1_02|
javax.enterprise.resource.resourceadapter|_ThreadID=27;|
RAR5036:Resource reference is not defined for JNDI name [jdbc/MarxDB]|#]
Application server is -
Sun Java System Application Server 8.1_02 (build b21-p10)
Excerpt from our test java class
System.out.println("\n.MARKER2 before dataSource.getConnection().\n");
Above seen in log files.
dbConnection = dataSource.getConnection();
System.out.println("\n.after dataSource.getConnection().\n");
Above never seen in log files.
Excerpt from our server.log.
.MARKER2 before dataSource.getConnection().
|#]
[#|2007-07-26T10:58:47.790-0400|FINE|sun-appserver-ee8.1_02|
javax.enterprise.resource.resourceadapter|_ThreadID=27;|
RAR5036:Resource reference is not defined for JNDI name [jdbc/MarxDB]|#]
Excerpt from /jes/var/opt/SUNWappserver/domains/domain1/config/domain.xml
<jdbc-resource enabled="true" jndi-name="jdbc/MarxDB" object-type="user" pool-name="MARXDB"/>
<jdbc-connection-pool connection-validation-method="auto-commit"
datasource-classname="COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource"
fail-all-connections="true"
idle-timeout-in-seconds="300"
is-connection-validation-required="true"
is-isolation-level-guaranteed="false"
max-pool-size="32"
max-wait-time-in-millis="8000"
name="MARXDB"
pool-resize-quantity="4"
res-type="javax.sql.ConnectionPoolDataSource"
steady-pool-size="8"
validation-table-name="mcs_user_status">
<property name="user" value="IACSTNV"/>
<property name="url" value="jdbc:db2:HCFADB1T"/>
<property name="password" value="CKM349AB"/>
<property name="databaseName" value="HCFADB1T"/>
<property name="portNumber" value="50000"/>
</jdbc-connection-pool>

Here is the java
package gov.hhs.cms.ebs.das;
import gov.hhs.cms.ebs.log.LogManager;
import gov.hhs.cms.ebs.util.PropertiesUtil;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Types;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import java.util.Hashtable;
import java.util.Enumeration;
public class MarxDas {
     private static int MARX_COUNTER = 0;
     private static Connection getConnection(String MARX_DB_DATASOURCE) {
          System.out.println("\nMarxDas cl, getConnection md arg is ." + MARX_DB_DATASOURCE + ".\n");
          LogManager.debug("Inside getConnection method of MarxDao");
          Connection dbConnection = null;
          InitialContext ic = null;
          DataSource dataSource = null;
          try {
               LogManager.debug("getConnection: Trying to establish a DB2 connection");
               ic = new InitialContext();
          System.out.println("\nMarxDas cl, getConnection md ic.getNameInNamespace is ." + ic.getNameInNamespace() + ".\n");
Hashtable myHashtable = ic.getEnvironment();
          System.out.println("\nMarxDas cl, getConnection md myHashtable isEmpty is ." + myHashtable.isEmpty() + ".\n");
Enumeration enum = myHashtable.keys();
while ( enum.hasMoreElements() ) {
Object myKey = enum.nextElement();
          System.out.println("\nMarxDas cl, getConnection md Hashtable key is ." + myKey + ".\n");
          System.out.println("\nMarxDas cl, getConnection md value is ." + myHashtable.get(myKey) + ".\n");
// System.out.println("\nMarxDas cl, ic.lookup(MARX_DB_DATASOURCE) is." + ic.lookup(MARX_DB_DATASOURCE) + ".\n");
if ( (DataSource) ic.lookup(MARX_DB_DATASOURCE) == null ) {
System.out.println("\n (DataSource) ic.lookup(MARX_DB_DATASOURCE) is NULL." );
else {
System.out.println("\n (DataSource) ic.lookup(MARX_DB_DATASOURCE) is NOT NULL.\n");
System.out.println("\n (DataSource) ic.lookup(MARX_DB_DATASOURCE) is ." + (DataSource) ic.lookup(MARX_DB_DATASOURCE) + ".\n");
               if (ic != null) {
                    dataSource = (DataSource) ic.lookup(MARX_DB_DATASOURCE);
System.out.println("\ndataSource is ." + dataSource + ".\n");
                    if (dataSource != null) {
System.out.println("\n.before dataSource.getConnection().\n");
System.out.println("\n.MARKER2 before dataSource.getConnection().\n");
// dbConnection = ((com.sun.gjc.spi.DataSource)dataSource).getConnection();
dbConnection = dataSource.getConnection();
System.out.println("\n.after dataSource.getConnection().\n");
          } catch (Exception e) {
               LogManager.error(
                    "getConnection: Exception occurred while getting datasource: "
                         + e.getMessage());
     System.out.println("\nMarxDas cl, getConnection md dbConnection is ." + dbConnection + ".\n");
          return dbConnection;
public static String checkMarxConnection(String MARX_DB_DATASOURCE) {
     System.out.println("\nMarxDas cl, checkMarxConnection md arg is ." + MARX_DB_DATASOURCE + ".\n");
LogManager.debug("Inside checkMarxConnection method of MarxDao");
Connection dbConnection = null;
try {
dbConnection = getConnection(MARX_DB_DATASOURCE);
System.out.println("\n.9.\n");
/* if (dbConnection == null && MARX_COUNTER < 10) {
MARX_COUNTER = MARX_COUNTER+1;
LogManager.debug("MARX COUNTER is "+MARX_COUNTER);
String timeout = PropertiesUtil.getProperty("iacs", "MARX_POLL_WAIT");
Thread.sleep(new Long(timeout).longValue());
LogManager.debug("Returning FALSE");
return "false";
} else {
LogManager.debug("MARX COUNTER is "+MARX_COUNTER);
LogManager.debug("Resetting MARX COUNTER to 0 and returning TRUE");
MARX_COUNTER = 0;
return "true";
if (dbConnection == null) {
String timeout =
PropertiesUtil.getProperty("iacs", "MARX_POLL_WAIT");
LogManager.debug(
"checkMarxConnection: connection is null; about to enter a sleep");
Thread.sleep(new Long(timeout).longValue());
LogManager.debug("checkMarxConnection: returning FALSE");
return "false";
} else {
LogManager.debug(
"checkMarxConnection: connection is not null; returning TRUE");
return "true";
} catch (NumberFormatException e1) {
LogManager.error(
"Check MARX Connection: NumberFormatException occurred: "
+ e1.getMessage());
return "false";
} catch (InterruptedException e2) {
LogManager.error(
"Check MARX Connection: InterruptedException occurred: "
+ e2.getMessage());
return "false";
} finally {
try {
dbConnection.close();
} catch (SQLException e) {
e.printStackTrace();
     public static String createMarxAccount(
          String requesterUserId,
          String userIdmId,
          String userId,
     //This is the RACF ID
          String userFirstname,
          String userLastname,
          String userMiddleInitial,
          int roleCount,
          String roleData,
          int ACSCount,
          String ACSData,
          int userOrgType,
          String userOrgName,
          String MARX_DB_DATASOURCE,
          String MARX_DB_STORPROC_NAME) {
          Connection dbConnection = getConnection(MARX_DB_DATASOURCE);
          String replyStatus = "";
          CallableStatement callableStatement = null;
          String query =
               "{call " + MARX_DB_STORPROC_NAME + " (?,?,?,?,?,?,?,?,?,?,?,?,?) }";
          try {
               LogManager.debug(" After getConnection");
               callableStatement = dbConnection.prepareCall(query);
               LogManager.debug("preparecall is a success");
               callableStatement.setString(1, requesterUserId);
               LogManager.debug("requesterUserId is a success");
               callableStatement.setString(2, userIdmId);
               LogManager.debug("IDMiD is a success");
               callableStatement.setString(3, userId);
               LogManager.debug("userId is a success");
               callableStatement.setString(4, userFirstname);
               LogManager.debug("userFirstname is a success");
               callableStatement.setString(5, userLastname);
               LogManager.debug("userLastname is a success");
               callableStatement.setString(
                    6,
                    (userMiddleInitial == null) ? "" : userMiddleInitial);
               LogManager.debug("userMiddleInitial is a success");
               // callableStatement.setShort(7, Short.valueOf(roleCount).shortValue());
               callableStatement.setShort(7, (short) roleCount);
               LogManager.debug("roleCount is a success");
               callableStatement.setString(8, roleData);
               LogManager.debug("roleData is a success");
               // callableStatement.setShort(9, Short.valueOf(ACSCount).shortValue());
               callableStatement.setShort(9, (short) ACSCount);
               LogManager.debug("ACSCount is a success");
               callableStatement.setString(10, ACSData);
               LogManager.debug("ACSData is a success");
               callableStatement.setShort(11, (short) userOrgType);
               LogManager.debug("userOrgType is a success");
               if (userOrgName!=null && userOrgName.length()>20) {
                    userOrgName = userOrgName.substring(0, 20);
               callableStatement.setString(12, userOrgName);
               LogManager.debug("userOrgName is a success");
               LogManager.debug(" input args all success");               
               callableStatement.registerOutParameter(13, Types.CHAR);
               LogManager.debug(" After registerOutParameter");
               callableStatement.execute();
               LogManager.debug(" execute is a success");
               replyStatus = callableStatement.getString(13);
          } catch (Exception e) {
               replyStatus = "100";
               try {
                    dbConnection.rollback();
               } catch (Exception ex) {
               LogManager.error(
                    "Exception occurred createMarxAccount: " + e.getMessage());
          } finally {
               try {
                    if (callableStatement != null) {
                         callableStatement.close();
                    if (dbConnection != null) {
                         dbConnection.close();
               } catch (Exception e) {
          return replyStatus;
}

Similar Messages

  • Cannot preview attachments using Office Web App Server 2013 ( Preview )

    Got a lab environment to test Office Web App Server integration with Exchange 2013
    i have followed the instructions given here
    http://technet.microsoft.com/en-US/jj219455
    http://technet.microsoft.com/library/2591b1be-92c4-4192-9f5e-e4e6b319170a
    After all required configuration , i am still unable to preview the office documents from OWA
    Receiving the following messages by clicking on the Preview link next to the attachment:
    Word Document : "Sorry, there was a problem and we can't open this document. If this happens again, try opening the document in Microsoft Word."
    Excel Document: "We couldn't find the file you wanted. It's possible the file was renamed, moved or deleted"
    PowerPoint: "Sorry, we ran into a problem. Please try again"
    As suggested i even see the Application Log the 140 and 142 Event IDs for MSExchange OWA
    Already configured to enable the rendering of attachments through OWAS both on public and private computers:
    This is what I can see in the ULS log on the Web App Server
    WAC Server HttpModule: Beginning request at target [/p/PowerPointFrame.aspx?PowerPointView=SlideShowView&ui=en-US&rs=en-US&WOPISrc=https%3a%2f%2f<Server>%3a443%2fowa%2fuser02%2540<Domain>%2fwopi%2ffiles%2f%40%2fowaatt%3fowaatt%3dLFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%252bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%253d&]
    in session [b373a48e-9fca-445b-a7b2-2966f11b18de]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    UserSessionId=b373a48e-9fca-445b-a7b2-2966f11b18de
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI CheckFileInfo: Start [url:https://<Server>:443/owa/user02%40<Domain>/wopi/files/@/owaatt?owaatt=LFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%2bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%3d]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    URL generated for WOPI CheckFile Request: https://<Server>:443/owa/user02%40<Domain>/wopi/files/@/owaatt?owaatt=LFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%2bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%3d&access_token=REDACTED_1086&access_token_ttl=0
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI Proof Data: AccessToken Hash '669582051' [1086 bytes], URL 'HTTPS://<Server>/OWA/USER02%40<Domain>/WOPI/FILES/@/OWAATT?OWAATT=LFMTMS01LTIXLTIWODU5NZU2NJITMTE4ODQ1NZE5NY04MDY2NJG5MC0XMTI5VUTGXJ%2BT0AGBAQEAQE1JDE5TSELQZJBHWWTXUTFTZI8YQ3HTSGZXS3IZB1GWZGVFWVHJDKLHBGWWC3F0DNJIQJBZZ0D2EXBDVCTAEEU%3D&ACCESS_TOKEN=REDACTED_1086&ACCESS_TOKEN_TTL=0'
    [1354 bytes], TimeStamp '635169449614353585' [8 bytes]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI Proof: Using Current private key (to sign) that matches Current public key  BgIAAACkAABSU0ExAAgAAAEAAQDhPcfARgzhUlTFzo1jhCPHeoylNWp6pBbq6QM6CVQkbFyp4/I+mDzK4JA+AA3BFWLtpQEB7zIEbdjzhdsuYWYAJWBfvfX/3m2E3WRNhcPV8I2rA2T6qWj5Fb6eMNnoz4n2/1sqUXfyIA8mADXUebe9JNyJ+icPluUX+vTNm4m2IWbEgWmJNkgi9OUAq2hmd2lJifbJW8jNr1qzqBCE3ITFwr0L2svMrxfe5nKXVHbZa0EBYxMwHoc3ZkE0dZ0NPle9pq3MObg2+D5RN/w/B0axTJD7G/fQDpZbdsfvKA8mlyCn/vbNpooq5LgvGowTAWmG/tr1kWetfjePAbjBkIK5
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI Proof - Successfully signed the data with the Current private key [4 ms]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI Proof Keys - WS Farm State has no Old key (this is expected if recently installed)
    b373a48e-9fca-445b-a7b2-2966f11b18de
    Cannot create WOPI Proof Token - could not find valid Old proof key data
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync (WOPICheckFile,WACSERVER) Starting [mode: GET, url: https://<Server>:443/owa/user02%40<Domain>/wopi/files/@/owaatt?owaatt=LFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%2bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%3d&access_token=REDACTED_1086&access_token_ttl=0]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync (WOPICheckFile,WACSERVER) End Called
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync::GetResponseCallback - ContentLength:9327
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync::FProcessReadReturn - cbRead:9327
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync::FProcessReadReturn - cbRead:0
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync (WOPICheckFile,WACSERVER) Setting Completion [Time in ms: 3, Bytes Read: 9327 ContentLength: 9327]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    HttpRequestAsync (WOPICheckFile,WACSERVER) SetCompletion Track start | setting trackers | WebRequest.Create() | Create() returned | setting request headers | setting user agent | setting keep alive | setting timeout callback | Start calling StartResponseProcessing
    | StartResponseProcessing._req.BeginGetResponse() | BeginGetResponse() returned | StartResponseProcessing RETURNS | Start RETURNS | End.AsyncWaitHandle.WaitOne() | GetResponseCallback isSync:False | _req.EndGetResponse() | EndGetResponse() returned | RecordResponse
    OK | _response.GetResponseStream() | _response.GetResponseStream() RETURNED | DoReadLoopFinished | _getStream.BeginRead() | ReadCallback.sync returning | BeginRead() -> sync:True | DoReadLoopFinished.FProcessReadReturn() | FProcessReadReturn._getStream.EndRead()
    | EndR... b373a48e-9fca-445b-a7b2-2966f11b18de
    ...ead() -> 9327 | FProcessReadReturn._responseStream.Write() | FProcessReadReturn RETURNS True | FProcessReadReturn() ->  true | _getStream.BeginRead() | ReadCallback.sync returning | BeginRead() -> sync:True | DoReadLoopFinished.FProcessReadReturn()
    | FProcessReadReturn._getStream.EndRead() | EndRead() -> 0 | FProcessReadReturn._responseStream.Write() | FProcessReadReturn RETURNS False | FProcessReadReturn() -> false | DoReadLoopFinished RETURNS true | GetResponseCallback DoReadLoopFinished ->
    TRUE | SetCompletion False | b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI Http Request Completed [host machine name:, version:, host correlation:]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI: Could not deserialize file metadata [url:https://<Server>:443/owa/user02%40<Domain>/wopi/files/@/owaatt?owaatt=LFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%2bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%3d,
    e:There was an error deserializing the object of type Microsoft.Office.OpenWebApplication.WopiCheckFileResponse. Encountered unexpected character '<'.]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WOPI: Invalid file metadata [url:https://<Server>:443/owa/user02%40<Domain>/wopi/files/@/owaatt?owaatt=LFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%2bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%3d,
    triggers:(No Version No FileName No OwnerId), data:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- Copyright (c) 2011 Microsoft Corporation.  All rights reserved. --> <!-- OwaPage = ASP.auth_logon_aspx -->
      <!-- {57A118C6-2DA9-419d-BE9A-F92B0F9A418B} -->     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">   <html>  <head>  <meta http-equiv="X-UA-Compatible" content="IE=10"
    />  <link rel="shortcut icon" href="/owa/auth/15.0.775/themes/resources/favicon.ico" type="image/x-icon">  <meta ...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...http-equiv="Content-Type" content="text/html; CHARSET=utf-8">  <meta name="Robots" content="NOINDEX, NOFOLLOW">  <title>Outlook Web App</title>  <link type="text/css"
    rel="stylesheet" href="/owa/auth/15.0.775/themes/resources/logon.css">  <script type="text/javascript" src="/owa/auth/15.0.775/scripts/premium/flogon.js"></script>  <script type="text/javascript"
    src="/owa/auth/15.0.775/scripts/premium/flayout.js"></script>    <script type="text/javascript">   <!--   var a_fRC = 1;   var g_fFcs = 1;   var a_fLOff = 0;   var a_fCAC = 0;  
    var a_fEnbSMm = 0;  /// <summary>  /// Is Mime Control installed?  /// </summary>  function IsMimeCtlInst(progid)  {   if (!a_fEnbSMm)    return false;     var oMimeVer = null;     try
       {    // TODO: ingore this on none IE browser    //    //oMimeVer = new ...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...ActiveXObject(progid);   }    catch (e)   {    }     if (oMimeVer != null)    return true;   else    return false;  }    /// <summary>  /// Render out the S-MIME control
    if it is installed.  /// </summary>  function RndMimeCtl()  {   if (IsMimeCtlInst("MimeBhvr.MimeCtlVer"))    RndMimeCtlHlpr("MimeNSe2k3", "D801B381-B81D-47a7-8EC4-EFC111666AC0", "MIMEe2k3",
    "mimeLogoffE2k3");     if (IsMimeCtlInst("OwaSMime.MimeCtlVer"))    RndMimeCtlHlpr("MimeNSe2k7sp1", "833aa5fb-7aca-4708-9d7b-c982bf57469a", "MIMEe2k7sp1", "mimeLogoffE2k7sp1");
        if (IsMimeCtlInst("OwaSMime2.MimeCtlVer"))    RndMimeCtlHlpr("MimeNSe2k9", "4F40839A-C1E5-47E3-804D-A2A17F42DA21", "MIMEe2k9", "mimeLogoffE2k9");  }    /// <summary>
     /// Helper function to factor out the rendering of the S/MIME control.  /// </summary>  func...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...tion RndMimeCtlHlpr(objid, classid, ns, id)  {   document.write("<OBJECT id='" + objid + "' classid='CLSID:" + classid + "'></OBJECT>");   document.write("<?IMPORT namespace='"
    + ns + "' implementation=#" + objid + ">");   document.write("<" + ns + ":Logoff id='" + id + "' style='display:none'/>");  }   -->  </script>
           <script>            var mainLogonDiv = window.document.getElementById("mainLogonDiv");          var layout = DetermineLayout();          var
    showPlaceholderText = false;          var mainLogonDivClassName;            if (layout == LayoutTypeEnum.Mouse) {              mainLogonDivClassName = "mouse";
             }          else if (layout == LayoutTypeEnum.TouchNarrow) {              mainLogonDivClassName = "tnarrow";              showPlaceholderText
    = true;               ...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ... // Output meta tag for viewport scaling              document.write('<meta name="viewport" content="width = 320, initial-scale = 1.0, user-scalable = no" />');          }
             else {              mainLogonDivClassName = "twide";              showPlaceholderText = true;          }    
           function setPlaceholderText() {                  window.document.getElementById("username").placeholder = "domain\\user name";            
         window.document.getElementById("password").placeholder = "password";                  window.document.getElementById("passwordText").placeholder = "password";
             }            function showPasswordClick() {              var showPassword = window.document.getElementById("showPasswordCheck").checked;    
             window.document.getElementById("password"...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...).type = showPassword ? "input" : "password";          }      </script>    </head>  <body class="signInBg" style="background: #f2f2f2 url('/owa/auth/15.0.775/themes/resources/bg_gradient_login.png')
    repeat-x"/>        <noscript>   <div id="dvErr">    <table cellpadding="0" cellspacing="0">    <tr>     <td><img src="/owa/auth/15.0.775/themes/base/warn.png"
    alt=""></td>     <td style="width:100%">To use Outlook Web App, browser settings must allow scripts to run. For information about how to allow scripts, consult the Help for your browser. If your browser doesn&#39;t
    support scripts, you can download <a href="http://www.microsoft.com/windows/ie/downloads/default.mspx">Windows Internet Explorer</a> for access to Outlook Web App.</td>    </tr>    </table>  
    </div>  </noscript>    <form action...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...="/owa/auth.owa" method="POST" name="logonForm" ENCTYPE="application/x-www-form-urlencoded" autocomplete="off">  <input type="hidden" name="destination" value="https://<Server>/owa/user02@<Domain>/wopi/files/@/owaatt?owaatt=LFMtMS01LTIxLTIwODU5NzU2NjItMTE4ODQ1NzE5Ny04MDY2Njg5MC0xMTI5VUtGxj%2bT0AgBAQEAQE1jdE5tSElqZjBHWWtXUTFtZi8yQ3htSGZxS3Izb1gwZGVFWVhjdklhbGwwc3F0dnJiQjBzZ0d2eXBDVCtaeEU%3d&amp;access_token=REDACTED_1086&amp;access_token_ttl=0">
     <input type="hidden" name="flags" value="4">  <input type="hidden" name="forcedownlevel" value="0">      <!-- Default to mouse class, so that things don't
    look wacky if the script somehow doesn't apply a class -->  <div id="mainLogonDiv" class="mouse">      <script>            var mainLogonDiv = window.document.getElementById("mainLogonDiv");
        ... b373a48e-9fca-445b-a7b2-2966f11b18de
    ...     mainLogonDiv.className = mainLogonDivClassName;      </script>      <div class="sidebar">          <div class="owaLogoContainer">      
           <img src="/owa/auth/15.0.775/themes/resources/olk_logo_white.png" class="owaLogo" aria-hidden="true" />              <img src="/owa/auth/15.0.775/themes/resources/olk_logo_white_small.png"
    class="owaLogoSmall" aria-hidden="true" />          </div>      </div>      <div class="logonContainer">   <div id="lgnDiv" class="logonDiv"
    onKeyPress="return checkSubmit(event)">                        <div class="signInImageHeader" role="heading" aria-label="Outlook Web App ">  
                   <img class="mouseHeader" src="/owa/auth/15.0.775/themes/resources/owa_text_blue.png" alt="Outlook Web App " />              </div>
                 <div class="signInInp...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...utLabel" id="userNameLabel" aria-hidden="true">Domain\user name:</div>    <div><input id="username" name="username" class="signInInputText" role="textbox" aria-labelledby="userNameLabel"/></div>
       <div class="signInInputLabel" id="passwordLabel" aria-hidden="true">Password:</div>    <div><input id="password" onfocus="g_fFcs=0" name="password" value=""
    type="password" class="signInInputText" aria-labelledby="passwordLabel"/></div>          <div class="showPasswordCheck signInCheckBoxText">            
     <input type="checkbox" id="showPasswordCheck" class="chk" onclick="showPasswordClick()" />              <span>Show password</span>        
     </div>                <div class="signInError" role="alert" tabIndex="0">              </div>    <div id="expltxt"
    class="signInExpl" role="alert">     ...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ...    </div>    <div class="signInEnter">              <div onclick="clkLgn()" class="signinbutton" role="button" tabIndex="0" >  
                   <img class="imgLnk"                                                
    src="/owa/auth/15.0.775/themes/resources/Sign_in_arrow.png"                                         alt=""><span class="signinTxt">sign
    in</span>              </div>              <input name="isUtf8" value="1" type="hidden"/>    </div>        
     <div class="hidden-submit"><input type="submit" tabindex="-1"/></div>    </div>      </div>       <div id="cookieMsg" class="logonDiv"
    style="display:none">    <div class="signInHeader">Outlook Web App </div>    <div class="signInExpl">Please enable cookies for this Web site.<br><br>Cookies are
    currently disabled by your browser. Outlook Web...
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ... App requires that cookies be enabled. <br><br>For information about how to enable cookies, see the Help for your Web browser.<br><br><br></div>    <div class="signInEnter" >      
        <div onclick="clkRtry()" style="cursor:pointer;display:inline">            <img class="imgLnk"              src="/owa/auth/15.0.775/themes/resources/Sign_in_arrow.png"
               alt=""><span class="signinTxt" tabIndex="0">retry</span>    </div>   </div>      </div>  </div>  </form>
     <script>      if (showPlaceholderText) {          setPlaceholderText();      }  </script>  </body>  </html>  ]
    b373a48e-9fca-445b-a7b2-2966f11b18de
    FileUnknownException loading powerpointframe: Microsoft.Office.Web.Common.EnvironmentAdapters.FileUnknownException: WOPI Check File     at Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()     at Microsoft.Office.Web.Common.BaseDocumentCache.CheckBaseDocumentInternal(BaseDocument
    baseDoc, BaseUser user, Boolean requiresVersion, String canary, Boolean checkCanary, Boolean fUseCacheLookup)     at Microsoft.Office.Server.Powerpoint.Web.UI.PptWebControl.CheckFileInfo()
    b373a48e-9fca-445b-a7b2-2966f11b18de
    ViewOpenEarlyHelper: no presentation Id, failing.
    b373a48e-9fca-445b-a7b2-2966f11b18de
    IsAuthenticated: False, IsAnonymous: False, AuthType:
    b373a48e-9fca-445b-a7b2-2966f11b18de
    Secure connection detected, redirecting service endpoint from ppt/view.svc/jsonAnonymous to ppt/view.https.svc/jsonAnonymous
    b373a48e-9fca-445b-a7b2-2966f11b18de
    WACServer HttpModule: EndRequest Called b373a48e-9fca-445b-a7b2-2966f11b18de
    Any suggestions ...

    Hi,
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/ded515c8-cc0f-4ad4-bed6-e56a0636be79/exchange-office-web-apps-preview-does-not-work-in-owa-web?forum=exchangesvrclients
    Hope it hleps you!
    Thanks.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to access JDBC Resource registered in Sun Java System App Server ?

    I want to create a stand-alone JDBC application with Java SE using Swing technologies and JNDI technology. The purpose of using JNDI technology is to avoid change of Java Source Code every time I move the database to different location. This Java application will be used in a standalone PC installed with Windows XP Professional with no LAN / WAN connection. Of course, Internet connection is available with the PC.
    I use JavaDB to store the data tables and the location of the database is D:\E-DRIVE\SAPDEV. Tomorrow, if I move this database to C:\SAPDEV or any network drive, I do not want to change the Java Source code. I want to use JNDI which, if I am not wrong, helps developers to avoid manual change of Java source code whenever the database location is changed. Changes have to be made only in the JNDI Name which contains all relevant information about the database in order to get connection no matter where the database SAPDEV is stored; it can be placed under D:\E-DRIVE directory or C:\ directory of the hard disk. To implement my intention, I started developing Java application as per the steps mentioned below:
    Step 1:
    To proceed, first, I sought the help of Sun Java System Application Server Admin Console. I created JNDI object for Connection Pool using the menu path Common Tasks->Resources->JDBC->Connection Pools.
    JNDI Name : ABAPRPY
    Resource Type : javax.sql.DataSource
    Datasource class : org.apache.derby.jdbc.ClientDataSource
    Description : ABAP Program Repository
    The Connection Pool creation has options for General, Advanced and Additional Settings tabs and I made all the settings relevant to the database I created in D:\E-DRIVE\SAPDEV.
    To confirm whether the above settings are correct, I pressed the Ping push button which is available in the General tab of the connection pool creation screen. The system responded with the message Ping Succeeded.
    Step 2:
    I created a JDBC Resource using the menu path Common Tasks->Resources->JDBC->JDBC Resources.
    JNDI Name : jdbc/SAPDEV
    Pool Name : ABAPRPY
    Description : Database Connection for SAPDEV database
    Status : Enabled
    I can see all the above settings recorded in the domain.xml which is placed in the folder
    C:\Sun\AppServer\domains\domain1\config
    Step 3:
    I have made sure that Sun Java System Application Server is up and running in the background with JavaDB server. I created a Java Program making sure the following JAR files are included in the classpath:
    appserv-admin.jar
    appserv-ee.jar
    appserv-rt.jar
    javaee.jar
    fscontext.jar
    Plus, the lib directory of JDK 1.6 & C:\Sun\AppServer\domains\domain1\config
    Source code of the program is as follows: I used NetBeans IDE to create my project file.
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.naming.*;
    import javax.activation.DataSource;
    public class JNDILookup {
    public static void main(String[] args) {
    try {
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/sapdev>");
    } catch (NamingException ex) {
    Logger.getLogger(JNDILookup.class.getName()).log(Level.SEVERE, null, ex);
    When I attempted to compile the above program in NetBeans IDE ,no compilation error reported. But while executing the program, I got the following run-time error message:
    SEVERE: null
    javax.naming.NameNotFoundException: No object bound for java:comp/env/jdbc/sapdev> [Root exception is java.lang.NullPointerException]
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:224)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at SAPConnect.JNDILookup.main(JNDILookup.java:21)
    Caused by: java.lang.NullPointerException
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
    ... 3 more
    Now, I want to come out of this situation; at the same time, I want to preserve the settings I have made in the Sun Java System Application Server Admin Console. That is, I want to programmatically access the data source using Connection Pool created in Sun Java System Application Server Admin Console.
    I request dear forum members to provide me an appropriate solution.
    Thanks and regards,
    K. Rangarajan.

    jay44 wrote:
    Bare in mind I am attempting the context.lookup() from inside the container (my code is in a session bean). I have accessed the server and have my bean "say hello" first to verify the bean works OK, then I call a method with this rather standard code:
    String jndiDataSourceName ="Second_EJB_Module_DataBase";
    Logger.getLogger(DynamicPU.class.getName()).log(Level.INFO,"Programatically acquiring JNDI DataDource: "+ jndiDataSourceName);
    InitialContext ctx;
    try {
    ctx = new InitialContext();
    ds =(DataSource)ctx.lookup("java:comp/env/jdbc/"+jndiDataSourceName);
    } catch (NamingException ex) {
    Logger.getLogger(DynamicPU.class.getName()).log(Level.SEVERE, null, ex);
    return "Exception generated trying to preform JDBC DataSource lookup. \n"+ex.toString();
    But when I run the code the server log shows the initial context is created Ok, but an exception is thrown becasue the resource name is not found:
    (and i have tried vriations of ctx.lookup("jdbc/"+jndiDataSourceName) etc etc
    You are fine here. It works in container because the InitialContext properties have been supplied already. That was the link I forwarded earlier. The InitialContext you create locally needs to locate the container JNDI. That is what the properties specify.
    Where I am confused is where you indicate the stack below is from the server log. So, you initiate a standalone (java main method) application, create an InitialContext, and you see the results in your app server log?
    LDR5010: All ejb(s) of [EJB_Module_1] loaded successfully!
    Programatically acquiring JNDI DataDource: Second_EJB_Module_DataBase
    The log message is null.
    javax.naming.NameNotFoundException: Second_EJB_Module_DataBase not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)...
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    This is strange since I can see this resource (a JDBC connection named Second_EJB_Module_DataBase) is configured on the server from the server's admin console.
    That is why you can obtain a lookup from within the container (app server).
    For this lookup to work it may be that one must map the name inside an ejb-jar.xml deployed with the application, but I have also read some resources like jdbc connection should have a default name. Does anyone know if my lookup() should work without using an ejb-jar.xml mfile to explcitly map the reource for my application?
    Both EBJ's and data sources can be referenced via JNDI. It's a remote lookup (that is normally optimized if it is running in the same JVM). You should not have any dependencies on a JDBC data source being set-up on ejb-jar.xml. That file can of course impact your EJB's. However, data sources are normally set-up on a container-specific basis (e.g., you probably did it through a console, but there is a spec somewhere about how to set up a data source via a resource the app server looks for; it varies from app server to app server). However, once you have that container-specific data source set-up, JNDI operates vendor-neutral. You should be able to take the code above and move it to JBoss or Weblogic or Tomcat or whatever (this is an ideal, in practice, the vendors sometimes put a data source in a name you would not expect, but again, you can use their JMX console to see what the JNDI name is).
    (As I stated above if I have to use a deployment discriptor to get at this JNDI datasource, then solution is not "programmatic" as newly configured datasources could not be accessed without redeploying the entire application).
    As JSchell alluded to, you will always have at least something vendor-specific. JNDI itself (the code you wrote) is totally portable. However, you have to set the various JNDI environment properties to a given vendor's spec. Ideally, you should not need a vendor's actual InitialContext application, but it's a possibility. Once you can safely cast to Context, you should be vendor-neutral (if not, demand your money back).
    So that is exactly where I am stuck, trying to get the lookup to work and wondering if it should work without and xml file mapping the resource for my app.
    What we ended up doing for standalone was to provide our own JNDI. If you look at the open source project JOTM, there are examples on how to use that with XBean (if integrating with Spring, as we did), you can easily set up a data source that runs standalone exactly as you get in the container. Another benefit is you get full JTA/JTS support and the ability to run XA transactions. (This might all be alphabet soup, but the app server gives it to you, and this is the way we ended up doing the same: JNDI + JTA + JTS + XA). It ends up the same application code uses a "vanilla" InitialContext and all we have to do is write one or two xml files (one for our app server, a couple for JOTM), and our actual code works the same.
    I still think you have a shot at getting to the container's JNDI, just not using their full-blown app server JAR.
    I think there must be a simple way to do this with an ejb-jar.xml, I am no expert in JNDI, I could be missing something simple, I will keep at it and post an answer here if I come up with it.
    Thanks, jayIt is simple to code. Getting it to integrate with your app server, yes, that can be challenging. But it has nothing to do with EJB's. Write a simple test. Using nothing but DataSource and InitialContext. Let us know where you get stuck.
    - Saish

  • JNDI Lokup for DSN in iPlanet 6.5 App server

    Hi ,
    I have been trying to implement Connection Pooling in my application using the built-in features of iPlanet App server 6.5 . For the same i have made the following entries:
    1. web.xml
    <resource-ref>
    <description>Ptrade Entry</description>
    <res-ref-name>jdbc/ptradeDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    2. ias-web.xml
    <resource-ref>
    <res-ref-name>jdbc/ptradeDataSource</ref-ref-name>
    <jndi-name>jdbc/ptrade/ptradeDB</jndi-name>
    </resource-ref>
    3. Also my class tries to ge the context using
    try {
    InitialContext ic = new InitialContext();
    ds = (DataSource)ic.lookup("java:comp/env/jdbc/ptradeDataSource");
    catch (NamingException ne) {
    System.out.println("Naming Exception" + ne);
    Connection dbc = ds.getConnection();
    return dbc;
    However i am getting an javax.naming.NameNotfoundException: can't locate jdbc/ptradeDataSource.
    Could somebody pls tell me what is wrong with my configuration and code?

    Well, it looks like you haven't actually configured a datasource with that name. You've only configured the use of the datasource were it to exist. I don't know iPlanet, so you'll have to consult the docs to find out how to create the DS.

  • App Server 8.1 JDBC Connection problem

    Dear Expert,
    Cu are using Sun Java System Application Server Enterprise Edition 8.1. Cu created one jdbc connection pool and datasource. They are called
    jdbc/RM
    From the App Server Admin Console -> Connection Pool, cu can "Ping" the database via the connection pool.
    Cu did the configuration on web.xml and sun-web.xml
    web.xml
    <resource-ref>
    <description>Oracle Database Connection - Rawmart</description>
    <res-ref-name>jdbc/RM</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    sun-web.xml
    <resource-ref>
    <res-ref-name>jdbc/RM</res-ref-name>
    <jndi-name>jdbc/RM</jndi-name>
    </resource-ref>
    In customer class,
    220: protected void initDataSource() throws NamingException {
    221: initContext = new InitialContext();
    222: envContext = (Context) initContext.lookup("java:comp/env");
    223: String dataSource = rConfigObject.getConfigValue("DATASOURCE");
    224: rDataSource = (DataSource) envContext.lookup(dataSource);
    225: }Exception occurs on line no. 222 already.
    From server.log, we get
    ================
    #|2005-06-03T11:36:11.562+0800|WARNING|sun-appserver-ee8.1|javax.enterprise.system.stream.err|_ThreadID=10;|
    javax.naming.NameNotFoundException: No object bound for java:comp/env [Root exception is java.lang.NullPointerException]
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:161)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:288)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.ns.DBObject.initDataSource(DBObject.java:222)
    at com.ns.DBObject.connectPool(DBObject.java:213)
    at com.ns.DBObject.<init>(DBObject.java:91)
    at com.ns.DBObject.getInstance(DBObject.java:122)
    at com.ncharter.NCContextListener.contextInitialized(NCContextListener.java:28)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4010)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)
    ===============
    Do you have any ideas on this problem? Thanks.
    Regards,
    Angus

    Try asking the Customer to fire up the JNDI browser in the admin console and try to browse the JNDI tree.
    What class is the InitialContext.lookup() happening in? Is that getting executed in the servlet class or a standalone client?
    thanks.

  • OAM (10.1.4.3) Integration with WebLogic App Server (10.3.0 or below)

    Hi All,
    Can I use OAM 10.1.4.3 (Authentication Provider & Identity Asserter) to implement SSO with weblogic App Server 10.3.0 or below?
    OAM 10.1.4.3 Authentication Provider & Identity Asserter is the recommended way to configure SSO with Web Logic App server 10.3.1 ( Oracle Middleware 11g).
    And
    OAM 10.1.4.2 uses WebLogic SSPI to configure SSO between OAM 10g and WebLogic App Server 10.3.0 or below.

    Hi,
    This is how the integration goes with different versions of WLS and OAM.
    There is oamAuthnProvider.jar available with OAM 10.1.4.3 downloads. So it provides the assertion functionality.
    Can I use OAM 10.1.4.3 (Authentication Provider & Identity Asserter) to implement SSO with weblogic App Server 10.3.0 or below?
    Mahendra: Yes
    OAM 10.1.4.3 Authentication Provider & Identity Asserter is the recommended way to configure SSO with Web Logic App server 10.3.1 ( Oracle Middleware 11g).
    Mahendra: Yes, this is the recommended and easy approach.
    OAM 10.1.4.2 uses WebLogic SSPI to configure SSO between OAM 10g and WebLogic App Server 10.3.0 or below.
    Mahendra: Yes, older version of OAM uses SSPI connector installation.
    HTH.
    Mahendra.

  • Integrating Sun App Server with WebSphere MQ

    Hi,
    I am using Sun App server V8.1 . I also have a websphere MQ v5.3 installed in my system. I want to integrate this MQ with the App server.
    I created a queueManager and a Queue in MQ and using the JMSAdmin console of the Mq, i created jndi lookup resources using INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
    In the application server side, i created a Resource adapter using the command:
    create-resource-adapter-config --property SupportsXA=true:ProviderIntegrationMode=jndi:RMPolicy=OnePerPhysicalConnection:JndiProperties=java.naming.factory.url.pkgs\\=com.ibm.mq.jms.naming,java.naming.factory.initial\\=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url\\=file\\:D\\:\\MQ:LogLevel=finest mqra
    Then i deployed this resource adaptor using the command :
    deploy name mqra target server "D:\Sun\AppServer\lib\addons\resourceadapters\genericjmsra\genericra.rar"
    Using this resource adapter i created a connection pool, connector resource and an admin object using the commands
    create-connector-connection-pool raname mqra connectiondefinition javax.jms.QueueConnectionFactory transactionsupport  XATransaction property ConnectionFactoryJndiName=MQQCF mymqpool
    create-connector-resource --poolname mymqpool jms/MyMqQCF
    create-admin-object raname mqra restype javax.jms.Queue --property DestinationJndiName=RTQueue jms/MyMqQueue
    After that, i wrote a java code to lookup these resources and put a message into the queue.
    This is the snippet of my java code
    InitialContext ic = new InitialContext();
    QueueConnectionFactory cnxFact = (QueueConnectionFactory)ic.lookup("jms/MyMqQCF");
    Queue qu = (Queue)ic.lookup("jms/MyMqQueue");
    try {               
    QueueConnection qConn = cnxFact.createQueueConnection();
    QueueSession qSess = qConn.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    QueueSender qSend = qSess.createSender(qu);
    TextMessage msg = qSess.createTextMessage();
    msg.setText("1");
    qSend.send(msg);
    qConn.close();
    I am getting an exception in the line, QueueConnection qConn = cnxFact.createQueueConnection();
    here is the stack trace
    java.lang.ClassCastException: com.ibm.mq.jms.MQQueueConnectionFactory
    at com.sun.genericra.outbound.ManagedQueueConnectionFactory.createXAConnection(ManagedQueueConnectionFactory.java:45)
    at com.sun.genericra.outbound.AbstractManagedConnectionFactory.createPhysicalConnection(AbstractManagedConnectionFactory.java:127)
    at com.sun.genericra.outbound.AbstractManagedConnectionFactory.createManagedConnection(AbstractManagedConnectionFactory.java:111)
    at com.sun.enterprise.resource.ConnectorAllocator.createResource(ConnectorAllocator.java:90)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getUnenlistedResource(IASNonSharedResourcePool.java:437)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:355)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:250)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:213)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:174)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:286)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:145)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:121)
    at com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:69)
    at com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:101)
    Can anybody help???

    bump
    update:
    So to avoid this problem I added spring.jar to the server classpath. that got rid of this message but then it started complaining that its missing struts2 core jar..i added that in server classpath as well...I did same for 4 other files and in the end it said 'bean for xwork has already been initialized' (because all these jars are in the application as well).
    So I am stuck. if I add all jars to server classpath..it says beans have already been initialized. If I take out the jars from server classpath then it says that stuff is missing (eg. contextLoader.properties missing - orig post)
    again, all this goes away when I restart the server..so i am just trying to avoid having to restart server every code change.

  • Performance - using JDBC call with 'order by' vs sorting data on app server

    Hello! I need some valid thoughts on the performance of using a JDBC call versus processing information on the application server.
    Here is the somewhat simplified scenario:
    I need to retrieve customer information (name, e-mail, telephone), display it in HTML format and then be able to redisplay it in a different order. For example, initially the list would be displayed sorted by last name, but then a user might choose to sort it by e-mail address. Initial call to DB uses 'order by' in the SQL stmt to get me the initial ordering by last name. Results are stored in 2D array. However, when a user selects a different sort I have two options:
    1) just make another call to the DB with a different order by clause. This means I need to create a DB connection, connect to DB, retrieve the results and read them from result set into a 2 dimensional array
    2) re-sort data in the 2D array populated during the initial call. This means I need to use java.util.Arrays.sort(my_2D_resultsArray, my_custom_comparator)
    Question is : which is more efficient? Number of entries retrieved can be anywhere from 0 to a few thousands (depending on other filters such as customer's country). My feeling is that option umber 2 is better, but I would like to get your opinion.
    Thank you!

    Good points! Thanks! I ran a test (see code below) and it takes less than a second to sort 2000 Strings and 2000 nulls. The only thing I ran the test at a UNIX prompt as oppose to from within app server (Weblogic). I expect the speed to be compatible though. Do you think that test was valid and tells us that sorting on the app server is probably faster than doing another SQL query?
    import java.io.*;
    import java.math.*;
    import java.util.*;
    import java.util.Arrays.*;
    public class Test {
      public static void main(String[] args) throws Exception {
        Test test = new Test();
        test.testSortingPerformance();
      public void testSortingPerformance() {
        Object[] objArray2 = new Object[]{};
        Vector v = new Vector();
        Date start, end;
        java.util.Random rd = new java.util.Random(2000);
        for (int i = 0; i < 2000; i++){
          v.add(new Object[]{new String("" + rd.nextInt())});
          v.add(new Object[]{null});
        objArray2 = v.toArray();
        Object[] innerObjArray2 = new Object[]{};
        MyComparator2 myComp = new MyComparator2();
        start = new Date();
        java.util.Arrays.sort(objArray2, myComp);
        end = new Date();
        for (int i = 0; i < objArray2.length; i++) {
          System.out.println();
          innerObjArray2 = (Object[])objArray2;
    for (int j = 0; j < innerObjArray2.length; j++) {
    System.out.print(innerObjArray2[j] + " ");
    System.out.println(v.size());
    System.out.println("Start " + start + " End " + end);
    import java.util.*;
    public class MyComparator2
    implements Comparator {
    //position in the inner array to use for comparison
    private int position = 0;
    //default empty constructor
    public MyComparator2() {
    //implement compare method
    public int compare(Object o1, Object o2) {
    Object[] strAr1 = (Object[]) o1;
    Object[] strAr2 = (Object[]) o2;
    if (strAr1[0] == null){
    if (strAr2[0] == null){
    return 0;
    else{
    return -1;
    else if (strAr2[0] == null){
    return 1;
    return ( (String) strAr1[0]).compareTo( (String) strAr2[0]);

  • Integrating iPlanet Web Server 6.0 with SunOne App Server 7.0

    I am experiencing problems integrating iPlanet Web Server 6.0 with SunOne App Server 7.0
    My magnus.conf is
    #ServerRoot /usr/iplanet/servers/https-test
    ServerID https-test
    ServerName sulev016.eur.gep.ge.com
    ErrorLog /usr/iplanet/servers/https-test/logs/errors
    PidLog /usr/iplanet/servers/https-test/logs/pid
    User root
    MtaHost localhost
    DNS off
    Security off
    ClientLanguage en
    AdminLanguage en
    DefaultLanguage en
    RqThrottle 128
    StackSize 131072
    CGIWaitPid on
    TempDir /tmp/https-test-ab0d7966
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn=load-types mime-types=mime.types
    Init fn="load-modules" shlib="/usr/iplanet/servers/bin/https/lib/libNSServletPlugin.so" funcs="NSServletEarlyInit,NSServletLateInit,NSServletNameTrans,NSServletService" shlib_flags="(global|now)"
    Init fn="NSServletEarlyInit" EarlyInit=yes
    Init fn="NSServletLateInit" LateInit=yes
    Init fn="load-modules" shlib="/usr/iplanet/servers/plugins/passthrough/bin/libpassthrough.so" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    ==========================================
    my obj.conf is
    <Object name=default>
    NameTrans fn="assign-name" from="(/OMS|/OMS/*)" name="passthrough"
    NameTrans fn="NSServletNameTrans" name="servlet"
    NameTrans fn="pfx2dir" from="/servlet" dir="/usr/iplanet/servers/docs/servlet" name="ServletByExt"
    NameTrans fn=pfx2dir from=/mc-icons dir="/usr/iplanet/servers/ns-icons" name="es-internal"
    NameTrans fn="pfx2dir" from="/manual" dir="/usr/iplanet/servers/manual/https" name="es-internal"
    NameTrans fn=document-root root="$docroot"
    PathCheck fn=unix-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html"
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service type="magnus-internal/jsp" fn="NSServletService"
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
    AddLog fn=flex-log name="access"
    </Object>
    <Object name=cgi>
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
    </Object>
    <Object name="servlet">
    ObjectType fn=force-type type=text/html
    Service fn="NSServletService"
    </Object>
    <Object name="jsp092">
    ObjectType fn="type-by-extension"
    ObjectType fn="change-type" type="magnus-internal/jsp092" if-type="magnus-internal/jsp"
    Service fn="NSServletService" type="magnus-internal/jsp092"
    </Object>
    <Object name="ServletByExt">
    ObjectType fn=force-type type=magnus-internal/servlet
    Service type="magnus-internal/servlet" fn="NSServletService"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough" Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://3.224.68.131:81"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The requests are not passing through to the app server when i try to access it through port 80.
    Presently I am testing my appln over port 81 on the app server.
    Thanks and Regards
    Vineet Guliani

    Each ObjectType and Service directive should begin on a new line. You appear to have placed two directives on a single line.

  • Problem with JDBC deploying to App Server 8.1

    Hi,
    I'm trying to deploy my application onto App Server PE 8.1, and it connects to an Oracle database. I created the connection as described in the Creator 2 tutorial, but when I attempt to ping I get the following error:
    [sunm][Oracle JDBC Driver]OS Authentication was requested, but is not supported by this Oracle Server.
    I supplied a username and password. Why is it trying to perform OS authentication and how to I make it stop?
    Thanks,
    Rick

    Quoting this from DataDirect JDBC Driver documentation
    http://media.datadirect.com/download/docs/jdbc/jdbcref/jdbcoracle.html#wp1001070
    If a user ID is not specified and the driver is running on a Windows platform, the driver uses Type 2 OS authentication when establishing a connectionIf you are deploying to bundled PE, all the datasource config would be automatically done for you.
    If you are deploying to a standalone PE, Sun JDBC Driver won't work with it. Only Creator Bundled PE and Sun AppServer StandardEdition & EnterpriseEditions can work with Sun JDBC Drivers.
    HTH,
    Sakthi

  • EJB not getting bound to JNDI name using Sun App Server upon deployment

    Hello,
    I've created a very simple "HelloWorld" EJB (2.1-style) and have successfully deployed it to my local application server (Sun Java System App Server Platform Edition 9.0). I now want to invoke the EJB (I have single stateless session bean that returns a string) using a simple remote client app (the client app is executing outside of the app server within its own JVM).
    From my client app I am able to create the InitialContext object, but I get error when trying to lookup my EJB's home object. My client looks as follows:
                   jndiProperties = new Properties();
                   jndiProperties.put("java.naming.factory.initial",
                        "com.sun.jndi.cosnaming.CNCtxFactory");
                   jndiProperties.put("java.naming.provider.url",
                        "iiop://localhost:3700"); // ORB listener is listening on port 3700...
                   context = new InitialContext(jndiProperties);
                   home = context.lookup("ejb/HelloWorldEJB"); // this line throws an exception (line 54)
                   ...The exception I receive is:
                   [java] 234  ERROR [main] net.blueslate.sample.ejb.helloworld.HelloWorldClient     - javax.namin
    g.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.
    org/CosNaming/NamingContext/NotFound:1.0]
         [java]     at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
         [java]     at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
         [java]     at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
         [java]     at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
         [java]     at net.blueslate.sample.ejb.helloworld.HelloWorldClient.main(HelloWorldClient.java:5
    4)
         [java] Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/Naming
    Context/NotFound:1.0
         [java]     at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72
         [java]     at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
         [java]     at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
         [java]     ... 4 moreHere is my ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar
         xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
         version="2.1">
         <enterprise-beans>
              <session>
                   <ejb-name>HelloWorldEJB</ejb-name>
                   <home>net.blueslate.sample.ejb.helloworld.HelloWorldRemoteHome</home>
                   <remote>net.blueslate.sample.ejb.helloworld.HelloWorldRemote</remote>
                   <local-home>net.blueslate.sample.ejb.helloworld.HelloWorldLocalHome</local-home>
                   <local>net.blueslate.sample.ejb.helloworld.HelloWorldLocal</local>
                   <ejb-class>net.blueslate.sample.ejb.helloworld.impl.HelloWorldImpl</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
         </enterprise-beans>
    </ejb-jar>Here is my sun-ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
    <sun-ejb-jar>
         <enterprise-beans>
              <ejb>
                   <ejb-name>HelloWorldEJB</ejb-name>
                   <jndi-name>HelloWorldEJB</jndi-name>
              </ejb>
         </enterprise-beans>     
    </sun-ejb-jar>I believe the root cause is that my EJB is not bound to a name within the app server. If I browse the "JNDI tree" from the app server admin console, I can see there is a root element "ejb," but there is nothing underneath. I guess I just expected to find the name of my EJB, "HelloWorldEJB." I swear I could have read somewhere in the documentation for the app server that when you deploy an EJB, the name of the EJB as specified by the "<ejb-name>" element of the ejb-jar.xml deployment descriptor gets automatically bound within the naming server to its home object.
    At this point I would appreciate any insight anyone might have regarding this problem. I suspect there is something extra I need to do when deploying my EJB so that its name gets binded to its home object; I just don't have a clue at this point what that is.
    I should also mention that I have played with the parameter passed to 'context.lookup()' - I tried passing: "ejb/HelloWorldEJB", "HelloWorldEJB", etc - nothing seems to work. FWIW, if I just pass in "ejb", I don't receive an exception (I was glad to see this work since the JNDI tree-view from the app server admin console shows "ejb" as one of the root-elements within the naming-tree - this indicated to me I was on the right track in my diagnosis of the problem; i.e., it's probably not a connectivity or protocol issue)
    Thank you very much for your time and help.

    Nevermind folks - I got it to work. All my configuration was correct; I had other issues with the ejb-jar file that the verifier informed me of (my previous deployments were with the verifier turned-off).

  • Grouping JMS & JDBC transaction with JTA outside of an app server

    hi,
    Can anyone help me or direct me to some code/configuration that shows how to combine JDBC + JMS into one distributed transaction outside of an app server.
    thanks in advance
    michael

    Hi,
              Well, transaction guru's please correct what I say here, but from what I
              understand of your problem here goes:
              If you begin a user transaction your are going to be starting a distributed
              transaction. That's the point of doing it, and hence that's why you have an
              XA. You have more than once resource participating in a transaction, and
              that is what UserTransaction was created for. You can't do it with a local
              transaction, which is for one resource only. I hope that answers "why
              would I need a XA". Even if both resources are hosted by WebLogic, you have
              explicitly asked for a UserTransaction...WL will optimize it if both are on
              same server, but still.. In addition, if you have a true XA data source and
              connection pool, then I would imagine that WL would list the transaction
              system of the DB too....whcih won't be local.
              As for your other problem, it seems to me that you have a connection pool of
              connections that are not XA-aware. If you set the attribute in the
              datasource and enable emulation, then the datasource becomes XA aware, but
              only sort of. WL handles the XA behaviour of that resource, but with
              limitations (you can't have more than one resource with XA emulation in the
              same Tx). If you are using a connection factory with a different store that
              uses XA-emulation, as well as straight JDBC from yet another pool using XA
              emulation, then you will also get problems. Best is to use a real driver
              that supports XA.
              Regards,
              Jon
              

  • Problem in integrating sunone webserver with websphere app server

    Hello all
    I am trying to integrate sunone6.0 webserver with websphere5.0 app server. I did the following changes in sunone6.0 config files
    1) Added one directive to the obj.conf file after "<Object name=default>":
    Service fn="as_handler"
    2) Added two directives to the end of the magus.conf file:
    Init fn="load-modules" funcs="as_init,as_handler,as_term" shlib="/opt/WebSphere/AppServer/bin/libns41_http.so"
    Init fn="as_init" bootstrap.properties="/opt/WebSphere/AppServer/config/cells/plugin-cfg.xml"
    Can any one of u tell me how to check whether sunone webserver is redirecting request to webshere app server?
    i tried this url https://sunonewebserver:80/webapps/examples but i was not getting any result of that url.

    You might want to check here http://developers.sun.com/prodtech/webserver/
    and here http://developers.sun.com/
    These have forums and articles devoted to specific Sun products

  • Sun One Studio 4 U1 to App server 7 integration

    I start the Application server 7 with the command line 'asadmin start-appserv' and everything seems to work fine. I can log on to the administration via http://localhost:4848/admin and see that the server1 instance has started and exists. I go back to the runtime tab in Sun ONE Studio and the the Server Registry has no entry for the SunOne App server. (I know it used to cause I deployed apps to it!) What happened? is there a way to 'Refresh' the Server Registry or the Installed Servers underneath?
    Any idea's would be appreciated
    Cam

    Thanks for all the information. What I had to do was this:
    (By the way this is with the Enterprise Try and Buy edition)
    After searching around I got to Options -> IDE Configuration -> System -> Modules -> J2EE support -> Sun One Application Server 7
    the properties had an Enabled = false. I couldn't set it to true though. SOoooo I registered (I thought I was already but ... ). I then went and Updated EVERYTHING under Sun ONE Studio. After this I still could not update this property so I went back and updated EVERYTHING under NetBeans (I think there was an Open API support module that I suspect was the one I had to update). After this I was able to set the property flag to true and voila! the Sun ONE application server was settable to true and it appeared in the Server Registry.
    There is still a slight nagging problem though
    When I set this to true however, it asked that I set a bunch of other things to true as well, (EJB Build, EJB Assembly, etc) While I don't know why it wouldn't set them up by itself it didn't. So after setting them to true the module icons appear with a red 'T' through them. I don't know what this means. ( I searched help for 'icons' 'T', etc, but didn't find anything). It seems to be working now though so that's good! I'll try to deploy a couple of applications and see what happens.
    Thanks for your help

  • Integration of Sun One Web Server 6.0 with Sun One App Server 7.0

    Is it possible to integrate Sun One Web Server 6.0 with the Sun One App Server 7.0??
    Sun One App Server 7.0 comes with the in-built HTTP listener. But we want to know if there is a way by which we can use the Sun One Web Server 6.0 with the App Server 7.0 and not the in-bulit HTTP listener?

    As suggested by you, I have used Sun ONE Application Server 7's plugin to connect the Sun ONE Web Server 6.0 with Sun ONE Application Server 7 as per the information given in Sun ONE Application Server 7 Administrator's Guide.
    I have added the plugin package to the webserver and added the following into the magnus.conf:
    Init fn="load-modules" shlib="C:/iPlanet/Servers/plugins/passthrough/passthrough.dll" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    and to the obj.conf
    NameTrans fn="assign-name" from="(/A2P2Test|/A2P2Test/*)" name="passthrough"
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://<application server http listener>"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The webserver starts up without any errors but never forwards any requests what might I be doing wrong?

Maybe you are looking for

  • Any hope for a bad DVD

    i have a dvd w/photos that won't load in my intel iMac or on 2 other macs a mac book and a G5. what's weird is i test every dvd before i erase photos from my computer and store them carefully. any thoughts on how to get the media from this disk? than

  • PSE 9 printing problem with Epson printer

    hello there, I am using PSE 9  with Windows XP and Epson 3880 printer. I have re-installed all programs/drivers a couple of times. PSE9 Printer dialogue will not let me print choosing "Let Photoshop Manage Colour".  It will only let me print with "Le

  • When I open up a new tab, why can't I type in the address bar?

    I downloaded Firefox 4.0 recently and every time I open a new tab, I am not able to type in the address bar. I have to open up multiple pages in my task bar rather than having them tabbed in one browser. This was happening to me when I was using the

  • Can't find how to adjust quality of clone tool

    I can't figure out how to adjust the quality of the clone tool, it has very large pixels now - can anyone help?

  • Cascading Dropdown Menu with O365 and InfoPath 2013

    Hello I'm trying to resolve a situation where I have 2 dropdown lists in an InfoPath form on SharePoint for O365. For example States and Cities, selecting State from DD1 displays the cities in that state in DD2. Should be fairly simple I know but unf