You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by lh...@apache.org on 2009/04/13 14:50:46 UTC

\

Re: newbie: ServiceMix-4 NMR on felix runtime other than
 ServiceMix
 kernel
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Try not installing the org.osgi.compendium, I think it is already
included in Equinox.
AFAIK, pax-logging can be installed on equinox without any problems.

On Mon, Apr 13, 2009 at 08:13, Mohit.Gupta <Mo...@sun.com> 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=3D20;_ThreadName=3DThread-1;|No
> container services registered, done...|#]
>
> Is there any way to get the NMR bundles installed without depending on th=
ese
> 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)? =C2=A0Probably 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. =C2=A0You 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. =C2=A0But if you want to build a minimal JBI
>> runtime, you will need to have these installed. =C2=A0The NMR project e.=
g.
>> is using Spring DM and our JBI components themselves depend on Spring.
>> =C2=A0You can see the NMR assembly/features as the minimal set of bundle=
s
>> for having an OSGi-based JBI runtime.
>>
>> For C: I guess the smx4web demo does not include the SSHD feature from
>> the kernel. =C2=A0Without this feature installed, the client obviously
>> can't connect to the kernel. =C2=A0It'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 <Mo...@sun.com>:
>>>
>>> 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
>>> =C2=A0cd [smx-kernel-install-dir]
>>> =C2=A0java -jar lib/servicemix-client.jar
>>>
>>> But it throws runtime exception :-
>>> org.apache.mina.common.RuntimeIOException: Failed to get the session.
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> org.apache.mina.common.support.DefaultConnectFuture.getSession(DefaultC=
onnectFuture.java:63)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at com.google.code.sshd.SshClient.connect(Ss=
hClient.java:112)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at com.google.code.sshd.SshClient.connect(Ss=
hClient.java:98)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.servicemix.kernel.client.Main.=
main(Main.java:71)
>>> Caused by: java.net.ConnectException: Connection refused
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.nio.ch.SocketChannelImpl.checkConnect=
(Native Method)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> org.apache.mina.transport.socket.nio.SocketConnector.processSessions(So=
cketConnector.java:293)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> org.apache.mina.transport.socket.nio.SocketConnector.access$800(SocketC=
onnector.java:53)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> org.apache.mina.transport.socket.nio.SocketConnector$Worker.run(SocketC=
onnector.java:383)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.=
java:51)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut=
or.java:886)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j=
ava:908)
>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at 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. =C2=A0A copy of this file is available on=
-line
>>>> at
>>>> http://repo2.maven.org/maven2/org/apache/servicemix/nmr/apache-service=
mix-nmr/1.0.0/apache-servicemix-nmr-1.0.0-features.xml.
>>>>
>>>> If you look in the <feature name=3D"nmr" version=3D"1.0.0"> element,
>>>> you'll find a list of all bundles that we install for running the NMR
>>>> on ServiceMix Kernel. =C2=A0An 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. =C2=A0You can find out more about Sp=
ring
>>>> 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 <Mo...@sun.com>:
>>>>>
>>>>> 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=3Dorg.springframework.osgi.context)(version>=3D1.2.0.m2)))
>>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle 6=
:
>>>>> package;
>>>>> (&(package=3Dorg.springframework.osgi.context)(version>=3D1.2.0.m2))
>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>>>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3090)
>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.felix.framework.Felix.startB=
undle(Felix.java:1439)
>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at
>>>>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263=
)
>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> 5. On trying to install and start any component the following error i=
s
>>>>> displayed :-
>>>>> org.osgi.framework.BundleException: Unresolved constraint in bundle 1=
0:
>>>>> package; (package=3Djavax.jbi)
>>>>>
>>>>> - Mohit
>>>>>
>>>>>
>>>>> Chris Custine wrote:
>>>>>>
>>>>>> This should be fairly easy to get working but we have not documented
>>>>>> how
>>>>>> to
>>>>>> do it. =C2=A0Lets start by looking at the errors you are getting and=
 go
>>>>>> from
>>>>>> there. =C2=A0Could you post some additional info on what is happenin=
g 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 <Mo...@sun.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am trying to run, ServiceMix-4 NMR on a Felix framework that is n=
ot
>>>>>>> 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-o=
ther-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-oth=
er-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.htm=
l
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



--=20
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com