Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Can not access bundle context from JSP in CQ5.5

$
0
0

I created an OGI bundle , named :

 

 

com.sdl.ws.integration.profserv.webservice.connector.server.external.b eans

I can see the bundle under :

 

 

http://localhost:4502/system/console/bundles

Following is my JSP code , using which I am trying to access a bundlecontext

 

 

<%@ page import="org.osgi.framework.BundleContext"%>

<%@ page import="org.osgi.framework.FrameworkUtil"%>

<%@ page import="com.sample.osgi.components.FormattingServiceImpl.*"%>

<%@ page import="org.osgi.service.cm.ConfigurationAdmin"%>

<%@ page import="org.osgi.service.cm.Configuration"%>

<%@ page import="org.osgi.service.packageadmin.PackageAdmin"%>

<% BundleContext bundleContext =      FrameworkUtil.getBundle(FormattingServiceImpl).getBundleContext();  %>

 

I am getting the following error : FormattingServiceImpl cannot be resolved , Class name "FormattingServiceImpl" is missing

 

I tried to use multiple ways to import the jar but nothing is working ,

Here is a structure how my bundle is configured :

snap.png

 

 

I am stuck on the point how to access the bundle context from JSP , does any one has any suggestions / corrections ?


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>