|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
gwt-maven-plugin - Client can't find server in JbossHello all,
I have an app with the following module definition: <?xml version="1.0" encoding="windows-1252"?> <module> <!-- Inherit the core Web Toolkit stuff. --> <inherits name="com.google.gwt.user.User"/> <inherits name="com.smartgwt.SmartGwt"/> <entry-point class="es.company.gwtlogin.client.GWTLogin"/> <servlet class="es.company.gwtlogin.server.GWTLoginServiceImpl" path="/GWTLoginService"/> </module> "web.xml" is as follows: <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>GWT-Maven-Archetype</display-name> <servlet> <servlet-name>GWTLoginService</servlet-name> <servlet-class>es.company.gwtlogin.server.GWTLoginServiceImpl</servlet-class> </servlet> <servlet-mapping> <servlet-name>GWTLoginService</servlet-name> <url-pattern>/GWTLoginService</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> "pom.xml" defines a final name as follows: ... <finalName>GWTLogin</finalName> ... This works fine when I debug in hosted mode, the URL of the app is: http://localhost:8888/es.company.gwtlogin.GWTLogin/GWTLogin.html The problem is when I package and deploy to JBoss, I open the app as follows: http://localhost:8080/GWTLogin Which re-directs to: http://localhost:8080/GWTLogin/es.company.gwtlogin.GWTLogin/GWTLogin.html But then when I try to invoke a method of the server from the client I get the following error: JBossWeb/2.0.1.GA - Informe de Error Estado HTTP 404 - /GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService Informe de estado mensaje /GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService descripción El recurso requerido (/GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService) no está disponible. It says it can't find "/GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService". I found the server actually exists in the following URL: http://localhost:8080/GWTLogin/GWTLoginService How can I make the client find the server?. I guess I have something wrong or missing in my web.xml. Thank you, Ivan --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: gwt-maven-plugin - Client can't find server in JbossSolved, I just published the service where the client expects it to be:
<url-pattern>/es.company.gwtlogin.GWTLogin/GWTLoginService</url-pattern> On Thu, Oct 22, 2009 at 9:33 AM, Ivan Martinez <supertrasgu@...> wrote: > Hello all, > I have an app with the following module definition: > > <?xml version="1.0" encoding="windows-1252"?> > <module> > <!-- Inherit the core Web Toolkit stuff. --> > <inherits name="com.google.gwt.user.User"/> > <inherits name="com.smartgwt.SmartGwt"/> > <entry-point class="es.company.gwtlogin.client.GWTLogin"/> > <servlet class="es.company.gwtlogin.server.GWTLoginServiceImpl" > path="/GWTLoginService"/> > </module> > > "web.xml" is as follows: > > <!DOCTYPE web-app PUBLIC > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd" > > <web-app> > <display-name>GWT-Maven-Archetype</display-name> > <servlet> > <servlet-name>GWTLoginService</servlet-name> > <servlet-class>es.company.gwtlogin.server.GWTLoginServiceImpl</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>GWTLoginService</servlet-name> > <url-pattern>/GWTLoginService</url-pattern> > </servlet-mapping> > <welcome-file-list> > <welcome-file>index.html</welcome-file> > </welcome-file-list> > </web-app> > > "pom.xml" defines a final name as follows: > > ... > <finalName>GWTLogin</finalName> > ... > > This works fine when I debug in hosted mode, the URL of the app is: > > http://localhost:8888/es.company.gwtlogin.GWTLogin/GWTLogin.html > > The problem is when I package and deploy to JBoss, I open the app as follows: > > http://localhost:8080/GWTLogin > > Which re-directs to: > > http://localhost:8080/GWTLogin/es.company.gwtlogin.GWTLogin/GWTLogin.html > > But then when I try to invoke a method of the server from the client I > get the following error: > > JBossWeb/2.0.1.GA - Informe de Error > Estado HTTP 404 - /GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService > Informe de estado > mensaje > /GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService > descripción > El recurso requerido > (/GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService) no está > disponible. > > It says it can't find > "/GWTLogin/es.company.gwtlogin.GWTLogin/GWTLoginService". I found the > server actually exists in the following URL: > > http://localhost:8080/GWTLogin/GWTLoginService > > How can I make the client find the server?. I guess I have something > wrong or missing in my web.xml. > > Thank you, > Ivan > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |