Re: [Dev] [IS 510] Keystore configs required in multiple locations
Hi Malith, I removed that file from a fresh pack and started the server and found web app deployment error. at java.lang.Thread.run(Thread.java:745) [2016-06-11 10:11:08,811] ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint] failed to deploy [2016-06-11 10:11:08,812] ERROR {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Error while deploying webapp: StandardContext[authenticationendpoint.war].File[/home/udara/software/wso2/wso2is-5.1.0/repository/deployment/server/webapps/authenticationendpoint.war] org.wso2.carbon.tomcat.CarbonTomcatException: Webapp failed to deploy at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:302) at org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:198) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:314) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:212) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:179) at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:144) at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:224) at org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:114) at org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:42) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135) at org.wso2.carbon.core.CarbonAxisConfigurator.deployServices(CarbonAxisConfigurator.java:567) at org.wso2.carbon.core.internal.DeploymentServerStartupObserver.completingServerStartup(DeploymentServerStartupObserver.java:51) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.notifyBefore(CarbonCoreServiceComponent.java:238) at org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:185) at org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:288) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.server.admin.internal.ServerAdminServiceComponent.activate(ServerAdminServiceComponent.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.Bundl
Re: [Dev] [IS 510] Keystore configs required in multiple locations
Hi Maliti, We removed it from repo/conf, then IS throws errors when starting. On Thu, Jun 9, 2016 at 5:25 AM, Malithi Edirisinghe wrote: > > > On Thu, Jun 9, 2016 at 11:48 AM, Udara Liyanage wrote: > >> Hi, >> >> When migrating from IS 500 to 510 we get keystore errors while starting >> up the server regardless of the fact that all configurations are correct. >> We noticed that IS 510 has another configuration file >> (repository/conf/identity/EndpointConfig.properties.) which requires >> keystore configurations. >> >> According to the doc, this is useful when the web app is hosted outside >> of IS. But IS gives web app deployment error if I remove this file from IS. >> If it is to be deployed externally, IS server should start without any >> issue without this file existing. >> > > Did you try removing the file from the repository/conf path or from the > webapp itself. > AFAIK, it can be removed from the repository/conf path and the app will > rely on the file within the web application it self. It will behave > similarly when deployed externally. > > >> >> [1] >> https://docs.wso2.com/display/IS510/Hosting+the+Authentication+Endpoint+on+a+Separate+Server >> >> >> -- >> >> Udara Liyanage >> Software Engineer >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> >> web: http://udaraliyanage.wordpress.com >> phone: +94 71 443 6897 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > Thanks, > Malithi > > > -- > > *Malithi Edirisinghe* > Associate Technical Lead > WSO2 Inc. > > Mobile : +94 (0) 718176807 > malit...@wso2.com > -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS 510] Keystore configs required in multiple locations
On Thu, Jun 9, 2016 at 11:48 AM, Udara Liyanage wrote: > Hi, > > When migrating from IS 500 to 510 we get keystore errors while starting up > the server regardless of the fact that all configurations are correct. We > noticed that IS 510 has another configuration file > (repository/conf/identity/EndpointConfig.properties.) which requires > keystore configurations. > > According to the doc, this is useful when the web app is hosted outside of > IS. But IS gives web app deployment error if I remove this file from IS. If > it is to be deployed externally, IS server should start without any issue > without this file existing. > Did you try removing the file from the repository/conf path or from the webapp itself. AFAIK, it can be removed from the repository/conf path and the app will rely on the file within the web application it self. It will behave similarly when deployed externally. > > [1] > https://docs.wso2.com/display/IS510/Hosting+the+Authentication+Endpoint+on+a+Separate+Server > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > Thanks, Malithi -- *Malithi Edirisinghe* Associate Technical Lead WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS 510] Keystore configs required in multiple locations
Hi Darshana, On Thu, Jun 9, 2016 at 11:48 AM, Udara Liyanage wrote: > Hi, > > When migrating from IS 500 to 510 we get keystore errors while starting up > the server regardless of the fact that all configurations are correct. We > noticed that IS 510 has another configuration file > (repository/conf/identity/EndpointConfig.properties.) which requires > keystore configurations. > Is this keystore used to encrypting and decrypting values? If so, shouldn't we use the value from carbon.xml. Any particular reason for mentioning the keystore in another properties file? > > According to the doc, this is useful when the web app is hosted outside of > IS. But IS gives web app deployment error if I remove this file from IS. If > it is to be deployed externally, IS server should start without any issue > without this file existing. > > [1] > https://docs.wso2.com/display/IS510/Hosting+the+Authentication+Endpoint+on+a+Separate+Server > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > Regards, Nira -- *Niranjan Karunanandham* Associate Technical Lead - WSO2 Inc. WSO2 Inc.: http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [IS 510] Keystore configs required in multiple locations
Hi, When migrating from IS 500 to 510 we get keystore errors while starting up the server regardless of the fact that all configurations are correct. We noticed that IS 510 has another configuration file (repository/conf/identity/EndpointConfig.properties.) which requires keystore configurations. According to the doc, this is useful when the web app is hosted outside of IS. But IS gives web app deployment error if I remove this file from IS. If it is to be deployed externally, IS server should start without any issue without this file existing. [1] https://docs.wso2.com/display/IS510/Hosting+the+Authentication+Endpoint+on+a+Separate+Server -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev