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

JHipster Registry doesn't work with Google App Engine #400

Closed
1 task done
SudharakaP opened this issue Dec 11, 2019 · 1 comment · Fixed by #413
Closed
1 task done

JHipster Registry doesn't work with Google App Engine #400

SudharakaP opened this issue Dec 11, 2019 · 1 comment · Fixed by #413

Comments

@SudharakaP
Copy link
Member

Overview of the issue

It seems that JHipster Registry has problems with deploying in Google app engine, which I am currently trying to solve. The error we are getting trying to do a deployment is,

A 2019-12-11T06:36:16.841921Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
A 2019-12-11T06:36:16.842008Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
A 2019-12-11T06:36:16.842020Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
A 2019-12-11T06:36:16.842033Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:566) 
A 2019-12-11T06:36:16.842044Z 	at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:140) 
A 2019-12-11T06:36:16.842056Z 	at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107) 
A 2019-12-11T06:36:16.842067Z Caused by: java.lang.NoClassDefFoundError: org/springframework/core/env/Environment 
A 2019-12-11T06:36:16.842084Z 	at java.base/java.lang.Class.getDeclaredMethods0(Native Method) 
A 2019-12-11T06:36:16.843035Z 	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166) 
A 2019-12-11T06:36:16.843065Z 	at java.base/java.lang.Class.getDeclaredMethod(Class.java:2473) 
A 2019-12-11T06:36:16.843084Z 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:47) 
A 2019-12-11T06:36:16.843163Z 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) 
A 2019-12-11T06:36:16.843191Z 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) 
A 2019-12-11T06:36:16.843208Z 	at org.springframework.boot.loader.thin.ThinJarLauncher.launch(ThinJarLauncher.java:193) 
A 2019-12-11T06:36:16.843223Z 	at org.springframework.boot.loader.thin.ThinJarLauncher.main(ThinJarLauncher.java:140) 
A 2019-12-11T06:36:16.843349Z 	... 6 more 
A 2019-12-11T06:36:16.843507Z Caused by: java.lang.ClassNotFoundException: org.springframework.core.env.Environment 
A 2019-12-11T06:36:16.843527Z 	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471) 
A 2019-12-11T06:36:16.843543Z 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588) 
A 2019-12-11T06:36:16.843557Z 	at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94) 
A 2019-12-11T06:36:16.843662Z 	at org.springframework.boot.loader.thin.ThinJarLauncher$ThinJarClassLoader.loadClass(ThinJarLauncher.java:481) 
A 2019-12-11T06:36:16.843737Z 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) 

Feel free to assign this issue to me as I am currently investigating it. 😄

Motivation for or Use Case

We need this for, jhipster/generator-jhipster#10345

Reproduce the error
Related issues

jhipster/generator-jhipster#10345

jhipster/generator-jhipster#10420

Suggest a Fix

Currently investigating. 🤔

JHipster Registry Version(s)

5.0.2

  • Checking this box is mandatory (this is just to show you read everything)
@SudharakaP
Copy link
Member Author

We need to adjust some things in order for the registry to be deployed to GAE. In the above PR, I've removed some logging (since we cannot write to the GAE filesystem) and added some sample settings so that users can deploy the registry easily by changing some minor config values. I'll add this information to the documentation 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

Successfully merging a pull request may close this issue.

1 participant