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

Error trying to start Hospital-Service-2.0.0-EI7 #66

Open
glaucioguerra opened this issue Jan 7, 2020 · 5 comments
Open

Error trying to start Hospital-Service-2.0.0-EI7 #66

glaucioguerra opened this issue Jan 7, 2020 · 5 comments

Comments

@glaucioguerra
Copy link

Hi,

I have an issue when I tried to start Hospital-Service-2.0.0-EI7.jar. The error message is:

java -jar Hospital-Service-2.0.0-EI7.jar 
Exception in thread "main" java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
	at org.wso2.msf4j.internal.router.MicroserviceMetadata.<init>(MicroserviceMetadata.java:68)
	at org.wso2.msf4j.internal.MicroservicesRegistryImpl.updateMetadata(MicroservicesRegistryImpl.java:171)
	at org.wso2.msf4j.internal.MicroservicesRegistryImpl.addService(MicroservicesRegistryImpl.java:78)
	at org.wso2.msf4j.MicroservicesRunner.deploy(MicroservicesRunner.java:84)
	at org.wso2.service.hospital.Application.main(Application.java:29)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 5 more

I'm using Mac OS with JDK 11.

Thanks!

@srout93
Copy link

srout93 commented May 13, 2020

Hi,
Were you able to resolve this issue ?

@glaucioguerra
Copy link
Author

Hi @srout93 not really. I tried this service to test a POC a few months ago, with no success.

@srout93
Copy link

srout93 commented May 13, 2020

Hi @glaucioguerra you can use this jar file instead (https://github.com/wso2-docs/WSO2_EI/blob/master/Back-End-Service/Hospital-Service-JDK11-2.0.0.jar) and it is working in my case as well.

@leandrorichard
Copy link

Hi @glaucioguerra you can use this jar file instead (https://github.com/wso2-docs/WSO2_EI/blob/master/Back-End-Service/Hospital-Service-JDK11-2.0.0.jar) and it is working in my case as well.

It worked for me pretty well, solved my problem

@charithjayasanka
Copy link

Hi @glaucioguerra you can use this jar file instead (https://github.com/wso2-docs/WSO2_EI/blob/master/Back-End-Service/Hospital-Service-JDK11-2.0.0.jar) and it is working in my case as well.

This worked for me as well

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

4 participants