1 Reply Latest reply on Jun 5, 2009 5:01 AM by Joe Luo

    ServiceMix 4.1, can't change port?

    Peter Chandler Master

      I tried to change the OSGi HTTP Service port by updating the servicemix properties file (and restarting). The results was the org.ops4j.pax.web.service would not start.

       

      Any ideas?

       

      etc/config.properties (the addition I made)

      org.osgi.service.http.port=6666

       

      ServiceMix Startup Error:

      smx@root:/> ERROR: Error starting mvn:org.ops4j.pax.web/pax-web-bundle/0.5.2 (org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.bundle .)

      java.lang.NullPointerException

              at org.ops4j.pax.web.service.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:274)

              at org.ops4j.pax.web.service.internal.ServerControllerImpl.start(ServerControllerImpl.java:54)

              at org.ops4j.pax.web.service.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:384)

              at org.ops4j.pax.web.service.internal.ServerControllerImpl.configure(ServerControllerImpl.java:71)

              at org.ops4j.pax.web.service.internal.Activator$2.updated(Activator.java:148)

              at org.ops4j.pax.web.service.internal.Activator.createManagedService(Activator.java:171)

              at org.ops4j.pax.web.service.internal.Activator.start(Activator.java:65)

              at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)

              at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)

              at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)

              at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)

              at java.lang.Thread.run(Thread.java:619)