Configuring MySQL and Connector/J server

I now have a working Applet that, when run from the compiler, will retrieve and update a MySQL database. Unfortunately, when I run the same Applet in a web brower (on an Apache server), the Applet does not pass values to/from the MySQL database.
Is this a problem with my Applet or server? Any idea how to correctly set the server to utilize Connector/J and JDBC? Why is it working with the java console and JBuilder but not web browsers?
in case it helps:
Apache server
MySQL database
JBuilder compiler (applet works when run from here)
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.sql.*;
public class score
    extends JApplet {
  Container cp = getContentPane();
  JTextField fright = new JTextField(3);
  JTextField fleft = new JTextField(3);
  JButton refresh = new JButton("CheckDB");
  JButton left1 = new JButton("1");
  JButton left2 = new JButton("2");
  JButton left3 = new JButton("3");
  JButton left1m = new JButton("-1");
  JButton left2m = new JButton("-2");
  JButton left3m = new JButton("-3");
  JButton right1 = new JButton("1");
  JButton right2 = new JButton("2");
  JButton right3 = new JButton("3");
  JButton right1m = new JButton("-1");
  JButton right2m = new JButton("-2");
  JButton right3m = new JButton("-3");
  int lscore;
  int rscore;
  String l = ("");
  String r = ("");
  String updateString;
  Connection con = null;
  Statement st = null;
  ResultSet rs = null;
  public void init() {
    JPanel top = new JPanel();
    top.add(fleft);
    top.add(fright);
    top.add(refresh);
    JPanel right = new JPanel();
    right.add(right1);
    right.add(right2);
    right.add(right3);
    right.add(right1m);
    right.add(right2m);
    right.add(right3m);
    JPanel left = new JPanel();
    left.add(left1);
    left.add(left2);
    left.add(left3);
    left.add(left1m);
    left.add(left2m);
    left.add(left3m);
    top.setLayout(new FlowLayout());
    left.setLayout(new GridLayout(6, 1));
    right.setLayout(new GridLayout(6, 1));
    cp.setLayout(new BorderLayout());
    cp.add(top, BorderLayout.CENTER);
    cp.add(right, BorderLayout.EAST);
    cp.add(left, BorderLayout.WEST);
    right1.addActionListener(new ButtonListener());
    right2.addActionListener(new ButtonListener());
    right3.addActionListener(new ButtonListener());
    right1m.addActionListener(new ButtonListener());
    right2m.addActionListener(new ButtonListener());
    right3m.addActionListener(new ButtonListener());
    left1.addActionListener(new ButtonListener());
    left2.addActionListener(new ButtonListener());
    left3.addActionListener(new ButtonListener());
    left1m.addActionListener(new ButtonListener());
    left2m.addActionListener(new ButtonListener());
    left3m.addActionListener(new ButtonListener());
    refresh.addActionListener(new ButtonListener());
//                    LISTENERS/FUNCTIONS
  class ButtonListener
      implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      if (e.getSource() == refresh) {
        try {
      Class.forName("com.mysql.jdbc.Driver").newInstance();
      con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
        "root", "");
      st = con.createStatement();
      rs = st.executeQuery("SELECT score FROM score");
      int count = 0;
      while(rs.next()) {
        int g = rs.getInt(1);
        if (count == 0) {lscore = g;}
        if (count == 1) {rscore = g;}
        count++;
    } catch (Exception d) {
      System.err.println("Exception: " + d.getMessage());
    } finally {
      try {
        if(rs != null)
          rs.close();
        if(st != null)
          st.close();
        if(con != null)
          con.close();
      } catch (SQLException d) {
    l = String.valueOf(lscore);
    fleft.setText(l);
    r = String.valueOf(rscore);
    fright.setText(r);
      if (e.getSource() == left1) {
        lscore = lscore + 1;
        l = String.valueOf(lscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + l + " WHERE SIDE = 1";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fleft.setText(l);
      if (e.getSource() == left2) {
        lscore = lscore + 2;
        l = String.valueOf(lscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + l + " WHERE SIDE = 1";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fleft.setText(l);
      if (e.getSource() == left3) {
        lscore = lscore + 3;
        l = String.valueOf(lscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + l + " WHERE SIDE = 1";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fleft.setText(l);
      if (e.getSource() == left1m) {
        lscore = lscore - 1;
        l = String.valueOf(lscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + l + " WHERE SIDE = 1";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fleft.setText(l);
      if (e.getSource() == left2m) {
        lscore = lscore - 2;
        l = String.valueOf(lscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + l + " WHERE SIDE = 1";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fleft.setText(l);
      if (e.getSource() == left3m) {
        lscore = lscore - 3;
        l = String.valueOf(lscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + l + " WHERE SIDE = 1";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fleft.setText(l);
      if (e.getSource() == right1) {
        rscore = rscore + 1;
        r = String.valueOf(rscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + r + " WHERE SIDE = 2";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fright.setText(r);
      if (e.getSource() == right2) {
        rscore = rscore + 2;
        r = String.valueOf(rscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + r + " WHERE SIDE = 2";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fright.setText(r);
      if (e.getSource() == right3) {
        rscore = rscore + 3;
        r = String.valueOf(rscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + r + " WHERE SIDE = 2";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fright.setText(r);
      if (e.getSource() == right1m) {
        rscore = rscore - 1;
        r = String.valueOf(rscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + r + " WHERE SIDE = 2";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fright.setText(r);
      if (e.getSource() == right2m) {
        rscore = rscore - 2;
        r = String.valueOf(rscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + r + " WHERE SIDE = 2";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fright.setText(r);
      if (e.getSource() == right3m) {
        rscore = rscore - 3;
        r = String.valueOf(rscore);
        updateString = "UPDATE SCORE " +
        "SET SCORE = " + r + " WHERE SIDE = 2";
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                            "root", "");
          st = con.createStatement();
          st.executeUpdate(updateString);
        catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        finally {
          try {
            if (st != null) {
              st.close();
            if (con != null) {
              con.close();
          catch (SQLException d) {
        fright.setText(r);
}

Thanks for the info! Though I'm still confused about this:
There are two ways to deal
with this: (1) make sure your database is running on
the same server as Apache, or (2) sign your applet so
that the user can allow it to perform insecure
actions.The Apache and MySQL are running on the same machine so I don't see a problem with server access. How could I sign the applet to perform insecure actions?
Also, does the Connector/J installation method have anything to do with it? All I did was copied the .jar file to the dirctory in JBuilder and jsdk (ie: "C:\j2sdk1.4.1_02\jre\lib\ext\mysql-connector-java-3.0.15-ga-bin.jar") and set the CLASSPATH. I don't see a JDBC service running in my Apache monitor- could Apache not be configued to handle JDBC?
Thanks again!
PS: Oh yeah- heh- sorry about not using methods- this is just a quick weekend hack job ;-)

Similar Messages

  • Query regarding the Node manager configuration(WLS and OAM Managed server)

    Query regarding the Node manager configuration(WLS and OAM Managed server):
    1) In the nodemanager.properties I have added the ListenAddress:myMachineName and ListenPort: 5556
    My setup : One physical Linux machine(myMachineName) has : WLS admin server, managed server(OAM 11G) and nodemanager.No clustered environment.
    2) nodemanager.log has the following exception when I start the oam_server1 using EM(Enterprise Manager11g):
    Mar 23 2012 1:39:55 AM> <SEVERE> <Fatal error in node manager server>
    java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
    at java.net.ServerSocket.bind(ServerSocket.java:336)
    at javax.net.ssl.impl.SSLServerSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.<init>(ServerSocket.java:202)
    at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:125)
    at javax.net.ssl.impl.SSLServerSocketImpl.<init>(Unknown Source)
    at javax.net.ssl.impl.SSLServerSocketFactoryImpl.createServerSocket(Unknown Source)
    Default port on which node manager listen for requests is localhost:5556.I have changed it to point to my machine. The port should be of WLS admin server or it should be the managed server port?
    3) I have started the NodeManager using the startNodeManager.sh script.
    4) The admin server port is 7001 and the oam managed server port is 14100.
    Any inputs on what might be wrong in the setup will be helpful.Thanks !

    By using netstat -anp|grep 5556 you can check which process on your machine is using the 5556 port.

  • Configuring local and remote server mysql

    So I am loosing my mind a bit.  I have a local testing server and a remote server.  My local MAMP database works fantastic with my website.  I have a php script under a folder 'connections' labeled "localhost.php" that is used to as the connection to my MYSQL database.  I uploaded my entire site to a remote server, configured the remote database (000webhost.com) and for simplicity, just changed the configuration in the original 'localhost.php' to match the remote server database connection.  However, no matter how many times I try, I can't get it to connect!  When I go online to 000webhost.com and access the database, it is in fact functioning.  So the error is definitely in the connection.
    It seems that even though I specify the url for the host as mysql7.000webhost.com, I get an error indicating it cannot connect to the url.  The url has the address of my local server, followed by the remote server details.  I can't seem to change this and it is driving me nuts.  FTP works fine, just the database.  Any pointers?
    As a summary, here are the steps I made:
    clicked on "databases" window
    double clicked on my database name "local host"
    Changed the username, host, database, and password to EXACTLY what I was provided
    Clicked test and I receive "unidentified error occurred"
    http error 404 pops up with a url indicating it is attempting to route through the my local url first (localhost:8889)

    I believe it is specific to DW.  The odd thing is, I have been able to get it to work before.  It just randomly started failing
    Here is the error I get when I attempt to connect via DW.  As you can see, it looks like it is first trying to go through my local testing server (localhost:8888).  I don't want this but for the life of me can't figure out how to get it to route directly to the URL.
    What I enter to create the database connnection:
    The credentials provided (no password for obvious reasons)

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (p

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
    the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical details===================================
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Replace Quotes, Connection Pooling, and Sun Web Server with MySQL, Oracle

    This is code I use to insert data into my MySQL and Oracle databases.
    I takes care of quotes and shows use of context, i.e. when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to reply if you have questions on how to set up connection pooling using Sun Web Server 6.1SP - it took quite a long time to learn and I couldn't find much information throughout the web, so I hope this helps...
    This is not a question and I am not looking for an answer, but please post comments or suggestions.
    dailysun
    This is in one class where I have a hashtable containing the
    column name / value pairs that I want to enter into my table.
    This class simply creates the SQL string from the values in the
    hashtable. It then passes that hashtable including the database
    name to a class which executes that sql statement (second code
    portion).
    /* Insert data into sf_parts. Create the column strings from
             * the provided hash table. Be sure to parse out hash elements which
             * are used for the createTemplate process
            StringBuffer values = new StringBuffer();
            StringBuffer fields = new StringBuffer();
            Enumeration keys = fieldHash.keys();
            while(keys.hasMoreElements()){
                Object currentKey = keys.nextElement();
                    String fieldValue = (String) fieldHash.get(currentKey);
                    if(values.length() >0){
                        values.append(",");
                    values.append("'"+fieldValue.replaceAll("'","''")+"'"); // Takes care of quotes and various other special characters!
                    if(fields.length() >0){
                        fields.append(",");
                    fields.append(currentKey);
            sql = "INSERT INTO myTable (" + fields.toString() + ") VALUES (" + values.toString() + ");";
            String insertResult = caq.getInsertDelete(sql,"myDatabaseName"); // your database name is defined in web.xml and sun-web.xml when you use Sun Web Server's Connection Pooling.
            returnValue += "<br><br><b>Rows inserted into table(myTable): </b>" + insertResult + "<br>\n";
            And, like I describe above, this method executes the sql statement.
         * Takes care of insert, update and delete requests.
         * Must have set both dbName as well as the sql String.
         * Will return number of rows affected as String.
         * @return String Number of rows affected
         * @exception SQLException
         * @exception Exception
        public String getInsertDelete() {
            checkData(); // this simply checks if the variables dbName and sql are not empty ;-)
            InitialContext initContext = null;
            int rv = 0;
            try{
                // Get connection from configured pool
                initContext = new InitialContext();
                source = (DataSource) initContext.lookup("java:comp/env/jdbc/" + dbName); // I have this set up in web.xml and sun-web.xml (I use Sun Web Server 6.1SP which does connection pooling for me)
                conn = source.getConnection();
                if(conn != null){
                    stmt = conn.createStatement();
                    rv = stmt.executeUpdate(sql);
            }catch (SQLException e){
                // do something
            }catch (Exception e){
                // do something
            }finally{
                try{
                    stmt.close();
                }catch(Exception e){
                    // do something
                try{
                    conn.close();
                }catch(Exception e){
                    // do something
                try{
                    initContext.close();
                }catch(Exception e){
                    // do something
            return rv+"";
        }  

    This is code I use to insert data into my MySQL and
    Oracle databases.
    I takes care of quotes and shows use of context, i.e.
    when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to
    reply if you have questions on how to set up
    connection pooling using Sun Web Server 6.1SP - it
    took quite a long time to learn and I couldn't find
    much information throughout the web, so I hope this
    helps...
    This is not a question and I am not looking for an
    answer, but please post comments or suggestions.Using prepared statements would mean that you wouldn't have to worry about quotes.
    You should be closing the result set.
    You are handling all fields as strings. That won't work with time fields and might not work for numeric fields.
    Presumably most of your variables are member variables. They should be local variables because that is the scope of the usage.
    You must do something with the exceptions.
    Hashtables although convienent mean that problems with usage can only be resolved at run time rather than compile time.

  • Calendar server and address book server login fails with outlook connector

    Hi all,
    I have installed Java Communication Suite 5 according to the doc http://blogs.sun.com/factotum/resource/comms5-install-linux.html.
    When i deploy the connector i get the pop ups saying "Server:servername:3080
    Error:service not available" also
    "Server:servername:80/uwc"
    Error:service not available"
    asking to login to calendar server and address book server.Clicking "OK" allows install.
    In outlook i can send and receive mails but not the meeting requests.It gives the error "login to calendar server" when i create a meeting request.
    Please let me know what i have to do to get rid of the error.The username and passwd entered is correct.
    Regards,
    lmeenakshy

    Hi,
    When i deploy the connector i get the pop ups saying
    "Server:servername:3080
    Error:service not available" also Do you get exactly what you say above, or have you substituted in the real server name for "Server:servername:" above?
    I would check through the outlook connector deployment configuration to verify that you have inserted valid information into all of the host & port fields - perhaps check the .ini file that is created to see if it has "Server" and "servername" listed.
    "Server:servername:80/uwc"
    Error:service not available"You are able to log into UWC via the web-interface and access your calendar/pab and edit/modify/delete calendar & addressbook entries right? The services are all up?
    asking to login to calendar server and address book
    server.Clicking "OK" allows install.The outlook connector deployment software gives you the option to increase the logging level, try that and see what the logs say - what was it trying to connect to/check which failed.
    In outlook i can send and receive mails but not the
    meeting requests.It gives the error "login to
    calendar server" when i create a meeting request.
    Please let me know what i have to do to get rid of
    the error.The username and passwd entered is
    correct.I suspect this is more of an underlying configuration issue that needs to be sorted out, once that happens you shouldn't have to keep logging in.
    Regards,
    Shane.

  • How to configure AD on windows 2012 server for Exchange 2013 internal and external email flow

    Dear Experts,
    I have to configure exchange 2013 on Windows server 2012 STD. Company has registered Static IP addresses and can get the MX record pointing to any of this Static IP.  
    The registered domain name is e.g.  contoso.com. 
    a. What should I use as domain name on AD? contoso.com or contoso.local
    b. Is it recommended to have two different servers  for AD and Exchange?
    c. What should be my connector settings for mail flow?
    d. how can I set 2 email servers in company for load balancing?

    Hi,
    a, I suggest use contoso.com as domain name. It is convenient to add urls into our certificate for internal and external mail flow.
    b, Recommended that installing AD
    and Exchange Server on two separate
    Servers. If Exchange Server downed unfortunately, it can prevent AD server from crushing at the same time.
    c, Found some articles for your reference:
    Configure Mail Flow and Client Access
    http://technet.microsoft.com/en-us/library/jj218640(v=exchg.150).aspx
    Configuring Outbound Mail Flow in Exchange Server 2013
    http://exchangeserverpro.com/configuring-outbound-mail-flow-in-exchange-server-2013/
    d, Load Balancing
    http://technet.microsoft.com/en-us/library/jj898588(v=exchg.150).aspx
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Error configuring and starting Managed Server in WebLogic 10.3

    Hi,
    I am able to configure and start the Managed Server on windows environment. I am trying to configure Managed Server on linux environment. I am configuring the Managed Server with custom keystore. When I configured the Managed Server I specified the keystore/trustsote information in the Keystores tab of the Admin Console for Managed Server settings. Specified Private Key Alias, Password in SSL tab.But when I am starting the Managed Server from command line, I see the process looking for demo trust files and failing.
    Here is the command I run to start the Managed Server:
    ./startManagedWebLogic.sh MyManagedServer1 https://localhost.localdomain:8443
    Below is the console output:
    <Mar 11, 2015 12:37:44 PM PDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.45-b01 from Sun Microsystems Inc.>
    <Mar 11, 2015 12:37:45 PM PDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
    Enter username to boot WebLogic server:beaadmin
    Enter password to boot WebLogic server:
    <Mar 11, 2015 12:37:53 PM PDT> <Info> <Security> <BEA-090908> <Using default WebLogic SSL Hostname Verifier implementation.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /opt/wlserver_10.3/server/lib/DemoTrust.jks.>
    <Mar 11, 2015 12:37:53 PM PDT> <Error> <Security> <BEA-090132> <Could not open the keystore file /opt/wlserver_10.3/server/lib/DemoTrust.jks for read access. Exception: java.io.FileNotFoundException: /opt/wlserver_10.3/server/lib/DemoTrust.jks (No such file or directory)>
    <Mar 11, 2015 12:37:53 PM PDT> <Warning> <Security> <BEA-090164> <Failed to load trusted certificates from keystore /opt/wlserver_10.3/server/lib/DemoTrust.jks of type jks>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /opt/jre1.6.0_45/lib/security/cacerts.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 11, 2015 12:37:53 PM PDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 >
    <Mar 11, 2015 12:37:54 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:54 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:54 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:54 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:54 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:55 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:55 PM PDT> <Warning> <Security> <BEA-090477> <Certificate chain received from localhost.localdomain - 127.0.0.1 was not trusted causing SSL handshake failure.>
    <Mar 11, 2015 12:37:55 PM PDT> <Emergency> <Management> <BEA-141151> <The admin server could not be reached at https://localhost.localdomain:8443.>
    <Mar 11, 2015 12:37:55 PM PDT> <Info> <Configuration Management> <BEA-150018> <This server is being started in managed server independence mode in the absence of the admin server.>
    <Mar 11, 2015 12:37:55 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Mar 11, 2015 12:37:55 PM PDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Mar 11, 2015 12:37:55 PM PDT> <Notice> <LoggingService> <BEA-320400> <The log file /h/data/local/base_domain/servers/MyManagedServer1/logs/MyManagedServer1.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Mar 11, 2015 12:37:55 PM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /h/data/local/base_domain/servers/MyManagedServer1/logs/MyManagedServer1.log00015. Log messages will continue to be logged in /h/data/local/base_domain/servers/MyManagedServer1/logs/MyManagedServer1.log.>
    <Mar 11, 2015 12:37:55 PM PDT> <Notice> <Log Management> <BEA-170019> <The server log file /h/data/local/base_domain/servers/MyManagedServer1/logs/MyManagedServer1.log is opened. All server side log events will be written to this file.>
    <Mar 11, 2015 12:37:56 PM PDT> <Error> <Security> <BEA-000000> <[Security:090837]The configured keystore location for the PKI Credential Mapper is either null or empty.>
    <Mar 11, 2015 12:37:56 PM PDT> <Error> <Security> <BEA-000000> <[Security:090815]The password provided for the keystore configured for the PKICredential Mapper was null.>
    <Mar 11, 2015 12:37:57 PM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Mar 11, 2015 12:37:57 PM PDT> <Critical> <Security> <BEA-090403> <Authentication for user beaadmin denied>
    <Mar 11, 2015 12:37:57 PM PDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication for user beaadmin denied
    weblogic.security.SecurityInitializationException: Authentication for user beaadmin denied
            at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:966)
            at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
            at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
            at weblogic.security.SecurityService.start(SecurityService.java:141)
            at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
            Truncated. see log file for complete stacktrace
    Caused By: javax.security.auth.login.FailedLoginException: [Security:090303]Authentication Failed: User beaadmin weblogic.security.providers.authentication.LDAPAtnDelegateException: [Security:090295]caught unexpected exception
            at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:251)
            at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            Truncated. see log file for complete stacktrace
    >
    <Mar 11, 2015 12:37:57 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Mar 11, 2015 12:37:57 PM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Mar 11, 2015 12:37:57 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Why is it looking for demotrust.jks file to start the Managed Server. We don't use the demo trust and cannot copy to the location it is referring to. I followed the solution provided at the below link:
    http://serverfault.com/questions/106499/custom-trust-and-custom-identity-keystore-in-weblogic-10-3
    There are 2 options given in the link. To update the boot.properties of the Admin Server and appending JAVA_OPTIONS to DomainEnv file. Both of these caused the failure of Admin Server. I couldn't bring up the server after these changes.I also came across posts talking about boot.properties for Managed Server. I don't see the security folder that has boot.properties for my Managed Server (verified it on both windows and linux boxes).
    Thanks in advance.
    -nn.

    Hi Faisal,
    Here is the config.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <domain xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd"
            xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security"
            xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <name>JCRMDomain</name>
        <domain-version>10.3.4.0</domain-version>
        <security-configuration xmlns:xacml="http://xmlns.oracle.com/weblogic/security/xacml">
            <name>JCRMDomain</name>
            <realm>
                <sec:authentication-provider xsi:type="wls:default-authenticatorType">
                    <sec:control-flag>SUFFICIENT</sec:control-flag>
                </sec:authentication-provider>
                <sec:authentication-provider xmlns:ext="http://xmlns.oracle.com/weblogic/security/extension" xsi:type="ext:jcrm-authenticatorType">
                    <sec:name>JcrmAuthenticator</sec:name>
                    <sec:control-flag>SUFFICIENT</sec:control-flag>
                </sec:authentication-provider>
                <sec:role-mapper xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-role-mapperType"></sec:role-mapper>
                <sec:authorizer xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-authorizerType"></sec:authorizer>
                <sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>
                <sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>
                <sec:credential-mapper xsi:type="wls:pki-credential-mapperType">
                    <sec:name>PKICredentialMapper</sec:name>
                </sec:credential-mapper>
                <sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>
                <sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
                <sec:user-lockout-manager>
                    <sec:lockout-threshold>3</sec:lockout-threshold>
                    <sec:lockout-duration>15</sec:lockout-duration>
                    <sec:lockout-reset-duration>99999</sec:lockout-reset-duration>
                </sec:user-lockout-manager>
                <sec:deploy-role-ignored>false</sec:deploy-role-ignored>
                <sec:deploy-policy-ignored>false</sec:deploy-policy-ignored>
                <sec:fully-delegate-authorization>true</sec:fully-delegate-authorization>
                <sec:security-dd-model>DDOnly</sec:security-dd-model>
                <sec:combined-role-mapping-enabled>true</sec:combined-role-mapping-enabled>
                <sec:name>myrealm</sec:name>
                <sec:delegate-m-bean-authorization>false</sec:delegate-m-bean-authorization>
                <sec:password-validator xmlns:pas="http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator"
                                        xsi:type="pas:system-password-validatorType">
                    <sec:name>JCRMPasswordValidator</sec:name>
                    <pas:max-password-length>31</pas:max-password-length>
                    <pas:min-password-length>15</pas:min-password-length>
                    <pas:min-numeric-characters>2</pas:min-numeric-characters>
                    <pas:min-lowercase-characters>2</pas:min-lowercase-characters>
                    <pas:min-uppercase-characters>2</pas:min-uppercase-characters>
                    <pas:min-non-alphanumeric-characters>2</pas:min-non-alphanumeric-characters>
                </sec:password-validator>
                <sec:deployable-provider-synchronization-enabled>false</sec:deployable-provider-synchronization-enabled>
            </realm>
            <default-realm>myrealm</default-realm>
            <credential-encrypted>{AES}cpwhv2peqwl0Z8Ma1Jk7KlmC6d1gtCAqxnzrmR5ssybHpM9AUzbBRJ7rE7m4/7U16IHgsTMkcOr/5/abZJ4NeuHR45jdDK1EjFmnUuPssISmGkan3EIpCKHmPPIynVxh</credential-encrypted>
            <node-manager-username>wdUXiuwL5A</node-manager-username>
            <node-manager-password-encrypted>{AES}UDiZjaLOrm0y+/I9noQVURudpzmRKMBOQR2B8ofNIt8=</node-manager-password-encrypted>
        </security-configuration>
        <server>
            <name>AdminServer</name>
            <max-http-message-size>10000000</max-http-message-size>
            <ssl>
                <name>AdminServer</name>
                <enabled>true</enabled>
                <hostname-verifier xsi:nil="true"></hostname-verifier>
                <hostname-verification-ignored>true</hostname-verification-ignored>
                <client-certificate-enforced>false</client-certificate-enforced>
                <listen-port>8443</listen-port>
                <two-way-ssl-enabled>true</two-way-ssl-enabled>
                <server-private-key-alias>localhost.localdomain</server-private-key-alias>
                <server-private-key-pass-phrase-encrypted>{AES}eZnL/NM4/xJaFj8rZAE4oB2htDm3srPUsTWYtDXblvk=</server-private-key-pass-phrase-encrypted>
                <ssl-rejection-logging-enabled>true</ssl-rejection-logging-enabled>
                <allow-unencrypted-null-cipher>false</allow-unencrypted-null-cipher>
                <use-server-certs>true</use-server-certs>
                <jsse-enabled>true</jsse-enabled>
            </ssl>
            <listen-port-enabled>false</listen-port-enabled>
            <web-server>
                <keep-alive-secs>60</keep-alive-secs>
                <https-keep-alive-secs>60</https-keep-alive-secs>
            </web-server>
            <listen-address/>
            <java-compiler>javac</java-compiler>
            <tunneling-enabled>true</tunneling-enabled>
            <tunneling-client-ping-secs>45</tunneling-client-ping-secs>
            <tunneling-client-timeout-secs>40</tunneling-client-timeout-secs>
            <client-cert-proxy-enabled>false</client-cert-proxy-enabled>
            <key-stores>CustomIdentityAndCustomTrust</key-stores>
            <custom-identity-key-store-file-name>certstores/keystore</custom-identity-key-store-file-name>
            <custom-identity-key-store-type>JKS</custom-identity-key-store-type>
            <custom-identity-key-store-pass-phrase-encrypted>{AES}eZnL/NM4/xJaFj8rZAE4oB2htDm3srPUsTWYtDXblvk=</custom-identity-key-store-pass-phrase-encrypted>
            <custom-trust-key-store-file-name>certstores/truststore</custom-trust-key-store-file-name>
            <custom-trust-key-store-type>JKS</custom-trust-key-store-type>
            <custom-trust-key-store-pass-phrase-encrypted>{AES}uSkLzfC74bMCEjomgVdHtVw47iZg8BN71g7cdKr+XHo=</custom-trust-key-store-pass-phrase-encrypted>
        <overload-protection>
          <panic-action>system-exit</panic-action>
          <failure-action>force-shutdown</failure-action>
          <server-failure-trigger>
            <max-stuck-thread-time>600</max-stuck-thread-time>
            <stuck-thread-count>3</stuck-thread-count>
          </server-failure-trigger>
        </overload-protection>
        </server>
        <server>
          <name>MyManagedServer1</name>
          <ssl>
            <enabled>true</enabled>
            <listen-port>8445</listen-port>
            <server-private-key-alias>localhost.localdomain</server-private-key-alias>
            <server-private-key-pass-phrase-encrypted>{AES}eZnL/NM4/xJaFj8rZAE4oB2htDm3srPUsTWYtDXblvk=</server-private-key-pass-phrase-encrypted>
          </ssl>
          <machine xsi:nil="true"></machine>
          <listen-port>8444</listen-port>
          <listen-port-enabled>true</listen-port-enabled>
          <cluster xsi:nil="true"></cluster>
          <web-server>
            <web-server-log>
              <number-of-files-limited>false</number-of-files-limited>
            </web-server-log>
          </web-server>
          <listen-address></listen-address>
          <key-stores>CustomIdentityAndCustomTrust</key-stores>
          <custom-identity-key-store-file-name>certstores/keystore</custom-identity-key-store-file-name>
          <custom-identity-key-store-type>JKS</custom-identity-key-store-type>
          <custom-identity-key-store-pass-phrase-encrypted>{AES}eZnL/NM4/xJaFj8rZAE4oB2htDm3srPUsTWYtDXblvk=</custom-identity-key-store-pass-phrase-encrypted>
          <custom-trust-key-store-file-name>certstores/truststore</custom-trust-key-store-file-name>
          <custom-trust-key-store-type>JKS</custom-trust-key-store-type>
          <custom-trust-key-store-pass-phrase-encrypted>{AES}uSkLzfC74bMCEjomgVdHtVw47iZg8BN71g7cdKr+XHo=</custom-trust-key-store-pass-phrase-encrypted>
          <data-source>
            <rmi-jdbc-security xsi:nil="true"></rmi-jdbc-security>
          </data-source>
        </server>
        <production-mode-enabled>false</production-mode-enabled>
        <embedded-ldap>
            <name>JCRMDomain</name>
            <credential-encrypted>{AES}LNAnq4qCQQmy9rCOMN+uIZVPq1bVvPrwQqqtOScZrnYmwESt9aruHNVy4IjqMWz7</credential-encrypted>
        </embedded-ldap>
        <administration-port-enabled>true</administration-port-enabled>
        <configuration-version>10.3.4.0</configuration-version>
        <admin-server-name>AdminServer</admin-server-name>
    </domain>
    It has 'CustomIdentityAndCustomTrust' for both Admin Server as well as managed Server in it.
    Thanks,
    nn

  • After restoring SharePoint farm backup ( The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connection)

    Hi,
    I have taken farm back and restore it in new UAT environment, while access to the main site getting the below error: 
    Error  
    An unexpected error has occurred. 
    Troubleshoot issues with Microsoft SharePoint Foundation. 
    Correlation ID: 866476f3-23dd-4e1e-97af-bffc62cc2d57 
    Date and Time: 7/15/2014 11:26:35 AM 
    When i checked in log i got below error
    System.Data.SqlClient.SqlException: A network-related or instance-specific
    error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40
    - Could not open a connection to SQL Server)    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj)     at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecu... 
    Thanks in advance
    Said Al Balushi

    Hi Wendy,
    i have checked all below points, every thing is fine but still i am getting the same error.
    Check SQL services are runing
    Check remote conenctions are enabled
    Check SQL Browser service is runing
    Check TCP/IP protocal enabled at SQL server
    Check out windows firewall setting
    Thanks,
    Said
     

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
    server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26- Error:Locating Server\instance Specified)
    How Can i solve this?

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Configure client and server

    Hi ,
    Iam trying to configure client and server on OEL5.5 on vmware server i ahve 2 virtual machines which are on network i want to make one machine as server and another as client so on server machine i have a database called as SERVER and iam creating a listerner for it and my listener is created i chked my listener.ora files but on termianal when i execute
    LSNRCTL> STATUS LISTENER1
    TNS-01101: Could not find service name
    LSNRCTL>
    LSNRCTL> START LISTENER1
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener1.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g.home.com)(PORT=2525)))
    TNS-12542: TNS:address already in use
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    Linux Error: 98: Address already in use
    Listener failed to start. See the error message(s) above...
    and copying and pasting the contents of listener.ora file
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 2525))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    SID_LIST_LISTENER1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = server)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (SID_NAME = server)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 1521))
    so as there is only 2 listeners on my machine named as listener which listens at 1521(default) and another which i created listener2 listens as 2525
    so please help me and let me know where iam going wrong
    Thanks in advance ....
    with Regards
    Kavita

    user12665759 wrote:
    Hi ,
    Iam trying to configure client and server on OEL5.5 on vmware server i ahve 2 virtual machines which are on network i want to make one machine as server and another as client so on server machine i have a database called as SERVER and iam creating a listerner for it and my listener is created i chked my listener.ora files but on termianal when i execute
    LSNRCTL> STATUS LISTENER1
    TNS-01101: Could not find service name
    LSNRCTL>
    LSNRCTL> START LISTENER1
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener1.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g.home.com)(PORT=2525)))
    TNS-12542: TNS:address already in useThose last two lines tell the tale. Something else is running on port 2525. Why are you trying to use that port for your listener?
    Use netstat to find out what process is using the port.
    And as a follow-up, why configure two listeners?
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    Linux Error: 98: Address already in use
    Listener failed to start. See the error message(s) above...
    and copying and pasting the contents of listener.ora file
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 2525))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    SID_LIST_LISTENER1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = server)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (SID_NAME = server)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g.home.com)(PORT = 1521))
    so as there is only 2 listeners on my machine named as listener which listens at 1521(default) and another which i created listener2 listens as 2525
    so please help me and let me know where iam going wrong
    Thanks in advance ....
    with Regards
    Kavita

  • Do I have to disable DHCP in router and configure DHCP role in essential server to make connection with internet

    hi,
    'do I have to enable DHCP role on essential server just like sbs server to configure internet and domain name , or that is not really necessary , the router dhcp is enough toconfigure essential server!
    thanks
    johan
    h.david

    The router DHCP is enough to use Essentials server. Essentials is designed to work with router dhcp out of the box, but you can choose to install DHCP role on server if you like. If you decide to do that, check the blog post from
    here: http://blogs.technet.com/b/sbs/archive/2013/04/22/running-dhcp-server-on-windows-server-2012-essentials.aspx
    Also check the Essentials documentation for more details from here:
    http://technet.microsoft.com/en-us/library/cc514417.aspx

  • Change/Configure Host and Port for the Web Service Proxy with Server

    Hi,
    Is there a way to configure Host and Port in generated proxy for Web service depending upon server. (ADF 11g)
    Scenario:
    We are consuming Credit Card web service from a service provider and have different Host and Port details for development, QA and Prod.
    So we created proxy classes using wsdl for development and things work fine, but when deploying code to QA or Prod we need to change the Host
    and Port details.
    Is their a way we could user variable's for Host and Port which looks to some configuration file to evaluate their values
    based on server.
    I am a bit new to this web service .. will appreciate if someone could provide an example.
    Thanks.

    Are you using Web Service Proxy or Web Service Data Control?
    If you are using Web Service Proxy. Right click on your Proxy --> Properties --> Port Endpoints. Here you can change the IP & Port details for each port.
    Venkat

  • OS X 10.4.11 Server - configured name and reverse DNS do not match / DNS

    Hi all,
    I have looked for similar posts but all seem to have different scenarios, hoping to get an answer from someone more experienced than myself before I do anything silly.
    Help much appreciated!
    Scenario:
    We run a 10.4.11 OS X Server on an XServe, hosted at an ISP. ISP provides all DNS services, incl. the reversed DNS entry.
    I am currently only running the following services (based on the display in ServerAdmin):
    AFP
    Firewall
    iChat
    Mail
    QuickTimeStreaming
    Web
    All others (incl. DNS) are grayed out. (As ISP instructed us not to add a DNS service on our box, that's "normal" according to my experiences with dedicated /co-location server hosting).
    We never used changeip after the initial setup, meaning the server's
    Current Hostname = somename.local and
    DNS Hostname = mail.ourdomainname.net
    So in system.log I find this re-occuring entry:
    Jul 8 11:41:22 somename servermgrd: servermgr_dns: configured name and reverse DNS name do not match (somename.local != mail.ourdomainname.net), various services may not function properly - use changeip to repair and/or correct DNS
    Finally, my question:
    As Mail and Web services etc. are currently running OK from what I can tell,
    1) do I HAVE to change this at all?
    2) Would it be much better / why?
    3) Could I change this using the following command
    (111.11.111.1 indicating the server's IP address)
    changeip 111.11.111.1 111.11.111.1 somename.local mail.ourdomainname.net
    4) without running a DNS server on the machine, i.e. DNS service is not required for this to work?
    5) obviously I want to be able to use Server Admin after I issue this command...
    6) can I fall back easily in case this would screw it up, or is there no risk whatsoever doing this in my case?
    THANK YOU so much for any help!

    Hi Jonas
    If port 443 is already being used on the same box as KMS then it will complain and probably not start the service? I've seen this with LDAP port 636. This is when Kerio is installed on a server configured as an OD Master. Clearly the port can't be used by both servers.
    It might be easier to change the port your sites are currently using to something else? Although don't do anything yet. Pose the question to Kerio Support and see what advice they offer.
    Yes moving the mail to a local folder on the mail client will do it.
    Is Kerio going on the same box? If its a different box (presumably different IP address?) Then what you can do is to port forward to the new server's IP address instead of disabling it. This way while you are bringing the new server on line users can still send mail right up until the time you give instructions on changing their inbound/outbound mail server details. Of course they won't be able to receive but if you time it right they may not even get an error message? Depends on what their schedules are.
    If it was me I would choose IMAP every time. As the mail admin you have full control and a central location for easy backup. KMS has a built in archiving feature that makes this a simple process. This is an easier option than going round individual client machines and making sure mail held locally in POP accounts are backed up. Besides there is always someone who falls through the loop and I'm not taking into account drive failures. It makes good sense anyway as there is talk of legislation being introduced to make this a requirement for businesses who run their own mail servers. This is certainly true for certain parts of the US and what usually happens there is generally taken up in the UK and most parts of Europe.
    Kerio's WebMail Client means users don't even have to have their own computer. Just as long as they have access to one that has access to the internet they can send/receive mail. No need for dedicated mail applications such as Apple Mail, Thunderbird, Entourage etc. How mail is uses remains consistent for all users.
    Yes. I did this not so long ago with Leopard's built in Mail Server. I sent an e-mail defining a time when no inbound mail would be received. Disabled port forwarding for SMTP port 25 and approx 30 minutes after that another mail stating no outbound mail should be sent. Once everything was swopped over (we were changing from a G4 10.4 server to a G5 10.5 Server) port 25 was enabled, new server brought online and everyone was mailing again with no appreciable downtime.
    These boxes were to have the same IP address hence the slightly different approach.
    Does this help?
    Tony

  • Windows Azure Pack setup - 500 Internal Server Error - failed to configure databases and services

    Hi,
    I am trying to setup the Windows Azure pack to use the site to configure the Service bus 1.1 installation. When I try to configure the Windows Azure Pack I get the following error:
    Admin Authentication Site
    500 Internal Server Error - Failed to configure databases and services: Object reference not set to an instance of an object.
    I'm not sure where the logs are to see what is causing this error. I have tried running as admin, running as a different user with no luck.
    thanks,
    Georgi
    Georgi

    Here's what I'm getting for this error:
    Log Name:      Microsoft-WindowsAzurePack-MgmtSvc-ConfigSite/Operational
    Source:        Microsoft-WindowsAzurePack-MgmtSvc-ConfigSite
    Date:          3/27/2014 12:52:03 PM
    Event ID:      103
    Task Category: (65431)
    Level:         Error
    Keywords:      None
    User:          CLINICALSYSTEMS\Administrator
    Computer:      SERVER-PC.clinicalsystems.com
    Description:
    ##### Application_Error: Exception=System.Web.HttpException (0x80004005): Failed to configure databases and services: Object reference not set to an instance of an object. ---> System.Management.Automation.CmdletInvocationException: Object reference not
    set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.AddUserToGroup(GroupPrincipal group, UserPrincipal user)
       at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.ConfigureDefaultTrusts()
       at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.ConfigureClaimSecurity(Hashtable settings)
       at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.ConfigureCore(Hashtable settings)
       at Microsoft.WindowsAzure.Config.PowerShell.Configurer.FeatureConfigurer.Configure(Hashtable settings)
       at Microsoft.WindowsAzure.Server.PowerShell.Common.BaseCmdlet.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
       --- End of inner exception stack trace ---
       at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
       at Microsoft.MgmtSvc.Config.Controllers.PowerShell.PSClient.RunCommand(Command command)
       at Microsoft.MgmtSvc.Config.Controllers.PowerShell.ConfigurationPSClient.InitializeFeature(String name, Hashtable settings)
       at Microsoft.MgmtSvc.Config.Controllers.ConfigurationController.<>c__DisplayClass3.<ConfigureFeature>b__0()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.MgmtSvc.Config.Controllers.ConfigurationController.<ConfigureFeature>d__5.MoveNext()
       at Microsoft.MgmtSvc.Config.Controllers.ConfigurationController.<ConfigureFeature>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at lambda_method(Closure , Task )
       at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3f.<BeginInvokeAsynchronousActionMethod>b__3e(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar).
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-ConfigSite" Guid="{1F742CC8-BDAA-56B6-A4B8-49F946D19CD1}" />
    <EventID>103</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>65431</Task>
    <Opcode>0</Opcode>
    <Keywords>0x0</Keywords>
    <TimeCreated SystemTime="2014-03-27T16:52:03.223741300Z" />
    <EventRecordID>111</EventRecordID>
    <Correlation />
    <Execution ProcessID="8068" ThreadID="7680" />
    <Channel>Microsoft-WindowsAzurePack-MgmtSvc-ConfigSite/Operational</Channel>
    <Computer>SERVER-PC.clinicalsystems.com</Computer>
    <Security UserID="S-1-5-21-3021050346-1670805799-1320812125-500" />
    </System>
    <EventData>
    <Data Name="exceptionInfo">System.Web.HttpException (0x80004005): Failed to configure databases and services: Object reference not set to an instance of an object. ---&gt; System.Management.Automation.CmdletInvocationException: Object reference not set to an instance of an object. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.AddUserToGroup(GroupPrincipal group, UserPrincipal user)
    at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.ConfigureDefaultTrusts()
    at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.ConfigureClaimSecurity(Hashtable settings)
    at Microsoft.WindowsAzure.Config.PowerShell.Configurer.CustomTokenServiceConfigurer.ConfigureCore(Hashtable settings)
    at Microsoft.WindowsAzure.Config.PowerShell.Configurer.FeatureConfigurer.Configure(Hashtable settings)
    at Microsoft.WindowsAzure.Server.PowerShell.Common.BaseCmdlet.ProcessRecord()
    at System.Management.Automation.CommandProcessor.ProcessRecord()
    --- End of inner exception stack trace ---
    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
    at Microsoft.MgmtSvc.Config.Controllers.PowerShell.PSClient.RunCommand(Command command)
    at Microsoft.MgmtSvc.Config.Controllers.PowerShell.ConfigurationPSClient.InitializeFeature(String name, Hashtable settings)
    at Microsoft.MgmtSvc.Config.Controllers.ConfigurationController.&lt;&gt;c__DisplayClass3.&lt;ConfigureFeature&gt;b__0()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.MgmtSvc.Config.Controllers.ConfigurationController.&lt;ConfigureFeature&gt;d__5.MoveNext()
    at Microsoft.MgmtSvc.Config.Controllers.ConfigurationController.&lt;ConfigureFeature&gt;d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at lambda_method(Closure , Task )
    at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass3f.&lt;BeginInvokeAsynchronousActionMethod&gt;b__3e(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass37.&lt;&gt;c__DisplayClass39.&lt;BeginInvokeActionMethodWithFilters&gt;b__33()
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass4f.&lt;InvokeActionMethodFilterAsynchronously&gt;b__49()
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass37.&lt;BeginInvokeActionMethodWithFilters&gt;b__36(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass25.&lt;&gt;c__DisplayClass2a.&lt;BeginInvokeAction&gt;b__20()
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass25.&lt;BeginInvokeAction&gt;b__22(IAsyncResult asyncResult)
    at System.Web.Mvc.Controller.&lt;&gt;c__DisplayClass1d.&lt;BeginExecuteCore&gt;b__18(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncResultWrapper.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar)
    at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncResultWrapper.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar)
    at System.Web.Mvc.MvcHandler.&lt;&gt;c__DisplayClass8.&lt;BeginProcessRequest&gt;b__3(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncResultWrapper.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar)
    at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)</Data>
    </EventData>
    </Event>
    Kori Francis Lead Software Developer Clinical Support Systems, Inc.

Maybe you are looking for

  • Black Screen with Cursor (Tried most solutions)

    To save your time and mine, I’ve tried all options in “press f8” and “recovery disk”. Over the past 3 days, I read almost all threads, videos, articles, and official MS help containing any mention of this problem. I also applied many commands, create

  • WD passport external hard drive won't mount

    I just purchased a Western Digital Pasport 60GB USB portable hard drive - which stated was Mac compatible on the packaging - hooked it up and nada....won't mount! Doesn't show up on Disk Utility - can't find anything on the WD support site.... It doe

  • Adobe Application Manager creating problems:  Subscriber, running windows vista

    Hi I want to install the new creative suite (v6). went to download site for apps, and tried installing the application manager.  It just stalled towards the end.  Had to force quit. Restarted my computer, clicked on the exe file for application  mana

  • Why won't my new Macbook Pro boot from old cloned macbook 10.6

    Just got my new Macbook Pro 10.8 up and running and used Migration Assistant to bring over all my files from an old Macbook 10.6 which has a faltering GPU. One of the audio apps I brought over needs a new authorization / unlock, and so, while I wait

  • Help - Screen brightness is very low

    Hello all, I am having problems with my touchsmart.  The screen brightness is very low and I can't see anything unless I have a flashlight.  The brightness is already at 100%.  A couple of things I noticed.  When my computer is in sleep mode and I mo