users@jaxb.java.net

Re: Error

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Wed, 5 Mar 2008 10:03:35 +0100

Hi.

> Could anyone explain what is the problem with this msg
>
> Buildfile: build.xml
>
>
>
> compile:
>
> [echo] Compiling the schema...
>
> [xjc] files are up to date
>
> [echo] Compiling the java source files...
>
>
>
> run:
>
> [echo] Running the sample application...
>
> [java] Exception in thread "main" javax.xml.bind.UnmarshalException:
> unexpected element (uri:"http://jakarta.apache.org/log4j/",
> local:"configuration"). Expected elements are
> <{}appender>,<{}appender-ref>,<{}category>,<{}categoryFactory>,<{}connectionSource>,<{}dataSource>,<{}errorHandler>,<{}filter>,<{}layout>,<{}level>,<{}log4j:configuration>,<{}log4j:data>,<{}log4j:event>,<{}log4j:eventSet>,<{}log4j:locationInfo>,<{}log4j:properties>,<{}logger>,<{}logger-ref>,<{}loggerFactory>,<{}param>,<{}plugin>,<{}priority>,<{}renderer>,<{}rollingPolicy>,<{}root>,<{}root-ref>,<{}triggeringPolicy>

Elements defined in a DTD belong to an empty namespace. Your sample
XML uses "http://jakarta.apache.org/log4j/" as the namespace.

Bye.
/lexi