Re: Upgradeing to 2.0, web.xml file problem
sure;
Project -
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>lostagainwebsite</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.google.gwt.eclipse.core.gwtNature</nature>
<nature>com.google.gdt.eclipse.core.webAppNature</nature>
</natures>
</projectDescription>
Classpath;
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="D:/TomsProjects/Google GWT/gwt-
incubator-july-14-2009.jar"/>
<classpathentry kind="con"
path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT"/>
<classpathentry kind="lib" path="D:/TomsProjects/Google GWT/gwt-
log-3.0.0.jar"/>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
</classpath>
The project does seem to compile ok, btw. Despite the error.
On Dec 10, 5:06 pm, Rajeev Dayal <rda...@google.com> wrote:
> Hey,
>
> Do you mind pasting the contents of your .project and .classpath files? I
> want to verify that the DevMode class is actually what's being run when you
> launch your app.
>
> Rajeev
>
>
>
> On Wed, Dec 9, 2009 at 2:50 PM, darkflame <darkfl...@gmail.com> wrote:
> > Upgrading to 2.0, and I started getting problems with my web.xml file.
> > Specifically its complaining of some wrong set up with my log class in
> > use (which is ;http://code.google.com/p/gwt-log/downloads/list).
>
> > The complaint was;
>
> > [WARN] Server class
> > 'com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl' could not be
> > found in the web app, but was found on the system classpath
> > [WARN] Adding classpath entry 'file:/D:/TomsProjects/Google%20GWT/
> > gwt-log-3.0.0.jar' to the web app classpath for this session
> > For additional info see: file:/D:/eclipse/plugins/
> > com.google.gwt.eclipse.sdkbundle.2.0.0_2.0.0.v200912062003/gwt-2.0.0/
> > doc/helpInfo/webAppClassPath.html
> > Loading modules
> > com.lostagain.companywebsite.Lostagainwebsite
> > Validating <servlet> tags for module 'lostagainwebsite'
> > For additional info see: file:/D:/eclipse/plugins/
> > com.google.gwt.eclipse.sdkbundle.2.0.0_2.0.0.v200912062003/gwt-2.0.0/
> > doc/helpInfo/servletMappings.html
> > [WARN] Module declares a servlet class
> > 'com.google.gwt.libideas.logging.server.RemoteLoggingServiceImpl', but
> > the web.xml has no corresponding declaration; please add the following
> > lines to your web.xml:
> > <servlet>
> > <servlet-name>remoteLoggingServiceImpl</servlet-name>
> > <servlet-
> > class>com.google.gwt.libideas.logging.server.RemoteLoggingServiceImpl</
> > servlet-class>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>remoteLoggingServiceImpl</servlet-name>
> > <url-pattern>/lostagainwebsite/logging</url-pattern>
> > </servlet-mapping>
>
> > ---
>
> > Now I did try adding this to my web.xml file;
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE web-app
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd">
>
> > <web-app>
> > <!-- Servlets -->
> > <servlet>
> > <servlet-name>greetServlet</servlet-name>
> > <servlet-
> > class>com.lostagain.companywebsite.server.GreetingServiceImpl</servlet-
> > class>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>greetServlet</servlet-name>
> > <url-pattern>/lostagainwebsite/greet</url-pattern>
> > </servlet-mapping>
> > <servlet>
> > <servlet-name>remoteLoggerServiceImpl</servlet-name>
> > <servlet-
> > class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
> > class>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>remoteLoggerServiceImpl</servlet-name>
> > <url-pattern>/lostagainwebsite/gwt-log</url-pattern>
> > </servlet-mapping>
> > <!-- Default page to serve -->
> > <welcome-file-list>
> > <welcome-file>Lostagainwebsite.html</welcome-file>
> > </welcome-file-list>
> > </web-app>
>
> > ...and got the same error.
>
> > I also tried with;
>
> > <!-- Servlets -->
> > <servlet>
> > <servlet-name>greetServlet</servlet-name>
> > <servlet-
> > class>com.lostagain.companywebsite.server.GreetingServiceImpl</servlet-
> > class>
> > <servlet-name>remoteLoggerServiceImpl</servlet-name>
> > <servlet-
> > class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
> > class>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>greetServlet</servlet-name>
> > <url-pattern>/lostagainwebsite/greet</url-pattern>
> > <servlet-name>remoteLoggerServiceImpl</servlet-name>
> > <url-pattern>/lostagainwebsite/gwt-log</url-pattern>
> > </servlet-mapping>
>
> > ...same error.
>
> > Any ideas?
> > It was working fine in 1.7.
> > I'm using eclipse and have run the update. (and changed the project to
> > 2.0).
>
> > --
>
> > 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-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home