Can you post the contents of your web.xml file?

On Mon, Mar 29, 2010 at 10:53 AM, Marek <marek.romanow...@gmail.com> wrote:

> Hi,
> I have problem with running development mode from GWT Eclipse plugin
> version 1.3.2. I'm connecting to dev mode with Chrome. In logs I find
> this:
>
> [WARN] /com.test.Test/C43A8DC1E50D698B543BF589D0244ECC.cache.png
> java.lang.NullPointerException
>        at
>
> com.google.gwt.dev.shell.GWTShellServlet.doGetPublicFile(GWTShellServlet.java:
> 438)
>        at
>
> com.google.gwt.dev.shell.GWTShellServlet.processFileRequest(GWTShellServlet.java:
> 184)
>        at
> com.google.gwt.dev.shell.GWTShellServlet.doGet(GWTShellServlet.java:
> 132)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>        at
> com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
> 292)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 362)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 181)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 729)
>        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>        at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
> 49)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>        at org.mortbay.jetty.Server.handle(Server.java:324)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 505)
>        at org.mortbay.jetty.HttpConnection
> $RequestHandler.headerComplete(HttpConnection.java:829)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>        at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 395)
>        at org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:488)
>
> As a result application starts but no images are shown. There is a
> file with given name in location <project>/war/com.test.Test/
> C43A8DC1E50D698B543BF589D0244ECC.cache.png. Compiler output folder set
> in Eclipse: <project>/war/WEB-INF/classes.
>
> I've looked into GWT code and found that
> GWTShellServlet.doGetPublicFile invokes getShellWorkDirs() that in my
> case wrongly returns null. getShellWorkDirs() looks for workdirs -
> servletContext.getAttribute("com.google.gwt.dev.shell.workdirs"), but
> attribute is not set. I've searched where
> "com.google.gwt.dev.shell.workdirs" is used and found it only in
> EmbeddedTomcatServer. I didn't found how is it set for Jetty.
>
> My launch configuration looks like this:
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <launchConfiguration type="com.google.gdt.eclipse.suite.webapp">
> <stringAttribute
>
> key="com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME"
> value="com.google.gwt.dev.DevMode"/>
> <booleanAttribute
>
> key="com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES"
> value="true"/>
> <listAttribute key="com.google.gwt.eclipse.core.ENTRY_POINT_MODULES">
> <listEntry value="com.test.Test"/>
> </listAttribute>
> <stringAttribute key="com.google.gwt.eclipse.core.URL"
> value="com.test.Test/Test.html"/>
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
> <listEntry value="/test"/>
> </listAttribute>
> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
> <listEntry value="4"/>
> </listAttribute>
> <stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER"
> value="com.google.gwt.eclipse.core.moduleClasspathProvider"/>
> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
> value="com.google.gwt.dev.DevMode"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
> value="-remoteUI &quot;${gwt_remote_ui_server_port}:${unique_id}&quot;
> -startupUrl com.test.Test/Test.html -logLevel INFO -port 8888 -war C:
> \java\workspace\test\war com.test.Test"/>
> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
> value="test"/>
> <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-
> Xmx512m -Dgwt.nowarn.legacy.tools"/>
> </launchConfiguration>
>
> There was a similar thread some time ago, but nobody responded:
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/739820505bfd8cdc/0fdde9b31e2e4b67
>
> I was working with version 1.2.0 of plugin and everything was fine.
>
> Maybe I've missed something, but I cannot run DevMode in a proper way.
> Could you give me any advice what am I doing wrong?
>
>
> Thanks in advance,
> Marek.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to