Re: application (with custom shell servlet) is not working at external tomcat

2009-01-30 Thread superkruger

Hi Hasan,

The problem is most probably a 404 in tomcat.
Have a look at the headers (using something like the LiveHTTPHeaders
firefox plugin)
You'll probably find that the ...nocache.js file is not found.

If you packaged it into a war file or something, you'll see the whole
'edu.hacettepe.bote.ApiksApp' path has been renamed to
'edu.hacettepe.bote.apiksApp'.
That's the root of the problem.
The easiest solution would be to rename your module to something
starting with a *lowercase* letter.
Or just edit your module xml file...

Hope it helps


On Jan 15, 9:26 am, Hasan Turksoy hturk...@gmail.com wrote:
 Hi all,

 i've implemented a custom servlet (which is extending from GWTShellServlet)
 only to response my main gwt page requests, otherwise, will call super.doGet
 or super.doPost. it is like this;

 /**
  * Custom servlet which extends GWT's one to make it possible to use other
  * formats(like JSP, FreeMarker) as application main page.
  *
  * @author Hasan
  */
 public class CustomShellServlet extends GWTShellServlet {
     @Override
     protected void doGet(final HttpServletRequest request, final
 HttpServletResponse response) throws ServletException, IOException {
         if (processIfMyCustomRequest(request, response))
             return;
         super.doGet(request, response);
     }

     @Override
     protected void doPost(HttpServletRequest request, HttpServletResponse
 response) throws ServletException, IOException {
         if (processIfMyCustomRequest(request, response))
             return;
         super.doPost(request, response);
     }
 ...

 }

 this is working at hosted mode but not working when i want to deploy my app
 to an external tomcat instance. When i made my custom request (in fact,
 which will generate the main gwt html file with some additional script
 codes), it is entering my custom servlet, responding main application html
 normally but i see an empty screen whose html source (view source) seems
 normal - as below;

 request:http://localhost:8080/apiks/ApiksApp.do
 response:

 html
   head
     meta http-equiv=content-type content=text/html; charset=UTF-8
     meta name=gwt:property content=locale=tr
     !--                                           --

     !-- Any title is fine                         --
     !--                                           --
     titleApiksApp/title

     script type=text/javascript language=javascript
             var parameters = {
                         action: ,
                         id: 
             };
     /script

     !--                                           --
     !-- This script loads your compiled module.   --
     !-- If you add any GWT meta tags, they must   --
     !-- be added before this line.                --

     !--                                           --
     script type=text/javascript language=javascript
 src=edu.hacettepe.bote.ApiksApp.nocache.js/script
   /head

   !--                                           --
   !-- The body can have arbitrary html, or      --
   !-- you can leave the body empty if you want  --
   !-- to create a completely dynamic UI.        --
   !--                                           --

   body

     !-- OPTIONAL: include this if you want history support --
     iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
 style=position:absolute;width:0;height:0;border:0/iframe

   /body
 /html

 result: empty screen!

 web.xml content:

 !-- custom servlet extending from GWTShellServlet --
     servlet
         servlet-nameshell/servlet-name

 servlet-classedu.hacettepe.bote.server.servlet.CustomShellServlet/servle 
 t-class
     /servlet

     servlet-mapping
         servlet-nameshell/servlet-name
         url-pattern/*/url-pattern
     /servlet-mapping

 !-- servlet class to implement RPC calls--
 servlet
     servlet-nameApiksService/servlet-name

 servlet-classedu.hacettepe.bote.server.service.ApiksServiceImpl/servlet- 
 class
 /servlet

 servlet-mapping
     servlet-nameApiksService/servlet-name
     url-pattern/ApiksService/url-pattern
 /servlet-mapping
 --- 
 ---

 seems it's not loading gwt script file... or something i can not see...
 anybody knows? what may be the problem?

 Thanks in advance,

 Hasan...
--~--~-~--~~~---~--~~
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: application (with custom shell servlet) is not working at external tomcat

2009-01-30 Thread Hasan Turksoy
Thanks superkruger,

I've successfully deployed my module after app. Below are my notes;

- though my war file seems not renamed module path, i have renamed my module
name to lowercase as you suggested,
- created a new war by using tomcat war
builderhttp://code.google.com/p/gwt-examples/wiki/gwtTomcatWarBuilder
project,
- check the web.xml to include same servlet mappings with my module xml

Thanks again for your precious help...

Hasan...
http://www.jroller.com/hasant


On Fri, Jan 30, 2009 at 2:42 PM, superkruger superkru...@gmail.com wrote:


 Hi Hasan,

 The problem is most probably a 404 in tomcat.
 Have a look at the headers (using something like the LiveHTTPHeaders
 firefox plugin)
 You'll probably find that the ...nocache.js file is not found.

 If you packaged it into a war file or something, you'll see the whole
 'edu.hacettepe.bote.ApiksApp' path has been renamed to
 'edu.hacettepe.bote.apiksApp'.
 That's the root of the problem.
 The easiest solution would be to rename your module to something
 starting with a *lowercase* letter.
 Or just edit your module xml file...

 Hope it helps


 On Jan 15, 9:26 am, Hasan Turksoy hturk...@gmail.com wrote:
  Hi all,
 
  i've implemented a custom servlet (which is extending from
 GWTShellServlet)
  only to response my main gwt page requests, otherwise, will call
 super.doGet
  or super.doPost. it is like this;
 
  /**
   * Custom servlet which extends GWT's one to make it possible to use
 other
   * formats(like JSP, FreeMarker) as application main page.
   *
   * @author Hasan
   */
  public class CustomShellServlet extends GWTShellServlet {
  @Override
  protected void doGet(final HttpServletRequest request, final
  HttpServletResponse response) throws ServletException, IOException {
  if (processIfMyCustomRequest(request, response))
  return;
  super.doGet(request, response);
  }
 
  @Override
  protected void doPost(HttpServletRequest request, HttpServletResponse
  response) throws ServletException, IOException {
  if (processIfMyCustomRequest(request, response))
  return;
  super.doPost(request, response);
  }
  ...
 
  }
 
  this is working at hosted mode but not working when i want to deploy my
 app
  to an external tomcat instance. When i made my custom request (in fact,
  which will generate the main gwt html file with some additional script
  codes), it is entering my custom servlet, responding main application
 html
  normally but i see an empty screen whose html source (view source) seems
  normal - as below;
 
  request:http://localhost:8080/apiks/ApiksApp.do
  response:
 
  html
head
  meta http-equiv=content-type content=text/html; charset=UTF-8
  meta name=gwt:property content=locale=tr
  !--   --
 
  !-- Any title is fine --
  !--   --
  titleApiksApp/title
 
  script type=text/javascript language=javascript
  var parameters = {
  action: ,
  id: 
  };
  /script
 
  !--   --
  !-- This script loads your compiled module.   --
  !-- If you add any GWT meta tags, they must   --
  !-- be added before this line.--
 
  !--   --
  script type=text/javascript language=javascript
  src=edu.hacettepe.bote.ApiksApp.nocache.js/script
/head
 
!--   --
!-- The body can have arbitrary html, or  --
!-- you can leave the body empty if you want  --
!-- to create a completely dynamic UI.--
!--   --
 
body
 
  !-- OPTIONAL: include this if you want history support --
  iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
  style=position:absolute;width:0;height:0;border:0/iframe
 
/body
  /html
 
  result: empty screen!
 
  web.xml content:
 
  !-- custom servlet extending from GWTShellServlet --
  servlet
  servlet-nameshell/servlet-name
 
 
 servlet-classedu.hacettepe.bote.server.servlet.CustomShellServlet/servle
 t-class
  /servlet
 
  servlet-mapping
  servlet-nameshell/servlet-name
  url-pattern/*/url-pattern
  /servlet-mapping
 
  !-- servlet class to implement RPC calls--
  servlet
  servlet-nameApiksService/servlet-name
 
 
 servlet-classedu.hacettepe.bote.server.service.ApiksServiceImpl/servlet-
 class
  /servlet
 
  servlet-mapping
  servlet-nameApiksService/servlet-name
  url-pattern/ApiksService/url-pattern
  /servlet-mapping
 
 ---
 ---
 
  seems it's not loading gwt script file... or something i can not see...
  anybody knows? what may be the problem?
 
  Thanks in advance,
 
  

application (with custom shell servlet) is not working at external tomcat

2009-01-15 Thread Hasan Turksoy
Hi all,

i've implemented a custom servlet (which is extending from GWTShellServlet)
only to response my main gwt page requests, otherwise, will call super.doGet
or super.doPost. it is like this;

/**
 * Custom servlet which extends GWT's one to make it possible to use other
 * formats(like JSP, FreeMarker) as application main page.
 *
 * @author Hasan
 */
public class CustomShellServlet extends GWTShellServlet {
@Override
protected void doGet(final HttpServletRequest request, final
HttpServletResponse response) throws ServletException, IOException {
if (processIfMyCustomRequest(request, response))
return;
super.doGet(request, response);
}

@Override
protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
if (processIfMyCustomRequest(request, response))
return;
super.doPost(request, response);
}
...
}

this is working at hosted mode but not working when i want to deploy my app
to an external tomcat instance. When i made my custom request (in fact,
which will generate the main gwt html file with some additional script
codes), it is entering my custom servlet, responding main application html
normally but i see an empty screen whose html source (view source) seems
normal - as below;

request: http://localhost:8080/apiks/ApiksApp.do
response:

html
  head
meta http-equiv=content-type content=text/html; charset=UTF-8
meta name=gwt:property content=locale=tr
!--   --

!-- Any title is fine --
!--   --
titleApiksApp/title

script type=text/javascript language=javascript
var parameters = {
action: ,
id: 
};
/script

!--   --
!-- This script loads your compiled module.   --
!-- If you add any GWT meta tags, they must   --
!-- be added before this line.--

!--   --
script type=text/javascript language=javascript
src=edu.hacettepe.bote.ApiksApp.nocache.js/script
  /head

  !--   --
  !-- The body can have arbitrary html, or  --
  !-- you can leave the body empty if you want  --
  !-- to create a completely dynamic UI.--
  !--   --

  body

!-- OPTIONAL: include this if you want history support --
iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0/iframe

  /body
/html

result: empty screen!

web.xml content:

!-- custom servlet extending from GWTShellServlet --
servlet
servlet-nameshell/servlet-name

servlet-classedu.hacettepe.bote.server.servlet.CustomShellServlet/servlet-class
/servlet

servlet-mapping
servlet-nameshell/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

!-- servlet class to implement RPC calls--
servlet
servlet-nameApiksService/servlet-name

servlet-classedu.hacettepe.bote.server.service.ApiksServiceImpl/servlet-class
/servlet

servlet-mapping
servlet-nameApiksService/servlet-name
url-pattern/ApiksService/url-pattern
/servlet-mapping
--

seems it's not loading gwt script file... or something i can not see...
anybody knows? what may be the problem?

Thanks in advance,

Hasan...

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