@Nick thanks for your help.
I tried with a firefox plugin - everything seems to be coming up as expected: http://www.wokhei.com/sitemaps/sitemap.xml --> Contet-type: text/plain http://www.wokhei.com/sitemaps/sitemap.xml --> Contet-type: application/xml With my servlet: http://www.wokhei.com/wokhei/serveSitemap?fileType=TXT --> Contet- type: text/plain http://www.wokhei.com/wokhei/serveSitemap?fileType=XML--> Contet-type: text/plain All I get from webmaster tool is -->Sitemap is HTML. I guess it's time to move this to the webmaster tools help forum. On Aug 10, 1:14 pm, "Nick Johnson (Google)" <[email protected]> wrote: > On Sun, Aug 9, 2009 at 4:43 PM, John_Idol<[email protected]> wrote: > > > @Nick > > > ok - I implemented a servlet to serve the sitemap as text/plain (I am > > loading the file into an array of bytes then calling): > > > resp.setContentType("text/plain"); > > resp.getOutputStream().write(bytes); > > > If I call the servlet manually I see the output I expect but if I feed > > the servlet path to google webmaster tools I still get --> Sitemap is > > HTML > > Try using curl or wget, or the Firefox 'raw http headers' plugin to > verify the content-type and other headers being served. For example, > in wget, do "wget -O /dev/null -Shttp://yoururl/...". Try this on > both your original static file and on the new servlet. If they're > actually serving up as text/plain, you need to use the contact > mechanisms for Sitemaps to find out what's up. > > -Nick Johnson > > > > > > > > > Trying with both XMl and TXT plain text ... starting to lose hope! :) > > > On Aug 9, 12:25 pm, John_Idol <[email protected]> wrote: > >> The other strange thing is that robots.txt is apparently being served > >> correctly (no errors from webmaster tools) and being a txt I would > >> expect the same error as my txt sitemap > > >> On Aug 9, 12:15 pm, John_Idol <[email protected]> wrote: > > >> > Ok, > > >> > I jst noticed I was doing the opposite of what you suggested, from the > >> > doc: > > >> > To serve a file with a custom MIME type, make the file a resource file > >> > instead of a static file, and create a servlet that serves the data > >> > with the custom MIME type. > > >> > Does this mean I have to make my sistemaps resource files in the > >> > appengine-web.xml and implement a servlet just to serve them as text? > > >> > On Aug 9, 12:12 pm, John_Idol <[email protected]> wrote: > > >> > > Hi Nick - thanks for your help, I tried with: > > >> > > <static-files> > >> > > <include path="/**.xml" /> > >> > > <include path="/**.txt" /> > >> > > </static-files> > > >> > > in my appengine-web.xml but now I am getting errors on the otherpages: > > >> > > WARNING: Can not serve /index.htmldirectly. You need to include it > >> > > in <static-files> in your appengine-web.xml. > > >> > > If I includehtmlfiles then it complains about pngs and so forth :) > > >> > > Any help appreciated! > > >> > > On Aug 9, 11:28 am, "Nick Johnson (Google)" <[email protected]> > >> > > wrote: > > >> > > > Hi John, > > >> > > > If the mime-type being served is incorrect, you need to specify it > >> > > > manually - see the docs on static handlers for > >> > > > Python:http://code.google.com/appengine/docs/python/config/appconfig.html#St... > >> > > > and > >> > > > Java:http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... > > >> > > > -Nick Johnson > > >> > > > On Sat, Aug 8, 2009 at 4:56 PM, John_Idol<[email protected]> > >> > > > wrote: > > >> > > > > I have a very simple txt sitemap (named sitemap.txt) that looks > >> > > > > like > >> > > > > this: > > >> > > > >http://myDomain.com > >> > > > >http://myDomain.com/about.html > >> > > > >http://myDomain.com/faq.html > >> > > > >http://myDomain.com/careers.html > > >> > > > > When I load it up on webmaster tools I get: > > >> > > > > Sitemap isHTML- Your Sitemap appears to be anHTMLpage. Please use > >> > > > > a supported sitemap format instead > > >> > > > > I tried a few alternatives (such as with or without www) but no > >> > > > > luck. > > >> > > > > I tried also with an xml sitemap and getting the same error so it > >> > > > > looks like the server isservingeverything as text/htmlinstead of > >> > > > > text/plain.. > > >> > > > > Now the question is ... how do I get the appspot server to server > >> > > > > text > >> > > > > as plain? > > >> > > > > Anyone any clue? > > >> > > > > Any help appreciated! > > >> > > > > P.S. if I am not posting in the appropriate group please tell me > >> > > > > which > >> > > > > one should I post to > > >> > > > -- > >> > > > Nick Johnson, Developer Programs Engineer,AppEngine > > -- > Nick Johnson, Developer Programs Engineer, App Engine --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
