You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Moloney, Tim M" <Ti...@ManTech.com> on 2009/05/06 15:26:33 UTC

ServiceMix Questions

I've been playing around with ServiceMix Kernel 1.1.0 for the last
couple of days.  I have to say that I'm quite impressed.  However, I do
have some questions.

1) The overview page lists "native OS integration".  Is this an init rc
script like the one generated by Java Service Wrapper?  If so, I can't
find it.  If not, then what does it mean when it says "Karaf can be
integrated into your own Operating System as a service so that the
lifecycle will be bound to your Operating System."

2) If any features are installed, either from the deploy directory or
from a feature URL, running "features/list -i" generates

  ERROR CommandLineExecutionFailed:
org.apache.geronimo.gshell.command.CommandException:
java.lang.ArrayStoreException:
  org.apache.servicemix.kernel.gshell.features.internal.FeatureImpl

3) No errors are generated for a bad URL passed to the
"features/addUrl", "features/refreshUrl", and "features/list".
Shouldn't a "file not found: <url>" error or similar be generated?

4) Features loaded via the deploy directory aren't listed by the
"features/list" command.  Shouldn't they be?

5) Does it make sense to add a repository column to the output of the
"features/list" command.  If so, features loaded via the deploy
directory from a repository not in the list can indicate this with a "*"
or similar.


Tim Moloney                            The reasonable man adapts himself
to 
ManTech Real-time Systems Laboratory   the world; the unreasonable one
persists
2015 Cattlemen Road                    in trying to adapt the world to
himself.
Sarasota, FL  34232                    Therefore all progress depends on
the
(941) 377-6775 x208                    unreasonable man. - George
Bernard Shaw


Re: ServiceMix Questions

Posted by Guillaume Nodet <gn...@gmail.com>.
Right, it may have been a bit broken when we renamed packages and
such.  Pleae raise a JIRA and attach your patch there.

On Thu, May 7, 2009 at 20:15, Moloney, Tim M <Ti...@mantech.com> wrote:
>
> I had to apply the attached patch to get wrapper close to working.
>
> Unfortunately, I get a CNFE for org.tanukisoftware.wrapper.WrapperSimpleApp.  Huh???
>
> bash> bin/foo-service console
> Running foo...
> wrapper  | Working directory set to: /home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT
> wrapper  | --> Wrapper Started as Console
> wrapper  | Using tick timer.
> wrapperp | server listening on port 32000.
> wrapper  | Command[0] : java
> wrapper  | Command[1] : -Dkaraf.home=/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT
> wrapper  | Command[2] : -Dkaraf.base=/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT
> wrapper  | Command[3] : -Dcom.sun.management.jmxremote
> wrapper  | Command[4] : -Dkaraf.startLocalConsole=false
> wrapper  | Command[5] : -Dkaraf.startRemoteShell=true
> wrapper  | Command[6] : -Xmx512m
> wrapper  | Command[7] : -Djava.library.path=/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/
> wrapper  | Command[8] : -classpath
> wrapper  | Command[9] : /home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf-wrapper.jar:/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf.jar:/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf-jaas-boot.jar
> wrapper  | Command[10] : -Dwrapper.key=NcqMD309VIQHh8TX
> wrapper  | Command[11] : -Dwrapper.port=32000
> wrapper  | Command[12] : -Dwrapper.jvm.port.min=31000
> wrapper  | Command[13] : -Dwrapper.jvm.port.max=31999
> wrapper  | Command[14] : -Dwrapper.debug=TRUE
> wrapper  | Command[15] : -Dwrapper.pid=23145
> wrapper  | Command[16] : -Dwrapper.version=3.2.0
> wrapper  | Command[17] : -Dwrapper.native_library=wrapper
> wrapper  | Command[18] : -Dwrapper.cpu.timeout=10
> wrapper  | Command[19] : -Dwrapper.jvmid=1
> wrapper  | Command[20] : org.tanukisoftware.wrapper.WrapperSimpleApp
> wrapper  | Command[21] : org.apache.felix.karaf.main.Main
> wrapper  | Launching a JVM...
> jvm 1    | Exception in thread "main" java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApp
> jvm 1    | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApp
> jvm 1    |      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> jvm 1    |      at java.security.AccessController.doPrivileged(Native Method)
> jvm 1    |      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> jvm 1    |      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> jvm 1    |      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> jvm 1    |      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> jvm 1    |      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> wrapper  | Signal trapped.  Details:
> wrapper  |   signal number=17 (SIGCHLD), source="unknown"
> wrapper  | Received SIGCHLD, calling wait().
> wrapper  | wait() returned, child process should be gone.
> jvm 1    | Could not find the main class: org.tanukisoftware.wrapper.WrapperSimpleApp.  Program will exit.
> wrapper  | JVM process is gone.
> wrapper  | JVM exited while loading the application.
> wrapper  | JVM was only running for 0 seconds leading to a failed restart count of 1.
> wrapper  | Waiting 5 seconds before launching another JVM.
> ^Cwrapper  | Signal trapped.  Details:
> wrapper  |   signal number=2 (SIGINT), source="the kernel"
> wrapper  | INT trapped.  Shutting down.
> wrapper  | wrapperStopProcess(0) called.
> wrapper  | <-- Wrapper Stopped
> bash> jar tf /home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf-wrapper.jar | grep org/tanukisoftware/wrapper/WrapperSimpleApp
> org/tanukisoftware/wrapper/WrapperSimpleApp.class
>
>
> Tim Moloney                            The reasonable man adapts himself to
> ManTech Real-time Systems Laboratory   the world; the unreasonable one persists
> 2015 Cattlemen Road                    in trying to adapt the world to himself.
> Sarasota, FL  34232                    Therefore all progress depends on the
> (941) 377-6775 x208                    unreasonable man. - George Bernard Shaw
>
>
>> -----Original Message-----
>> From: Moloney, Tim M [mailto:Tim.Moloney@ManTech.com]
>> Sent: Wednesday, May 06, 2009 11:08
>> To: users@felix.apache.org
>> Subject: RE: ServiceMix Questions
>>
>>
>> On Wednesday, May 06, 2009 09:55, Guillaume Nodet
>> <gn...@gmail.com> wrote:
>> >
>> > 2009/5/6 Moloney, Tim M <Ti...@mantech.com>:
>> > >
>> > > I've been playing around with ServiceMix Kernel 1.1.0 for the last
>> > > couple of days.  I have to say that I'm quite impressed.
>> > However, I do
>> > > have some questions.
>> > >
>> > > 1) The overview page lists "native OS integration".  Is
>> > this an init rc
>> > > script like the one generated by Java Service Wrapper?  If
>> > so, I can't
>> > > find it.  If not, then what does it mean when it says
>> "Karaf can be
>> > > integrated into your own Operating System as a service so that the
>> > > lifecycle will be bound to your Operating System."
>> >
>> > We're using Java Service Wrapper.
>> > IIRC, it's not pre-installed so you need to run the
>> following commands
>> > from the console:
>> >     features/install wrapper
>> >     wrapper/install
>>
>> I'll give that a try.  Thanks for pointing me in the right direction.
>>
>> [...]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


RE: ServiceMix Questions

Posted by "Moloney, Tim M" <Ti...@ManTech.com>.
I had to apply the attached patch to get wrapper close to working.

Unfortunately, I get a CNFE for org.tanukisoftware.wrapper.WrapperSimpleApp.  Huh???

bash> bin/foo-service console
Running foo...
wrapper  | Working directory set to: /home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT
wrapper  | --> Wrapper Started as Console
wrapper  | Using tick timer.
wrapperp | server listening on port 32000.
wrapper  | Command[0] : java
wrapper  | Command[1] : -Dkaraf.home=/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT
wrapper  | Command[2] : -Dkaraf.base=/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT
wrapper  | Command[3] : -Dcom.sun.management.jmxremote
wrapper  | Command[4] : -Dkaraf.startLocalConsole=false
wrapper  | Command[5] : -Dkaraf.startRemoteShell=true
wrapper  | Command[6] : -Xmx512m
wrapper  | Command[7] : -Djava.library.path=/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/
wrapper  | Command[8] : -classpath
wrapper  | Command[9] : /home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf-wrapper.jar:/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf.jar:/home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf-jaas-boot.jar
wrapper  | Command[10] : -Dwrapper.key=NcqMD309VIQHh8TX
wrapper  | Command[11] : -Dwrapper.port=32000
wrapper  | Command[12] : -Dwrapper.jvm.port.min=31000
wrapper  | Command[13] : -Dwrapper.jvm.port.max=31999
wrapper  | Command[14] : -Dwrapper.debug=TRUE
wrapper  | Command[15] : -Dwrapper.pid=23145
wrapper  | Command[16] : -Dwrapper.version=3.2.0
wrapper  | Command[17] : -Dwrapper.native_library=wrapper
wrapper  | Command[18] : -Dwrapper.cpu.timeout=10
wrapper  | Command[19] : -Dwrapper.jvmid=1
wrapper  | Command[20] : org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper  | Command[21] : org.apache.felix.karaf.main.Main
wrapper  | Launching a JVM...
jvm 1    | Exception in thread "main" java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApp
jvm 1    | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApp
jvm 1    | 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
jvm 1    | 	at java.security.AccessController.doPrivileged(Native Method)
jvm 1    | 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
jvm 1    | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
jvm 1    | 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 1    | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
jvm 1    | 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
wrapper  | Signal trapped.  Details:
wrapper  |   signal number=17 (SIGCHLD), source="unknown"
wrapper  | Received SIGCHLD, calling wait().
wrapper  | wait() returned, child process should be gone.
jvm 1    | Could not find the main class: org.tanukisoftware.wrapper.WrapperSimpleApp.  Program will exit.
wrapper  | JVM process is gone.
wrapper  | JVM exited while loading the application.
wrapper  | JVM was only running for 0 seconds leading to a failed restart count of 1.
wrapper  | Waiting 5 seconds before launching another JVM.
^Cwrapper  | Signal trapped.  Details:
wrapper  |   signal number=2 (SIGINT), source="the kernel"
wrapper  | INT trapped.  Shutting down.
wrapper  | wrapperStopProcess(0) called.
wrapper  | <-- Wrapper Stopped
bash> jar tf /home/tmmoloney/workspace/karaf/apache-felix-karaf-1.2.0-SNAPSHOT/lib/karaf-wrapper.jar | grep org/tanukisoftware/wrapper/WrapperSimpleApp
org/tanukisoftware/wrapper/WrapperSimpleApp.class


Tim Moloney                            The reasonable man adapts himself to 
ManTech Real-time Systems Laboratory   the world; the unreasonable one persists
2015 Cattlemen Road                    in trying to adapt the world to himself.
Sarasota, FL  34232                    Therefore all progress depends on the
(941) 377-6775 x208                    unreasonable man. - George Bernard Shaw
 

> -----Original Message-----
> From: Moloney, Tim M [mailto:Tim.Moloney@ManTech.com] 
> Sent: Wednesday, May 06, 2009 11:08
> To: users@felix.apache.org
> Subject: RE: ServiceMix Questions
> 
>  
> On Wednesday, May 06, 2009 09:55, Guillaume Nodet 
> <gn...@gmail.com> wrote:
> > 
> > 2009/5/6 Moloney, Tim M <Ti...@mantech.com>:
> > >
> > > I've been playing around with ServiceMix Kernel 1.1.0 for the last
> > > couple of days.  I have to say that I'm quite impressed.  
> > However, I do
> > > have some questions.
> > >
> > > 1) The overview page lists "native OS integration".  Is 
> > this an init rc
> > > script like the one generated by Java Service Wrapper?  If 
> > so, I can't
> > > find it.  If not, then what does it mean when it says 
> "Karaf can be
> > > integrated into your own Operating System as a service so that the
> > > lifecycle will be bound to your Operating System."
> > 
> > We're using Java Service Wrapper.
> > IIRC, it's not pre-installed so you need to run the 
> following commands
> > from the console:
> >     features/install wrapper
> >     wrapper/install
> 
> I'll give that a try.  Thanks for pointing me in the right direction.
> 
> [...]


RE: ServiceMix Questions

Posted by "Moloney, Tim M" <Ti...@ManTech.com>.
 
On Wednesday, May 06, 2009 09:55, Guillaume Nodet <gn...@gmail.com> wrote:
> 
> 2009/5/6 Moloney, Tim M <Ti...@mantech.com>:
> >
> > I've been playing around with ServiceMix Kernel 1.1.0 for the last
> > couple of days.  I have to say that I'm quite impressed.  
> However, I do
> > have some questions.
> >
> > 1) The overview page lists "native OS integration".  Is 
> this an init rc
> > script like the one generated by Java Service Wrapper?  If 
> so, I can't
> > find it.  If not, then what does it mean when it says "Karaf can be
> > integrated into your own Operating System as a service so that the
> > lifecycle will be bound to your Operating System."
> 
> We're using Java Service Wrapper.
> IIRC, it's not pre-installed so you need to run the following commands
> from the console:
>     features/install wrapper
>     wrapper/install

I'll give that a try.  Thanks for pointing me in the right direction.

> > 2) If any features are installed, either from the deploy 
> directory or
> > from a feature URL, running "features/list -i" generates
> >
> >  ERROR CommandLineExecutionFailed:
> > org.apache.geronimo.gshell.command.CommandException:
> > java.lang.ArrayStoreException:
> >  org.apache.servicemix.kernel.gshell.features.internal.FeatureImpl
> 
> Please raise a jira and include the full stack trace and commands used
> so that we can reproduce it.

I've created FELIX-1125.

> > 3) No errors are generated for a bad URL passed to the
> > "features/addUrl", "features/refreshUrl", and "features/list".
> > Shouldn't a "file not found: <url>" error or similar be generated?
> 
> The problems is that we lazy-load the features from the repositories
> so the error will only appear when running features/list i think.
> This could be easily fixed.

I've created FELIX-1126

> > 4) Features loaded via the deploy directory aren't listed by the
> > "features/list" command.  Shouldn't they be?
> 
> Yes, they should imho.

I've created FELIX-1128

> > 5) Does it make sense to add a repository column to the 
> output of the
> > "features/list" command.  If so, features loaded via the deploy
> > directory from a repository not in the list can indicate 
> this with a "*"
> > or similar.
> 
> Good suggestion.

I've created FELIX-1127

> Please raise JIRA issues for the above problems.  If you want to work
> on those and submit patches, you're welcome.  Else, I'm sure they'll
> be fixed very soon.
> 
> >
> > Tim Moloney                            The reasonable man 
> adapts himself
> > to
> > ManTech Real-time Systems Laboratory   the world; the 
> unreasonable one
> > persists
> > 2015 Cattlemen Road                    in trying to adapt 
> the world to
> > himself.
> > Sarasota, FL  34232                    Therefore all 
> progress depends on
> > the
> > (941) 377-6775 x208                    unreasonable man. - George
> > Bernard Shaw
> >
> >
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
> 



Tim Moloney                            The reasonable man adapts himself to 
ManTech Real-time Systems Laboratory   the world; the unreasonable one persists
2015 Cattlemen Road                    in trying to adapt the world to himself.
Sarasota, FL  34232                    Therefore all progress depends on the
(941) 377-6775 x208                    unreasonable man. - George Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: ServiceMix Questions

Posted by Guillaume Nodet <gn...@gmail.com>.
2009/5/6 Moloney, Tim M <Ti...@mantech.com>:
>
> I've been playing around with ServiceMix Kernel 1.1.0 for the last
> couple of days.  I have to say that I'm quite impressed.  However, I do
> have some questions.
>
> 1) The overview page lists "native OS integration".  Is this an init rc
> script like the one generated by Java Service Wrapper?  If so, I can't
> find it.  If not, then what does it mean when it says "Karaf can be
> integrated into your own Operating System as a service so that the
> lifecycle will be bound to your Operating System."

We're using Java Service Wrapper.
IIRC, it's not pre-installed so you need to run the following commands
from the console:
    features/install wrapper
    wrapper/install

> 2) If any features are installed, either from the deploy directory or
> from a feature URL, running "features/list -i" generates
>
>  ERROR CommandLineExecutionFailed:
> org.apache.geronimo.gshell.command.CommandException:
> java.lang.ArrayStoreException:
>  org.apache.servicemix.kernel.gshell.features.internal.FeatureImpl

Please raise a jira and include the full stack trace and commands used
so that we can reproduce it.

> 3) No errors are generated for a bad URL passed to the
> "features/addUrl", "features/refreshUrl", and "features/list".
> Shouldn't a "file not found: <url>" error or similar be generated?

The problems is that we lazy-load the features from the repositories
so the error will only appear when running features/list i think.
This could be easily fixed.

> 4) Features loaded via the deploy directory aren't listed by the
> "features/list" command.  Shouldn't they be?

Yes, they should imho.

> 5) Does it make sense to add a repository column to the output of the
> "features/list" command.  If so, features loaded via the deploy
> directory from a repository not in the list can indicate this with a "*"
> or similar.

Good suggestion.
Please raise JIRA issues for the above problems.  If you want to work
on those and submit patches, you're welcome.  Else, I'm sure they'll
be fixed very soon.

>
> Tim Moloney                            The reasonable man adapts himself
> to
> ManTech Real-time Systems Laboratory   the world; the unreasonable one
> persists
> 2015 Cattlemen Road                    in trying to adapt the world to
> himself.
> Sarasota, FL  34232                    Therefore all progress depends on
> the
> (941) 377-6775 x208                    unreasonable man. - George
> Bernard Shaw
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org