gwt - SERVICE_UNAVAILABLE Google Web Toolkit -


i have small gwt project ongoing , keep getting error everytime run in developement mode.

http error: 503  problem accessing /segnalazioni_degrado.html. reason:  service_unavailable   -------------------------------------------------------------------------------- powered jetty:// 

these service classes i've created: datalayerservice, datalayerserviceasync, datalayerimpl

package com.tesi.client;  import java.sql.connection; import java.sql.resultset; import java.sql.statement; import java.util.list;  import com.google.gwt.user.client.rpc.remoteservice; import com.google.gwt.user.client.rpc.remoteservicerelativepath;  @remoteservicerelativepath("datalayer")     public interface datalayerservice extends remoteservice {      list<segnalazione> getlistasegnalazioniattivepermappa();  }  

.

package com.tesi.client;  import java.sql.connection; import java.sql.resultset; import java.sql.statement; import java.util.list;  import com.google.gwt.user.client.rpc.asynccallback;  public interface datalayerserviceasync {  void getlistasegnalazioniattivepermappa(asynccallback<list<segnalazione>> callback);    } 

.

package com.tesi.server;  import java.sql.connection; import java.sql.resultset; import java.sql.sqlexception; import java.sql.statement; import java.util.arraylist; import java.util.list;  import com.google.gwt.user.server.rpc.remoteserviceservlet; import com.tesi.client.datalayerservice; import com.tesi.client.segnalazione;  public class datalayerserviceimpl extends remoteserviceservlet implements     datalayerservice {  @override public list<segnalazione> getlistasegnalazioniattivepermappa() {     // todo auto-generated method stub     list<segnalazione> listasegnalazioniattive= new arraylist<segnalazione>();     try {         connection con = connectionpool.getinstance().getconnection();         statement stmt = con.createstatement();         resultset segnalazioniattive = stmt                 .executequery("select * segnalazioni_attive");         while(segnalazioniattive.next()) {              //popolo gli oggetti segnalazione             segnalazione s = new segnalazione();             s.setcategoria(segnalazioniattive.getstring("categoria"));             s.setdata(segnalazioniattive.getdate("data"));             s.setdescrizione(segnalazioniattive.getstring("descrizione"));             s.setindirizzo(segnalazioniattive.getstring("indirizzo"));             s.setnum_civico(segnalazioniattive.getint("numero_civico"));              listasegnalazioniattive.add(s);         }     } catch (exception ex) {      }     return listasegnalazioniattive; }  } 

.

and way i've modified web.xml file

 <?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"          xsi:schemalocation="http://java.sun.com/xml/ns/javaee                http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"          version="2.5"          xmlns="http://java.sun.com/xml/ns/javaee">    <!-- servlets -->   <servlet>     <servlet-name>greetservlet</servlet-name>     <servlet-class>com.tesi.server.greetingserviceimpl</servlet-class>   </servlet>    <servlet-mapping>     <servlet-name>greetservlet</servlet-name>     <url-pattern>/segnalazioni_degrado/greet</url-pattern>   </servlet-mapping>    <servlet>     <servlet-name>datalayerservlet</servlet-name>     <servlet-class>com.tesi.server.datalayerserviceimpl</servlet-class>   </servlet>    <servlet-mapping>     <servlet-name>datalayerservlet</servlet-name>     <url-pattern>/segnalazioni_degrado/datalayer</url-pattern>   </servlet-mapping>     <!-- default page serve -->   <welcome-file-list>     <welcome-file>segnalazioni_degrado.html</welcome-file>   </welcome-file-list>  </web-app> 

have got clue how solve it?

sorry everyone, stupid mistake. had remove greetservlet web.xml example servlet.

thank anyway.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -