java - Error in Maven and JAXB -
i've written small java program using jaxb. in eclipse working fine! everthing works...
then involved maven , when execute jar (generated maven) following error:
dez 16, 2014 2:51:15 pm com.sun.xml.internal.bind.v2.util.xmlfactory createparserfactory schwerwiegend: null org.xml.sax.saxnotrecognizedexception: http://javax.xml.xmlconstants/feature/secure-processing @ org.apache.xerces.parsers.abstractsaxparser.setfeature(unknown source) @ org.apache.xerces.jaxp.saxparserimpl.setfeatures(unknown source) @ org.apache.xerces.jaxp.saxparserimpl.<init>(unknown source) @ org.apache.xerces.jaxp.saxparserfactoryimpl.newsaxparserimpl(unknown source) @ org.apache.xerces.jaxp.saxparserfactoryimpl.setfeature(unknown source) @ com.sun.xml.internal.bind.v2.util.xmlfactory.createparserfactory(unknown source) @ com.sun.xml.internal.bind.v2.runtime.unmarshaller.unmarshallerimpl.getxmlreader(unknown source) @ com.sun.xml.internal.bind.v2.runtime.unmarshaller.unmarshallerimpl.unmarshal(unknown source) @ javax.xml.bind.jaxb.unmarshal(unknown source) @ de.lsd.jimp.controller.jimpcontroller.dojaxb(jimpcontroller.java:70) @ de.lsd.jimp.controller.jimpcontroller.<init>(jimpcontroller.java:46) @ de.lsd.jimp.init.jimp.initcontroller(jimp.java:195) @ de.lsd.jimp.init.jimp.main(jimp.java:219) error [2014-12-16 14:51:15,626] - fehler bei jaxb.unmarshal aufgetreten! thread:main class:de.lsd.jimp.controller.jimpcontroller method:dojaxb java.lang.illegalstateexception: org.xml.sax.saxnotrecognizedexception: http://javax.xml.xmlconstants/feature/secure-processing @ com.sun.xml.internal.bind.v2.util.xmlfactory.createparserfactory(unknown source) @ com.sun.xml.internal.bind.v2.runtime.unmarshaller.unmarshallerimpl.getxmlreader(unknown source) @ com.sun.xml.internal.bind.v2.runtime.unmarshaller.unmarshallerimpl.unmarshal(unknown source) @ javax.xml.bind.jaxb.unmarshal(unknown source) @ de.lsd.jimp.controller.jimpcontroller.dojaxb(jimpcontroller.java:70) @ de.lsd.jimp.controller.jimpcontroller.<init>(jimpcontroller.java:46) @ de.lsd.jimp.init.jimp.initcontroller(jimp.java:195) @ de.lsd.jimp.init.jimp.main(jimp.java:219) caused by: org.xml.sax.saxnotrecognizedexception: http://javax.xml.xmlconstants/feature/secure-processing @ org.apache.xerces.parsers.abstractsaxparser.setfeature(unknown source) @ org.apache.xerces.jaxp.saxparserimpl.setfeatures(unknown source) @ org.apache.xerces.jaxp.saxparserimpl.<init>(unknown source) @ org.apache.xerces.jaxp.saxparserfactoryimpl.newsaxparserimpl(unknown source) @ org.apache.xerces.jaxp.saxparserfactoryimpl.setfeature(unknown source)
my pom-file looks that:
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>jimp</groupid> <artifactid>jimp</artifactid> <version>0.0.1-snapshot</version> <build> <sourcedirectory>src</sourcedirectory> <plugins> <plugin> <artifactid>maven-assembly-plugin</artifactid> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> <configuration> <descriptorrefs> <descriptorref>jar-with-dependencies</descriptorref> </descriptorrefs> <archive> <manifest> <addclasspath>true</addclasspath> <mainclass>de.own.jimp.init.jimp</mainclass> </manifest> </archive> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupid>commons-codec</groupid> <artifactid>commons-codec</artifactid> <version>1.5</version> </dependency> <dependency> <groupid>commons-collections</groupid> <artifactid>commons-collections</artifactid> <version>3.2</version> </dependency> <dependency> <groupid>commons-configuration</groupid> <artifactid>commons-configuration</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>commons-digester</groupid> <artifactid>commons-digester</artifactid> <version>2.1</version> </dependency> <dependency> <groupid>commons-lang</groupid> <artifactid>commons-lang</artifactid> <version>2.1</version> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.9</version> </dependency> <dependency> <groupid>ownswt64</groupid> <artifactid>ownswt64</artifactid> <version>1.0.0</version> </dependency> <dependency> <groupid>ownjface</groupid> <artifactid>ownjface</artifactid> <version>3.8.102</version> </dependency> <dependency> <groupid>ownojdbc</groupid> <artifactid>ownojdbc</artifactid> <version>14</version> </dependency> <dependency> <groupid>org.eclipse.core</groupid> <artifactid>runtime</artifactid> <version>3.10.0-v20140318-2214</version> </dependency> <dependency> <groupid>org.eclipse.core</groupid> <artifactid>commands</artifactid> <version>3.3.0-i20070605-0010</version> </dependency> <dependency> <groupid>revofubi</groupid> <artifactid>revofubi</artifactid> <version>1.0.0</version> </dependency> </dependencies> </project>
i figured out problem caused maven (in eclipse works..). further read problem caused integrated depedencies?!
i can't solve it..
maybe have experience issue..!
thanks help!!
Comments
Post a Comment