<html>
<head>
<base href="https://cwiki.apache.org/confluence">
<link rel="stylesheet" href="/confluence/s/2036/9/4/_/styles/combined.css?spaceKey=GMOxDOC30&forWysiwyg=true"
type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/Debugging+OSGi+problems">Debugging
OSGi problems</a></h2>
<h4>Page <b>added</b> by <a href="https://cwiki.apache.org/confluence/display/~gawor">Jarek
Gawor</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="DebuggingOSGiproblems-DebuggingOSGiresolverproblems"></a>Debugging
OSGi resolver problems</h1>
<p>To diagnose OSGi resolver problems it might be useful to turn on OSGi framework's
debug level. Apache Felix and Eclipse Equinox have different way to enable and configure the
debug options:</p>
<h2><a name="DebuggingOSGiproblems-Felix"></a>Felix</h2>
<p>To turn on debugging when running with Apache Felix edit the <tt>etc/system.properties</tt>
file and uncomment the following line:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader"
style="border-bottom-width: 1px;"><b>etc/system.properties</b></div><div
class="codeContent panelContent">
<pre class="code-java">
felix.log.level=4
</pre>
</div></div>
<p>The <tt>felix.log.level</tt> property can be set to any value between
0 and 4. 4 means maximum log level.</p>
<h2><a name="DebuggingOSGiproblems-Equinox"></a>Equinox</h2>
<p>To turn on debugging when running with Eclipse Equinox edit the <tt>etc/system.properties</tt>
file and uncomment the following line:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader"
style="border-bottom-width: 1px;"><b>etc/system.properties</b></div><div
class="codeContent panelContent">
<pre class="code-java">
osgi.debug=${karaf.home}/etc/equinox-debug.properties
</pre>
</div></div>
<p>The <tt>osgi.debug</tt> property specifies a Equinox property file which
contains a number of options for controlling the amount and type of logging generated by the
Equinox framework.</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;">
<a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
</div>
<a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/Debugging+OSGi+problems">View
Online</a>
|
<a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/Debugging+OSGi+problems?showComments=true&showCommentArea=true#addcomment">Add
Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|