camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Why do Camel throw so many NoClassDefFoundException on startup
Date Sat, 12 Mar 2011 12:30:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2036/9/1/_/styles/combined.css?spaceKey=CAMEL&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/CAMEL/Why+do+Camel+throw+so+many+NoClassDefFoundException+on+startup">Why
do Camel throw so many NoClassDefFoundException on startup</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
        <br/>
                         <h4>Changes (1)</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" > <br>To remedy this either add
the missing .jars to the classpath, or stop using the big .jar and use the fine grained jars.
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br>See also [How do I use a big (uber) JAR?] <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="WhydoCamelthrowsomanyNoClassDefFoundExceptiononstartup-WhydoCamelthrowsomanyNoClassDefFoundExceptiononstartup"></a>Why
do Camel throw so many NoClassDefFoundException on startup</h2>
<p>Camel uses a runtime strategy to discover features while it starts up. This is used
to register components, languages, type converters etc.</p>

<p>If you are using the uber .jar (the big camel.jar) with all the camel components
in a single .jar filen, the this problem can typically occur.<br/>
Especially the type converters is know to cause NoClassDefFoundException in the log during
startup. The reasons is that some of these type converters rely on 3rd. party .jar files.</p>

<p>To remedy this either add the missing .jars to the classpath, or stop using the big
.jar and use the fine grained jars.</p>

<p>See also <a href="/confluence/pages/viewpage.action?pageId=25204375" title="How
do I use a big (uber) JAR?">How do I use a big &#40;uber&#41; JAR&#63;</a></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/CAMEL/Why+do+Camel+throw+so+many+NoClassDefFoundException+on+startup">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=111401&revisedVersion=2&originalVersion=1">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Why+do+Camel+throw+so+many+NoClassDefFoundException+on+startup?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message