2
votes

When I run my GWT app using Eclipse Plugin, I can access local ds viewer at http://localhost:8888/_ah/admin but after converting to mvn project, I get a HTTP ERROR: 404 NOT_FOUND RequestURI=/_ah/admin Powered by Jetty:// I can access my app on same port, so it's indeed 8888. Please give suggestions, thanks

Update: pom.xml

`

<plugin>
  <groupId>net.kindleit</groupId>
 <artifactId>maven-gae-plugin</artifactId>
                <version>0.8.4</version>
                <configuration>
                    <port>81</port>
                    <disableUpdateCheck>true</disableUpdateCheck>
                    <encoding>UTF-8</encoding>                                
                 <keepTempUploadDir>true</keepTempUploadDir>
                 <unpackVersion>${gaeVersion}</unpackVersion>
            <sdkDir>${settings.localRepository}/com/google/appengine/appengine-java-sdk/1.5.2/appengine-java-sdk-1.5.2</sdkDir>
                </configuration>                
            </plugin>

`

2
Your app works at localhost:8888 but the admin console doesn't? That's crazy. I'm pretty sure the maven-gae-plugin hosts on 8080 by default.Travis Webb
Weird! Everything was OK until I converted to mvn, I thought converting to mvn proj would make dependency management easy but I could well be wrong.Babajide Prince
This problem has nothing to do with "dependency management"Travis Webb
I know I meant my reason for converting my project to mvn is because I want to enjoy easy dependency management and other advantages of mvn.Babajide Prince

2 Answers

2
votes

I managed to get it to work by adding:

<server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
            <appEngineVersion>${gaeVersion}</appEngineVersion>
0
votes

You can set the port in the pom.xml:

  <plugin>
    <groupId>net.kindleit</groupId>
    <artifactId>maven-gae-plugin</artifactId>
    <version>0.9.2</version>
    ...
    <configuration>
      <port>8765</port>
    </configuration>
  </plugin>

  <pluginRepositories>
    <pluginRepository>
      <id>maven-gae-plugin-repo</id>
      <name>maven-gae-plugin repository</name>
      <url>http://maven-gae-plugin.googlecode.com/svn/repository/</url>
    </pluginRepository>
  </pluginRepositories>

Then check the console output:

27.04.2012 07:13:22 com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8765/
27.04.2012 07:13:22 com.google.appengine.tools.development.DevAppServerImpl start
INFO: The admin console is running at http://localhost:8765/_ah/admin