From users-return-13766-apmail-tomee-users-archive=tomee.apache.org@tomee.apache.org Tue Oct 8 14:54:20 2013 Return-Path: X-Original-To: apmail-tomee-users-archive@www.apache.org Delivered-To: apmail-tomee-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C7FE10D8B for ; Tue, 8 Oct 2013 14:54:20 +0000 (UTC) Received: (qmail 10861 invoked by uid 500); 8 Oct 2013 14:54:20 -0000 Delivered-To: apmail-tomee-users-archive@tomee.apache.org Received: (qmail 10593 invoked by uid 500); 8 Oct 2013 14:54:19 -0000 Mailing-List: contact users-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tomee.apache.org Delivered-To: mailing list users@tomee.apache.org Received: (qmail 10576 invoked by uid 99); 8 Oct 2013 14:54:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 14:54:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rmannibucau@gmail.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 14:54:14 +0000 Received: by mail-ie0-f181.google.com with SMTP id tp5so19352444ieb.40 for ; Tue, 08 Oct 2013 07:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=BMxexdC/vtpAK17wlsQyunRjpu57yoXUszk2ugPkfUE=; b=CDe/Fw51FkHxXLgzQQ+ksPLknGScGyaeRkZRRRmBdBkz/3p3IDLotLxd3/9ltEaRZB SoQTs93DDwe76nZr3xgw1b4TgcOCgHuGsbm2uCPYVnFWfrwDN3xknddp2XbrzNYhqCLc OeLNYscR07pyy2uu/dqTdv8LsskRUXfKlIlqZSozZ3jmyDUN7kXJTa4AX9Im/yCoUmlh zJ25RBKmhkYc+1FYsnu08VwW/x304rlRcGIiqCGl8Lb/GVkSSuFKfDwXNlx3SfVSIy18 BUW+AinR1Er4mcJvNLfw1ozQEm2s8dlhQ50b97342szcTB/EMUYnsAHZHmRNJAZ0QyF+ 0tRA== MIME-Version: 1.0 X-Received: by 10.50.45.34 with SMTP id j2mr21836875igm.13.1381244033501; Tue, 08 Oct 2013 07:53:53 -0700 (PDT) Received: by 10.64.252.66 with HTTP; Tue, 8 Oct 2013 07:53:53 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Oct 2013 16:53:53 +0200 Message-ID: Subject: Re: Apache TomEE 1.6.0-SNAPSHOT - web-fragment.xml UnmarshallException From: Romain Manni-Bucau To: "users@tomee.apache.org" Content-Type: multipart/alternative; boundary=089e0122f00cf7134304e83beffe X-Virus-Checked: Checked by ClamAV on apache.org --089e0122f00cf7134304e83beffe Content-Type: text/plain; charset=ISO-8859-1 Hi it doesn't reproduce creating a project with a dependency of the same kind (jar) with a web-fragment? *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/10/8 jieryn > I'm using Apache TomEE 1.6.0-SNAPSHOT from October 8th. I have seen > these errors for a while now, but am not able to reproduce it in a > sample project. I have a lot of WEB-INF/lib/blah.jar files which > contain META-INF/web-fragment.xml files which configure the system > modularly. At start up, I see the following: > > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", > local:"error-page"). > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", local:"filter"). > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", local:"listener"). > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", > local:"mime-mapping"). > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", > local:"security-constraint"). > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", > local:"session-config"). > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", > local:"welcome-file-list"). > > Expected elements are > <{http://java.sun.com/xml/ns/javaee}session-config>,<{ > http://java.sun.com/xml/ns/javaee}servlet-mapping>,<{ > http://java.sun.com/xml/ns/javaee}pre-destroy>,<{ > http://java.sun.com/xml/ns/javaee}mime-mapping>,<{ > http://java.sun.com/xml/ns/javaee}message-destination>,<{ > http://java.sun.com/xml/ns/javaee}persistence-unit-ref>,<{ > http://java.sun.com/xml/ns/javaee}login-config>,<{ > http://java.sun.com/xml/ns/javaee}error-page>,<{ > http://java.sun.com/xml/ns/javaee}persistence-context-ref>,<{ > http://java.sun.com/xml/ns/javaee}icon>,<{ > http://java.sun.com/xml/ns/javaee}servlet>,<{ > http://java.sun.com/xml/ns/javaee}env-entry>,<{http://java.sun.comf>,<{ > http://java.sun.com/xml/ns/javaee}ejb-ref>,<{ > http://java.sun.com/xml/ns/javaee}security-constraint>,<{ > http://java.sun.com/xml/ns/javaee}ejb-local-ref> > > Each instance has that Expected elements long line after it, however I > truncated it for this email. > > Any ideas? > --089e0122f00cf7134304e83beffe--