Git Product home page Git Product logo

Comments (7)

thusithathilina avatar thusithathilina commented on July 27, 2024 1

@antonioluzzi AFAIK you can't deploy a standalone MSF4J application in WSO2 EI. MSF4J has another mode called deployable-jar mode. If you want to deploy an MSF4K microservice, you have to use that mode.
Please refer the sample in https://github.com/wso2/msf4j/tree/master/samples/stockquote/deployable-jar

from msf4j.

antonioluzzi avatar antonioluzzi commented on July 27, 2024

The fat version works fine, instead deployable version no :-(

ubuntu18@ubuntu18-VirtualBox:/sviluppo/msf4j/samples/stockquote/deployable-jar$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< org.wso2.msf4j:stockquote-deployable-jar >--------------
[INFO] Building Sample: Stockquote microservice (Deployable Jar) 2.6.5-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ stockquote-deployable-jar ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.754 s
[INFO] Finished at: 2018-10-25T12:50:27+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate) on project stockquote-deployable-jar: Failed during checkstyle execution: Unable to find suppressions file at location: https://raw.githubusercontent.com/wso2/code-quality-tools/master/checkstyle/suppressions.xml: Could not find resource 'https://raw.githubusercontent.com/wso2/code-quality-tools/master/checkstyle/suppressions.xml'. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
ubuntu18@ubuntu18-VirtualBox:/sviluppo/msf4j/samples/stockquote/deployable-jar$

from msf4j.

thusithathilina avatar thusithathilina commented on July 27, 2024

@antonioluzzi This is a checkstyle error. Can you try disabling checkstyle and build
e.g. "-Dcheckstyle.skip=true"

from msf4j.

antonioluzzi avatar antonioluzzi commented on July 27, 2024

thanks to help me.
I have succeful compiled my project : mvn install -Dcheckstyle.skip=true -Dfindbugs.skip=true
but my rest service doesn't start, maybe there are some missing dependencies.
My rest service use external api (apache cmis). In my standalone version, it works fine, instead of the deployable version no. I m new in ms4j and wso2ei. In my case where do I have to put all the dependencies and configuration file (application.properties)?
Regards
Antonio

from msf4j.

thusithathilina avatar thusithathilina commented on July 27, 2024

@antonioluzzi You can put all your dependencies in the pom.xml including relevant msf4j dependencies

from msf4j.

antonioluzzi avatar antonioluzzi commented on July 27, 2024

Pardon me, but I don't understand.
Can you advise me to take a look a practical example?

from msf4j.

antonioluzzi avatar antonioluzzi commented on July 27, 2024

Can you suggest to me an example of a deployable project where I can import spring?

from msf4j.

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.