Thanks, I was using that as an example to show that the service is answering. It is doing what is expected because it is a rpc service.
Any other ideas, Perhaps it is not possible to this with separate source code trees. e 2010/3/10 Víctor Llorens Vilella <[email protected]> > I don't know now what the problem is, > > but you should start googling for GWT 405, and you will surelly have the > solution within the first set of links. > > Greetings, > > On 10 March 2010 17:12, Ed <[email protected]> wrote: > >> Can some at least tell me what to search for... >> I know this has happened to others but cant seem to get any answers. >> >> Thanks in advance. >> >> >> On Wed, Mar 10, 2010 at 9:51 AM, Ed <[email protected]> wrote: >> >>> Hi Everyone, >>> >>> I hope I am able to get an answer to this. >>> >>> I am trying to tie a backend servlet process to a GWT servlet. >>> >>> How do I map this to work properly >>> >>> I am using Jetty 6 >>> GWT 2.01 >>> Eclipse Ganymeade >>> >>> >>> >>> >>> >>> Here is the code >>> >>> ======================================================================================== >>> package com.co.SSIS.server; >>> >>> >>> >>> import com.co.SSISSERVER.users.User; >>> import com.co.SSISSERVER.users.UserService; >>> import com.co.SSISSERVER.users.UserServiceImpl; >>> import com.co.SSIS.client.LoginInfo; >>> import com.co.SSIS.client.LoginService; >>> >>> import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; >>> import com.google.gwt.user.server.rpc.RemoteServiceServlet; >>> >>> @RemoteServiceRelativePath("/ssisajaxserver/User") >>> public class LoginServiceImpl extends RemoteServiceServlet implements >>> LoginService { >>> >>> public LoginInfo login(String loginURL) { >>> UserService userService = UserServiceImpl.getUserService(); >>> >>> >>> User user = userService.getCurrentUser(); >>> LoginInfo loginInfo = new LoginInfo(); >>> >>> if (user != null) { >>> loginInfo.setLoggedIn(true); >>> loginInfo.setUserName(user.getUserName()); >>> loginInfo.setAuthority(user.getAuthority()); >>> loginInfo.setBuilding(user.getBuilding()); >>> loginInfo.setTeacher(user.getTeacher()); >>> >>> } else { >>> loginInfo.setLoggedIn(false); >>> >>> } >>> return loginInfo; >>> } >>> >>> } >>> >>> >>> Here is the web.xml for the backend >>> >>> ========================================================================================= >>> <web-app> >>> <display-name>SSISJAXSERVER</display-name> >>> <description>SSIS Version 6 Web Appliction</description> >>> >>> <!-- Servlets SSIS Processing --> >>> <servlet> >>> <servlet-name>SSISAJAXSERVER</servlet-name> >>> <servlet-class>com.co.SSISSERVER.server.SSISProducer</servlet- >>> class> >>> </servlet> >>> >>> <servlet> >>> <servlet-name>UserServiceImpl</servlet-name> >>> <servlet-class>com.co.SSISSERVER.users.UserServiceImpl</servlet- >>> class> >>> </servlet> >>> >>> <!-- SSISProducer for SSIS Processing --> >>> >>> >>> <servlet-mapping> >>> <servlet-name>SSISAJAXSERVER</servlet-name> >>> <url-pattern>/login.html</url-pattern> >>> </servlet-mapping> >>> <servlet-mapping> >>> <servlet-name>UserServiceImpl</servlet-name> >>> <url-pattern>/User</url-pattern> >>> </servlet-mapping> >>> >>> >>> >>> Here is the servlet path >>> >>> ======================================================================================== >>> /ssisajaxserver/User >>> >>> >>> Here the servlet path is answering to a get which of course does not >>> work >>> >>> ======================================================================================= >>> >>> HTTP ERROR: 405 >>> >>> HTTP method GET is not supported by this URL >>> RequestURI=/ssisajaxserver/User >>> >>> Here is gwt.xml >>> >>> ======================================================================================== >>> <?xml version="1.0" encoding="UTF-8"?> >>> <module rename-to='ssisajax'> >>> <!-- Inherit the core Web Toolkit stuff. --> >>> <inherits name='com.google.gwt.user.User'/> >>> >>> <!-- Inherit the default GWT style sheet. You can change --> >>> <!-- the theme of your GWT application by uncommenting --> >>> <!-- any one of the following lines. --> >>> <inherits name='com.google.gwt.user.theme.standard.Standard'/> >>> <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> --> >>> <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> --> >>> >>> <!-- Other module inherits --> >>> >>> <!-- Specify the app entry point class. --> >>> <entry-point class='com.co.SSIS.client.SSISAJAX'/> >>> >>> <!-- Specify the paths for translatable code --> >>> <source path='client'/> >>> <source path='shared'/> >>> <servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/ >>> UserServiceImpl'/> >>> >>> </module> >>> >>> >>> >>> Here is the Stack Trace >>> >>> ======================================================================================== >>> 2010-03-10 09:35:17.026:/ssisajax:WARN: Exception while dispatching >>> incoming RPC call >>> com.google.gwt.user.server.rpc.UnexpectedException: Service method >>> 'public abstract com.co.SSIS.client.LoginInfo >>> com.co.SSIS.client.LoginService.login(java.lang.String)' threw an >>> unexpected exception: java.lang.NoClassDefFoundError: com/co/ >>> SSISSERVER/users/UserServiceImpl >>> at >>> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: >>> 378) >>> at >>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: >>> 581) >>> at >>> >>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: >>> 188) >>> at >>> >>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: >>> 224) >>> at >>> >>> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: >>> 62) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java: >>> 727) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java: >>> 820) >>> at >>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) >>> at >>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: >>> 363) >>> at >>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: >>> 216) >>> at >>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: >>> 181) >>> at >>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: >>> 766) >>> at >>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) >>> at >>> >>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java: >>> 230) >>> at >>> >>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: >>> 114) >>> at >>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: >>> 152) >>> at org.mortbay.jetty.Server.handle(Server.java:324) >>> at >>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: >>> 535) >>> at org.mortbay.jetty.HttpConnection >>> $RequestHandler.content(HttpConnection.java:880) >>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:746) >>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: >>> 218) >>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: >>> 404) >>> at >>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: >>> 409) >>> at org.mortbay.thread.QueuedThreadPool >>> $PoolThread.run(QueuedThreadPool.java:522) >>> Caused by: java.lang.NoClassDefFoundError: com/co/SSISSERVER/users/ >>> UserServiceImpl >>> at >>> com.co.SSIS.server.LoginServiceImpl.login(LoginServiceImpl.java:14) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >>> 39) >>> at >>> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: >>> 25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: >>> 562) >>> ... 22 more >>> >> >> -- >> 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]<google-web-toolkit%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > > > -- > Victor Llorens Vilella > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- 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.
