[ 
https://issues.apache.org/jira/browse/LOG4J2-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084154#comment-14084154
 ] 

Remko Popma edited comment on LOG4J2-760 at 8/3/14 11:17 PM:
-------------------------------------------------------------

Hi Dale, 

this [dependency 
page|http://logging.apache.org/log4j/2.x/dependency-management.html] also lists 
jackson-mapper-asl 1.9.13 as a dependency. UPDATE: no, sorry, looks like that 
is only used by log4j-flume...

Update - I just saw that you've already got the jackson dependencies mentioned 
in the dependency management [page for 
log4j-core|http://logging.apache.org/log4j/2.x/log4j-core/dependency-management.html],
 including jackson-module-jaxb-annotations 2.4.1.

You may another annotations jar (not JAXB), called 
jackson-annotations-2.4.1.jar? 
http://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations/2.4.1


was (Author: [email protected]):
Hi Dale, 

this [dependency 
page|http://logging.apache.org/log4j/2.x/dependency-management.html] also lists 
jackson-mapper-asl 1.9.13 as a dependency.

The dependency management [page for 
log4j-core|http://logging.apache.org/log4j/2.x/log4j-core/dependency-management.html]
 actually lists a whole bunch of jackson dependencies, including 
jackson-module-jaxb-annotations 2.4.1. (Not sure why the different versions.)

I hope this helps. -Remko

> XMLLayout NoClassDefFoundError
> ------------------------------
>
>                 Key: LOG4J2-760
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-760
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>    Affects Versions: 2.0, 2.0-rc2
>         Environment: Windows JDK 1.7.0_65
>            Reporter: Dale Furrow
>         Attachments: BasicScreenshot.jpg, screenshot - with Jacson 2.4.1.jpg
>
>
> Hello--first time report please bear with me.
> Upgrading project from 2.0-rc1 to 2.0, ran into the following issue:
> Layout<? extends Serializable> xmlLayout =  xmlLayout.createDefaultLayout();
> produces the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/fasterxml/jackson/core/JsonProcessingException
> I've included the API and Core JAR's to the project path, as previously.  For 
> reference, I'm comparing this line with the following line that runs 
> correctly in rc1:
> Layout<? extends Serializable> fileXMLLayout = XMLLayout.createLayout("true", 
> "true", null, null, null, null);



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to