Hi,currently I'm working on a project with GWT that has this special
condition:we'll deliver two products,a framework and an
application.The application uses the framework classes through a JAR
file.The big problem is that the framework package contains all the
clases that implements Services and make RP calls.But what we want to
do is to deploy the application in an Oracle server.Here are some
classes,so you understand a more about our problem:
Application.gwt.xml contains the following lines:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.user.theme.standard.Standard"/>
<inherits name="com.framework.gwt.FrameworkGWT"/>
<!-- Specify the app entry point class. -->
<entry-point class="org.application.gwt.client.Application"/>
<stylesheet src="css/style.css"/>
</module>
FrameworkGWT is found in the JAR file I mentioned earlier.
FrameworkGWT.gwt.xml contains the following lines:
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.junit.JUnit' />
<inherits name='eu.future.earth.gwt.DateFTR' />
<inherits name='eu.future.earth.gwt.TableFTR' />
<inherits name='org.cobogw.gwt.user.User' />
<inherits name='org.cobogw.gwt.user.CSS' />
<servlet path='/servicios'
class='com.framework.gwt.server.BuscadorServiceImpl' />
<servlet path='/consultaDuplicados'
class='com.framework.gwt.server.ConsultaDuplicadosServiceImpl' />
<servlet path='/verDocumento'
class='com.framework.gwt.server.VerDocumentoImpl' />
<servlet path='/serviciosCRUD'
class='com.framework.gwt.server.CRUDServiceImpl' />
<servlet path='/serviciosPrueba'
class='com.framework.gwt.server.ServiciosImpl' />
<servlet path='/serviciosMaestroWizard'
class='com.framework.gwt.server.MaestroWizardServiceImpl' />
<stylesheet src='ComponentesGWT.css' />
</module>
As you can see,we write the servlets paths for the services in the
Framework module,because it's the one that contains these classes.
The problem is that when we deploy the application and try to call a
service,it doesn't work because we don't have them mapped in the
web.xml file from the application.We tried to map them directly in
this XML file but it didn't work,as the application threw an
Exception.
So,the question is:is there any way to invoke a service that's not
contained in the same project where the client side is located?Like I
told you before,we MUST keep separated the Application and Framework
projects,and the only way to interact with it is through a JAR file.
Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---