Git Product home page Git Product logo

Comments (3)

garyhodgson avatar garyhodgson commented on September 3, 2024

mebibou, i'm not sure if this helps you but I ran into the same problem and I did the following to fix it. It's probably not the correct solution, but it worked for me.

Replaced the kxml2 dependency in epublib-core with xpp3

<dependency>
    <groupId>org.apache.servicemix.bundles</groupId>
    <artifactId>org.apache.servicemix.bundles.xpp3</artifactId>
    <version>1.1.4c_4</version>
</dependency>

I then replaced line 80 of EpubProcessorSupport.java from:
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
to:
XmlPullParserFactory factory = new org.xmlpull.mxp1.MXParserFactory();

I also commented out line 83:
//result.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);

from epublib.

mebibou avatar mebibou commented on September 3, 2024

Hi, thanks for the reply.
I actually managed to resolve the issue by adding the -complete version of the library, i.e. by adding epublib-core-3.0-SNAPSHOT-complete.jar instead of the normal one, and it worked much better. Sorry for not closing the ticket before.

from epublib.

tokra avatar tokra commented on September 3, 2024

you can build project with maven: ~/Github/epublib/epublib-core$ mvn compile dependency:copy-dependencies package

and it will get dependencies into ./target/dependency folder

you can copy those all in your project.

from epublib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.