-
Notifications
You must be signed in to change notification settings - Fork 2.9k
ClassNotFoundException: com.example.appengine.demo.jettymain.Main #3299
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
Comments
I do wish things you should change were ALL CAPS in the
runtime: java11
entrypoint: 'java -cp "*" com.example.appengine.demo.jettymain.Main MY-APP-NAME.war' |
I have updated
So none of these points apply for my case. What else could be wrong? |
To troubleshoot this you should try to stage your app for deployment. For the servlet, we have set up the |
@averikitsch Removing While I was waiting for a response yesterday, I also managed to get it working by embedding Jetty directly into my project and uploading a single Uber / Fat JAR. Are there any pros and cons of using a separate For one, I noticed that yesterday with a single fat JAR file, it was using about 130MB of memory on the server, but today following the In any case, I'll proceed to close this ticket as my original issue has been addressed. Thanks again. |
The |
This is the first time I was using Jetty. I did pretty much what
|
@averikitsch This is my first GAE Java 11 runtime app. I have 2 observations:
UPDATE:
|
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java11/helloworld-servlet
Did you change the file? If so, how?
No
Describe the issue
I'm trying to deploy my first GAE Java 11 runtime app. I followed the example in helloworld-servlet and created my own (real) servlet. It works perfectly on my local machine, but when I deploy it, it is not able to find the main class, which comes from appengine-simple-jetty-main. Here's the error:
I've followed every step per the documentation, but it's not working after deployment (works fine on localhost). Am I missing something?
Since
simple-jetty-main
is aprovided
dependency, is it supposed to be provided by the runtime? I'm really not clear and found the documentation to be very confusing.This is my app.yaml:
This is my pom.xml:
My directories are sitting parallel to each other (not sure if this is correct):
The text was updated successfully, but these errors were encountered: