Hi, On Fri, Jul 26, 2013 at 3:09 PM, Gokul Balakrishnan <[email protected]> wrote:
> That's funny because it should be resolved by the carbon server pack > generation level. From what I understand, based on the distribution pom, > the kernel module will be built first. This will generate > the wso2carbon-core-4.1.0 zip that will be used by all other products, > including carbon server. When the actual products are built, this zip will > be unpacked to the p2-profile-gen like I mentioned and based on the > product's filters the values will be resolved. The same should happen in > the event of carbon server as well, but based on the exception you've got, > this has not happened. > > It seems that you're running the carbon core as opposed to the carbon > server product. > That was the case. I didn't know that. Thanks for the information. Thanks, --Bhathiya > Can you ensure the pack you are running is taken from > /carbon/kernel/branches/4.1.0/distribution/product/modules/distribution/4.1.0/target > as opposed > to /carbon/kernel/branches/4.1.0/distribution/kernel/4.1.0/target? > > > On 26 July 2013 14:29, Bhathiya Jayasekara <[email protected]> wrote: > >> Hi, >> >> But kernel also has carbon.version property defined in following files. >> >> >> ./distribution/product/modules/distribution/4.1.0/src/assembly/filter.properties >> ./distribution/kernel/4.1.0/src/assembly/filter.properties >> >> What are they used for? >> >> I raised this question because I got following exception when visiting >> feature UI in carbon server. >> >> [2013-07-25 12:10:34,250] ERROR >> {org.wso2.carbon.feature.mgt.services.prov.RepositoryAdminService} - Error >> occured while adding default feature repository >> org.wso2.carbon.feature.mgt.core.ProvisioningException: Error occured >> while adding repository: http://dist.wso2.org/p2/carbon/releases/* >> ${carbon.version}* >> >> at >> org.wso2.carbon.feature.mgt.core.ProvisioningException.makeExceptionFromErrorCode(ProvisioningException.java:49) >> at >> org.wso2.carbon.feature.mgt.core.util.RepositoryUtils.addDefaultRepository(RepositoryUtils.java:242) >> at >> org.wso2.carbon.feature.mgt.services.prov.RepositoryAdminService.addDefaultRepository(RepositoryAdminService.java:238) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) >> at >> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) >> at >> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) >> at >> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >> at >> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) >> at >> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) >> at >> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) >> at >> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) >> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) >> at >> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398) >> at >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224) >> at >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >> at >> org.wso2.carbon.feature.mgt.stub.RepositoryAdminServiceStub.addDefaultRepository(RepositoryAdminServiceStub.java:1132) >> at >> org.wso2.carbon.feature.mgt.ui.RepositoryAdminServiceClient.addDefaultRepository(RepositoryAdminServiceClient.java:256) >> at >> org.apache.jsp.feature_002dmgt.index_jsp._jspService(org.apache.jsp.feature_002dmgt.index_jsp:131) >> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) >> at >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) >> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) >> at >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) >> at >> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) >> at >> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) >> at >> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37) >> at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369) >> at >> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015) >> at >> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700) >> at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87) >> at >> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88) >> at >> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82) >> at >> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465) >> at >> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140) >> at >> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117) >> at >> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171) >> at >> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75) >> at >> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80) >> at >> org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:541) >> at >> org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:286) >> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) >> at >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) >> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) >> at >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) >> at >> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) >> at >> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412) >> at >> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) >> at >> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30) >> at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362) >> at >> org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198) >> at >> org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185) >> at >> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419) >> at >> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370) >> at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52) >> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) >> at >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >> at >> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:177) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:161) >> at >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >> at >> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >> at >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >> at >> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> at java.lang.Thread.run(Thread.java:662) >> >> Caused by: java.net.URISyntaxException: Illegal character in path at >> index 41: http://dist.wso2.org/p2/carbon/releases/${carbon.version} >> >> at java.net.URI$Parser.fail(URI.java:2809) >> at java.net.URI$Parser.checkChars(URI.java:2982) >> at java.net.URI$Parser.parseHierarchical(URI.java:3066) >> at java.net.URI$Parser.parse(URI.java:3014) >> at java.net.URI.<init>(URI.java:578) >> at >> org.wso2.carbon.feature.mgt.core.util.RepositoryUtils.addDefaultRepository(RepositoryUtils.java:230) >> ... 117 more >> >> >> Thanks. >> --Bhathiya >> >> >> >> >> On Fri, Jul 26, 2013 at 2:13 PM, Gokul Balakrishnan <[email protected]>wrote: >> >>> It may not be resolved in the kernel distribution pack itself. When a >>> product is built, the kernel distribution zip is unpacked to the product's >>> p2-profile-gen target directory; and AFAIK such parameters will be resolved >>> by the product's own assembly plugin and its associated filter properties. >>> Also see ${product. name} and ${product.key} etc. The same will be the case >>> for them as well. >>> >>> >>> On 25 July 2013 17:50, Bhathiya Jayasekara <[email protected]> wrote: >>> >>>> Does that mean *${carbon.version} *should already be resolved in >>>> distribution pack? >>>> >>>> Thanks, >>>> --Bhathiya >>>> >>>> >>>> On Thu, Jul 25, 2013 at 5:25 PM, Gokul Balakrishnan <[email protected]>wrote: >>>> >>>>> When compiling the maven assembly plugin is invoked for packaging. For >>>>> filtering purposes this plugin depends on the filter.properties file under >>>>> /src/assembly/ where the assembly descriptors are also held. AFAIK the >>>>> parameter you mentioned is resolved at this point. >>>>> >>>>> Please correct me if I am wrong. >>>>> >>>>> On 25 July 2013 16:36, Bhathiya Jayasekara <[email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> In kernel distribution's carbon.xml, it has following element. >>>>>> >>>>>> <FeatureRepository> >>>>>> <RepositoryName>default repository</RepositoryName> >>>>>> <RepositoryURL>http://dist.wso2.org/p2/carbon/releases/* >>>>>> ${carbon.version}*</RepositoryURL> >>>>>> </FeatureRepository> >>>>>> >>>>>> How does this *${carbon.version} *is resolved in runtime? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> -- >>>>>> *Bhathiya Jayasekara* >>>>>> *Software Engineer,* >>>>>> *WSO2 inc., http://wso2.com* >>>>>> * >>>>>> * >>>>>> *Phone: +94715478185* >>>>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj* >>>>>> *Twitter: https://twitter.com/bhathiyax* >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Balakrishnan Gokulakrishnan* >>>>> Software Engineer, >>>>> WSO2, Inc.; http://wso2.com >>>>> >>>>> Twitter: http://twitter.com/gokulbs >>>>> Mobile: +94775935789 >>>>> >>>> >>>> >>>> >>>> -- >>>> *Bhathiya Jayasekara* >>>> *Software Engineer,* >>>> *WSO2 inc., http://wso2.com* >>>> * >>>> * >>>> *Phone: +94715478185* >>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj* >>>> *Twitter: https://twitter.com/bhathiyax* >>>> >>> >>> >>> >>> -- >>> *Balakrishnan Gokulakrishnan* >>> Software Engineer, >>> WSO2, Inc.; http://wso2.com >>> >>> Twitter: http://twitter.com/gokulbs >>> Mobile: +94775935789 >>> >> >> >> >> -- >> *Bhathiya Jayasekara* >> *Software Engineer,* >> *WSO2 inc., http://wso2.com* >> * >> * >> *Phone: +94715478185* >> *LinkedIn: http://www.linkedin.com/in/bhathiyaj* >> *Twitter: https://twitter.com/bhathiyax* >> > > > > -- > *Balakrishnan Gokulakrishnan* > Software Engineer, > WSO2, Inc.; http://wso2.com > > Twitter: http://twitter.com/gokulbs > Mobile: +94775935789 > -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com* * * *Phone: +94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
