facebook

Issue Uploading Deploying to App Engine

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #317831 Reply

    Hi, I have created an app engine ‘project’ called extcustomersupport on appengine. I have created the project in myEclipse and tested it and it works on http://localhost:8888/. I have then configured the appengine-web.xml file with the correct project name ‘extcustomersupport’. However, when I go to deploy it, by pressing the small app engine logo, nothing happens. I am not prompted for my username or anything. Nothing happens at all. I do notice that at the bottom left of myEclipse, I have a ‘Signin to Google’ button, but clicking on it does nothing. Right clicking on it gives me the options “Icon Only” or “Signout on Exit”, neither of which seem to do anything at all…

    Is there some configuration issue that I am missing?

    Any help would be gratefully appreciated.

    #317837 Reply

    jkennedy
    Member

    If you right click on the project do you see a Google menu?

    A few things to check.

    1. Right click project / properties / Google / – Look at the AppEngine settings here, check to make sure the appid you are using on Google app engine matches
    2. Right click project / Google / Deploy to App Engine – Google should present you with an option to deploy the project to App Engine
    3. Look for a Console window that may be hidden that is showing you the progress for the AppEngine deploy (Look for a tab called console, then click the list in that window to switch between different console windows)

    Let me know what you see, generally the Google plugins that you have installed from Google are handling the process of Deploying to AppEngine in the MyEclipse for Spring product. We are working on a MyEclipse G product that that you can review here: http://myeclipseg.com/

    This product will offer a deeper integration with Googles technologies and will be available for a private beta soon (we are working on it). So register if you would like to try it out.

    Thanks,
    Jack

    #317857 Reply

    Jack,

    1. The setting for the appid is correct in the AppEngine settings.
    2. Clicked on the Deploy to App Engine option
    3. Are you talking about the standard console where I see the output from my compiles and builds (ie. warnings, and errors with my code), or some other one. In the one that I generally use, there are two ‘possibilities’. They are ‘DDMS’ and ‘Android’. There doesn’t appear to be any Google or AppEngine one. There also appears to be one with processes on the lower right hand side. This just shows (Usage Data Upload Sleeping). I cannot seem to find any other ‘console’ windows or tabs.

    As a side note, when I first started myEclipse today, I saw a small popup on the right hand side that said “Google has updates’ (or something to that effect). When I went to the configuration center / dashboard and checked for updates, it told me that none were available. Any idea how to get those updates? I tried shutting down myEclipse and starting it up again so I could click on that little message but it didn’t appear again.

    Thanks for your help Jack.

    Fraser

    #317858 Reply

    As an addendum, in the console I can also see consoles for:

    1. extcustomersupport – datanucleus enhancement
    2. extcustomersupport – GWT compile
    3. extcustomersupport – web application ……..

    But clicking on the deploy to app engine still gives me nada.

    I have even tried starting myEclipse from the command line (cmd) in order to see if there were any errors or messages being put out but there isn’t anything. When the deploy to app engine button is clicked, is there any logging anywhere that I can turn on (ie. set myEclipse to debug mode) in order to try to track this down?

    Thanks.

    Fraser

    #317867 Reply

    jkennedy
    Member

    Can you open the Window / Show View / Other / Errors view, clear it, and try again and tell me if you see any errors in the Errors view?
    If you also go to Help/ About MyEclipse for Spring, and look at the row of Icons, you should see the Google icon, click that and tell me what the actual Version number is for the Google Plugins please.

    Thanks for the additional detail.
    Jack

    #317868 Reply

    When I clear the error log and retry it, I get the following error in the error log:

    unhandled loop event exception org.eclipse.ui

    When I select that exception, for more information, I see that I have the following detail:

    jjava.lang.LinkageError: loader constraint violation: when resolving method “com.google.gdt.eclipse.login.LoginCallbackServer.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)V” the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, com/google/gdt/eclipse/login/LoginCallbackServer, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, com/google/gdt/eclipse/login/LoginCallbackServer, have different Class objects for the type javax/servlet/Servlet used in the signature
    at com.google.gdt.eclipse.login.LoginCallbackServer.<init>(LoginCallbackServer.java:137)
    at com.google.gdt.eclipse.login.GoogleLogin.logIn(GoogleLogin.java:403)
    at com.google.appengine.eclipse.core.deploy.ui.DeployProjectHandler.execute(DeployProjectHandler.java:51)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
    at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
    at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
    at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
    at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

    Here is the additional information you requested.

    Google Plugin for Eclipse 3.6 2.3.2.r36v201106211634 com.google.gdt.eclipse.suite.e36.feature.feature.group
    Google Web Toolkit SDK 2.3.0 2.3.0.r36v201105191508 com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group
    GWT Designer 2.3.2.r36x201106201114 com.google.gdt.eclipse.designer.feature.feature.group

    Another interesting point. I purchased myEclipse for Spring, but when I bring up the help / about, it gives me the following information:

    MyEclipse Enterprise Workbench
    Version: 9.0
    Build id: 9.0-20110318

    If you need anything else, please let me know.

    Thanks again.

    Fraser

    #317890 Reply

    jkennedy
    Member

    Hmm, I found these posts:
    http://solutionzkorner.blogspot.com/2011/05/gpe-unable-to-connet-to-project-hosting.html (I’m assuming this wasn’t your post).
    https://groups.google.com/forum/#!topic/google-web-toolkit/RvutBtYznwI

    So the Google stack is showing that the LoginCallbackServer which is a local webserver instance that Google spins up to complete the OpenAuth handshake is failing because the classloader that is being used to launch that server has a conflicting version of javax.servlet.

    Can you try removing the Google plugins, and then adding them again.
    Regarding the installation of MyEclipse v MyEclipse for Spring, how did you install.
    We ship MyEclipse for Spring as a stand alone installer and as an Add on to MyEclipse Pro.

    The issue you are facing is in the Google plugins, and so it may be tricky to debug them, but I will try to help if reinstalling doesn’t do the trick.

    Thanks,
    Jack

    #317928 Reply

    Jack,

    Neither of those posts were mine.

    I actually went as far as to uninstall the version of MyEclipse I had and download MyEclipse for Spring. I have added in the Google Pllugin for Eclipse and the GWT Designer and updated all packages, as well as MyEclipse for Spring to the latest versions. I have recreated a basic GWT web project, with NO changes. I made sure that I was using the following:

    GWT 2.3.0
    AppEngine 1.5.1

    The only change I have made to the project itself, is to modify the main page to do a redirect to another site (just for testing), and to add in the appropriate AppEngine ID to the AppEngine settings (extcustomersupport).

    The project runs with no issues on my local machine, but again, when I attempt to deploy, I get the following error in the console:

    Unhandled event loop exception

    Here is the java output from the exception:

    java.lang.LinkageError: loader constraint violation: when resolving method “com.google.gdt.eclipse.login.LoginCallbackServer.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)V” the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, com/google/gdt/eclipse/login/LoginCallbackServer, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, com/google/gdt/eclipse/login/LoginCallbackServer, have different Class objects for the type javax/servlet/Servlet used in the signature
    at com.google.gdt.eclipse.login.LoginCallbackServer.<init>(LoginCallbackServer.java:137)
    at com.google.gdt.eclipse.login.GoogleLogin.logIn(GoogleLogin.java:403)
    at com.google.appengine.eclipse.core.deploy.ui.DeployProjectHandler.execute(DeployProjectHandler.java:51)
    at com.google.appengine.eclipse.core.deploy.ui.DeployProjectAction.run(DeployProjectAction.java:13)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

    So, I uninstalled GWT and the Google Plugin for Eclipse.

    However, when I go into the plugins directory, I still find the following plugins that all seem to be related to Google:

    com.google.appengine.eclipse.core_2.3.2.r36v201106211634.jar
    com.google.appengine.eclipse.sdkbundle_1.5.1.r36v201106211634
    com.google.gdt.eclipse.core_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.designer.GWTExt_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.GXT.databinding_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.GXT_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.SmartGWT_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.UiBinder.wizards_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.UiBinder_2.3.2.r36x201106201351.jar
    com.google.gdt.eclipse.designer.doc.user_2.3.2.r36x201106201114
    com.google.gdt.eclipse.designer.gpe_2.3.2.r36x201106201409.jar
    com.google.gdt.eclipse.designer.hosted.2_0.ie_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.hosted.2_0.super_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.hosted.2_0.webkit_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.hosted.2_0.webkit_win32_2.3.2.r36x20110616142
    com.google.gdt.eclipse.designer.hosted.2_0_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.hosted.2_2.ie_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.hosted.2_2.webkit_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.hosted.2_2_2.3.2.r36x201106161421
    com.google.gdt.eclipse.designer.hosted.lib_2.3.2.r36x201106161421
    com.google.gdt.eclipse.designer.hosted_2.3.2.r36x201106161421.jar
    com.google.gdt.eclipse.designer.launch_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.preferences_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.usageprofiler.ui_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.usageprofiler_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer.wizards_2.3.2.r36x201106201114.jar
    com.google.gdt.eclipse.designer_2.3.2.r36x201106201351.jar
    com.google.gdt.eclipse.gph.e36_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.gph.hge_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.gph.subclipse_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.gph.subversive_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.gph_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.login_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.managedapis_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.maven_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.platform.e36_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.platform.shared_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.platform_2.3.2.r36v201106211634.jar
    com.google.gdt.eclipse.suite_2.3.2.r36v201106211634.jar
    com.google.gwt.eclipse.core_2.3.2.r36v201106211634.jar
    com.google.gwt.eclipse.oophm_2.3.2.r36v201106211634.jar
    com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201105191508
    com.skyway.integration.google.appengine_1.0.1.201104011036.jar
    com.skyway.integration.google.webtoolkit.common_1.0.1.201104011036.jar
    com.skyway.integration.google.webtoolkit.v2-0_1.0.1.201104011036.jar
    com.skyway.integration.google.webtoolkit.v2-1_1.0.0.201104011036.jar
    com.skyway.myeclipseforspring.lib.google.gin_1.0.0.201104011036.jar
    com.skyway.myeclipseforspring.lib.google.guice_1.0.0.201104011036.jar

    When I remove the plugins, should this not be removed from the plugins directory so that when I add them again, they can be downloaded and reinstalled?

    Given that none of this worked, I uninstalled MyEclipse yet again, and installed it to a new location. I then updated it, and then installed the Google Plugin and GWT. Unfortunately, I am getting exactly the same error.

    FYI, my Help/About screen now shows that I am using MyEclipse for Sprint (9.1).

    Fraser

    #317949 Reply

    jkennedy
    Member

    Thank you for taking those steps, I am sorry that updating your installation did not clear the issue.

    I will continue to try to reproduce the issue then and work towards a resolution.

    Thanks,
    Jack

    #317952 Reply

    jkennedy
    Member

    Fraser,
    Using the simplest possible test, when you look at the bottom left hand corner of the MyEclipse window, does it show an area related to logging in to Google.
    If so, are you logged in?
    Please either log out and log in again, or just log in to confirm that you see the same exception that you noted above.

    I would like to verify whether or not the local login server that Google is failing to startup above either works or doesn’t work when you are invoking it directly through the IDE.

    Thanks,
    Jack

    #317955 Reply

    jkennedy
    Member

    Fraser,
    I am adding these notes as an update to you and as a history to others who may be searching based on this error message.

    I believe I am able to recreate the issue now after “logging out” of Google through the IDE and attempting to log back in.

    The Google Plugins have a dependency in their manifest that does not specify a specific OSGI location or version.

    We are working to determine which version of the Servlet class that Google plugins were compiled with, and determining a next step in terms of work arounds, configuration etc.

    Thank you for raising the issue.

    Jack

    #317962 Reply

    jkennedy
    Member

    Fraser,
    An additional update. I was able to work around this issue by modifying the manifest on the Google plugin to discriminate by version where it is linking to the javax.servlet classes.

    I submitted this issue to Google:
    http://code.google.com/p/googleappengine/issues/detail?id=5293

    Hopefully we will get a response soon, but in the mean time, you can modify the manifest on this plugin and repackage it and run with the -clean option to reload the plugin.

    Thanks,
    Jack

    #318014 Reply

    I uninstalled and reinstalled the plugins…to no avail. I then downloaded MyEclipse for Spring, uninstalled the current version, and installed that…. Same results. I uninstalled the plugins and reinstalled them… Same result.

    Not sure where to go from here.

    #318015 Reply

    jkennedy
    Member

    Fraser,
    Not sure if you picked this up from my previous responses, but you have uncovered an apparent defect in the Google Plugins.

    After debugging the issue I submitted it here on Google issue tracking system.
    http://code.google.com/p/googleappengine/issues/detail?id=5293

    We are attempting to determine if there is something that we can do automatically to fix the Google plugins automatically.

    If you give me your email address I can send you a modified version of the Google plugins and the steps to install.

    You can reach me at jkennedy@skywaysoftware.com

    Thanks,
    Jack

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: Issue Uploading Deploying to App Engine

You must be logged in to post in the forum log in