-
Notifications
You must be signed in to change notification settings - Fork 49
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
Use project SDK when staging App Engine apps for deploy #2195
Comments
I suspect that JRE was used to start your Eclipse. Can you try changining it to JDK to see if that works? I believe you can configure it through eclipse.ini. |
The bug really needs to be that the staging jsp compiler needs to use the project configured jdk. We've seen this problem in other plugins as well. |
@loosebazooka Does this bug get filed against App Engine SDK? |
Maybe it's the fault of CT4E that does not use the project JDK. I'll take a look first. |
It probably isn't the App Engine SDK's fault. I think we need to trigger "staging" or whatever using the project sdk, since it's just using the configuration that launched staging in the first place. |
I think @chanseokoh's right: CT4E isn't configuring |
@NicolaSpreafico I think it's possible that your JSPs will be complied with Java 8 (although it will be compiled with the '--source 1.7' option) and this might cause a problem if deploying to App Engine standard Java 7. If so, please double-check you don't have any problem. |
After updating Eclipse configuration from JRE to SDK the deploy problem is solved and I can confirm that the JSP are working fine |
It's odd that AppCfg is wanting to use the JDK compiler where as Jasper at runtime uses an embedded ECJ (#590). |
Had an offline discussion with @briandealwis. We believe as long as it's not a JRE, using higher versions of Java compilers won't be a problem for compiling JSPs during staging (which is done through So, the strategy to find any usable JDK will be like this:
|
Why not just raise an error immediately after step 1?
…On Thu, Jul 27, 2017 at 10:59 AM, Chanseok Oh ***@***.***> wrote:
Had an offline discussion with @briandealwis
<https://github.com/briandealwis>. We believe as long as it's not a JRE,
using higher versions of Java compilers won't be a problem for compiling
JSPs during staging (which is done through -source 1.7, although it shows
a warning warning: [options] bootstrap class path not set in conjunction
with -source 1.7).
So, the strategy is find a JDK will be like this:
1. get the project's JRE and check if it is a JDK (resolve the
compiler class)
2. if not, cycle through the other installed JREs of that type and see
if any of them are JDKs
3. if none, raise an error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2195 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHf5HY4siYwWHy7T-jlRfHJCyN71HfRPks5sSNAQgaJpZM4OiM-D>
.
|
I think that's a simple and good idea. Users should have a JDK, and making them to set it to their project sounds right. |
Didn't expect this to be closed. (Striking words doesn't seem to work.) |
On second thought, I think we can close this now. If a project's JRE is not a JDK (which will be very unlikely anyway) or if it can't find a JDK anywhere, it will fail with the message that it's not a JDK. Users will then naturally configure the project's JRE to be a JDK. |
I have a Maven App Engine standard project which contains jsp files (and this is the reason I think that the project is looking for JDK)
If I deploy the project with
appengine:deploy
works fineIf I deploy with the plugin I get
I don't think it is a project or OS error because using directly Maven the deploy works fine
Here is my Java installation
Eclipse configuration
Project configuration
The text was updated successfully, but these errors were encountered: