This application does not exist - GAE - java

This application is live. I previously used this project for php, now I am experimenting with Java and I cannot get the project to upload. Below is the error message I get:
com.google.appengine.tools.admin.HttpIoException: Error posting to
URL:
https://appengine.google.com/api/appversion/create?app_id=laraveltest2014&version=1&
404 Not Found This application does not exist
(app_id=u'laraveltest2014').
I tried adding the parameter below and it had no effect.
--no_cookies

If you logged in with different google account previously, try deleting these two files from home directory:
.appcfg_oauth2_tokens_java
.appcfg_cookies

Related

Required services that are not installed "jboss.naming.context.java.jboss.mail.GmailSES",

"jboss.deployment.unit.\"EmployeeAttendenceAPI.war\component.CommonMailTemplateWebService.START",
"jboss.deployment.unit.\"EmployeeAttendenceAPI.war\component.ShiftAutomationNewMail.START", "jboss.deployment.unit.\"EmployeeAttendenceAPI.war\".component.ShiftAutomationNewMail.WeldInstantiator",etc
I tried to generate the war in my java application, unable to do, my wild fly server showing this error ,
checked mail server smtp-its configured well in my standalone.bat, also added java mail jar file,
the same mail configuration working fine in another project, why here it showing error
"GmailSES"-is the Resource(lookup) name like this "#Resource(lookup = "java:jboss/mail/GmailSES")*"" in my Backend java code,
this name missed in my Data Source list in a standalone.xml..after added it the error went. GmailSES is a custom name ,So whenever you face the Required services that are not installed try to check the name...and the line where it is showing ;);):(

google app engine .jsp error loading [javax.servlet.UnavailableException]

I have seen many solutions to this problem but none worked, the thing is i've deployed a simple hello world to google cloud and everything went fine with servlets and .html pages, but when it comes to .jsp pages the server can't load it and throw an exception (though .jsp pages works fine locally).
the solutions i've tried:
using JDK instead of JRE (i changed the JRE system library in the project build path).
tried to set the compiler level to 1.7 but found that app engine forces you to use 1.8.
tried to add .jsp files to web.xml file manually.
tried to put the index page as .jsp and also didn't work, currently the only .jsp file is called mua.jsp
finally i made my friend deploy a hello world project with basic jsp file (also named mua) on his macbook to the same project on the cloud and also didn't work.
what i mean by "didn't work" is that the page didn't load but instead shown error 500.
what makes the situation really weird is with last few deploys from my friend the error changed to 404 with no exception thrown ..
the exception:
javax.servlet.UnavailableException: Class loading error for holder
mua#1a7b9==org.apache.jsp.mua_jsp,jsp=/mua.jsp,order=-1,inst=false,
javax.servlet.UnavailableException: Class loading error for holder
org.apache.jsp.mua_jsp#918a9ac4==org.apache.jsp.mua_jsp,jsp=null,order=-1,inst=false,
javax.servlet.UnavailableException: Class loading error for holder
org.apache.jsp.mua_jsp#918a9ac4==org.apache.jsp.mua_jsp,jsp=null,order=-1,inst=false,
javax.servlet.UnavailableException: Class loading error for holder
mua#1a7b9==org.apache.jsp.mua_jsp,jsp=/mua.jsp,order=-1,inst=false] at
org.eclipse.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:863) at
org.eclipse.jetty.servlet.ServletContextHandler.startContext
(ServletContextHandler.java:349) at
org.eclipse.jetty.webapp.WebAppContext.startWebapp
(WebAppContext.java:1406) at
com.google.apphosting.runtime.jetty9.AppEngineWebAppContext.startWebapp
(AppEngineWebAppContext.java:159) at
org.eclipse.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1368) at
org.eclipse.jetty.server.handler.ContextHandler.doStart
(ContextHandler.java:778) at
org.eclipse.jetty.servlet.ServletContextHandler.doStart
(ServletContextHandler.java:262) at
org.eclipse.jetty.webapp.WebAppContext.doStart
(WebAppContext.java:522) at
com.google.apphosting.runtime.jetty9.AppEngineWebAppContext.doStart
(AppEngineWebAppContext.java:116) at
org.eclipse.jetty.util.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:68) at
com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:244) at
com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:182) at
com.google.apphosting.runtime.jetty9.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:109) at
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchServletRequest
(JavaRuntime.java:693) at
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchRequest
(JavaRuntime.java:655) at
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run
(JavaRuntime.java:625) at
com.google.apphosting.runtime.JavaRuntime$NullSandboxRequestRunnable.run
(JavaRuntime.java:819) at
com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run
(ThreadGroupPool.java:274) at java.lang.Thread.run (Thread.java:745)
i got the solution, the problem was in using java 10 in eclipse as the default project system library, currently i'm using java 8 and the deploy and everything else went fine :).

LibGDX and GWT - Error 404

We've recently been trying to use LibGDX to convert our LibGDX app into a web app. However, whenever we try to run the application we just get a HTML Error 404 and this error code in Eclipse:
[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner'
could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Users/Steve/Desktop/adt-bundle
windows-x86_64
20140702/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-
2.6.0/gwt-dev.jar' to the web app classpath for this session
Despite seeing this a lot on various websites, there have been no useful answers yet.
PS - Please answer in plain English - we're pretty new to this!
Fixed it - turns out our installation of GWT was a bit broken. We found that following the steps here worked better!

This application does not exist (app_id=u'google.com:nbsocialmetrics')

I know others have posted similar issues but after trying their solutions I think this is a different problem.
I'm trying to get a multi-module application functioning for Google App Engine. I'm developing it from this sample code.
I was able to get my application running successfully in the development server but I encountered the following error when I tried to upload to Google App Engine with the command mvn appengine:update:
Error Details:
Nov 05, 2014 10:23:51 AM org.apache.jasper.JspC processFile
INFO: Built File: /guestbook.jsp
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=google.com%3Anbsocialmetrics&version=1&
404 Not Found
This application does not exist (app_id=u'google.com:nbsocialmetrics').
Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=google.com%3Anbsocialmetrics&version=1&
404 Not Found
This application does not exist (app_id=u'google.com:nbsocialmetrics').
Please see the logs [/var/folders/dp/v_lw6kqx16bf7743hs5t9phc0000gn/T/appcfg8240676105577823958.log] for further information.
I've listed a bunch of references to similar problems but here is a summary of what they say and why it didn't work for me:
1] Permissions - Make sure you have permission to upload code to this google account. I verified by going to http://appengine.google.com, clicking my app, nbsocialmetrics, and clicking permissions. There it lists the correct Google account and it says the Role is owner.
2] Delete cookies - To ensure my credentials hadn't been cached, I deleted the file ~/.appcfg_oauth2_tokens_java (I'm on a Mac). Apparently this file used be called .appcfg_cookies which you'll see in the references I've listed below.
3] appcfg.sh --no_cookies - Some people suggested another approach beside #2 above: call c. However, I'm using mvn appengine:update and it would take a lot of work to figure out how mvn appengine:update and mvn appengine:update relate to each other. So I didn't try this.
References to similar problems whose suggestions did not work:
GAE/J This application does not exist (app_id=u'application-id')
Getting Error 404, application not found error when deploying to Google App Engine
This application does not exist (app_id=xxx)
This application does not exist - GAE
http://juplo.de/log-out-from-wrong-account-with-maven-appengine-plugin/
http://forums.udacity.com/questions/6014266/solved-unable-to-deploy-my-app-this-application-does-not-exist
https://code.google.com/p/googleappengine/issues/detail?id=5331
http://techspalace.blogspot.com/2011/08/solved-this-application-does-not-exist.html
If you are using windows,
you can try after delete this file
C:/Users/{username}/.appcfg_oauth2_tokens_java
(maybe somthing like this file.)
I'm using eclipse maven plugins to build and packaging.
By this way i could fix it !
References : https://cloud.google.com/appengine/docs/java/tools/uploadinganapp
I noticed how the error I got was different from other reports of this issue. Notice the prefix google.com: in the error message I received:
This application does not exist (app_id=u'google.com:nbsocialmetrics').
This prefix wasn't in the other reports of this problem. So I tracked that prefix down to the file I was modeling after: appengine-application.xml.
My solution was to remove the prefix from my appengine-application.xml so it now reads this:
<application>nbsocialmetrics</application>
Instead of:
<application>google.com:nbsocialmetrics</application>
I have no idea why that prefix was in the sample code.

http 404 error on eclipse [duplicate]

This question already has answers here:
HTTP Status 404 - The requested resource (/ProjectName/) is not available
(3 answers)
Closed 6 years ago.
I have found several replicas of this question, but none helped me.
I was dealing with jsp and hibernet with eclipse and apache server.
The server installation is in port 9090. An downloaded project has imported from D:/.
After clearing the jre path, I Run the project on server and the out put is error
`HTTP Status 404 - /servlet/
type Status report
message /servlet/
description The requested resource is not available.
Apache Tomcat/7.0.32`
The google search gave some remedies and I followed that. The following are the screen shots.
Project:
Server Properties:
Tomcat Overview:
Did I missed anything?
I solved the issue. I had made some mistakes
1. I have failed to include the welcome page in web.xml
2. I had put the project in eclipse workspace and I choose the server location as Use tomcat installation. That was wrong. I should choose workspace meta data as my project is in workspace
Below steps solves 404 problem if server is properly configured.
First:
Check your Context root for this project.
You can edit context root from project-->property->web project settings.
Second:
Restart your server and try to clean and build again. Sometimes that solves 404 problem.
Third:
1) Double click on your server or right click->open
2) Click on open launch configuration
3) Go to classpath tab
4) See in user-entries, commons-daemon.jar is available or not if it not then click on add external jar --> path(which you can find it in TOMCAT_HOME/bin)
5) Click on apply and restart your server
Now access : http://localhost:9090/<project-context-root>

Categories