Hello,
I know the error,because of jetty6 use slf4j,and the WebAppContext`s
_parentLoaderPriority 
 default value is false 
[code]_parentLoaderPriority  =
Boolean.getBoolean("org.mortbay.jetty.webapp.parentLoaderPriority");[/code]
 so set parentLoaderPriority to true;
jetty.xml:
<Set name="handlers">
                <Array type="org.mortbay.jetty.Handler">
                        <Item>
                                <New 
class="org.mortbay.jetty.webapp.WebAppContext">
                                        <Set 
name="parentLoaderPriority">true</Set>
                                        <Set name="contextPath">/</Set>
                                        <Set name="war">src/main/webapp</Set>
                                        <Get name="SessionHandler">
                                                <Set name="SessionManager">
                                                        <New
                                                                
class="org.mortbay.jetty.servlet.HashSessionManager" />
                                                </Set>
                                        </Get>
                                </New>
                        </Item>
                </Array>
        </Set>

Francois Armand wrote:
> 
> Lococode wrote:
>> Hi, 
> Hello Lococode,
> 
>> [...]
>>
>> error:
>>
>>     * java.lang.RuntimeException
>>       java.lang.ClassNotFoundException: caught an exception while
>> obtaining
>> a class file for org.example.myapp.pages.Start
>>     * java.lang.ClassNotFoundException
>>       caught an exception while obtaining a class file for
>> org.example.myapp.pages.Start
>>
>>       exception
>>           org.apache.tapestry.internal.services.TransformationException:
>> Error obtaining injected value for field
>> org.example.myapp.pages.Start.log:
>> java.lang.ClassNotFoundException: org.slf4j.Logger 
>>   
> I have the very same error. As soon as I attempt to inject 
> org.slf4j.Logger, I get an exception :
> 
> 8<-----------------------------
> exception
>     org.apache.tapestry.internal.services.TransformationException: Error 
> obtaining injected value for field 
> fr.bpi.tapestry.components.ViewUser.logger: 
> java.lang.ClassNotFoundException: org.slf4j.Logger
> 8<-----------------------------
> 
> I have use slj4j 1.4.3 and log4J 1.2.14.
> 
> Have you find a solution to your pb ?
> 
> -- 
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> -----------
> InterLDAP - http://interldap.org 
> FederID - http://www.federid.org/
> Open Source identities management and federation
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/About-Slf4j-Error-tp13591128p15240195.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to