Deploy .war - Error

Seven Stars

Deploy .war - Error

I have a current Runtime container running my RESTful services created using Talend OpenStudio (tRestRequest)

 

I want to utilize the same container and deploy some a .war file. This is the sample HelloWorld app I am referring to: https://github.com/efsavage/hello-world-war

 

When I am uploading the HelloWorld.war (https://github.com/efsavage/hello-world-war/blob/master/dist/hello-world.war) into the Karaf console (8040 port), it errors out.

HTTP ERROR 500
Problem accessing /system/console/bundles. Reason:

    Server Error
Caused by:
java.io.IOException: Bundle-SymbolicName header missing, cannot install bundle
	at org.apache.felix.webconsole.internal.core.BundlesServlet.installBundle(BundlesServlet.java:1642)
	at org.apache.felix.webconsole.internal.core.BundlesServlet.installBundles(BundlesServlet.java:1587)
	at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:336)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:567)
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManager.doService(KarafOsgiManager.java:78)
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManager$1.run(KarafOsgiManager.java:58)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.karaf.util.jaas.JaasHelper.doAs(JaasHelper.java:113)
	at org.apache.felix.webconsole.internal.servlet.KarafOsgiManager.service(KarafOsgiManager.java:56)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
	at java.lang.Thread.run(Thread.java:748)
Powered by Jetty://

 

 

 

What am I doing wrong here? 

 

Thanks

Eight Stars

Re: Deploy .war - Error

Hello,

Do you have Bundle-SymbolicName in your pom.xml? It is mandatory field.
What I see on GitHub, there is no parameter like this. See example here:
https://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-1.2.0/doc/maven-bundle-plugin-bn...

Regards
Lojdr
Seven Stars

Re: Deploy .war - Error

@lojdr: pom.xml of the war file? or Talend container?
Eight Stars

Re: Deploy .war - Error

war file