glassfish
  1. glassfish
  2. GLASSFISH-13873

If TS resource had been changed, tables are not created after server restart

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: future release
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Build 23 10/07. Solaris 10 Sparc. Installed thid build on one machine. Created a
      cluster with two instances. Then started a cluster. After that executed:
      #!/usr/bin/perl
      require "./conf.pl";

      $out=`$S1AS_HOME/bin/asadmin start-database`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin stop-cluster c1`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin set
      configs.config.c1-config.ejb-container.ejb-timer-service.timer-datasource=jdbc/__default`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin create-resource-ref --target c1 jdbc/__default`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin start-cluster c1`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin list-instances`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin deploy --target c1 --retrieve . ./timersession.ear`;
      print $out;
      $out=`$S1AS_HOME/bin/appclient -targetserver localhost:13700 -client
      ./timersessionClient.jar`;
      print $out;
      ================================================================

      The appclient was executed successfully.

      Then I've reinstalled everything and executed such sequence of the commands:
      ===================================================
      #!/usr/bin/perl
      require "./conf.pl";

      $out=`$S1AS_HOME/bin/asadmin start-database`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin deploy --target c1 --retrieve . ./timersession.ear`;
      print $out;
      $out=`$S1AS_HOME/bin/appclient -targetserver localhost:13700 -client
      ./timersessionClient.jar`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin undeploy --target c1 timersession`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin stop-cluster c1`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin set
      configs.config.c1-config.ejb-container.ejb-timer-service.timer-datasource=jdbc/__default`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin create-resource-ref --target c1 jdbc/__default`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin start-cluster c1`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin list-instances`;
      print $out;
      $out=`$S1AS_HOME/bin/asadmin deploy --target c1 --retrieve . ./timersession.ear`;
      print $out;
      $out=`$S1AS_HOME/bin/appclient -targetserver localhost:13700 -client
      ./timersessionClient.jar`;
      print $out;
      ================================================

      In this case not only seconf execution of the appclient totally failed, but also
      second deployment failed.

      I believe, if once TS did not start successfully and it is not running, then
      during next invoke, has be to cleaned everything and TS should be started again.
      I've restarted cluster, db, domain, tried to undeploy an app and deploy it
      again, but it did not help. So only a full uninstall helps to clean everything.
      I've attached timersession.ear and in1 server.log.

        Activity

        easarina created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 13873 45477
        marina vatkina made changes -
        Fix Version/s future release [ 11148 ]
        Fix Version/s 3.2 [ 10969 ]
        Scott Fordin made changes -
        Tags 3_1-exclude 3_1-release-notes 3_1-exclude 3_1-release-note-added 3_1-release-notes

          People

          • Assignee:
            marina vatkina
            Reporter:
            easarina
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: