geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v3.0 > Debugging OSGi problems
Date Tue, 01 Feb 2011 15:45:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2036/9/4/_/styles/combined.css?spaceKey=GMOxDOC30&amp;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>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~gawor">Jarek
Gawor</a>
    </h4>
        <br/>
                         <h4>Changes (3)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >The {{osgi.debug}} 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. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >h3. Using <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">{{osgi:diagnose}}</span>
<span class="diff-added-words"style="background-color: #dfd;">{{equinox:diagnose}}</span>
command <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" >On Equinox it might also be possible
to diagnose some resolver problems using the <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">{{osgi:diagnose}}</span>
<span class="diff-added-words"style="background-color: #dfd;">{{equinox:diagnose}}</span>
Geronimo shell command. Example: <br></td></tr>
            <tr><td class="diff-unchanged" > <br>{code:title=Geronimo Shell}
<br></td></tr>
            <tr><td class="diff-changed-lines" >geronimo&gt; <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">osgi:diagnose</span>
<span class="diff-added-words"style="background-color: #dfd;">equinox:diagnose</span>
 85 <br></td></tr>
            <tr><td class="diff-unchanged" >  mvn:org.springframework/org.springframework.beans/3.0.5.RELEASE/jar
[85] <br>    Unresolved direct constraints: <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <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>

<h3><a name="DebuggingOSGiproblems-Using%7B%7Bequinox%3Adiagnose%7D%7Dcommand"></a>Using
<tt>equinox:diagnose</tt> command</h3>

<p>On Equinox it might also be possible to diagnose some resolver problems using the
<tt>equinox:diagnose</tt> Geronimo shell command. Example:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader"
style="border-bottom-width: 1px;"><b>Geronimo Shell</b></div><div
class="codeContent panelContent">
<pre class="code-java">
  geronimo&gt; equinox:diagnose  85
  mvn:org.springframework/org.springframework.beans/3.0.5.RELEASE/jar [85]
    Unresolved direct constraints:
      Missing optionally imported <span class="code-keyword">package</span> javax.el_[1.0.0,3.0.0)
      Missing optionally imported <span class="code-keyword">package</span> javax.inject_[1.0.0,2.0.0)
      Missing imported <span class="code-keyword">package</span> org.springframework.core_[3.0.5,3.0.6)
      ...
</pre>
</div></div>
    </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/pages/diffpagesbyversion.action?pageId=25200447&revisedVersion=3&originalVersion=2">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/Debugging+OSGi+problems?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message