Comments (7)
@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.
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.
@antonioluzzi This is a checkstyle error. Can you try disabling checkstyle and build
e.g. "-Dcheckstyle.skip=true"
from msf4j.
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.
@antonioluzzi You can put all your dependencies in the pom.xml including relevant msf4j dependencies
from msf4j.
Pardon me, but I don't understand.
Can you advise me to take a look a practical example?
from msf4j.
Can you suggest to me an example of a deployable project where I can import spring?
from msf4j.
Related Issues (20)
- NullPointerException when starting the Product SP with v2.6.1
- Documentation of pom entry microservice.resourceClasses HOT 4
- Register custom Gson Type adapter HOT 2
- Update to latest GSON release HOT 1
- in deployable jar - swagger tags disapears
- ERROR ResourceLeakDetector:171 - LEAK: ByteBuf.release() was not called before it's garbage-collected HOT 1
- missing "Microservices:" in META-INF HOT 1
- msf4j support for cors HOT 2
- msf4j @RequestBody not working HOT 1
- Repetitve doc links in jwt-claims sample README
- Add documentation for matrics interceptor
- Enable HandlerInterceptoTest case after fixing issues in it
- metrics-httpmon-fatjar sample build results in two jars, only one can be executed to start the micro service HOT 1
- Better to have two separate samples to demonstrate HTTP monitoring and Metrics Monitoring
- SwaggerDefinition not working HOT 2
- Websocket example deployable jar not deploying in wso2 ei
- AbstractMethod error and MSF4JResponse HOT 1
- Dependency org.bouncycastle:bcprov-jdk15on, leading to CVE problem HOT 2
- MSF4J Microservice with a custom dependency doesn't work after being deployed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msf4j.