Thanks,
So I have to put:
<servlet-name>UserService</servlet-name>
<url-pattern> /org.mlecea.PostEditor/UserService<url-pattern>
</servlet-mapping>
The compiled files .class files have to be inside WEB-INF/classes no?
I am going to try what you say and I will tell you if the problem
disappears. Thanks for everything.
On 25 ago, 10:17, Shakun Sachdeva <[email protected]> wrote:
> <servlet-mapping>
>
> > > <servlet-name>UserService</
> servlet-name>
> > > <url-pattern> /org.mlecea.PostEditor.client.Logic/
> > > UserService<url-pattern>
> > > </servlet-mapping>
>
> this is wrong.. change this with what i mentioned..
>
>
>
> On Wed, Aug 25, 2010 at 1:23 PM, mlecea <[email protected]> wrote:
> > I also have that file and the entry of the corresponding servlet is
> > this:
> > <servlet path="/UserService"
> > class="org.mlecea.PostEditor.server.servlets.PostEditor"/>
>
> > Thank you for your response. I don't know what it is wrong. I copied
> > the war file to my apache public_html file and the servlets don't
> > work.
> > The page says that the servlet was not found on the server.
>
> > On 25 ago, 09:32, Shakun Sachdeva <[email protected]> wrote:
> > > But whats the need of giving the path of UserService. See,
> > UserServiceImpl
> > > is the only servlet here.
> > > Rest UserService and UserServiceAsync are interfaces.
>
> > > So, while defining the servlet in the web.xml you need to give the path
> > of
> > > the servlet
>
> > > write this in your gwt.xml
> > > <servlet class="org.mlecea.PostEditor.server.UserServiceImpl "
> > > path="/UserService"/>
>
> > > <servlet>
> > > <servlet-name>UserService</
>
> > > > servlet-name>
> > > > <servlet-class>org.mlecea.PostEditor.server.UserServiceImpl</
> > > > servlet-class>
> > > > </servlet>
>
> > > <servlet-mapping>
> > > <servlet-name>UserService</
>
> > > > servlet-name>
> > > > <url-pattern> /name of your project(i.e context
> > > > root)/UserService<url-pattern>
>
> > > Hope this helps
>
> > > On Wed, Aug 25, 2010 at 12:42 PM, mlecea <[email protected]> wrote:
> > > > Thank you for responding.
>
> > > > My web.xml file is located in the WEB-INF directory. This is the entry
> > > > of one of the servlets:
>
> > > > <servlet>
> > > > <servlet-name>UserService</servlet-name>
> > > > <servlet-class>org.mlecea.PostEditor.server.UserServiceImpl</
> > > > servlet-class>
> > > > </servlet>
> > > > <servlet-mapping>
> > > > <servlet-name>UserService</servlet-name>
> > > > <url-pattern> /org.mlecea.PostEditor.client.Logic/
> > > > UserService<url-pattern>
> > > > </servlet-mapping>
>
> > > > The interface UserService and UserServiceAsync are in the package
> > > > called: org.mlecea.PosEditor.client.Logic.UserService
> > > > and the UserServiceImpl is in the package:
> > > > org.mlecea.PostEditor.server.Servlets.
>
> > > > I don't know what it is wrong. Everything worked OK in localhost
> > > > machine but on the server firebug says that UserService was not found.
> > > > I think it is something with the web.xml file. I appreciate your help.
> > > > Thanks
> > > > On 25 ago, 08:41, Shakun Sachdeva <[email protected]> wrote:
> > > > > make sure that you have the web.xml file copied . Moreover the
> > web.xml
> > > > > should contain the server mappings in it.
>
> > > > > On Wed, Aug 25, 2010 at 12:02 PM, mlecea <[email protected]>
> > wrote:
> > > > > > Help me please!!!
>
> > > > > > On 21 ago, 19:04, mlecea <[email protected]> wrote:
> > > > > > > Hi,
>
> > > > > > > I have developed an application with GWT and everything worked OK
> > in
> > > > > > > hosted mode. I created the .war file and copied to the
> > public_html
> > > > > > > directory from my server. When I load the page everything is OK
> > but
> > > > > > > the servlets are not working. Firebug says that the servlet can't
> > be
> > > > > > > found. I don't know where is the problem. I have just copied what
> > I
> > > > > > > had on my local machine and copied to the server and nothing
> > works
> > > > now
> > > > > > > on the server. I hope somebody could help me.
>
> > > > > > > Bye,
>
> > > > > > --
> > > > > > 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%2bunsubs[email protected]>
> > <google-web-toolkit%2bunsubs[email protected]>
> > > > <google-web-toolkit%2bunsubs[email protected]>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Ocultartexto
> > > > de la cita -
>
> > > > > - Mostrar texto de la cita -
>
> > > > --
> > > > 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%2bunsubs[email protected]>
> > <google-web-toolkit%2bunsubs[email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Ocultar texto
> > de la cita -
>
> > > - Mostrar texto de la cita -
>
> > --
> > 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%2bunsubs[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.- Ocultar texto de
> >la cita -
>
> - Mostrar texto de la cita -
--
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.