Problem with page indexing

2015-05-30 Thread erebrus
Hi all,
I think I'm missing some detail trying to get google to index my gwt 
website.
If I try the address with _escaped_fragment= in the browser (e.g. 
http://foo/?_escaped_fragment=bar corresponding to http://foo/#!bar) I see 
my html friendly snapshot. However, when I try fetching http://foo/#!bar in 
the webmaster tools, I still get the original JS page, not the snapshot, 
which I'm assuming means that the google bot isn't really understanding 
that he should get the _escaped_fragment_= version not the #! version.

I have included meta name=fragment content=! on the original html.

What could I be doing wrong? Any tips on where to look would be very 
helpful!

Thanks

 

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


ajax-crawling approach to make gwt app crawlable works on default gwt example, but not on my app

2012-03-30 Thread erebrus
Hi all,
I was reading https://developers.google.com/webmasters/ajax-crawling/
on how to make ajax apps (consequently gwt apps) crawlable.
I took the code from google (summarized in point 3 of How to create
an HTML snapshot? to create a filter (that returns html from ajax
using HtmlUnit) and changed the web.xml accordingly. I created a new
GWT project with example code and applied the filter and the web.xml
there. It worked directly.
However, I did exactly the same on the gwt app I want to make
searchable and it doesn't work. For some reason, the only requests the
filter gets are the ones to the ones for the rpc.
I think I must be missing a terribly simple detail, but I'm a bit lost
on where to go from here.


Following you can see the code for the filter (CrawlServlet) and the
web.xml

package crawltest.server;

import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.logging.Logger;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet that makes this application crawlable
 */
public final class CrawlServlet implements Filter {

private static final Logger logger =
Logger.getLogger(CrawlServlet.class
.getName());
  private static String rewriteQueryString(String queryString) throws
UnsupportedEncodingException {
StringBuilder queryStringSb = new StringBuilder(queryString);
int i = queryStringSb.indexOf(_escaped_fragment_);
if (i != -1) {
  StringBuilder tmpSb = new
StringBuilder(queryStringSb.substring(0, i));
  tmpSb.append(#!);
  tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 20,
queryStringSb.length()),UTF-8));
  queryStringSb = tmpSb;
}

i = queryStringSb.indexOf(_escaped_fragment_);
if (i != -1) {
  StringBuilder tmpSb = new
StringBuilder(queryStringSb.substring(0, i));
  tmpSb.append(#!);
  tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 19,
queryStringSb.length()), UTF-8));
  queryStringSb = tmpSb;
}
if (queryStringSb.indexOf(#!) != 0) {
  queryStringSb.insert(0, '?');
}
queryString = queryStringSb.toString();



return queryString;
  }

  private FilterConfig filterConfig = null;

  /**
   * Destroys the filter configuration
   */
  public void destroy() {
this.filterConfig = null;
  }

  /**
   * Filters all requests and invokes headless browser if necessary
   */
  public void doFilter(ServletRequest request, ServletResponse
response,
  FilterChain chain) throws IOException {
  System.out.println(crawl);
if (filterConfig == null) {
  return;
}
System.out.println(crawl);
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
String queryString = req.getQueryString();
System.out.println(query:+queryString);
System.out.println(param:+req.getParameterMap().toString());
System.out.println(req:+req);
if ((queryString != null) 
(queryString.contains(_escaped_fragment_))) {
System.out.println(in!!);
  StringBuilder pageNameSb = new StringBuilder(http://;);
  pageNameSb.append(req.getServerName());
  if (req.getServerPort() != 0) {
pageNameSb.append(:);
pageNameSb.append(req.getServerPort());
  }
  pageNameSb.append(req.getRequestURI());
  queryString = rewriteQueryString(queryString);
  pageNameSb.append(queryString);

  final WebClient webClient = new
WebClient(BrowserVersion.FIREFOX_3);
  webClient.setJavaScriptEnabled(true);
  String pageName = pageNameSb.toString();
  HtmlPage page = webClient.getPage(pageName);
  webClient.waitForBackgroundJavaScriptStartingBefore(2000);

  res.setContentType(text/html;charset=UTF-8);
  PrintWriter out = res.getWriter();
  out.println(hr);
  out.println(centerh3You are viewing a non-interactive page
that is intended for the crawler.  You probably want to see this page:
a href=\
  + pageName + \ + pageName + /a/h3/center);
  out.println(hr);

  out.println(page.asXml());
  webClient.closeAllWindows();
  out.close();

} else {
  try {
chain.doFilter(request, response);
  } catch (ServletException e) {
e.printStackTrace();
  }
}
  }

  /**
   * Initializes the filter configuration
   */
  public void init(FilterConfig filterConfig) {
this.filterConfig = filterConfig;
  }

}


web-xml:

?xml version=1.0 encoding=UTF-8?
web-app 

Re: ajax-crawling approach to make gwt app crawlable works on default gwt example, but not on my app

2012-03-30 Thread erebrus
Hi,
To answer both your replies. Yes, they do conform to the
specification. I also added the meta tag in the html (thought I forgot
to include that in the list of changes I did in the OP).
The problem isn't the HtmlUnit, because it simply doesn't get that
far. The filter is never run with the GET requests, only the requests
for the rpc service, therefore HtmlUnit doesn't get to be used.

On Mar 30, 8:40 pm, Ovidiu Mihaescu gand...@gmail.com wrote:
 Also, 
 fromhttp://support.google.com/webmasters/bin/answer.py?hl=enanswer=174993,
 towards the bottom of the page:
 ...
 I'm using HtmlUnit as the headless browser, and it doesn't work. Why not?
 If doesn't work means that HtmlUnit does not return the snapshot you
 were expecting to see, it's very likely that the culprit is that you
 didn't give it enough time to execute the JavaScript and/or XHR
 requests. To fix this, try any or all of the following:
    - Use NicelyResynchronizingAjaxController. This will cause HtmlUnit
 to wait for any outstanding XHR calls.
    - Bump up the wait time for waitForBackgroundJavaScript and/or
 waitForBackgroundJavaScriptStartingBefore.







 On Fri, Mar 30, 2012 at 12:37 PM, Ovidiu Mihaescu gand...@gmail.com wrote:
  Does your existing app's URLs conform to the spec at
 https://developers.google.com/webmasters/ajax-crawling/docs/specifica...
  ? More specifically, do all your history tokens start with an
  exclamation mark?

  On Fri, Mar 30, 2012 at 9:31 AM, erebrus ereb...@gmail.com wrote:
  Hi all,
  I was readinghttps://developers.google.com/webmasters/ajax-crawling/
  on how to make ajax apps (consequently gwt apps) crawlable.
  I took the code from google (summarized in point 3 of How to create
  an HTML snapshot? to create a filter (that returns html from ajax
  using HtmlUnit) and changed the web.xml accordingly. I created a new
  GWT project with example code and applied the filter and the web.xml
  there. It worked directly.
  However, I did exactly the same on the gwt app I want to make
  searchable and it doesn't work. For some reason, the only requests the
  filter gets are the ones to the ones for the rpc.
  I think I must be missing a terribly simple detail, but I'm a bit lost
  on where to go from here.

  Following you can see the code for the filter (CrawlServlet) and the
  web.xml

  package crawltest.server;

  import com.gargoylesoftware.htmlunit.BrowserVersion;
  import com.gargoylesoftware.htmlunit.WebClient;
  import com.gargoylesoftware.htmlunit.html.HtmlPage;

  import java.io.IOException;
  import java.io.PrintWriter;
  import java.io.UnsupportedEncodingException;
  import java.net.URLDecoder;
  import java.util.logging.Logger;

  import javax.servlet.Filter;
  import javax.servlet.FilterChain;
  import javax.servlet.FilterConfig;
  import javax.servlet.ServletException;
  import javax.servlet.ServletRequest;
  import javax.servlet.ServletResponse;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;

  /**
   * Servlet that makes this application crawlable
   */
  public final class CrawlServlet implements Filter {

         private static final Logger logger =
  Logger.getLogger(CrawlServlet.class
                         .getName());
   private static String rewriteQueryString(String queryString) throws
  UnsupportedEncodingException {
     StringBuilder queryStringSb = new StringBuilder(queryString);
     int i = queryStringSb.indexOf(_escaped_fragment_);
     if (i != -1) {
       StringBuilder tmpSb = new
  StringBuilder(queryStringSb.substring(0, i));
       tmpSb.append(#!);
       tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 20,
  queryStringSb.length()),UTF-8));
       queryStringSb = tmpSb;
     }

     i = queryStringSb.indexOf(_escaped_fragment_);
     if (i != -1) {
       StringBuilder tmpSb = new
  StringBuilder(queryStringSb.substring(0, i));
       tmpSb.append(#!);
       tmpSb.append(URLDecoder.decode(queryStringSb.substring(i + 19,
  queryStringSb.length()), UTF-8));
       queryStringSb = tmpSb;
     }
     if (queryStringSb.indexOf(#!) != 0) {
       queryStringSb.insert(0, '?');
     }
     queryString = queryStringSb.toString();

     return queryString;
   }

   private FilterConfig filterConfig = null;

   /**
    * Destroys the filter configuration
    */
   public void destroy() {
     this.filterConfig = null;
   }

   /**
    * Filters all requests and invokes headless browser if necessary
    */
   public void doFilter(ServletRequest request, ServletResponse
  response,
       FilterChain chain) throws IOException {
           System.out.println(crawl);
     if (filterConfig == null) {
       return;
     }
     System.out.println(crawl);
     HttpServletRequest req = (HttpServletRequest) request;
     HttpServletResponse res = (HttpServletResponse) response;
     String queryString = req.getQueryString();
     System.out.println(query:+queryString);
     System.out.println(param:+req.getParameterMap

Popup Panels are always displayed behind the youtube iframe

2011-09-19 Thread erebrus
Hi,
I have HTMLPanel in which I include an iframe with a youtube. My
problem is that whenever I display a popup panel (e.g. custom made
dialog boxes) that youtube iframe is always displayed on top of the
popup panel?
Does anybody know how to solve this problem?

Thanks

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Popup Panels are always displayed behind the youtube iframe

2011-09-19 Thread erebrus
Thanks, that did it.

On Sep 19, 2:47 pm, KevMo kevinps...@gmail.com wrote:
 Try adding wmode=Opaque to the end of the iFrame URL.

 On Sep 19, 1:16 am, erebrus ereb...@gmail.com wrote:







  Hi,
  I have HTMLPanel in which I include an iframe with a youtube. My
  problem is that whenever I display a popup panel (e.g. custom made
  dialog boxes) that youtube iframe is always displayed on top of the
  popup panel?
  Does anybody know how to solve this problem?

  Thanks

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Image URL from Facebook doesn't load on Chrome, but does on other browsers.

2011-05-23 Thread erebrus
For some reason, in Chrome, an image with a url like:
http://a1.sphotos.ak.fbcdn.net/hphotos-ak-snc4/154191_1015063770634_542315633_16102394_1381308_n.jpg
doesn't show up when I load it in GWT (inside a Image object). It does
however show up if I use Firefox or IE.

Does anybody have any clue about what might cause this?

Thanks

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Image URL from Facebook doesn't load on Chrome, but does on other browsers.

2011-05-23 Thread erebrus
That's the point, the code is as straight forward as it gets

HorizontalPanel hz = new HorizontalPanel();
Image image = new 
Image(http://a1.sphotos.ak.fbcdn.net/hphotos-ak-
snc4/154191_1015063770634_542315633_16102394_1381308_n.jpg1);
hz.add(image);
RootPanel.get().add(hz);

I also tried to prefetch it before, but nothing. In chrome the picture
doesn't show up, but in other browsers it does.

Any clue?
On May 23, 12:54 pm, Max Jonas Werner m...@maxwerner.de wrote:
 Hi erebrus,

 without some code it'll be difficult to help you. Please post the code
 snippet which creates your Image.

 HTH
 Max

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Image URL from Facebook doesn't load on Chrome, but does on other browsers.

2011-05-23 Thread erebrus
Furthermore, if I force the image to have a size, I can right click
and the open the picture link in a new tab and it will be displayed,
it just doesn't seem to display inside an image object...

On May 23, 3:14 pm, erebrus ereb...@gmail.com wrote:
 That's the point, the code is as straight forward as it gets

                 HorizontalPanel hz = new HorizontalPanel();
                 Image image = new 
 Image(http://a1.sphotos.ak.fbcdn.net/hphotos-ak-
 snc4/154191_1015063770634_542315633_16102394_1381308_n.jpg1);
                 hz.add(image);
                 RootPanel.get().add(hz);

 I also tried to prefetch it before, but nothing. In chrome the picture
 doesn't show up, but in other browsers it does.

 Any clue?
 On May 23, 12:54 pm, Max Jonas Werner m...@maxwerner.de wrote:







  Hi erebrus,

  without some code it'll be difficult to help you. Please post the code
  snippet which creates your Image.

  HTH
  Max

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Image URL from Facebook doesn't load on Chrome, but does on other browsers.

2011-05-23 Thread erebrus
I had meanwhile included a typo in the url...this is correct now. The
problem persists

  HorizontalPanel hz = new HorizontalPanel();
Image image = new Image(http://
a1.sphotos.ak.fbcdn.net/hphotos-ak-
snc4/154191_1015063770634_542315633_16102394_1381308_n.jpg);
hz.add(image);
RootPanel.get().add(hz);

On May 23, 3:14 pm, erebrus ereb...@gmail.com wrote:
 That's the point, the code is as straight forward as it gets

                 HorizontalPanel hz = new HorizontalPanel();
                 Image image = new 
 Image(http://a1.sphotos.ak.fbcdn.net/hphotos-ak-
 snc4/154191_1015063770634_542315633_16102394_1381308_n.jpg1);
                 hz.add(image);
                 RootPanel.get().add(hz);

 I also tried to prefetch it before, but nothing. In chrome the picture
 doesn't show up, but in other browsers it does.

 Any clue?
 On May 23, 12:54 pm, Max Jonas Werner m...@maxwerner.de wrote:







  Hi erebrus,

  without some code it'll be difficult to help you. Please post the code
  snippet which creates your Image.

  HTH
  Max

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to disable drag and top on mouse move over image?

2011-05-12 Thread erebrus
Hi,
I'm doing a widget to allow the user to crop an image. I have an image
in an absolute panel, and then a box on top that indicates the area to
crop. I want the user to be able to move the mouse and move the crop
box around. However, since there is an image behind, what I get
instead is the drag-and-drop behavior.
How can I disable this?

Thanks

c.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to disable drag and top on mouse move over image?

2011-05-12 Thread erebrus
And since I'm creating the image progamatically (new Image()), how to
I add a tag to the html?

On May 12, 8:10 pm, Cristiano cristiano.costant...@gmail.com wrote:
 on the html's img tag put onmousedown=return false;

 On 12 Mag, 20:10, erebrus ereb...@gmail.com wrote:







  Hi,
  I'm doing a widget to allow the user to crop an image. I have an image
  in an absolute panel, and then a box on top that indicates the area to
  crop. I want the user to be able to move the mouse and move the crop
  box around. However, since there is an image behind, what I get
  instead is the drag-and-drop behavior.
  How can I disable this?

  Thanks

  c.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



CSS with UIBinder and changing styles at runtime

2010-10-13 Thread erebrus
Hi all,
I'm using UiBinder and for each package of widgets I define a css with
the relevant styles. However, sometimes I want to change the style at
runtime and that's where it gets complicated...As far as I can see, at
runtime, the styles available are the ones defined in the css imported
by the .html not the ones used in the uibinder. This causes me to have
to duplicate a lot of the styles from the uibinder CSSs to the .html
css which is a hassle to maintain. There has to be a better/cleaner
way of doing this. How?

Thanks

C.

-- 
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.



Re: 1.5 to 1.6 - Hosted Mode - entry point is not a javax.servlet.Servlet warning

2009-06-07 Thread erebrus

Please ignore my previous message.

Thank you

On Jun 6, 9:56 am, erebrus ereb...@gmail.com wrote:
 Hi all,
 I'm upgrading a project I have in 1.5. I checked it out from SVN into
 a newly created project with the eclipse plugin and proceeded to
 change:
 module file
 web.xml
 main html file
 moving the contents of public to war.

 However, when I try to run into hosted mode, it can't somehow find the
 html and before it gives me warning that my entry point class isn't a
 java.servlet.Servlet. Not only the class hasn't been changed (and is
 therefore a entry point class), but eclipse itself identifies it as an
 entry point class in the running configurations. Can anybody provide
 any hints on whats happening?

 Thanks

 Following are the stacks for the two warnings I get and the error

 [WARN] failed Browser
 javax.servlet.UnavailableException: Servlet class
 ch.solenix.mdr.client.Browser is not a javax.servlet.Servlet
         at org.mortbay.jetty.servlet.ServletHolder.checkServletType
 (ServletHolder.java:377)
         at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 234)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at org.mortbay.jetty.servlet.ServletHandler.initialize
 (ServletHandler.java:616)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
         at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1220)
         at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:513)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at com.google.gwt.dev.shell.jetty.JettyLauncher
 $WebAppContextWithReload.doStart(JettyLauncher.java:414)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:130)
         at org.mortbay.jetty.handler.RequestLogHandler.doStart
 (RequestLogHandler.java:115)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:130)
         at org.mortbay.jetty.Server.doStart(Server.java:222)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at com.google.gwt.dev.shell.jetty.JettyLauncher.start
 (JettyLauncher.java:478)
         at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
         at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

 [WARN] Failed startup of context
 com.google.gwt.dev.shell.jetty.JettyLauncher
 $webappcontextwithrel...@dd851d{/,/home/erebrus/workspace/FACTAdmin/
 FACTAdmin/war}
 javax.servlet.UnavailableException: Servlet class
 ch.solenix.mdr.client.Browser is not a javax.servlet.Servlet
         at org.mortbay.jetty.servlet.ServletHolder.checkServletType
 (ServletHolder.java:377)
         at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 234)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at org.mortbay.jetty.servlet.ServletHandler.initialize
 (ServletHandler.java:616)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
         at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1220)
         at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:513)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at com.google.gwt.dev.shell.jetty.JettyLauncher
 $WebAppContextWithReload.doStart(JettyLauncher.java:414)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:130)
         at org.mortbay.jetty.handler.RequestLogHandler.doStart
 (RequestLogHandler.java:115)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:130)
         at org.mortbay.jetty.Server.doStart(Server.java:222)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:39)
         at com.google.gwt.dev.shell.jetty.JettyLauncher.start
 (JettyLauncher.java:478)
         at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
         at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

 [ERROR] 503 - GET /Browser.html (127.0.0.1) 1319 bytes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups

1.5 to 1.6 - Hosted Mode - entry point is not a javax.servlet.Servlet warning

2009-06-06 Thread erebrus

Hi all,
I'm upgrading a project I have in 1.5. I checked it out from SVN into
a newly created project with the eclipse plugin and proceeded to
change:
module file
web.xml
main html file
moving the contents of public to war.

However, when I try to run into hosted mode, it can't somehow find the
html and before it gives me warning that my entry point class isn't a
java.servlet.Servlet. Not only the class hasn't been changed (and is
therefore a entry point class), but eclipse itself identifies it as an
entry point class in the running configurations. Can anybody provide
any hints on whats happening?

Thanks


Following are the stacks for the two warnings I get and the error

[WARN] failed Browser
javax.servlet.UnavailableException: Servlet class
ch.solenix.mdr.client.Browser is not a javax.servlet.Servlet
at org.mortbay.jetty.servlet.ServletHolder.checkServletType
(ServletHolder.java:377)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
234)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload.doStart(JettyLauncher.java:414)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart
(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start
(JettyLauncher.java:478)
at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

[WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher
$webappcontextwithrel...@dd851d{/,/home/erebrus/workspace/FACTAdmin/
FACTAdmin/war}
javax.servlet.UnavailableException: Servlet class
ch.solenix.mdr.client.Browser is not a javax.servlet.Servlet
at org.mortbay.jetty.servlet.ServletHolder.checkServletType
(ServletHolder.java:377)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
234)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload.doStart(JettyLauncher.java:414)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart
(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start
(JettyLauncher.java:478)
at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

[ERROR] 503 - GET /Browser.html (127.0.0.1) 1319 bytes


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com