RPC not working in web mode

2009-07-13 Thread Dariusz

I have different modules in war structure, because I want to keep the
overview as simple as possible. If I test the module in hosted mode
it's working but not in my web mode.

I'm trying to use RPC to get the data, but unfortunately it's not
working in web mode.

After I compile the structure the war looks like this:

MyApp/
   /WebContent
  /WEB-INF
 /classes
  /moduleA
  /moduleB
  web.xml

If I put all the compiled *.html, *.css, *.js in the root (WebCotnent)
then it's working, but I would like to have my modules in separate
directories like 'moduleA', 'moduleB', and so on.

Is it possible??
--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread Dariusz

And something else I realized. I have a module it calls 'register'.
This module is the one which is causing my RPC problem. It's not only
that I have my module directory 'register' in the WebContent, but as
well a directory calls 'register-aux' with a log file in it.

Inside the log file I see the following Exception:

Reachable types computed on: Mon Jul 13 19:57:29 CEST 2009
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
   Serialization status
  Instantiable
   Path
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'


I appreciated any help!!!





On Jul 13, 6:32 pm, Dariusz darius...@gmail.com wrote:
 I have different modules in war structure, because I want to keep the
 overview as simple as possible. If I test the module in hosted mode
 it's working but not in my web mode.

 I'm trying to use RPC to get the data, but unfortunately it's not
 working in web mode.

 After I compile the structure the war looks like this:

 MyApp/
/WebContent
   /WEB-INF
  /classes
   /moduleA
   /moduleB
   web.xml

 If I put all the compiled *.html, *.css, *.js in the root (WebCotnent)
 then it's working, but I would like to have my modules in separate
 directories like 'moduleA', 'moduleB', and so on.

 Is it possible??
--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread waf

Hi,

As a matter of fact each GWT entry point module is placed in a
separate
subdirectory of your app war directory (i.e. in a separate
subdirectory
of server root or your application context after app deployment).
If you want to move module startup html and css it's a matter of
changing the src of module bootstrap JS moduleA.nocache.js
instead of moduleA/moduleA.nocache.js

As for the RPC just configure servlet mapping in your web.xml
to suite your needs.

--
waf

--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread waf


Try to check the compatibility of your RemoteService client
(interface)
and the RemoteService server/servlet methods.

--
waf
--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread Dariusz

Hmm, I don't know exactly what you mean and what do I need to change.
Here is my RegisterService, maybe you can take a look.

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

@RemoteServiceRelativePath(registerservice)
public interface RegisterService extends RemoteService {

public static class Util {

public static RegisterServiceAsync getInstance() {

return GWT.create(RegisterService.class);
}
}

public void registerUser( String firstName, String lastName, String
email );

}

My snippet of my web.xml looks like this:


servlet
servlet-nameRegisterService/servlet-name

servlet-classcom.myapp.module.register.server.RegisterServiceImpl/
servlet-class
/servlet
servlet-mapping
servlet-nameRegisterService/servlet-name
url-pattern/registerservice/url-pattern
/servlet-mapping


Thanks!!




On Jul 13, 8:08 pm, waf wlod...@gmail.com wrote:
 Hi,

 As a matter of fact each GWT entry point module is placed in a
 separate
 subdirectory of your app war directory (i.e. in a separate
 subdirectory
 of server root or your application context after app deployment).
 If you want to move module startup html and css it's a matter of
 changing the src of module bootstrap JS moduleA.nocache.js
 instead of moduleA/moduleA.nocache.js

 As for the RPC just configure servlet mapping in your web.xml
 to suite your needs.

 --
 waf
--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread Dariusz

OK, my fault (of course)!

I need to change the web.xml to this one, since my service is being
called from a subdirectory.

servlet
 servlet-nameRegisterService/servlet-name
 servlet-
classcom.myapp.module.register.server.RegisterServiceImpl/servlet-
class
/servlet
servlet-mapping
 servlet-nameRegisterService/servlet-name
 url-pattern/register/registerservice/url-pattern
/servlet-mapping

Thanks waf!!



On Jul 13, 8:41 pm, Dariusz darius...@gmail.com wrote:
 Hmm, I don't know exactly what you mean and what do I need to change.
 Here is my RegisterService, maybe you can take a look.

 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.rpc.RemoteService;
 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.google.gwt.user.client.rpc.ServiceDefTarget;

 @RemoteServiceRelativePath(registerservice)
 public interface RegisterService extends RemoteService {

 public static class Util {

 public static RegisterServiceAsync getInstance() {

 return GWT.create(RegisterService.class);
 }
 }

 public void registerUser( String firstName, String lastName, String
 email );

 }

 My snippet of my web.xml looks like this:

 servlet
 servlet-nameRegisterService/servlet-name
 
 servlet-classcom.myapp.module.register.server.RegisterServiceImpl/
 servlet-class
 /servlet
 servlet-mapping
 servlet-nameRegisterService/servlet-name
 url-pattern/registerservice/url-pattern
 /servlet-mapping

 Thanks!!

 On Jul 13, 8:08 pm, waf wlod...@gmail.com wrote:

  Hi,

  As a matter of fact each GWT entry point module is placed in a
  separate
  subdirectory of your app war directory (i.e. in a separate
  subdirectory
  of server root or your application context after app deployment).
  If you want to move module startup html and css it's a matter of
  changing the src of module bootstrap JS moduleA.nocache.js
  instead of moduleA/moduleA.nocache.js

  As for the RPC just configure servlet mapping in your web.xml
  to suite your needs.

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