To remove the GAE jars from the classpath, you uncheck GAE in the project properties.
Step 1: Project --> Properties-->Java Build path--> Libraries --> remove App Engine SDK jars. step 2 :Remove all jar from war\WEB-INF\lib except gwt-servlet, my- sql jars. S. Abraham www.DataStoreGwt.com On Sep 7, 9:37 am, Ashwani Sharma <[email protected]> wrote: > Hi, > > I will also prefer to run on embedded server i.e. jetty and i can not use > GAE, because it prevent connecting to data bases. > Hence, > - I disabled GAE by going to project properties and disabling checkbox "Use > Google App Engine" > - In debug configuration the "App Engine" tab is hence have all empty > un-editable fields. > > Now when i launch the conf i get following error: > java.lang.NoSuchMethodError: > org.mortbay.thread.Timeout.<init>(Ljava/lang/Object;)V > at > org.mortbay.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:306) > at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > at > org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > at org.mortbay.jetty.Server.doStart(Server.java:233) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) > at > com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667) > at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) > at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) > at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) > at com.google.gwt.dev.DevMode.main(DevMode.java:309) > > How to fix this ? > > Thanks and Regards, > Ashwani Kr Sharma > > On Wed, Sep 7, 2011 at 9:58 AM, dreamer <[email protected]>wrote: > > > > > > > > > My short answer is develop in dev mode as is and deploy in any servlet > > container you prefer. > > > If you go to debug configuration, in server tab, you only see > > "embedded server" which is nothing but jetty dev mode. > > In short there may not be any easy way to debug in other servers. > > > But you should be able to develop in DEV mode and deploy in any > > servlet container. > > Once you make war file, there is nothing specific to jetty. > > > I just have three jars in my web/lib - "gwt_servlet.jar,appengine- > > api-1.0-sdk-1.5.2.jar,appengine-api-labs-1.5.2.jar" - > > If you want to run on tomcat you may or may not need any of these. > > > Global School District > >http://schoolk12.appspot.com/ > > > On Sep 6, 7:19 pm, Ashwani <[email protected]> wrote: > > > Hi, > > > > For Option 1: I tried to remove the app engine by doing following > > > steps: > > > 1) In project -> properties go to Google->App Engine > > > 2) Unselect the option Use Google App Engine > > > > I get following error when running the Application as Web Application > > > > Exception in thread "main" java.lang.NoSuchMethodError: > > > org.mortbay.thread.Timeout.<init>(Ljava/lang/Object;)V > > > at org.mortbay.io.nio.SelectorManager > > > $SelectSet.<init>(SelectorManager.java:306) > > > at > > org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java: > > > 223) > > > at > > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > > 39) > > > at > > > org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector > > .java: > > > 303) > > > at > > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > > 39) > > > at org.mortbay.jetty.Server.doStart(Server.java:233) > > > at > > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > > 39) > > > at > > > com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: > > > 667) > > > at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) > > > at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) > > > at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) > > > at com.google.gwt.dev.DevMode.main(DevMode.java:309) > > > > If i use Google App Engine, i get following error when i tried to > > > access the DB: > > > > java.sql.SQLException: URL is not in the correct format: jdbc:mysql:// > > > localhost:3306/upskillingdb > > > at > > > com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(E > > xceptions.java: > > > 103) > > > at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) > > > at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) > > > at java.sql.DriverManager.getConnection(Unknown Source) > > > at java.sql.DriverManager.getConnection(Unknown Source) > > > at > > > com.sap.upskillingmanager.server.DataBaseConnector.getConnection(DataBaseCo > > nnector.java: > > > 54) > > > at > > > com.sap.upskillingmanager.server.DataBaseServicesImpl.addTraining(DataBaseS > > ervicesImpl.java: > > > 17) > > > > Any hints on how i can remove GAE from my project and use jetty server > > > for development ? > > > > Thanks and Regards, > > > Ashwani Kr Sharma > > > > On Sep 6, 8:22 pm, Jeanpylone <[email protected]> wrote: > > > > > just remove App engine from your project (seehttps:// > > groups.google.com/forum/#!msg/google-web-toolkit/j76nAJT7zgU/... > > > > ) > > > > > Regards, > > > -- > > 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. -- 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.
