Hi All,
I have written custom service and built it but when i am installing service from OSGI console ,i am getting below exception.
POST /system/console/bundles HTTP/1.1] servletengine I/O error in execution: {} java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle
at org.apache.felix.webconsole.internal.core.BundlesServlet.installBundle(BundlesServlet.java:1540)
at org.apache.felix.webconsole.internal.core.BundlesServlet.installBundles(BundlesServlet.java:1485)
at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:473)
at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:418)
at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:250)
at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377)
at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)
at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)
at java.lang.Thread.run(Unknown Source)
I am also tagging service pom.xml as well.Please help me how to correct this and install jar.
Thanks,
Kishore
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Kishore,
It seems that you have already defined the symbolic bundle name property "com.aem.sample.workflow.InvokeWorkflow-bundle" in pom.xml but you have to make sure that this name is unique in OSGI where you are deploying this bundle.
You can also recheck this property in MANIFEST.MF file for cross validation. You can also refer below link to define the symbolic name of OSGI bundle.
http://wiki.osgi.org/wiki/Bundle-SymbolicName
Let me know for more information.
Thanks,
Pawan
Views
Replies
Total Likes
Hi Kishore,
It seems that you have already defined the symbolic bundle name property "com.aem.sample.workflow.InvokeWorkflow-bundle" in pom.xml but you have to make sure that this name is unique in OSGI where you are deploying this bundle.
You can also recheck this property in MANIFEST.MF file for cross validation. You can also refer below link to define the symbolic name of OSGI bundle.
http://wiki.osgi.org/wiki/Bundle-SymbolicName
Let me know for more information.
Thanks,
Pawan
Views
Replies
Total Likes
Hi Kishore,
in pom.xml's packaging tag use bundle instead of jar .
replace tag <packaging>jar</packaging> with <packaging>bundle</packaging>
Views
Replies
Total Likes
I have checked as you said.
I don't have a bundle with the same name and also i have checked MANIFEST.MF file inside the bundle jar ,it does not have property with the name Bundle-SymbolicName.Still i am getting the issue.
Thanks,
Kishore
Views
Replies
Total Likes
Hi Chandra
when i am changing packaging jar to bundle,getting error "Project build error: Unknown packaging: bundle ".There seems to be problem with maven-bundle-plugin.
-Kishore
Views
Replies
Total Likes
i am able to install the bundle by changing packaging tag value to bundle and also i have <pluginManagement> tag also.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies