As subject. i use spring with spring-dm, and buliding with Maven Bnd plugin.
then show the below Error
[ERROR] Error building bundle cn.shopex:HelloWeb:bundle:0.0.1-SNAPSHOT :
Unresolved references to [org.springframework.beans.factory] by class(es) on
the Bundle-Classpath[Jar:dot]: [cn/shopex/HelloWeb/HelloWorldServlet.class]
but, if i comment the code that about the spring, all to be ok~
HelloWorldServlet.java
public class HelloWorldServlet extends HttpServlet{
private static final long serialVersionUID = -6421103301902391763L;
/* (non-Javadoc)
*/
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
sendResponse(req, resp);
}
/* (non-Javadoc)
*/
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
sendResponse(req, resp);
}
private void sendResponse(HttpServletRequest req, HttpServletResponse
response) throws IOException {
response.setContentType("text/html");
ServletOutputStream out = response.getOutputStream();
out.println("");
out.println("HelloWorld");
out.println("");
out.println("Hello World!
");
// WebApplicationContext ctx =
WebApplicationContextUtils.getWebApplicationContext(req.getSession().getServletContext());
// TimeService timeService =
(TimeService)ctx.getBean("osgiTimeService");
out.println("Current time is " + timeService.getCurrentTime());
out.println("");
}
}
are there anyone come across this issue.
thanks
--
View this message in context:
http://karaf.922171.n3.nabble.com/a-strange-problem-about-Bundle-Classpath-Jar-dot-tp2675766p2675766.html
Sent from the Karaf - User mailing list archive at Nabble.com.