Topic
  • 5 replies
  • Latest Post - ‏2009-12-22T02:27:49Z by SystemAdmin
SystemAdmin
SystemAdmin
33 Posts

Pinned topic Data Studio Admin Console can not be started on Linux

‏2009-12-16T17:54:39Z |
Hi There,

I got an error when start admin console on Linux, I am able to stop and sart console server. startConsole.sh gave the error.
root@tails bin# ./itmcmd server stop TEMS_DSAC
..
root@tails bin# ./stopConsole.sh
...
root@tails bin# ./itmcmd server start TEMS_DSAC
..
root@tails bin# ./startConsole.sh....


Look at the trace file trace-log-0.xml, we can see there are two errors
the first one:

SEVERE CLWAA10529E : Cannot find {0}ibm-portal-topology.xml/ibm-portal-security.xml


The second one:

An error occurred while automatically activating bundle org.apache.derby.core (26).
org.osgi.framework.BundleException: The activator org.apache.derby.osgi.EmbeddedActivator for bundle org.apache.derby.core is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:962)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:342)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:88)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)
at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:383)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:112)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:296)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:372)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:380)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:388)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:393)
at org.springframework.jdbc.core.JdbcTemplate.queryForInt(JdbcTemplate.java:402)
at com.ibm.data.tools.shared.persistence.ConfigurationDatabaseService.doesTableExist(ConfigurationDatabaseService.java:183)
at com.ibm.data.tools.shared.persistence.ConfigurationDatabaseService.isDatabaseInitialized(ConfigurationDatabaseService.java:206)
at com.ibm.data.tools.shared.persistence.ConfigurationDatabaseService.setJdbcTemplate(ConfigurationDatabaseService.java:251)
at com.ibm.data.tools.common.controller.DataToolsConsoleInitListener.contextInitialized(DataToolsConsoleInitListener.java:98)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1333)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:268)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:252)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:121)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:138)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:440)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:413)
at com.ibm.pvc.internal.webcontainer.trackers.WebApplicationServiceTracker.addingService(WebApplicationServiceTracker.java:102)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1014)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:875)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:282)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:221)
at com.ibm.pvc.internal.webcontainer.trackers.XMLParserServiceTracker.initializeTrackers(XMLParserServiceTracker.java:504)
at com.ibm.pvc.internal.webcontainer.trackers.XMLParserServiceTracker.startWebcontainer(XMLParserServiceTracker.java:230)
at com.ibm.pvc.internal.webcontainer.trackers.XMLParserServiceTracker.addingService(XMLParserServiceTracker.java:139)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1014)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:875)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:282)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:221)
at com.ibm.pvc.internal.webcontainer.WebContainerActivator.start(WebContainerActivator.java:46)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:991)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:985)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:966)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:342)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:88)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
at com.ibm.rcp.internal.util.BundleManager.start(BundleManager.java:118)
at com.ibm.rcp.internal.util.BundleManager.start(BundleManager.java:220)
at com.ibm.rcp.lifecycle.internal.application.BundleControlImpl.start(BundleControlImpl.java:127)
at com.ibm.rcp.lifecycle.internal.application.BundleControlImpl.start(BundleControlImpl.java:108)
at com.ibm.rcp.lifecycle.application.BundleControl.start(BundleControl.java:89)
at com.ibm.lwi.application.LWIApplication.run(LWIApplication.java:70)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
at com.ibm.lwi.LaunchLWI$1.run(LaunchLWI.java:646)
Caused by: java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.BundleLoader.getLoaderProxy(BundleLoader.java:240)
at org.eclipse.osgi.framework.internal.core.BundleLoader.createExportPackageSource(BundleLoader.java:212)
at org.eclipse.osgi.framework.internal.core.BundleLoader.addImportedPackages(BundleLoader.java:203)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findImportedSource(BundleLoader.java:868)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:371)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:134)
... 87 more


Could tell me how t resolve these two errors.
thanks!!
Updated on 2009-12-22T02:27:49Z at 2009-12-22T02:27:49Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    33 Posts

    Re: Data Studio Admin Console can not be started on Linux

    ‏2009-12-17T15:24:44Z  
    Seems this problem leads by the locked derby database. If you are in test envirament, you can try to restart the computer, otherwise you can check the process which locks the derby and kill it then try again.
  • SystemAdmin
    SystemAdmin
    33 Posts

    Re: Data Studio Admin Console can not be started on Linux

    ‏2009-12-17T15:59:45Z  
    Seems this problem leads by the locked derby database. If you are in test envirament, you can try to restart the computer, otherwise you can check the process which locks the derby and kill it then try again.
    Hi David,

    Thanks for your reply.

    This machine is used by some other applications (DB2 and WAS), I can not restart it at this time.

    Could you give a little detail how to find the process locking derby database ?

    When I ran ./startConsole.sh..it hangs on osgi prompt and return above error in trace file. There is only one kdsmain and cms process respectively which I think it is correct. There is alos a monitoring agent process kuddb2, will monitor agent process lock derby database ? This does not make sense as monitoring agent is running on DB2 server side and derby database is on console server side which is supposed to be a separate machine alther we installed both on the same machine.


    root@tails bin# ps -ef | grep kdsmain
    root 9985 667 0 09:43 pts/1 00:00:00 grep kdsmain
    root 26826 26825 0 Dec16 ? 00:00:02 /opt/IBM/DataStudioAdministrationConsole/monitoring/li6263/ms/bin/kdsmain
    root@tails bin# ps -ef | grep cms root 1660 1 0 Nov21 ? 00:00:00 /sbin/srcmstr
    root 10032 667 0 09:43 pts/1 00:00:00 grep cms
    root 26825 1 0 Dec16 ? 00:00:00 /opt/IBM/DataStudioAdministrationConsole/monitoring/li6263/ms/bin/cms start
    root@tails bin# ps -ef | grep kuddb2 db2v95 3395 1 0 Nov21 ? 00:21:48 /opt/ibm/db2/V9.5/itma/li6263/ud/bin/kuddb2 tails_db2v95
    root 10123 667 0 09:43 pts/1 00:00:00 grep kuddb2


    Thank you,
    Eddie
  • SystemAdmin
    SystemAdmin
    33 Posts

    Re: Data Studio Admin Console can not be started on Linux

    ‏2009-12-17T16:02:24Z  
    Seems this problem leads by the locked derby database. If you are in test envirament, you can try to restart the computer, otherwise you can check the process which locks the derby and kill it then try again.
    BTW, I found in some website, for above error, set osgi.noLazyStateLoading=true in config.ini. I tested and the problem perisists.

    http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg02375.html
  • SystemAdmin
    SystemAdmin
    33 Posts

    Re: Data Studio Admin Console can not be started on Linux

    ‏2009-12-18T12:18:52Z  
    BTW, I found in some website, for above error, set osgi.noLazyStateLoading=true in config.ini. I tested and the problem perisists.

    http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg02375.html
    you can execute "lsof | grep derby" then find the process id of the derby bundle. and "kill -9 <process id>"
    if it still has problem, you can go to the DSAC installation directory and find the derby database directory then delete "db.lck" and "dbex.lck" files. (" find <DSAC install direcory> -name db.lck") and try again.
  • SystemAdmin
    SystemAdmin
    33 Posts

    Re: Data Studio Admin Console can not be started on Linux

    ‏2009-12-22T02:27:49Z  
    you can execute "lsof | grep derby" then find the process id of the derby bundle. and "kill -9 <process id>"
    if it still has problem, you can go to the DSAC installation directory and find the derby database directory then delete "db.lck" and "dbex.lck" files. (" find <DSAC install direcory> -name db.lck") and try again.
    Hi,eddie

    You can also execute following command. In our team's, other guy already meets similar problem and following command work for he.
    root@tails bin# ./stopConsole.sh stop the console if it is up and running
    root@tails bin# ./lwiStart.sh -clean this command will remove the cache, and start DSAC console