You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Donald Woods (JIRA)" <de...@geronimo.apache.org> on 2006/01/11 23:27:19 UTC
[jira] Created: (GERONIMO-1455) System Modules portlet - Start of
CAR does not start its GBeans
System Modules portlet - Start of CAR does not start its GBeans
---------------------------------------------------------------
Key: GERONIMO-1455
URL: http://issues.apache.org/jira/browse/GERONIMO-1455
Project: Geronimo
Type: Bug
Components: console
Versions: 1.0
Environment: AG 1.0 on WinXP with Sun 1.4.2_08
Reporter: Donald Woods
Priority: Critical
Fix For: 1.0.1
Start AG 1.0 with Log4j logging set to Debug.
Login in to Console.
Open System Modules portlet.
Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
Shutdown server.
Start Server.
The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (GERONIMO-1455) Start of CAR does not load and start
its GBeans
Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=all ]
David Jencks closed GERONIMO-1455:
----------------------------------
Resolution: Fixed
After talking with Dain, he agrees the functions of the config list and attribute store need to be kept separate. I modified the test to assure this, cleaned up the trunk, and applied also to the 1.0 branch.
Trunk:
Sending system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Sending system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java
Transmitting file data ..
Committed revision 369915.
Sending system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java
Transmitting file data .
Committed revision 369917.
branch 1.0:
Sending system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Sending system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java
Transmitting file data ..
Committed revision 369914.
Sending system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java
Transmitting file data .
Committed revision 369919.
> Start of CAR does not load and start its GBeans
> -----------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: kernel
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Assignee: David Jencks
> Priority: Critical
> Fix For: 1.1, 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
> The same problem occurs with the command-line deployer. Using the start param, the CAR is loaded, but none of the GBeans are loaded or started until you stop and restart the server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-1455) System Modules portlet - Start of
CAR does not start its GBeans
Posted by "Ted Kirby (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=comments#action_12362654 ]
Ted Kirby commented on GERONIMO-1455:
-------------------------------------
The problem is independent of the console. Is easily recreateable from command-line deployer.
While geronimo/j2ee-corba/1.0/car appears to come up after any deployer start command, the gbeans inside will only activate if the configuration starts with the server.
For example, if they are started with the server, a stop followed by a start will not bring them back up.
> System Modules portlet - Start of CAR does not start its GBeans
> ---------------------------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: console
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Priority: Critical
> Fix For: 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (GERONIMO-1455) Start of CAR does not load and
start its GBeans
Posted by "Donald Woods (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=all ]
Donald Woods updated GERONIMO-1455:
-----------------------------------
Component: kernel
(was: console)
Summary: Start of CAR does not load and start its GBeans (was: System Modules portlet - Start of CAR does not start its GBeans)
Fix Version: 1.1
Description:
Start AG 1.0 with Log4j logging set to Debug.
Login in to Console.
Open System Modules portlet.
Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
Shutdown server.
Start Server.
The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
The same problem occurs with the command-line deployer. Using the start param, the CAR is loaded, but none of the GBeans are loaded or started until you stop and restart the server.
was:
Start AG 1.0 with Log4j logging set to Debug.
Login in to Console.
Open System Modules portlet.
Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
Shutdown server.
Start Server.
The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
Updated title and original description to denote that the failure occurs in the cmdline deployer too.
> Start of CAR does not load and start its GBeans
> -----------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: kernel
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Priority: Critical
> Fix For: 1.1, 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
> The same problem occurs with the command-line deployer. Using the start param, the CAR is loaded, but none of the GBeans are loaded or started until you stop and restart the server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (GERONIMO-1455) Start of CAR does not load and
start its GBeans
Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=all ]
David Jencks reassigned GERONIMO-1455:
--------------------------------------
Assign To: David Jencks (was: Dain Sundstrom)
> Start of CAR does not load and start its GBeans
> -----------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: kernel
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Assignee: David Jencks
> Priority: Critical
> Fix For: 1.1, 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
> The same problem occurs with the command-line deployer. Using the start param, the CAR is loaded, but none of the GBeans are loaded or started until you stop and restart the server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-1455) System Modules portlet - Start of
CAR does not start its GBeans
Posted by "Joe Bohn (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=comments#action_12362696 ]
Joe Bohn commented on GERONIMO-1455:
------------------------------------
I think the console is doing the right thing here based upon your comment David.
Here is the code from the ConfigManagerPortlet
if (START_ACTION.equals(action)) {
List list = configurationManager.loadRecursive(configID);
for (Iterator it = list.iterator(); it.hasNext();) {
URI uri = (URI) it.next();
configurationManager.loadGBeans(uri);
configurationManager.start(uri);
}
messageStatus = "Started application<br /><br />";
} else .....
There is also another comment indicating that the command line produces the same result.
> System Modules portlet - Start of CAR does not start its GBeans
> ---------------------------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: console
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Priority: Critical
> Fix For: 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-1455) System Modules portlet - Start of
CAR does not start its GBeans
Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=comments#action_12362676 ]
David Jencks commented on GERONIMO-1455:
----------------------------------------
It sounds like the console is calling the wrong method. To start the gbeans in a config, you need to call configurationManager.loadGBeans, then configurationManager.startGBeans.
> System Modules portlet - Start of CAR does not start its GBeans
> ---------------------------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: console
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Priority: Critical
> Fix For: 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-1455) Start of CAR does not load and
start its GBeans
Posted by "Donald Woods (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=comments#action_12362773 ]
Donald Woods commented on GERONIMO-1455:
----------------------------------------
Seems that this may be related to the new load="false" attribute support. Looking at the following file -
modules\system\src\java\org\apache\geronimo\system\configuration\ConfigurationOverride.java
if the attribute load="false" is found for a configuration in the config.xml, then this.load is set to false. This is used in file -
modules\system\src\java\org\apache\geronimo\system\configuration\LocalAttributeManager.java
if (!configuration.isLoad()) {
return Collections.EMPTY_LIST;
}
to not set any attributes or load any of the configurations GBeans, which is what we see happening in the logfile.
> Start of CAR does not load and start its GBeans
> -----------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: kernel
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Priority: Critical
> Fix For: 1.1, 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
> The same problem occurs with the command-line deployer. Using the start param, the CAR is loaded, but none of the GBeans are loaded or started until you stop and restart the server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (GERONIMO-1455) Start of CAR does not load and
start its GBeans
Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1455?page=all ]
David Jencks updated GERONIMO-1455:
-----------------------------------
Assign To: Dain Sundstrom
This is caused by confusing the functions of PersistentConfigurationList and ManageableAttributeStore in the LocalAttributeStore:
Index: modules/system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java
===================================================================
--- modules/system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java (revision 369113)
+++ modules/system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java (working copy)
@@ -71,8 +71,9 @@
localAttributeManager.removeConfiguration(configurationName.toString());
// should not load
- newDatas = new HashSet(localAttributeManager.setAttributes(configurationName, originalDatas, getClass().getClassLoader()));
- assertEquals(0, newDatas.size());
+// The next lines mix the "load" question with the "what attributes are overridden" question. Please answer them separately.
+// newDatas = new HashSet(localAttributeManager.setAttributes(configurationName, originalDatas, getClass().getClassLoader()));
+// assertEquals(0, newDatas.size());
}
public void testGBeanShouldLoad() throws Exception {
Index: modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
===================================================================
--- modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java (revision 369113)
+++ modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java (working copy)
@@ -104,9 +104,11 @@
if (configuration == null) {
return gbeanDatas;
}
- if (!configuration.isLoad()) {
- return Collections.EMPTY_LIST;
- }
+// IMO (DJ) the following lines mix the config.list and config.xml functionalities for no reason.
+// They also cause GERONIMO-1455
+// if (!configuration.isLoad()) {
+// return Collections.EMPTY_LIST;
+// }
// index the incoming datas
Map datasByName = new HashMap();
I've committed this fix to head:
Sending modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Sending modules/system/src/test/org/apache/geronimo/system/configuration/LocalAttributeManagerTest.java
Transmitting file data ..
Committed revision 369397.
Dain, do you have any problems with this? Do you want to add something to the test to replace the broken part? If not assign it to me (djencks) and I will clean it up and apply to 1.0.1
> Start of CAR does not load and start its GBeans
> -----------------------------------------------
>
> Key: GERONIMO-1455
> URL: http://issues.apache.org/jira/browse/GERONIMO-1455
> Project: Geronimo
> Type: Bug
> Components: kernel
> Versions: 1.0
> Environment: AG 1.0 on WinXP with Sun 1.4.2_08
> Reporter: Donald Woods
> Assignee: Dain Sundstrom
> Priority: Critical
> Fix For: 1.1, 1.0.1
>
> Start AG 1.0 with Log4j logging set to Debug.
> Login in to Console.
> Open System Modules portlet.
> Select Start for geronimo/j2ee-corba/1.0/car. It shows it as started in the Console and the state as Running in the logfile, but there is no output from CSSBean, SunORB or OpenEJB since the Server and UnprotectedServer GBeans were not actually started.
> Shutdown server.
> Start Server.
> The geronimo/j2ee-corba/1.0/car is started and port 1050 is now active.
> In the geronimo.log, there are now CSSBean, SunORB and OpenEJB log statements, since the Server and UnprotectedServer GBeans were loaded and started.
> The same problem occurs with the command-line deployer. Using the start param, the CAR is loaded, but none of the GBeans are loaded or started until you stop and restart the server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira