LibGDX and GWT - Error 404 - java

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!

Related

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 :).

GWT compilation issues / Intellij IDEA

I have a question regarding GWT compilation. There is a project built on GWT/GXT 2.x which is run under Tomcat on Intellij Idea 14.x. There are a couple of problems I face from time to time and which hard to handle. The first one is that the compilation process doesn't start sometimes and there are no obvious reason for that. For instance, there is a code which is compiled. Then I do slight correctings in the code that can't involved anything. Then I run / debug application under Tomcat-configuration but .nocashe.js- file is not created (Failed to load resource: com.gxtapp.GXTApp/com.gxtapp.GXTApp.nocache.js the server responded with a status of 404 (Not Found) - browser's console output). But even if I revert changes it most likely that I will have the same result.
The second issue is that gwt-module is not compiled when I run it under GWT configuration. As a result I have blank page in browser with gwt-logo in right lower corner. Clicking on this logo makes the module to be compiled.
I tried to add gwt-maven-plugin, but when I compiled project through gwt:compile the list of errors was arrised (just for example):
Unable to read: jar:file:/C:/Users/Alex/.m2/repository/com/google/gwt/gwt-user/2.5.1/gwt-user-2.5.1.jar!/com/google/gwt/core/Core.gwtar
Resolving com.extjs.gxt.ui.client.dnd.DND.Feedback
[INFO] Found type 'com.extjs.gxt.ui.client.dnd.DND.Feedback'
[INFO] [ERROR] Unable to find class java/lang/Enum
etc.
So could you give me a pieces of advice how to adjust Idea / Tomcat / GWT configuration to make compilation process work properly. Thank you in advance.
PS Please find below screenshots with Tomcat and GWT configuration

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.

This application does not exist - GAE

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

NoSuchMethodError with GWT

I had a GWT app that was working fine. Then I added guava-r09.jar and guava-r09-gwt.jar, and messed around with the build path a bit. Now, when I try to launch my app in hosted mode, I get this error:
Caused by: java.lang.NoSuchMethodError: java.util.Set.java_lang_Iterable_iterator()Ljava/util/Iterator;
at com.google.gwt.user.cellview.client.CellBasedWidgetImpl.sinkEvents(CellBasedWidgetImpl.java:117)
at com.google.gwt.user.cellview.client.AbstractHasData.(AbstractHasData.java:279)
at com.google.gwt.user.cellview.client.CellList.(CellList.java:211)
at com.google.gwt.user.cellview.client.CellList.(CellList.java:175)
at com.my.client.myMainView.(MainView.java:33)
I have found various sites that propose solutions (Tim Mattisson's blog and ForgetMeNotes). I took the advice they listed there (re-ordering the build path), but my problem persists. What could I be doing wrong?

Categories