Are there any errors prior to running the commands? If there are services that are not registered, then I would think that they might log an error showing why they failed. On the other hand, it could be that the pax-logging bundles are causing the logging not to work also, so possibly you aren't seeing the errors being logged.
Either way, I would think that *something* should be logged at startup telling why the expected services failed to register. Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Mon, Apr 13, 2009 at 12:13 AM, Mohit.Gupta <[email protected]> wrote: > > Hi, > > The installation of the following bundles is causing glassfish to fail :- > > pax-logging-api-1.3.0.jar > pax-logging-service-1.3.0.jar > org.osgi.compendium-1.2.0.jar > > After installing these bundles, the admin commands of glassfish fail to > work. For example the error given by the asadmin deploy command is :- > > > [#|2009-04-13T11:34:01.590+0530|SEVERE|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=20;_ThreadName=Thread-1;|No > container services registered, done...|#] > > Is there any way to get the NMR bundles installed without depending on > these > loggers, instead specifying the dependency to some other logging-api. > > Thanks > Mohit > > > Gert Vanthienen wrote: > > > > Mohit, > > > > For A: could you let us know which dependency conflicts (stack trace > > or error message)? Probably Glassfish already ships with some of > > these dependencies, so you don't have to install them a second time. > > > > For B: ServiceMix Kernel includes some basic Spring and Spring DM > > support. You can stop these bundles and only keep your own bundles in > > the kernel if you want to create a specific distribution for your > > applications or something. But if you want to build a minimal JBI > > runtime, you will need to have these installed. The NMR project e.g. > > is using Spring DM and our JBI components themselves depend on Spring. > > You can see the NMR assembly/features as the minimal set of bundles > > for having an OSGi-based JBI runtime. > > > > For C: I guess the smx4web demo does not include the SSHD feature from > > the kernel. Without this feature installed, the client obviously > > can't connect to the kernel. It's probably just a matter of adding > > the necessary bundles to the smx4web demo to get it working though. > > > > Regards, > > > > Gert Vanthienen > > ------------------------ > > Open Source SOA: http://fusesource.com > > Blog: http://gertvanthienen.blogspot.com/ > > > > > > > > 2009/4/9 Mohit.Gupta <[email protected]>: > >> > >> Thanks Gert ... It works fine with the felix framework. > >> I am trying to run ServiceMix4 on GlassFish-v3. > >> > >> A) I installed ServiceMix4 NMR bundles on GlassFish-v3 in the same way, > >> but > >> installation of the SpringDM bundles causes dependency conflicts within > >> glassfish-v3. > >> > >> B) From the following link :- > >> http://servicemix.apache.org/SMX4/strawman-runtime.html > >> I understand that servicemix-runtime can be installed without Spring. > >> Let's > >> say we can just have a servicemix-jbi custom runtime. > >> But didn't get any clue on how to achieve it. > >> > >> C) I also tried with the smx4web-war bundle, Deployed and started it on > >> Glassfish-v3, and started servicemix-client.jar using > >> cd [smx-kernel-install-dir] > >> java -jar lib/servicemix-client.jar > >> > >> But it throws runtime exception :- > >> org.apache.mina.common.RuntimeIOException: Failed to get the session. > >> at > >> > org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultConnectFuture.java:63) > >> at com.google.code.sshd.SshClient.connect(SshClient.java:112) > >> at com.google.code.sshd.SshClient.connect(SshClient.java:98) > >> at org.apache.servicemix.kernel.client.Main.main(Main.java:71) > >> Caused by: java.net.ConnectException: Connection refused > >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > >> at > >> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574) > >> at > >> > org.apache.mina.transport.socket.nio.SocketConnector.processSessions(SocketConnector.java:293) > >> at > >> > org.apache.mina.transport.socket.nio.SocketConnector.access$800(SocketConnector.java:53) > >> at > >> > org.apache.mina.transport.socket.nio.SocketConnector$Worker.run(SocketConnector.java:383) > >> at > >> > org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) > >> at > >> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > >> at > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > >> at java.lang.Thread.run(Thread.java:619) > >> > >> Regards > >> Mohit Gupta > >> > >> > >> Gert Vanthienen wrote: > >>> > >>> Mohit, > >>> > >>> If you downloaded the ServiceMix NMR binary, you should have a file > >>> named features.xml in there. A copy of this file is available on-line > >>> at > >>> > http://repo2.maven.org/maven2/org/apache/servicemix/nmr/apache-servicemix-nmr/1.0.0/apache-servicemix-nmr-1.0.0-features.xml > . > >>> > >>> If you look in the <feature name="nmr" version="1.0.0"> element, > >>> you'll find a list of all bundles that we install for running the NMR > >>> on ServiceMix Kernel. An example: the second exception you get, about > >>> the missing javax.jbi package, will be resolved by installing the > >>> jbi-api-1.0 specs bundle that is in the list. > >>> > >>> ServiceMix Kernel also comes with Spring DM, which is what the other > >>> messages you're seeing are about. You can find out more about Spring > >>> DM at http://www.springsource.org/osgi (there's also a link to > >>> download it there). > >>> > >>> Regards, > >>> > >>> Gert Vanthienen > >>> ------------------------ > >>> Open Source SOA: http://fusesource.com > >>> Blog: http://gertvanthienen.blogspot.com/ > >>> > >>> > >>> > >>> 2009/4/7 Mohit.Gupta <[email protected]>: > >>>> > >>>> These are the steps that I performed :- > >>>> 1. Downloaded and unzipped ServiceMix NMR binary. > >>>> 2. Installed felix-framework 1.6.0. > >>>> 3. Installed 4 modules under nmr_install_root/lib/ on felix framework. > >>>> 4. Started the above modules, 3 modules get started while > >>>> servicemix-client.jar gives the following error :- > >>>> > >>>> -> ERROR: Error starting > >>>> > file:///space/servicemix/sm4/apache-servicemix-nmr-1.0.0/src/assembly/target/installation/apache-servicemix-nmr-1.0.0/lib/servicemix-client.jar > >>>> (org.osgi.framework.BundleException: Unresolved constraint in bundle > 6: > >>>> package; > >>>> (&(package=org.springframework.osgi.context)(version>=1.2.0.m2))) > >>>> org.osgi.framework.BundleException: Unresolved constraint in bundle 6: > >>>> package; > >>>> (&(package=org.springframework.osgi.context)(version>=1.2.0.m2)) > >>>> at > >>>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3090) > >>>> at > org.apache.felix.framework.Felix.startBundle(Felix.java:1439) > >>>> 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) > >>>> > >>>> 5. On trying to install and start any component the following error is > >>>> displayed :- > >>>> org.osgi.framework.BundleException: Unresolved constraint in bundle > 10: > >>>> package; (package=javax.jbi) > >>>> > >>>> - Mohit > >>>> > >>>> > >>>> Chris Custine wrote: > >>>>> > >>>>> This should be fairly easy to get working but we have not documented > >>>>> how > >>>>> to > >>>>> do it. Lets start by looking at the errors you are getting and go > >>>>> from > >>>>> there. Could you post some additional info on what is happening with > >>>>> your > >>>>> current configuration? > >>>>> > >>>>> Thanks, > >>>>> Chris > >>>>> -- > >>>>> Chris Custine > >>>>> FUSESource :: http://fusesource.com > >>>>> My Blog :: http://blog.organicelement.com > >>>>> Apache ServiceMix :: http://servicemix.apache.org > >>>>> Apache Directory Server :: http://directory.apache.org > >>>>> > >>>>> > >>>>> On Tue, Apr 7, 2009 at 12:22 AM, Mohit.Gupta <[email protected]> > >>>>> wrote: > >>>>> > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I am trying to run, ServiceMix-4 NMR on a Felix framework that is > not > >>>>>> the > >>>>>> ServiceMix kernel. For this I installed the bundles in the NMR/lib > >>>>>> directory > >>>>>> on the framework, but unable to get the NMR running. Am I going in > >>>>>> the > >>>>>> right > >>>>>> direction? > >>>>>> > >>>>>> Is there any other thing that I need to do? > >>>>>> > >>>>>> Thanks > >>>>>> Mohit > >>>>>> -- > >>>>>> View this message in context: > >>>>>> > http://www.nabble.com/newbie%3A-ServiceMix-4-NMR-on-felix-runtime-other-than-ServiceMix-kernel-tp22922654p22922654.html > >>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>> > >>>> -- > >>>> View this message in context: > >>>> > http://www.nabble.com/newbie%3A-ServiceMix-4-NMR-on-felix-runtime-other-than-ServiceMix-kernel-tp22922654p22925713.html > >>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >>>> > >>>> > >>> > >>> > >>> ----- > >>> --- > >>> Gert Vanthienen > >>> http://gertvanthienen.blogspot.com > >>> > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/newbie%3A-ServiceMix-4-NMR-on-felix-runtime-other-than-ServiceMix-kernel-tp22922654p22972693.html > >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> > >> > > > > > > ----- > > --- > > Gert Vanthienen > > http://gertvanthienen.blogspot.com > > > > -- > View this message in context: > http://www.nabble.com/newbie%3A-ServiceMix-4-NMR-on-felix-runtime-other-than-ServiceMix-kernel-tp22922654p23018381.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
