Hi Charitha,
Thanks for the reply. I checked "org.wso2.carbon.registry.indexing" in OSGi
console and it wasn't exported by multiple bundles. Actually the problem
occurs when server starting up, not in shutting down process. Anyway
Sinthuja looked for this problem and found that our configurations were not
correct. So the problem was solved after setting right configurations.
Thanks again for spending time to solve my problem.

On Wed, Jan 13, 2016 at 10:39 AM, Charitha Goonetilleke <[email protected]>
wrote:

> Hi Lalanke,
>
> Did you tried to start server with OSGi console? If not try to start
> server with OSGi console by "*sh wso2server.sh -DosgiConsole*". Then try
> to figure out *org.wso2.carbon.registry.indexing* package is exported by
> one or more bundles. You can check this by issuing "
> *p org.wso2.carbon.registry.indexing*" in OSGi console. Probably this
> issue might happen if above package is exported by multiple bundles. So
> please make sure it is not.
>
> Also please read the first answer in this [1] for additional work around.
>
> [1]
> http://stackoverflow.com/questions/7475195/osgi-how-to-ensure-classpath-consistency
>
> Thanks & Regards,
> /charithag
>
> On Tue, Jan 12, 2016 at 3:13 PM, Lalanke Athauda <[email protected]> wrote:
>
>> Hi Rajith,
>> Thanks for your quick reply. I checked the logs and there are no other
>> errors or exceptions. This is my complete log.
>>
>> [2016-01-12 15:01:05,189]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
>> Carbon...
>> [2016-01-12 15:01:05,189]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
>> Linux 3.13.0-74-generic, amd64
>> [2016-01-12 15:01:05,190]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        :
>> /usr/lib/jvm/java-7-oracle/jre
>> [2016-01-12 15:01:05,190]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     :
>> 1.7.0_80
>> [2016-01-12 15:01:05,190]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          :
>> Java HotSpot(TM) 64-Bit Server VM 24.80-b11,Oracle Corporation
>> [2016-01-12 15:01:05,190]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home      :
>> /home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT
>> [2016-01-12 15:01:05,190]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir    :
>> /home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/tmp
>> [2016-01-12 15:01:05,190]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User             :
>> lalanke, en-US, Asia/Colombo
>> [2016-01-12 15:01:05,261]  WARN
>> {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
>> Carbon is configured to use the default keystore (wso2carbon.jks). To
>> maximize security when deploying to a production environment, configure a
>> new keystore with a unique password in the production server profile.
>> [2016-01-12 15:01:05,311]  WARN
>> {org.wso2.carbon.identity.notification.mgt.NotificationMgtConfigBuilder} -
>> Secret Resolver is not present. Will not resolve encryptions in config file
>> [2016-01-12 15:01:06,108]  WARN
>> {org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} -
>> Could not find the handler class
>> org.wso2.jaggery.scxml.registry.handlers.JaggeryExecutorHandler. This
>> handler will not be registered. All handler and filter classes should be in
>> the class path of the Registry.
>> [2016-01-12 15:01:06,141]  INFO
>> {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
>> Registry in 31ms
>> [2016-01-12 15:01:06,200]  INFO
>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>> Registry Mode    : READ-WRITE
>> [2016-01-12 15:01:06,758]  INFO
>> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
>> UserStoreMgtDSComponent activated successfully.
>> [2016-01-12 15:01:09,784]  INFO
>> {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
>> http://tiles.apache.org/tags-tiles is already defined
>> [2016-01-12 15:01:10,290]  INFO
>> {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer}
>> -  User Store Configuration Deployer initiated.
>> [2016-01-12 15:01:10,291]  INFO
>> {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer}
>> -  User Store Configuration Deployer initiated.
>> [2016-01-12 15:01:10,870]  INFO
>> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
>> service: UserInformationRecoveryService {super-tenant}
>> [2016-01-12 15:01:11,553]  INFO
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Repository       :
>> /home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/repository/deployment/server/
>> [2016-01-12 15:01:11,608]  INFO
>> {org.wso2.carbon.core.multitenancy.eager.TenantLoadingConfig} -  Switching
>> to default mode : Tenant lazy loading mechanism has been activated...
>> [2016-01-12 15:01:11,621]  INFO
>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>> Permission cache updated for tenant -1234
>> [2016-01-12 15:01:11,721]  INFO
>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>> -  Thread pool size for session persistent consumer : 100
>> [2016-01-12 15:01:11,729]  INFO
>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>> -  Session Data Operations CleanUp Task of Authentication framework is not
>> enabled.
>> [2016-01-12 15:01:11,813]  INFO
>> {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS
>> port       : 9443
>> [2016-01-12 15:01:11,813]  INFO
>> {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP
>> port        : 9763
>> [2016-01-12 15:01:11,847]  INFO
>> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
>> service: echo {super-tenant}
>> [2016-01-12 15:01:11,919]  INFO
>> {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
>> service: Version {super-tenant}
>> [2016-01-12 15:01:12,260]  INFO
>> {org.wso2.carbon.identity.application.authentication.endpoint.util.TenantDataManager}
>> -  TenantConfig.properties file loaded from authentication endpoint webapp
>> [2016-01-12 15:01:12,381]  INFO
>> {org.apache.jasper.compiler.TldLocationsCache} -  At least one JAR was
>> scanned for TLDs yet contained no TLDs. Enable debug logging for this
>> logger for a complete list of JARs that were scanned but no TLDs were found
>> in them. Skipping unneeded JARs during scanning can improve startup time
>> and JSP compilation time.
>> [2016-01-12 15:01:13,363]  INFO
>> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  Deployed
>> webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint].File[/home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/repository/deployment/server/webapps/authenticationendpoint.war]
>> [2016-01-12 15:01:14,065]  INFO
>> {org.springframework.web.context.support.XmlWebApplicationContext} -
>> Refreshing Root WebApplicationContext: startup date [Tue Jan 12 15:01:14
>> IST 2016]; root of context hierarchy
>> [2016-01-12 15:01:14,093]  INFO
>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>> XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
>> [2016-01-12 15:01:14,142]  INFO
>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>> XML bean definitions from URL
>> [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
>> [2016-01-12 15:01:14,202]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>> Pre-instantiating singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@56875b07:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
>> root of factory hierarchy
>> [2016-01-12 15:01:14,476]  INFO
>> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  Deployed
>> webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2].File[/home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/repository/deployment/server/webapps/oauth2.war]
>> [2016-01-12 15:01:16,013]  INFO
>> {net.sf.ehcache.pool.sizeof.filter.AnnotationSizeOfFilter} -  Using regular
>> expression provided through VM argument
>> net.sf.ehcache.pool.sizeof.ignore.pattern for IgnoreSizeOf annotation :
>> ^.*cache\..*IgnoreSizeOf$
>> [2016-01-12 15:01:16,016]  INFO
>> {net.sf.ehcache.pool.impl.DefaultSizeOfEngine} -  Using user supplied
>> filter @
>> jar:file:/home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/repository/deployment/server/webapps/shindig/WEB-INF/lib/shindig-common-2.5.2.jar!/org/apache/shindig/common/cache/ehcache/SizeOfFilter.txt
>> [2016-01-12 15:01:16,026]  INFO
>> {net.sf.ehcache.pool.sizeof.JvmInformation} -  Detected JVM data model
>> settings of: 64-Bit HotSpot JVM with Compressed OOPs
>> [2016-01-12 15:01:16,255]  INFO {net.sf.ehcache.pool.sizeof.AgentLoader}
>> -  Extracted agent jar to temporary file
>> /home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/tmp/ehcache-sizeof-agent1496059094890703068.jar
>> [2016-01-12 15:01:16,255]  INFO {net.sf.ehcache.pool.sizeof.AgentLoader}
>> -  Trying to load agent @
>> /home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/tmp/ehcache-sizeof-agent1496059094890703068.jar
>> [2016-01-12 15:01:16,261]  INFO
>> {net.sf.ehcache.pool.impl.DefaultSizeOfEngine} -  using Agent sizeof engine
>> [2016-01-12 15:01:16,320]  INFO
>> {net.sf.ehcache.pool.impl.DefaultSizeOfEngine} -  using Agent sizeof engine
>> [2016-01-12 15:01:16,339]  INFO
>> {org.apache.shindig.gadgets.features.FeatureRegistry} -  Resources from
>> res:features/features.txt are loading.
>> [2016-01-12 15:01:16,344]  INFO {org.apache.shindig.common.xml.XmlUtil}
>> -  The XML processor being used does not support secure parsing.
>> [2016-01-12 15:01:16,344]  INFO {org.apache.shindig.common.xml.XmlUtil}
>> -  Document builders are being reused.
>> [2016-01-12 15:01:16,743]  INFO
>> {org.apache.shindig.gadgets.features.FeatureRegistry} -  Resources from
>> res:features-extras/features.txt are loading.
>> [2016-01-12 15:01:17,424]  INFO
>> {org.apache.shindig.config.JsonContainerConfigLoader} -  Resources from
>> containers/default/container.js are loading.
>> [2016-01-12 15:01:17,425]  INFO
>> {org.apache.shindig.config.JsonContainerConfigLoader} -  Container
>> configuration containers/default/container.js is being read.
>> [2016-01-12 15:01:17,597]  INFO
>> {org.apache.shindig.gadgets.oauth2.logger.FilteredLogger} -  Using random
>> key for OAuth2 client-side state encryption
>> [2016-01-12 15:01:17,597]  INFO
>> {org.apache.shindig.gadgets.oauth2.logger.FilteredLogger} -
>> OAuth2CrypterProvider constructor
>> [2016-01-12 15:01:17,602]  INFO
>> {org.apache.shindig.gadgets.oauth.OAuthModule$OAuthCrypterProvider} -
>> Using random key for OAuth client-side state encryption
>> [2016-01-12 15:01:17,602]  INFO
>> {org.apache.shindig.gadgets.oauth.OAuthModule} -  A random key for OAuth
>> client-side state encryption is being used.
>> [2016-01-12 15:01:17,602]  INFO
>> {org.apache.shindig.gadgets.oauth.OAuthModule} -  The OAuth signing key
>> from res://wso2carbon.pem is loading.
>> [2016-01-12 15:01:17,692]  INFO
>> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  Deployed
>> webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/shindig].File[/home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/repository/deployment/server/webapps/shindig.war]
>> [2016-01-12 15:01:18,517]  INFO
>> {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
>> webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/portal].File[/home/lalanke/sources/product-ues/modules/distribution/target/wso2ds-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/portal]
>> [2016-01-12 15:01:18,525]  INFO
>> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
>> servlet write/read
>> [2016-01-12 15:01:18,849]  INFO
>> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
>> servlet write/read
>> [2016-01-12 15:01:18,875]  INFO
>> {org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
>> service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
>> [2016-01-12 15:01:18,875]  INFO
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -
>> Server           :  WSO2 Dashboard Server-2.0.0
>> [2016-01-12 15:01:18,876]  INFO
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
>> Carbon started in 15 sec
>> [2016-01-12 15:01:19,047]  INFO
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>> : https://localhost:9443/carbon/
>> [2016-01-12 15:01:19,047]  INFO
>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Dashboard
>> Designer : https://localhost:9443/portal
>> ^C[2016-01-12 15:01:56,538]  INFO
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Shutdown hook
>> triggered....
>> [2016-01-12 15:01:56,539]  INFO
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Gracefully shutting down
>> WSO2 Dashboard Server...
>> [2016-01-12 15:01:56,541]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  Starting to switch to maintenance mode...
>> [2016-01-12 15:01:56,542]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  Stopped all transport listeners
>> [2016-01-12 15:01:56,542]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  Waiting for request service completion...
>> [2016-01-12 15:01:56,545]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  All requests have been served.
>> [2016-01-12 15:01:56,545]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  Waiting for deployment completion...
>> [2016-01-12 15:01:56,569]  INFO
>> {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint]
>> [2016-01-12 15:01:56,572]  INFO
>> {org.springframework.web.context.support.XmlWebApplicationContext} -
>> Closing Root WebApplicationContext: startup date [Tue Jan 12 15:01:14 IST
>> 2016]; root of context hierarchy
>> [2016-01-12 15:01:56,573]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>> Destroying singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@56875b07:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
>> root of factory hierarchy
>> [2016-01-12 15:01:56,584]  INFO
>> {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2]
>> [2016-01-12 15:01:56,610]  INFO
>> {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/shindig]
>> [2016-01-12 15:01:56,618]  INFO
>> {org.wso2.carbon.webapp.mgt.WebApplication} -  Unloaded webapp:
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/portal]
>> [2016-01-12 15:01:56,619]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  All deployment tasks have been completed.
>> [2016-01-12 15:01:56,619]  INFO {org.wso2.carbon.core.ServerManagement}
>> -  Waiting for server task completion...
>> Exception in thread "Thread-12" java.lang.NoClassDefFoundError: Could not
>> initialize class org.wso2.carbon.registry.indexing.RegistryConfigLoader
>>     at
>> org.wso2.carbon.registry.indexing.IndexingManager.<init>(IndexingManager.java:60)
>>     at
>> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:71)
>>     at
>> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:84)
>>     at
>> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
>>     at
>> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
>>     at
>> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
>>     at
>> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)
>>
>> Any idea to solve the "NoClassDefFoundError" when shutting down the
>> server.
>> Thanks,
>>
>>
>> On Tue, Jan 12, 2016 at 2:48 PM, Rajith Vitharana <[email protected]>
>> wrote:
>>
>>> Hi Lalanke,
>>>
>>> NoClassDefFoundError not necessarily means class file is not found. it
>>> can be initialization error as well. In that case there may be Exceptions
>>> occurred prior to this. If you see such exception, try to resolve that
>>> first, and then this will be resolved then, Reference -
>>> http://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java
>>>
>>> Thanks,
>>>
>>> On Tue, Jan 12, 2016 at 2:41 PM, Lalanke Athauda <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>> When I shut down the Dashboard Server we get following error in console.
>>>>
>>>> [2016-01-12 14:16:06,333]  INFO {org.wso2.carbon.core.ServerManagement}
>>>> -  All deployment tasks have been completed.
>>>> [2016-01-12 14:16:06,334]  INFO {org.wso2.carbon.core.ServerManagement}
>>>> -  Waiting for server task completion...
>>>> Exception in thread "Thread-12" java.lang.NoClassDefFoundError: Could
>>>> not initialize class org.wso2.carbon.registry.indexing.RegistryConfigLoader
>>>>     at
>>>> org.wso2.carbon.registry.indexing.IndexingManager.<init>(IndexingManager.java:60)
>>>>     at
>>>> org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:71)
>>>>     at
>>>> org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:84)
>>>>     at
>>>> org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
>>>>     at
>>>> org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
>>>>     at
>>>> org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
>>>>     at
>>>> org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:901)
>>>>
>>>> I checked is the respective jar file in plugins directory, and it was
>>>> there.
>>>> Then I checked is the corresponding bundle active using osgi console
>>>> and it was also in ACTIVE state.
>>>> Any idea to solve this problem. Highly appreciate your suggestions.
>>>> Thanks.
>>>>
>>>> --
>>>> Lalanke Athauda
>>>> Software Engineer
>>>> WSO2 Inc.
>>>> Mobile: 0772264301
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajith Vitharana
>>>
>>> Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94715883223
>>> Blog : http://lankavitharana.blogspot.com/
>>>
>>
>>
>>
>> --
>> Lalanke Athauda
>> Software Engineer
>> WSO2 Inc.
>> Mobile: 0772264301
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Charitha Goonetilleke*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 751 3669 <%2B94777513669>
> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
> <https://www.facebook.com/charithag>, linkedin: charithag
> <http://www.linkedin.com/in/charithag>
>



-- 
Lalanke Athauda
Software Engineer
WSO2 Inc.
Mobile: 0772264301
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to