Closed theboywholived closed 6 years ago
@theboywholived Have you tried restarting the server? I sometimes get this problem, but after restarting once (or after a few tries) it works.
Yep, although Eclipse gets stuck trying to terminate this, I manually removed the server from the servers tab and then tried again multiple times. I also tried restarting Eclipse. The error is still present.
@sukanta-27 Yep, I checked the documents again and set it up again on Eclipse Oxygen now.
The same error is showing up.
@theboywholived Maybe the senior developers can help. @wkurniawan07 @whipermr5 @LiHaoTan
@theboywholived have you built/cleaned the project before running the dev server?
@wkurniawan07 Yes, I did that.
@theboywholived how exactly do you clean/build the project? Do you see anything inside the build-eclipse
folder?
@wkurniawan07 I clicked on Project | Clean
. There are two folders inside build-eclipse
, classes
and test-classes
, but both are empty.
There are two folders inside
build-eclipse
,classes
andtest-classes
, but both are empty.
That's precisely the reason for the errors you got. There should be something wrong with the way the project is built/cleaned, because a proper build will populate the classes
and test-classes
folder.
@wkurniawan07 Thanks for helping with this. I understand that now. Should I do everything from scratch again? Or can you guess where I might be going wrong?
@theboywholived if all else fails, then restarting from scratch may be the only way to go.
@wkurniawan07 I did do everything from scratch today. The same is happening again.
I also tried building it in Gradle today and a warning is showing there as well. I have attached a screenshot.
Here is the console log:
Working Directory: /Users/vedantkumar/Projects/teammates
Gradle User Home: /Users/vedantkumar/.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 4.3
Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: build
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:war UP-TO-DATE
:explodeWar UP-TO-DATE
:assemble UP-TO-DATE
:checkstyleMain FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':checkstyleMain'.
> Unable to create Root Module: config {/Users/vedantkumar/Projects/teammates/static-analysis/teammates-checkstyle.xml}, classpath {/Users/vedantkumar/Projects/teammates/build/classes/java/main:/Users/vedantkumar/Projects/teammates/build/resources/main:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.appengine.tools/appengine-gcs-client/0.7/b989f3679b04ae2fdfc03cdb040959a094e3633f/appengine-gcs-client-0.7.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.appengine/appengine-api-1.0-sdk/1.9.60/41a243064294e6109ac55fdf286222e9558ff47e/appengine-api-1.0-sdk-1.9.60.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.2/3edcfe49d2c6053a70a2a47e4e1c2f94998a49cf/gson-2.8.2.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.googlecode.objectify/objectify/5.1.21/59bb93a8b61f8119674733dbe2e106ce7068d030/objectify-5.1.21.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20171016.1/2bc9b602c609d63d8960c5f379ff818daf0c9e93/owasp-java-html-sanitizer-20171016.1.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.apis/google-api-services-storage/v1-rev108-1.22.0/547a01cd3da00acf7472bacab961a1443af58bf/google-api-services-storage-v1-rev108-1.22.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.api-client/google-api-client-appengine/1.23.0/76c36f33a035b19a6beb0ac273e0b4f3c03330eb/google-api-client-appengine-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.api-client/google-api-client-servlet/1.23.0/7ede169383ac757d35de142899d7861617bdc5e1/google-api-client-servlet-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.api-client/google-api-client/1.23.0/522ea860eb48dee71dfe2c61a1fd09663539f556/google-api-client-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/22.0/3564ef3803de51fb0530a8377ec6100b33b0d073/guava-22.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.mailjet/mailjet-client/4.1.1/801daa4f1fa7abe0c47d59a5cfedd605baf2e06a/mailjet-client-4.1.1.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.sendgrid/sendgrid-java/2.2.2/1249279261445bd9575ad89e3de69b35a039a02a/sendgrid-java-2.2.2.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-client/1.19.4/9b1f3cf3fdd02d313018f1a67c42106e6ce9f60d/jersey-client-1.19.4.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.sun.jersey.contribs/jersey-multipart/1.19.4/df7633959a623957f82eac0c081e13fb9df9a76b/jersey-multipart-1.19.4.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-core/1.19.4/21c5319c82ca29705715b315553a16f11b16655e/jersey-core-1.19.4.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/joda-time/joda-time/2.9.9/f7b520c458572890807d143670c9b24f4de90897/joda-time-2.9.9.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.apache.taglibs/taglibs-standard-impl/1.2.5/9b9783ccb2a323383e6e20e36d368f8997b71967/taglibs-standard-impl-1.2.5.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.jsoup/jsoup/1.10.3/b842f960942503cf1abbcc8c173a7f2c19d43726/jsoup-1.10.3.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.http-client/google-http-client-jackson2/1.23.0/fd6761f4046a8cb0455e6fa5f58e12b061e9826e/google-http-client-jackson2-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.oauth-client/google-oauth-client-appengine/1.23.0/9e4e6d0438278cf239eb514a78769e6e6b3cbcf7/google-oauth-client-appengine-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.http-client/google-http-client-appengine/1.23.0/eda0d0f758c1cc525866e52e1226c4eb579d130/google-http-client-appengine-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.oauth-client/google-oauth-client-servlet/1.23.0/2058a1625142e6084df3d9863482c83390a0f0b4/google-oauth-client-servlet-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.oauth-client/google-oauth-client/1.23.0/e57ea1e2220bda5a2bd24ff17860212861f3c5cf/google-oauth-client-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.http-client/google-http-client-jdo/1.23.0/d77d05bdafd3eb6b3d992b0167f4009aca5c03fe/google-http-client-jdo-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.http-client/google-http-client/1.23.0/8e86c84ff3c98eca6423e97780325b299133d858/google-http-client-1.23.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.turbomanage.basic-http-client/http-client-java/0.89/1cd2b30199408ba52b0dbe0a7c2b19481596a763/http-client-java-0.89.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.sendgrid/smtpapi-java/1.2.0/98c3181e9f78a77b1942c8eafba3de860403db0/smtpapi-java-1.2.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.json/json/20140107/d1ffca6e2482b002702c6a576166fd685e3370e3/json-20140107.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/junit/junit/4.11/4e031bb61df09069aeb2bffb4019e7a5034a4ee0/junit-4.11.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.3.4/54ffde537682aea984c22fbcf0106f21397c5f9b/httpmime-4.3.4.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.3.4/a9a1fef2faefed639ee0d0fba5b3b8e4eb2ff2d8/httpclient-4.3.4.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.3.2/31fbbff1ddbf98f3aa7377c94d33b0447c646b6e/httpcore-4.3.2.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/javax.ws.rs/jsr311-api/1.1.1/59033da2a1afd56af1ac576750a8d0b1830d59e6/jsr311-api-1.1.1.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.jvnet.mimepull/mimepull/1.9.3/c55096ff89a27e22c2e081371d0570ac19cc6788/mimepull-1.9.3.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/1.3.9/40719ea6961c0cb6afaeb6a921eaa1f6afd4cfdf/jsr305-1.3.9.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.3.2/c75edc740a6d8cb1cef6fa82fa594e0bce561916/jackson-databind-2.3.2.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.3.2/559b70ac8a0d5cad611da4223137a920147201ba/jackson-core-2.3.2.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/javax.servlet/servlet-api/2.5/5959582d97d8b61f4d154ca9e495aafd16726e34/servlet-api-2.5.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/javax.jdo/jdo2-api/2.3-eb/ec6b839251fb235a86ccd23adc4fc62dab07a7d8/jdo2-api-2.3-eb.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.3.0/f5e853a20b60758922453d56f9ae1e64af5cb3da/jackson-annotations-2.3.0.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/javax.transaction/transaction-api/1.1/2ca09f0b36ca7d71b762e14ea2ff09d5eac57558/transaction-api-1.1.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.errorprone/error_prone_annotations/2.0.18/5f65affce1684999e2f4024983835efc3504012e/error_prone_annotations-2.0.18.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/com.google.j2objc/j2objc-annotations/1.1/976d8d30bebc251db406f2bdb3eb01962b5685b3/j2objc-annotations-1.1.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/org.codehaus.mojo/animal-sniffer-annotations/1.14/775b7e22fb10026eed3f86e8dc556dfafe35f2d5/animal-sniffer-annotations-1.14.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f/commons-logging-1.1.3.jar:/Users/vedantkumar/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.6/b7f0fc8f61ecadeb3695f0b9464755eee44374d4/commons-codec-1.6.jar}.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
5 actionable tasks: 1 executed, 4 up-to-date
The classes
and test-classes
folders are also not populated.
I'm quite stumped because under no circumstances should this occur. Have you by any chance configured your Eclipse to use JDK 8 (not JDK 7, not JDK 9, not JRE)?
I also tried building it in Gradle today and a warning is showing there as well.
Running the build scripts with Eclipse is expected to produce that result, so I will not go through this. If you want a pure CLI-based solution, refer to this.
@wkurniawan07 This is the screenshot of my Eclipse > Preferences
option:
Anyway, I will try to edit my code in Eclipse and use the command line for starting the server.
Under the "Problems" tab there, do you see anything that may indicate what the problem is? If you're using Neon and you see JS errors due to the import
and export
keywords, that is not a problem.
Anyway, I will try to edit my code in Eclipse and use the command line for starting the server.
You're free to do that if all else fails.
What I was trying to do / What I need help with
I was setting up the dev server and while the server is starting and stopping successfully using the gradlew command line, it is showing this error in Eclipse while running the 'Run As > App Engine' command
The entire console log is here.
Attempts to resolve the problem I found the similar issue on the issue tracker here but it doesn't seem to help.