Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing "Microservices:" in META-INF #550

Open
antonioluzzi opened this issue Oct 25, 2018 · 1 comment
Open

missing "Microservices:" in META-INF #550

antonioluzzi opened this issue Oct 25, 2018 · 1 comment

Comments

@antonioluzzi
Copy link

antonioluzzi commented Oct 25, 2018

I m developing a microservice and I have used maven to generate my project:
mvn archetype:generate -DarchetypeGroupId=org.wso2.msf4j
-DarchetypeArtifactId=msf4j-microservice -DarchetypeVersion=2.6.4
-DgroupId=it.telcolab -DartifactId=CMIS-Service -Dversion=0.1-SNAPSHOT
-Dpackage=it.telcolab.service -DserviceClass=CmisService

When I execute maven install, the generated .jar have a Manifest with main class and no Microsevices element.
This is my pom:

<modelVersion>4.0.0</modelVersion>

<groupId>it.telcolab</groupId>

<artifactId>CMIS-Service</artifactId>

<version>0.0.1-SNAPSHOT</version>

<parent>
	<groupId>org.wso2.msf4j</groupId>
	<artifactId>msf4j-service</artifactId>
	<version>2.6.4</version>
</parent>

<dependencies>
	
	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpmime</artifactId>
		<version>4.5.6</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.testng</groupId>
		<artifactId>testng</artifactId>
		<version>6.14.3</version>
		<scope>test</scope>
	</dependency>
</dependencies>
<properties>
	<!-- Generic properties -->
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<java.version>1.8</java.version>
	<microservice.mainClass>it.telcolab.service.Application</microservice.mainClass>
 <microservice.resourceClasses>it.telcolab.service.CmisService</microservice.resourceClasses>
</properties>
I can't deploy my microservice because the manifest isn't correct: I have the following exception:

Caused by: org.wso2.msf4j.internal.deployer.MicroserviceDeploymentException: Manifest entry 'microservices' not found: /usr/lib/wso2/wso2ei/6.4.0/wso2/msf4j/deployment/microservices/CMIS-Service-0.0.1-SNAPSHOT.jar

The manifest is the following:

Manifest-Version: 1.0
Implementation-Title: CMIS-Service
Implementation-Version: 0.0.1-SNAPSHOT
Archiver-Version: Plexus Archiver
Built-By: ubuntu18
Specification-Vendor: WSO2
Specification-Title: CMIS-Service
Implementation-Vendor-Id: it.telcolab
Implementation-Vendor: WSO2
Main-Class: it.telcolab.service.Application
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_171
Specification-Version: 0.0.1-SNAPSHOT
Implementation-URL: http://www.wso2.org/CMIS-Service/

Can you help me? Please.
Regards
Antonio

@thusithathilina
Copy link
Contributor

thusithathilina commented Oct 25, 2018

I believe this is somewhat related to your issue #551. Hope the answer over there clear out your issues. Basically, if you use maven archtype to create a msf4j application, it is in standalone mode. Standalone mode MSF4J apps can't be deployed in EI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants