3 Replies Latest reply on Dec 14, 2011 10:25 PM by njiang

    Can not invoke deployed demo war file, Looks like context is not recognized

      I got demo src zip from "Deploying Web services into ServiceMix with CXF". BTW, it's a great webinar.

      I was able to build and deploy it on my fuse esb ( version:apache-servicemix-4.4.1-fuse-01-13 ) once war and cxf features are installed. I saw them being deployed fine on console as I can see the entry as "active" when I do "list". But I can not get to the wsdl exposed on http://localhost:8181/customer-ws-servlet-1.0.0/services/Customers?wsdl url as mentioned in the demo.

      I also tried it my defining my own contextroot (thinking that might be an issue, based on a forum thread:threadID=1024)

      as

      osgi:install war:file:C:/fuseworkspace/cxf-webinars/customer-ws-servlet/target/customer-ws-servlet-1.0.0.war?Webapp-Context=mytest

       

      But it is still not accessible even I see them being active on the console.

       

      One thing I noticed is that, when I look at the log I saw error below on both the cases.

       

      Attached is the war file.

       

      Any insight on it's resolution is greatly appreciated.

      Susil

       

       

      Exception:

      15:03:42,855 | ERROR | l Console Thread | BundleWatcher                    | 163 - org.ops4j.pax.web.pax-web-extender-war - 1.0.3 | Ignored exception during register

      org.ops4j.lang.PreConditionException: Number of xml's was not equal to 1. Was: 2

           at org.ops4j.lang.PreConditionException.validateEqualTo(PreConditionException.java:218)

           at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.addingEntries(WebXmlObserver.java:122)[163:org.ops4j.pax.web.pax-web-extender-war:1.0.3]

           at org.ops4j.pax.swissbox.extender.BundleWatcher.register(BundleWatcher.java:186)[163:org.ops4j.pax.web.pax-web-extender-war:1.0.3]

           at org.ops4j.pax.swissbox.extender.BundleWatcher.access$000(BundleWatcher.java:45)[163:org.ops4j.pax.web.pax-web-extender-war:1.0.3]

           at org.ops4j.pax.swissbox.extender.BundleWatcher$1.bundleChanged(BundleWatcher.java:127)[163:org.ops4j.pax.web.pax-web-extender-war:1.0.3]

           at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:795)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:597)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3770)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.felix.framework.Felix.startBundle(Felix.java:1781)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.0.9-fuse-03-13.jar:]

           at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)[37:org.apache.karaf.shell.osgi:2.2.2.fuse-02-13]

           at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)[37:org.apache.karaf.shell.osgi:2.2.2.fuse-02-13]

           at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at org.apache.karaf.shell.console.jline.Console.run(Console.java:240)[34:org.apache.karaf.shell.console:2.2.2.fuse-02-13]

           at java.lang.Thread.run(Thread.java:662)[:1.6.0_29]