Re: Gwt server side in maven
Hello again this what i get in debug mode : Error 404 NOT_FOUND *HTTP ERROR: 404*NOT_FOUND RequestURI=/hp.com.bsrm. Application/greethttp://jetty.mortbay.org/";>Powered by Jetty:// thank's for helping On Fri, Feb 5, 2010 at 8:54 AM, Ignat Alexeyenko wrote: > Hi again, > > So, how do you use maven? > Which output it gives to you? > > Please post maven log. > > -- > Kind regards, > Ignat Alexeyenko > > On Thu, Feb 4, 2010 at 2:38 PM, יוסף נוגידאת wrote: > >> hello Ignat >> >> No i do not have any errors >> >> >> On Thu, Feb 4, 2010 at 2:31 PM, Ignat Alexeyenko < >> ignatalexeye...@gmail.com> wrote: >> >>> Hi >>> >>> Do you have any errors during maven work? >>> >>> -- >>> Kind regards, >>> Ignat Alexeyenko. >>> >>> On Thu, Feb 4, 2010 at 11:13 AM, joe7935 wrote: >>> Hello all, I try to build a project in maven and gwt with server side. so i select to use a gwt-maven-plugin archetype as a maven project . here is my app : public class Application implements EntryPoint { public void onModuleLoad() { final Button button = new Button(); final Label label = new Label("only for test"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent arg0) { GetStringServiceAsync service = (GetStringServiceAsync) GWT.create(GetStringService.class); service.getString("1", "2",new AsyncCallback() { public void onSuccess(String res) { label.setText(res); } public void onFailure(Throwable arg0) { label.setText("Error Connection"); } }); } }); RootPanel.get().add(button); RootPanel.get().add(label); } } server interface : public interface GetStringService extends RemoteService { public String getString(String name, String pass); } public interface GetStringServiceAsync { void getString(String name,String pass,AsyncCallback callback ); } server Impi.. @SuppressWarnings("serial") public class GetStringImpl extends RemoteServiceServlet implements GetStringService { public String getString(String name, String pass) { return "Hello every body ..."; } } POM file : http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 com.hp.bsrm ttt war 0.0.1-SNAPSHOT 2.0.0 1.5 1.5 com.google.gwt gwt-servlet ${gwt.version} runtime com.google.gwt gwt-user ${gwt.version} provided junit junit 4.7 test war/WEB-INF/classes org.codehaus.mojo gwt-maven-plugin 1.2 compile test com.hp.bsrm.ttt.Application/Application.html>>> runTarget> org.mortbay.jetty maven-jetty-plugin 6.1.19 >>> implementation="org.mortbay.resource.ResourceCollection"> src/main/webapp,$ {project.build.directory}/${project.build.finalName} org.apache.maven.plugins maven-compiler-plugin 2.0.2 ${maven.compiler.source} ${maven.compiler.target} web.xml file : >>>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com
Re: Gwt server side in maven
Hi again, So, how do you use maven? Which output it gives to you? Please post maven log. -- Kind regards, Ignat Alexeyenko On Thu, Feb 4, 2010 at 2:38 PM, יוסף נוגידאת wrote: > hello Ignat > > No i do not have any errors > > > On Thu, Feb 4, 2010 at 2:31 PM, Ignat Alexeyenko < > ignatalexeye...@gmail.com> wrote: > >> Hi >> >> Do you have any errors during maven work? >> >> -- >> Kind regards, >> Ignat Alexeyenko. >> >> On Thu, Feb 4, 2010 at 11:13 AM, joe7935 wrote: >> >>> Hello all, >>> I try to build a project in maven and gwt with server side. >>> so i select to use a gwt-maven-plugin archetype as a maven project . >>> >>> here is my app : >>> >>> public class Application implements EntryPoint >>> { >>> >>> public void onModuleLoad() >>> { >>> final Button button = new Button(); >>> final Label label = new Label("only for test"); >>> >>> >>> button.addClickHandler(new ClickHandler() >>> { >>>public void onClick(ClickEvent arg0) >>>{ >>>GetStringServiceAsync service = >>> (GetStringServiceAsync) >>> GWT.create(GetStringService.class); >>>service.getString("1", "2",new >>> AsyncCallback() >>>{ >>>public void >>> onSuccess(String res) >>>{ >>> >>> label.setText(res); >>>} >>> >>>public void >>> onFailure(Throwable arg0) >>>{ >>> >>> label.setText("Error Connection"); >>>} >>>}); >>>} >>>}); >>> RootPanel.get().add(button); >>> RootPanel.get().add(label); >>> } >>> } >>> >>> >>> >>> server interface : >>> >>> public interface GetStringService extends RemoteService >>> { >>>public String getString(String name, String pass); >>> } >>> >>> public interface GetStringServiceAsync >>> { >>>void getString(String name,String pass,AsyncCallback >>> callback ); >>> } >>> >>> >>> server Impi.. >>> @SuppressWarnings("serial") >>> public class GetStringImpl extends RemoteServiceServlet implements >>> GetStringService >>> { >>>public String getString(String name, String pass) >>>{ >>>return "Hello every body ..."; >>>} >>> } >>> >>> >>> POM file : >>> >>> >>> >>> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// >>> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// >>> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> >>> >>> 4.0.0 >>> com.hp.bsrm >>> ttt >>> war >>> 0.0.1-SNAPSHOT >>> >>> >>> >>> >>> 2.0.0 >>> >>> >>> 1.5 >>> 1.5 >>> >>> >>> >>> >>> >>> >>> >>> com.google.gwt >>> gwt-servlet >>> ${gwt.version} >>> runtime >>> >>> >>> com.google.gwt >>> gwt-user >>> ${gwt.version} >>> provided >>> >>> >>> >>> >>> junit >>> junit >>> 4.7 >>> test >>> >>> >>> >>> >>>war/WEB-INF/classes >>> >>> >>>org.codehaus.mojo >>>gwt-maven-plugin >>>1.2 >>> >>> >>> >>> compile >>> test >>> >>> >>> >>> >>> com.hp.bsrm.ttt.Application/Application.html>> runTarget> >>> >>> >>> >>> >>>org.mortbay.jetty >>>maven-jetty-plugin >>>6.1.19 >>> >>> >>>>> implementation="org.mortbay.resource.ResourceCollection"> >>> >>>src/main/webapp,$ >>> {project.build.directory}/${project.build.finalName} >>> >>> >>> >>> >>> >>> >>> >>> >>> org.apache.maven.plugins >>> maven-compiler-plugin >>> 2.0.2 >>> >>>${maven.compiler.source} >>>${maven.compiler.target} >>> >>> >>> >>> >>> >>> >>> >>> >>> web.xml file : >>> >>> >>> >>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >>>"http://java.sun.com/dtd/web-app_2_3.dtd";> >>> >>> >>> >>> >>> >>>greetServlet >>>com.hp.bsrm.ttt.server.GreetingServiceImpl>> class> >>> >>> >>> >>>greetServlet >>>/ttt/greet >>> >>> >>> >>> >>>Ttt.html >>> >>> >>> >>> >>> >>> I try to run the project in debug mode , when i try to get to server >>> the project fielad >>> >>> >>> please me. >>> thanks >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Web Toolkit"
Re: Gwt server side in maven
hello Ignat No i do not have any errors On Thu, Feb 4, 2010 at 2:31 PM, Ignat Alexeyenko wrote: > Hi > > Do you have any errors during maven work? > > -- > Kind regards, > Ignat Alexeyenko. > > On Thu, Feb 4, 2010 at 11:13 AM, joe7935 wrote: > >> Hello all, >> I try to build a project in maven and gwt with server side. >> so i select to use a gwt-maven-plugin archetype as a maven project . >> >> here is my app : >> >> public class Application implements EntryPoint >> { >> >> public void onModuleLoad() >> { >> final Button button = new Button(); >> final Label label = new Label("only for test"); >> >> >> button.addClickHandler(new ClickHandler() >> { >>public void onClick(ClickEvent arg0) >>{ >>GetStringServiceAsync service = >> (GetStringServiceAsync) >> GWT.create(GetStringService.class); >>service.getString("1", "2",new >> AsyncCallback() >>{ >>public void >> onSuccess(String res) >>{ >>label.setText(res); >>} >> >>public void >> onFailure(Throwable arg0) >>{ >> >> label.setText("Error Connection"); >>} >>}); >>} >>}); >> RootPanel.get().add(button); >> RootPanel.get().add(label); >> } >> } >> >> >> >> server interface : >> >> public interface GetStringService extends RemoteService >> { >>public String getString(String name, String pass); >> } >> >> public interface GetStringServiceAsync >> { >>void getString(String name,String pass,AsyncCallback >> callback ); >> } >> >> >> server Impi.. >> @SuppressWarnings("serial") >> public class GetStringImpl extends RemoteServiceServlet implements >> GetStringService >> { >>public String getString(String name, String pass) >>{ >>return "Hello every body ..."; >>} >> } >> >> >> POM file : >> >> >> >> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// >> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// >> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> >> >> 4.0.0 >> com.hp.bsrm >> ttt >> war >> 0.0.1-SNAPSHOT >> >> >> >> >> 2.0.0 >> >> >> 1.5 >> 1.5 >> >> >> >> >> >> >> >> com.google.gwt >> gwt-servlet >> ${gwt.version} >> runtime >> >> >> com.google.gwt >> gwt-user >> ${gwt.version} >> provided >> >> >> >> >> junit >> junit >> 4.7 >> test >> >> >> >> >>war/WEB-INF/classes >> >> >>org.codehaus.mojo >>gwt-maven-plugin >>1.2 >> >> >> >> compile >> test >> >> >> >> >> com.hp.bsrm.ttt.Application/Application.html> runTarget> >> >> >> >> >>org.mortbay.jetty >>maven-jetty-plugin >>6.1.19 >> >> >>> implementation="org.mortbay.resource.ResourceCollection"> >> >>src/main/webapp,$ >> {project.build.directory}/${project.build.finalName} >> >> >> >> >> >> >> >> >> org.apache.maven.plugins >> maven-compiler-plugin >> 2.0.2 >> >>${maven.compiler.source} >>${maven.compiler.target} >> >> >> >> >> >> >> >> >> web.xml file : >> >> >> >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >>"http://java.sun.com/dtd/web-app_2_3.dtd";> >> >> >> >> >> >>greetServlet >>com.hp.bsrm.ttt.server.GreetingServiceImpl> class> >> >> >> >>greetServlet >>/ttt/greet >> >> >> >> >>Ttt.html >> >> >> >> >> >> I try to run the project in debug mode , when i try to get to server >> the project fielad >> >> >> please me. >> thanks >> >> >> -- >> 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-tool...@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. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolki
Re: Gwt server side in maven
Hi Do you have any errors during maven work? -- Kind regards, Ignat Alexeyenko. On Thu, Feb 4, 2010 at 11:13 AM, joe7935 wrote: > Hello all, > I try to build a project in maven and gwt with server side. > so i select to use a gwt-maven-plugin archetype as a maven project . > > here is my app : > > public class Application implements EntryPoint > { > > public void onModuleLoad() > { > final Button button = new Button(); > final Label label = new Label("only for test"); > > > button.addClickHandler(new ClickHandler() > { >public void onClick(ClickEvent arg0) >{ >GetStringServiceAsync service = > (GetStringServiceAsync) > GWT.create(GetStringService.class); >service.getString("1", "2",new > AsyncCallback() >{ >public void onSuccess(String > res) >{ >label.setText(res); >} > >public void > onFailure(Throwable arg0) >{ >label.setText("Error > Connection"); >} >}); >} >}); > RootPanel.get().add(button); > RootPanel.get().add(label); > } > } > > > > server interface : > > public interface GetStringService extends RemoteService > { >public String getString(String name, String pass); > } > > public interface GetStringServiceAsync > { >void getString(String name,String pass,AsyncCallback > callback ); > } > > > server Impi.. > @SuppressWarnings("serial") > public class GetStringImpl extends RemoteServiceServlet implements > GetStringService > { >public String getString(String name, String pass) >{ >return "Hello every body ..."; >} > } > > > POM file : > > > > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// > www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// > maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> > > 4.0.0 > com.hp.bsrm > ttt > war > 0.0.1-SNAPSHOT > > > > > 2.0.0 > > > 1.5 > 1.5 > > > > > > > > com.google.gwt > gwt-servlet > ${gwt.version} > runtime > > > com.google.gwt > gwt-user > ${gwt.version} > provided > > > > > junit > junit > 4.7 > test > > > > >war/WEB-INF/classes > > >org.codehaus.mojo >gwt-maven-plugin >1.2 > > > > compile > test > > > > > com.hp.bsrm.ttt.Application/Application.html runTarget> > > > > >org.mortbay.jetty >maven-jetty-plugin >6.1.19 > > > implementation="org.mortbay.resource.ResourceCollection"> > >src/main/webapp,$ > {project.build.directory}/${project.build.finalName} > > > > > > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.0.2 > >${maven.compiler.source} >${maven.compiler.target} > > > > > > > > > web.xml file : > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >"http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > > >greetServlet >com.hp.bsrm.ttt.server.GreetingServiceImpl class> > > > >greetServlet >/ttt/greet > > > > >Ttt.html > > > > > > I try to run the project in debug mode , when i try to get to server > the project fielad > > > please me. > thanks > > > -- > 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-tool...@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. > > -- 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-tool...@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: Gwt server side in maven
Is any thing wrong ??? On Thu, Feb 4, 2010 at 11:13 AM, joe7935 wrote: > Hello all, > I try to build a project in maven and gwt with server side. > so i select to use a gwt-maven-plugin archetype as a maven project . > > here is my app : > > public class Application implements EntryPoint > { > > public void onModuleLoad() > { > final Button button = new Button(); > final Label label = new Label("only for test"); > > > button.addClickHandler(new ClickHandler() > { >public void onClick(ClickEvent arg0) >{ >GetStringServiceAsync service = > (GetStringServiceAsync) > GWT.create(GetStringService.class); >service.getString("1", "2",new > AsyncCallback() >{ >public void onSuccess(String > res) >{ >label.setText(res); >} > >public void > onFailure(Throwable arg0) >{ >label.setText("Error > Connection"); >} >}); >} >}); > RootPanel.get().add(button); > RootPanel.get().add(label); > } > } > > > > server interface : > > public interface GetStringService extends RemoteService > { >public String getString(String name, String pass); > } > > public interface GetStringServiceAsync > { >void getString(String name,String pass,AsyncCallback > callback ); > } > > > server Impi.. > @SuppressWarnings("serial") > public class GetStringImpl extends RemoteServiceServlet implements > GetStringService > { >public String getString(String name, String pass) >{ >return "Hello every body ..."; >} > } > > > POM file : > > > > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// > www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// > maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> > > 4.0.0 > com.hp.bsrm > ttt > war > 0.0.1-SNAPSHOT > > > > > 2.0.0 > > > 1.5 > 1.5 > > > > > > > > com.google.gwt > gwt-servlet > ${gwt.version} > runtime > > > com.google.gwt > gwt-user > ${gwt.version} > provided > > > > > junit > junit > 4.7 > test > > > > >war/WEB-INF/classes > > >org.codehaus.mojo >gwt-maven-plugin >1.2 > > > > compile > test > > > > > com.hp.bsrm.ttt.Application/Application.html runTarget> > > > > >org.mortbay.jetty >maven-jetty-plugin >6.1.19 > > > implementation="org.mortbay.resource.ResourceCollection"> > >src/main/webapp,$ > {project.build.directory}/${project.build.finalName} > > > > > > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.0.2 > >${maven.compiler.source} >${maven.compiler.target} > > > > > > > > > web.xml file : > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >"http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > > >greetServlet >com.hp.bsrm.ttt.server.GreetingServiceImpl class> > > > >greetServlet >/ttt/greet > > > > >Ttt.html > > > > > > I try to run the project in debug mode , when i try to get to server > the project fielad > > > please me. > thanks > > > -- 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-tool...@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.
Gwt server side in maven
Hello all, I try to build a project in maven and gwt with server side. so i select to use a gwt-maven-plugin archetype as a maven project . here is my app : public class Application implements EntryPoint { public void onModuleLoad() { final Button button = new Button(); final Label label = new Label("only for test"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent arg0) { GetStringServiceAsync service = (GetStringServiceAsync) GWT.create(GetStringService.class); service.getString("1", "2",new AsyncCallback() { public void onSuccess(String res) { label.setText(res); } public void onFailure(Throwable arg0) { label.setText("Error Connection"); } }); } }); RootPanel.get().add(button); RootPanel.get().add(label); } } server interface : public interface GetStringService extends RemoteService { public String getString(String name, String pass); } public interface GetStringServiceAsync { void getString(String name,String pass,AsyncCallback callback ); } server Impi.. @SuppressWarnings("serial") public class GetStringImpl extends RemoteServiceServlet implements GetStringService { public String getString(String name, String pass) { return "Hello every body ..."; } } POM file : http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 com.hp.bsrm ttt war 0.0.1-SNAPSHOT 2.0.0 1.5 1.5 com.google.gwt gwt-servlet ${gwt.version} runtime com.google.gwt gwt-user ${gwt.version} provided junit junit 4.7 test war/WEB-INF/classes org.codehaus.mojo gwt-maven-plugin 1.2 compile test com.hp.bsrm.ttt.Application/Application.html org.mortbay.jetty maven-jetty-plugin 6.1.19 src/main/webapp,$ {project.build.directory}/${project.build.finalName} org.apache.maven.plugins maven-compiler-plugin 2.0.2 ${maven.compiler.source} ${maven.compiler.target} web.xml file : http://java.sun.com/dtd/web-app_2_3.dtd";> greetServlet com.hp.bsrm.ttt.server.GreetingServiceImpl greetServlet /ttt/greet Ttt.html I try to run the project in debug mode , when i try to get to server the project fielad please me. thanks -- 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-tool...@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.