Wednesday, March 15, 2017

Re: Application works when started with maven, but not when started in eclipse

Output of eclipse: "Run As - GWT Development Mode with Jetty":

Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /home/warker/dvl/prj/min/test-app/target/test-app-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, test.App]
Super Dev Mode starting up
   workDir: /tmp/gwt-codeserver-111690953257025990.tmp
2017-03-15 18:13:52.136:INFO::main: Logging initialized @13580ms
   Loading Java files in test.App.
   Module setup completed in 17932 ms
2017-03-15 18:14:02.607:INFO:oejs.Server:main: jetty-9.2.14.v20151106
2017-03-15 18:14:02.869:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@c2b2b92{/,null,AVAILABLE}
2017-03-15 18:14:02.913:INFO:oejs.ServerConnector:main: Started ServerConnector@1eba2b8d{HTTP/1.1}{127.0.0.1:9876}
2017-03-15 18:14:02.927:INFO:oejs.Server:main: Started @24370ms

The code server is ready at http://127.0.0.1:9876/
Code server started in 20.03 s ms
2017-03-15 18:14:05.761:INFO:oejs.Server:main: jetty-9.2.14.v20151106
Starting Jetty on port 8888
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
2017-03-15 18:14:16.858:INFO:oejsh.ContextHandler:main: Started c.g.g.d.s.j.WebAppContextWithReload@69a4249{/,file:/home/warker/dvl/prj/min/test-app/target/test-app-1.0-SNAPSHOT/,AVAILABLE}{/home/warker/dvl/prj/min/test-app/target/test-app-1.0-SNAPSHOT}
2017-03-15 18:14:16.871:INFO:oejs.ServerConnector:main: Started ServerConnector@607aa948{HTTP/1.1}{127.0.0.1:8888}
2017-03-15 18:14:16.872:INFO:oejs.Server:main: Started @38316ms
GET /recompile/app
   Job test.App_1_0
      starting job: test.App_1_0
      binding: user.agent=safari
      Compiling module test.App
         Unification traversed 598 fields and methods and 176 types. 0 are considered part of the current module and 5 had all of their fields and methods traversed.
         Compiling 1 permutation
            Compiling permutation 0...
            Linking per-type JS with 0 new/changed types.
            Source Maps Enabled
         Compile of permutations succeeded
         Compilation succeeded -- 15.725s
      Linking into /tmp/gwt-codeserver-111690953257025990.tmp/test.App/compile-2/war/app; Writing extras to /tmp/gwt-codeserver-111690953257025990.tmp/test.App/compile-2/extras/app
         Link succeeded
         Linking succeeded -- 1.687s
      22.429s total -- Compile completed
GET /sourcemaps/app/20A82803499F28AB0604654102A78E1D_sourcemap.json
   sent source map for module 'app' in 215 ms
[WARN] Server class 'test.lib.server.TimeMaster' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/warker/dvl/prj/min/test-lib/target/classes/' to the web app classpath for this session

----

Output of mvn gwt:devmode:

00:00:00.093 [INFO] Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -workDir, /home/warker/dvl/prj/min/test-app/target/gwt/devmode/work, -launcherDir, /home/warker/dvl/prj/min/test-app/target/test-app-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, test.App]


00:00:21.465 [INFO] Code server started in 21.46 s ms

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment