Hi,

my comments inline:

On 02/01/2012 03:14 PM, Tomasz Kaczanowski wrote:
JB,

thanks for your prompt reply.


1/ for the hotdeploy folder, could you turn in debug to see if Felix
fileinstall is calling the deployer ?
You mean System.setProperty("KARAF_DEBUG", "true"); ? No additional output.

No, at least turning the rootLogger in DEBUG (as you can do in etc/org.ops4j.pax.logging.cfg file).

2/ for the console, I guess that you talk about the ssh connection.
Could you check if the sshd server is started (for instance, checking
if the ssh and management features are correctly installed, and
performing a telnet on te given port), especially if there are some
port overlap.
How should I check ssh and management features are installed?
BTW. I checked with netstat but found nothing on 8101. I tried to
configure ssh by putting org.apache.karaf.shell.cfg into karaf/etc

Are you able to access to the JMX layer ?
In the etc/org.apache.karaf.features.cfg, could you check that management and ssh are bootFeatures ?

Regards
JB



We can discuss about adding a war distribution of Karaf, or at least
document how to do it.
Please do.

--
Regards,
Tomek Kaczanowski


Regards
JB

On 02/01/2012 02:53 PM, Tomasz Kaczanowski wrote:
Hi All,

trying to run Karaf embedded within web application deployed to Jetty or
JBoss. Yes, I know this is suboptimal, but well, I need it have it
running inside some web container.

So I managed to run Karaf by calling Main() within some web listener
(invoked from web.xml), but:

- hot deploy does not seem to work: OSGi bundles copied into
WEB-INF/karaf/deploy are ignored (nothing happens)
- I can't connect to local or remote console - even though I put system
properties (System.setProperty("karaf.startLocalConsole",
"true");System.setProperty("karaf.startRemoteShell", "true");) which
should (AFAIK) start the console

The question is if I'm hitting the limits of what embedded Karaf can do,
or (most probably) I do it wrong. Is there any complete example of
having fully-fledged Karaf running in embedded mode?





--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to