Return-Path: Delivered-To: apmail-xmlbeans-user-archive@www.apache.org Received: (qmail 87981 invoked from network); 11 Feb 2008 04:33:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 04:33:57 -0000 Received: (qmail 10100 invoked by uid 500); 11 Feb 2008 04:33:49 -0000 Delivered-To: apmail-xmlbeans-user-archive@xmlbeans.apache.org Received: (qmail 10081 invoked by uid 500); 11 Feb 2008 04:33:49 -0000 Mailing-List: contact user-help@xmlbeans.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: user@xmlbeans.apache.org List-Id: Delivered-To: mailing list user@xmlbeans.apache.org Received: (qmail 10070 invoked by uid 99); 11 Feb 2008 04:33:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2008 20:33:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jacob.danner@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 04:33:18 +0000 Received: by py-out-1112.google.com with SMTP id u52so4834067pyb.1 for ; Sun, 10 Feb 2008 20:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=PrEnxXw4Tvu8sodH6TNLixlEgfdnv8qPIw8kQbuqjLQ=; b=WrgAlIJ66r7X7jg4mkl+QAn6h7YuTr6roC7BSiOam0ipoCLYb/XiIjc88Z8bCK/nz6X+4KcHWhPxqFuFE3temUiKKJr35ap2A+ZwK6CzlaPNpEEIY8O+veylenWDybKYI1R1npG7Cug+VzAqpKyqA/5fdQcKdrmCLVWNE7OvtxA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bSeLnuHtSMDWcSpuAVLJq/sLEOWAVDQ9QQ/fkfdKnHq6wLYnextpUbjklEeXxg1M/H0k4441zsNVT1W4GSUZYG8cDhFyI5qyiflGSr6dp1oDYo9esSHP+IMl0LAFSXijwfQCJMfBYUcWcTIRRYWMLpk1lDgTF6E6mtSIVkmwosY= Received: by 10.142.115.10 with SMTP id n10mr1696286wfc.19.1202704403620; Sun, 10 Feb 2008 20:33:23 -0800 (PST) Received: by 10.142.128.14 with HTTP; Sun, 10 Feb 2008 20:33:23 -0800 (PST) Message-ID: Date: Sun, 10 Feb 2008 20:33:23 -0800 From: "Jacob Danner" To: user@xmlbeans.apache.org Subject: Re: Help with integrating maven2 plugin and apache In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi Todd, I'm not an eclipse user (IntelliJ IDEA), but I'll give it a try. Which maven plugin are you using, which version of eclipse? Have you queried the maven or eclipse projects for similar issues? -jacobd On Feb 10, 2008 6:21 PM, Todd Nine wrote: > Bump, > I've been struggling with this for 2 days. Note that my title is > incorrect, is should say integrating maven 2 plugin and Eclipse. I've tried > downgrading xmlbeans.xbean from 2.2.0 to 2.1.0, which didn't fix my issue. > If I choose a version less than 2.1.0, the plugin completely blows up due to > deprecation problems. Has anyone successfully used this plugin with an > Eclipse environment? If so how did you do it? This is immensely > frustrating, and I don't want to use JAXB, but I'm running out of time to > get XML Beans working. > > > Thanks, > Todd > > > > On Feb 8, 2008 1:03 PM, Todd Nine wrote: > > Hi All, > > I'm using XML Beans version 2.2.0, and I'm trying to run my code through > the Eclipse debugger. Its failing, and I receive the following errors. > I've included my maven plugin 2 configuration, but basically I'm having the > plugin create a jar of the classes that will be deployed, and including it > into my classpath in Eclipse. Any idea why I'm getting this error? I'm > using the same jdk for both maven, and eclipse, so I'm not sure why I'm > getting the class version issues. > > > > Thanks, > > Todd > > > > Maven plugin configuration: > > > > org.codehaus.mojo > > xmlbeans-maven-plugin > > > > > > > > xmlbeans > > > > > > > > true > > > > src/main/xsd > > true > > > target/eclipse/xmlbeans-eclipse-runtime.jar > > > > > > Exception stacktrace: > > > > java.lang.ExceptionInInitializerError > > at sun.misc.Unsafe.ensureClassInitialized(Native Method) > > at > sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) > > at > sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) > > at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) > > at java.lang.reflect.Field.getFieldAccessor(Field.java:898) > > at java.lang.reflect.Field.get(Field.java:357) > > at > org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:770) > > at > com.onwebconsulting.urchin.profiles.ProfilesDocument.(Unknown > Source) > > at > com.onwebconsulting.urchin.profiles.ProfilesDocument$Factory.parse(Unknown > Source) > > at > com.bnp.insightCommon.dao.rest.UrchinDaoImpl.getProfiles(UrchinDaoImpl.java:81) > > at > com.bnp.insightCommon.dao.UrchinDaoTest.getProfiles(UrchinDaoTest.java:54) > > at > com.bnp.insightCommon.dao.UrchinDaoTest.testGetProfiles(UrchinDaoTest.java:41) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at junit.framework.TestCase.runBare(TestCase.java:127) > > at > org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) > > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > Caused by: java.lang.RuntimeException: Could not instantiate > SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the > version of xbean.jar correct? > > at > schemaorg_apache_xmlbeans.system.sD0FCECC1CA81F97745FE1F9A4449F63C.TypeSystemHolder.loadTypeSystem(Unknown > Source) > > at > schemaorg_apache_xmlbeans.system.sD0FCECC1CA81F97745FE1F9A4449F63C.TypeSystemHolder.(Unknown > Source) > > ... 31 more > > Caused by: java.lang.reflect.InvocationTargetException > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > ... 33 more > > Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS > compiled schema: Incompatible minor version - expecting up to 23, got 24 > (schemaorg_apache_xmlbeans.system.sD0FCECC1CA81F97745FE1F9A4449F63C.index) - > code 3 > > at > org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.(SchemaTypeSystemImpl.java:1522) > > at > org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:260) > > at > org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.(SchemaTypeSystemImpl.java:183) > > ... 37 more > > > > > > > > > > > > -- I'm competing in a Half-Ironman distance triathlon to raise money for the fight against cancer! Please help support my efforts by going to: http://www.active.com/donate/tntwaak/jacobd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org For additional commands, e-mail: user-help@xmlbeans.apache.org