Dileepa, I replaced the JSONFormatter class in v6 with JSONStreamFormatter class and I updated the relay component to use a different message formatter. Copying JSONFormatter class to v6 bundle must not create any issue AFAIK but is there a better solution for this? Thanks, Ishan.
On Fri, Sep 7, 2012 at 12:29 PM, Dileepa Jayakody <dile...@wso2.com> wrote: > Hi All, > > I installed API-Manager features from p2-repo to carbon-4.0.1 and > restarted the server and got below startup error. > > [2012-09-07 12:00:08,299] INFO > {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured > Registry in 56ms > [2012-09-07 12:00:08,400] INFO > {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - > Registry Mode : READ-WRITE > [2012-09-07 12:00:09,736] WARN > {org.apache.synapse.commons.util.MiscellaneousUtil} - Error loading > properties from a file at from the System defined location: > datasources.properties > [2012-09-07 12:00:13,582] INFO > {org.apache.axis2.deployment.ClusterBuilder} - Clustering has been disabled > [2012-09-07 12:00:15,094] FATAL > {org.wso2.carbon.core.init.CarbonServerManager} - WSO2 Carbon > initialization Failed > j*ava.lang.NoClassDefFoundError: org/apache/axis2/json/JSONFormatter* > at org.wso2.carbon.relay.MessageBuilder.<init>(MessageBuilder.java:65) > at > org.wso2.carbon.relay.module.RelayConfiguration.<init>(RelayConfiguration.java:36) > at > org.wso2.carbon.relay.module.policy.PolicyProcessor.processCachingPolicy(PolicyProcessor.java:45) > at org.wso2.carbon.relay.module.RelayModule.init(RelayModule.java:43) > at > org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:252) > at > org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:230) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:93) > at > org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65) > at > org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:399) > at > org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:288) > at > org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) > at > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) > Caused by: java.lang.ClassNotFoundException: > org.apache.axis2.json.JSONFormatter > at > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467) > at > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) > at > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) > at > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > ... 14 more > > > Package details for org.apache.axis2.json are as below > > osgi> p org.apache.axis2.json > org.apache.axis2.json; version="1.6.1.wso2v5"<axis2-json_1.6.1.wso2v6 [18]> > axis2_1.6.1.wso2v6 [17] imports > org.wso2.carbon.relay_4.0.0 [304] imports > > *axis2-json_1.6.1.wso2v6* which goes with carbon-4.0.1 distribution > doesn't have * *org.apache.axis2.json.JSONFormatter class. > This is because this class has is no longer there from > kernel/branches/4.0.0/dependencies/axis2/1.6.1-wso2v6/modules/json. > It was there in axis2-json_1.6.1.wso2v5. > > @Ishan can you provide any insight on this? I think there has been some > re-factoring done on this package. > > Thanks, > Dileepa > -- > Dileepa Jayakody, > Software Engineer, WSO2 Inc. > Lean . Enterprise . Middleware > > Mobile : +94777-857616 > > -- Ishan Jayawardena
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev