Skip to main content

Problem:

  • Product Name: Borland Appserver [BAS with OpenJMS option only]
  • Product Version: 6.6, 6.7
  • Product Component: Partition
  • Platform/OS version: All

The following error occurs when you try to create a new configuration by selecting "J2EE Sample" from "BAS 6.7 Example Configurations". The same error occurs even while cloning an existing "J2EE Sample" configuration.

Error type: com.borland.enterprise.management.api.ManagementAgentException
Thread: Thread[Click Button OK,6,main]
Stack trace:
 com.borland.enterprise.management.api.ManagementAgentException: Reference to non-existent managed object sgsgs-tss10/PetstorePartition in j2eeSample
 at com.borland.enterprise.management.api.impl.HubTransport.updateArchivedConfiguration(HubTransport.java:311)
 at com.borland.enterprise.management.api.impl.ManagementHub.updateArchivedConfiguration(ManagementHub.java:399)
 at com.borland.management.common.discovery.BesDiscovery.updateConfigurationArchive(BesDiscovery.java:1008)
 at com.borland.management.common.discovery.BesDiscovery.updateConfigurationArchive(BesDiscovery.java:998)
 at com.borland.management.bdoc.core.ui.CloneDialog.doCloneManagedObject(CloneDialog.java:642)
 at com.borland.management.bdoc.core.ui.CloneDialog.doClone(CloneDialog.java:564)
 at com.borland.management.bdoc.core.ui.CloneDialog.onSave(CloneDialog.java:834)
 at com.borland.jafa.ui.BasicDialog.onOk(BasicDialog.java:355)
 at com.borland.jafa.ui.FwButtonStrip.dispatch(FwButtonStrip.java:221)
 at com.borland.jafa.ui.FwButtonStrip$1.run(FwButtonStrip.java:248)
at java.lang.Thread.run(Thread.java:595)]

Resolution:

Defect Change Request CR7844 has already been filed for this bug. The issue can be addressed using the following simple workarounds.

Workaround for creating a new "J2EE Sample" configuration

1. Go to the directory of \\var\\templates\\configurations\\bes
2. Edit j2eeSample.xml file
3. Remove an entry of


file mo-ref="${partition.agent}/PetstorePartition" entry="adm/tomcat/conf/context.xml"    

file="${CONSOLE.current.template.path}/datadir/partition/tomcat/context.xml"

4. Then start BAS6.7 Management Agent and run management console. Now, try creating a new configuration by selecting "J2EE Sample" from "BAS 6.7 Example Configurations".

Workaround for cloning an existing "J2EE Sample" configuration

In order to clone the existing "J2eeSample" configuration, you need to remove an entry of - file mo-ref="${partition.agent}/PetstorePartition" - in the "J2eeSample" configuration we need to clone.

Here are the steps:
1. Run the Mangement console
2. Click on "J2eeSample" configuration node of the main Console"s Tree view.
3. Select the "XML" tab page on the bottom right hand side of the Console view.
4. In "XML" tab page view scroll the page until you find the entry of an entry of

file mo-ref="${partition.agent}/PetstorePartition" entry="adm/tomcat/conf/context.xml"    

file="${CONSOLE.current.template.path}/datadir/partition/tomcat/context.xml"

and then delete it.

Now, cloning of existing J2EE configuration can be done successfully.


#VisiBroker
#JMS
#partition
#Security