Monday, February 28, 2011

Re: Ganymede Eclipse Older GWT Plugin link needed

Hi,
I also get the same error while installing the GWT plugin to eclipse
3.4.2.
May i know as to why this error occurs?

On Feb 22, 7:12 am, Mulder <udpa...@gmail.com> wrote:
> I get the following error-
>
> Cannot complete the request.  See the details.
>
> Unsatisfied dependency:
> [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801]
> requiredCapability:
> org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9­.0
>
> Unsatisfied dependency:
> [com.google.gwt.eclipse.sdkbundle.e34.feature.2.2.0.feature.group
> 2.2.0.v201102111801] requiredCapability:
> org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.­group/2.2.0
>
> Unsatisfied dependency:
> [com.google.appengine.eclipse.sdkbundle.e34.feature.1.4.2.feature.group
> 1.4.2.v201102111801] requiredCapability:
> org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.­group/2.2.0
>
> Unsatisfied dependency:
> [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801]
> requiredCapability:
> org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9­.0
>
> I need the GWT older versions download link.

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT Eclipse plugin installation error

Hi,
while installing the plugins and SDK from google update site for
eclipse, i get the following error.
Eclipse version: 3.4.2

Cannot complete the request. See the details.
Unsatisfied dependency:
[com.google.gdt.eclipse.suite.e34.feature.feature.group
2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.wb.core.xml.feature.feature.group/0.9.0
Unsatisfied dependency:
[com.google.appengine.eclipse.sdkbundle.e34.feature.
1.4.2.feature.group 1.4.2.v201102111801] requiredCapability:
org.eclipse.equinox.p2.iu/
com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0
Unsatisfied dependency: [com.google.gwt.eclipse.sdkbundle.e34.feature.
2.2.0.feature.group 2.2.0.v201102111801] requiredCapability:
org.eclipse.equinox.p2.iu/
com.google.gdt.eclipse.suite.e34.feature.feature.group/2.2.0
Unsatisfied dependency:
[com.google.gdt.eclipse.suite.e34.feature.feature.group
2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.wb.core.xml.feature.feature.group/0.9.0

I checked even with this equinox but no breakthrough.
Any idea as to why this error occurs?

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Error while running gwt on tomcat

Hi,

My gwt project works fine in hosted mode. But when I deploy the war in
tomcat, I am getting the following exception stack trace. Please help
me out in tracing the cause..


SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:
764)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
727)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
616)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:
467)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
564)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
207)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
243)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
859)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
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.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:
746)
... 25 more
Caused by: com.google.gwt.user.client.rpc.SerializationException:
java.lang.IllegalArgumentException: argument type mismatch
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:
758)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
727)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
616)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
704)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
734)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
716)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
734)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
716)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
734)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
616)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at
com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:
45)
at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:
38)
... 30 more
Caused by: java.lang.IllegalArgumentException: argument type mismatch
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.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:
746)
... 45 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: connexion SQL impossible depuis servlet

Salut,

premièrement, si tu l'as remarqué, ce groupe de discussion est
anglophone, donc je te conseille pour tes prochains messages de
t'adresser en anglais, tu risques d'avoir plus de réponses :) Si
d'aventure tu ne parlais pas anglais, je te conseille le forum suivant
http://www.developpez.net/forums/f729/java/developpement-web-java/frameworks/gwt/
qui lui est francophone.

Concernant ton souci, je suis aussi tombé dans le panneau à mes débuts
GWT. en fait à la création de ton projet, tu as laissé activée
l'utilisation de l'AppEngine. Il faut savoir que ce mode de
développement sert principalement dans le cas où tu comptes déployer
ton application sur les serveurs App Engine de Google. Dans ce cas-là
l'accès aux données est un petit peu différent d'un accès classique à
une base de données puisque le principe est d'utiliser du mapping
objet plutôt que du sql. Si ton but est d'aller dans ce sens je te
conseille de te renseigner sur les datastores de AppEngine.

Mais je pense que tu vises plutôt un déploiement plus classique vu que
tu parles de Tomcat. Je te conseille donc de désactiver tout
simplement l'utilisation de Google App Engine dans les propriétés de
ton projet (GAE est indépendant de GWT, donc çà ne changera rien à son
execution). En fait l'explication vient du fait que quand tu
développes avec GAE, Eclipse embarque un équivalent au serveur
AppEngine qui est dédié en fonctionnement développement et fonctionne
en sandbox, avec des limitations telles que le blocage d'accès TCP
vers des ports comme celui de ton serveur Mysql.

Cordialement,

On 28 fév, 23:38, casta040 <fabiencastag...@gmail.com> wrote:
> Bonjour,
> sous ubuntu 10.10, je suis en train de développer un servlet dans une
> "web application project" sous eclipse grace au SDK GWT app engine (2)
> - 1.4.2.
>
> Dans un premier temps j'utilise un appel RPC pour établir la connexion
> avec mon serveur.
> j'execute donc le servlet coté serveur avec le code suivant:
>
> Connection conn = null;
>
>                 // figure out what server this application is being
> hosted on
>                 String url      = "jdbc:mysql://localhost:3306/PMDB";
>                 //String db       = "PMDB";
>                 String driver   = "com.mysql.jdbc.Driver";
>                 String user     = "casta";
>                 String pass     = "monpassword";
>
>                 System.out.println("connection SQL url: " + url);
>
>                 try {
>                         Class.forName(driver).newInstance();
>                         System.out.println("DEBUG MySQL JDBC driver
> loaded ok.");
>                         conn =
> DriverManager.getConnection(url,user,pass);
>                         System.out.println("DEBUG MySQLConnected with
> "+url);
>                 } catch (Exception e) {
>                         // error
>                         System.err.println("DEBUG Mysql Connection
> Error: ");
>
>                         // for debugging error
>                         e.printStackTrace();
>                 }
>
>                 if (conn == null)  {
>                         System.out.println("DEBUG ~~~~~~~~~~ can't get
> a Mysql connection");
>                 }
>
> => dans un premier temps, je souhaite utiliser le host "localhost"
> pour la mise en place. Je verrai dans un 2eme temps pour faire un vrai
> deploiement sur un serveur dédié...
>
> j'obtiens toujours le message "Mysql Connection Error: "
> avec la trace:
>
> connection SQL url: jdbc:mysql://localhost:3306/PMDB
> DEBUG MySQL JDBC driver loaded ok.
> DEBUG Mysql Connection Error:
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
> Could not create connection to database server.
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce ssorImpl.java:
> 57)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru ctorAccessorImpl.java:
> 45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>         at
> com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(R untime.java:
> 112)
>         at
> com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Ru ntime.java:
> 120)
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
>         at com.mysql.jdbc.Util.getInstance(Util.java:382)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
>         at
> com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:
> 2413)
>         at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:
> 2163)
>         at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
>         at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce ssorImpl.java:
> 57)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru ctorAccessorImpl.java:
> 45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>         at
> com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(R untime.java:
> 112)
>         at
> com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Ru ntime.java:
> 120)
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
>         at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
>         at
> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
> 305)
>         at java.sql.DriverManager.getConnection(DriverManager.java:620)
>         at java.sql.DriverManager.getConnection(DriverManager.java:200)
>         at com.casta.pm.server.DB_Conn.getConn(DB_Conn.java:68)
>         at com.casta.pm.server.DB_PMDB.getAllJoueurData(DB_PMDB.java:36)
>         at
> com.casta.pm.server.RpcCallServiceImpl.getAllJoueurData(RpcCallServiceImpl. java:
> 28)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
> 43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at
> com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime .java:
> 100)
>         at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 569)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java:
> 208)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java:
> 248)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java:
> 62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 511)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1166)
>         at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java:
> 58)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java:
> 43)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>         at
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java:
> 122)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 388)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 182)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 765)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 418)
>         at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java:
> 70)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:351)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at org.mortbay.jetty.Server.handle(Server.java:326)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 542)
>         at org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:938)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>         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:582)
> Caused by: java.security.AccessControlException: access denied
> (java.net.SocketPermission localhost resolve)
>         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.jav a:
> 342)
>         at
> java.security.AccessController.checkPermission(AccessController.java:
> 553)
>         at java.lang.SecurityManager.checkPermission(SecurityManager.java:
> 549)
>         at com.google.appengine.tools.development.DevAppServerFactory
> $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
>         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1048)
>         at java.net.InetAddress.getAllByName0(InetAddress.java:1189)
>         at java.net.InetAddress.getAllByName(InetAddress.java:1128)
>         at java.net.InetAddress.getAllByName(InetAddress.java:1064)
>         at
> com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:
> 244)
>         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:295)
>         at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:
> 2334)
>         at
> com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:
> 2371)
>         ... 53 more
> DEBUG ~~~~~~~~~~ can't get a Mysql connection
>
> voici un 'tree' de mon war directoty
>
> .
> |-- pm
> |   |-- 0A9476898799A150D840F0B1C3672921.cache.png
> |   |-- 14C623196EE1650CDC1BD9B9B7C2A0B1.cache.html
> |   |-- 396F806CD63ABD414BFBB9D57429F05B.cache.png
> |   |-- 7349FDB32932D195CB90EC6BC6DC7C54.cache.html
> |   |-- 9760B036C3B6E12FF6DEEDC917855221.cache.png
> |   |-- C5E747B45E441FDEB9914E10C75FC19E.cache.html
> |   |-- CD15EC0BBF9CD57F9198FD5C1C37122E.cache.png
> |   |-- clear.cache.gif
> |   |-- D282EA5A7A4EC586F1B603A5CC628B24.cache.html
> |   |-- DF7764EEC1903CD03C9545B354D8D8E4.cache.png
> |   |-- E44767377485D18D6B6864F65BA8EF73.cache.png
> |   |-- EDC7827FEEA59EE44AD790B1C6430C45.cache.png
> |   |-- F56E7158AAD86E64316A2CAD44B27A7E.cache.html
> |   |-- FBAD09E7DE55D6A3CB4ADB32EC54B21F.gwt.rpc
> |   |-- gwt
> |   |   `-- standard
> |   |       |-- images
> |   |       |   |-- corner_ie6.png
> |   |       |   |-- corner.png
> |   |       |   |-- hborder_ie6.png
> |   |       |   |-- hborder.png
> |   |       |   |-- ie6
> |   |       |   |   |-- corner_dialog_topleft.png
> |   |       |   |   |-- corner_dialog_topright.png
> |   |       |   |   |-- hborder_blue_shadow.png
> |   |       |   |   |-- hborder_gray_shadow.png
> |   |       |   |   |-- vborder_blue_shadow.png
> |   |       |   |   `-- vborder_gray_shadow.png
> |   |       |   |-- splitPanelThumb.png
> |   |       |   |-- vborder_ie6.png
> |   |       |   `-- vborder.png
> |   |       |-- standard.css
> |   |       `-- standard_rtl.css
> |   |-- hosted.html
> |   `-- pm.nocache.js
> |-- Pm.css
> |-- Pm.html
> `-- WEB-INF
>     |-- appengine-web.xml
>     |-- classes
>     |   |-- com
>     |   |   `-- casta
>     |   |       `-- pm
>     |   |           |-- client
>     |   |           |   |-- GreetingServiceAsync.class
>     |   |           |   |-- GreetingService.class
>     |   |           |   |-- gui$1.class
>     |   |           |   |-- gui$2.class
>     |   |           |   |-- gui$3.class
>     |   |           |   |-- gui.class
>     |   |           |   |-- JoueurManagement$1.class
>     |   |           |   |-- JoueurManagement.class
>     |   |           |   |-- joueurManagementDetail$1.class
>     |   |           |   |-- joueurManagementDetail
> $callbackAddjoueur.class
>     |   |           |   |-- joueurManagementDetail.class
>     |   |           |   |-- joueurManagementDetail
> $joueurManagementDetailUiBinder.class
>     |   |           |   |-- joueurManagementDetail.ui.xml
>     |   |           |   |-- JoueurManagement
> $getAllJoueurDataCallback.class
>     |   |           |   |-- Pm.class
>     |   |           |   |-- RpcCallServiceAsync.class
>     |   |           |   |-- RpcCallService.class
>     |   |           |   `-- RpcInit.class
>     |   |           |-- Pm.gwt.xml
>     |   |           |-- server
>     |   |           |   |-- createDB.php
>     |   |           |   |-- DB_Conn.class
>     |   |           |   |-- DB_PMDB.class
>     |   |           |   |-- DB_QueryStuff.class
>     |   |           |   |-- GreetingServiceImpl.class
>     |   |           |   |-- RpcCallServiceImpl.class
>     |   |           |   `-- RunMeToTestQuery.class
>     |   |           `-- shared
>     |   |               |-- FieldVerifier.class
>     |   |               |-- JoueurData.class
>     |   |               `-- joueurDataList.class
>     |   |-- log4j.properties
>     |   `-- META-INF
>     |       `-- jdoconfig.xml
>     |-- deploy
>     |   `-- pm
>     |       |-- rpcPolicyManifest
>     |       |   |-- manifests
>     |       |   |   `-- 81E2B41678CF16E60CC4E4BE3D73603E.txt
>     |       |   `-- manifest.txt
>     |       `-- symbolMaps
>     |           |-- 14C623196EE1650CDC1BD9B9B7C2A0B1.symbolMap
>     |           |-- 7349FDB32932D195CB90EC6BC6DC7C54.symbolMap
>     |           |-- C5E747B45E441FDEB9914E10C75FC19E.symbolMap
>     |           |-- D282EA5A7A4EC586F1B603A5CC628B24.symbolMap
>     |           `-- F56E7158AAD86E64316A2CAD44B27A7E.symbolMap
>     |-- lib
>     |   |-- appengine-api-1.0-sdk-1.4.2.jar
>     |   |-- appengine-api-labs-1.4.2.jar
>     |   |-- appengine-jsr107cache-1.4.2.jar
>     |   |-- datanucleus-appengine-1.0.8.final.jar
>     |   |-- datanucleus-core-1.1.5.jar
>     |   |-- datanucleus-jpa-1.1.5.jar
>     |   |-- geronimo-jpa_3.0_spec-1.1.1.jar
>     |   |-- geronimo-jta_1.1_spec-1.1.1.jar
>     |   |-- gwt-servlet.jar
>     |   |-- jdo2-api-2.3-eb.jar
>     |   |-- jsr107cache-1.1.jar
>     |   `-- mysql-connector-java-5.1.15-bin.jar
>     |-- logging.properties
>     `-- web.xml
>
> mon connecteur JDBC mysql-connector-java-5.1.15-bin.jar est bien dans
> le repertoire /lib
>
> j'arrive bien a me connecter a sql  via la commande :
> $>mysql -h localhost -P 3306 -u casta -p PMDB
> sachant que j'ai configuré mysql avec mon my.cf autaurisant toutes les
> adresses ip.
> J'ai aussi activé les logs coté server mysqld=> il ne reçoit jamais la
> requête de connexion. donc le problème semble se produire avant même
> la connexion a mysld....
>
> ayant une box internet dois je autorisé l'utilisation du port 3306?
> (meme j'ai deja essayé et que ça n'a apparment rien changé)
>
> Depuis Eclipse, je lance mon projet avec le raccourci fleche verte qui
> signifie "run as web application"
> Je me pose donc la question quand aux limites d'émulations de serveur
> tomcat via GWT??? cela peut il poser un pb??
> surtout que le meme bout de code mis dans un simple projet java
> fonctionne.. j'établis bien la connexion...
> suis je le premier a rencontrer ce pb?
>
> ça fait une semaine que je suis sur le problème... et je seche
> vraiment!!!!
> HELP !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> merci de votre soutien
>
> la prochaine étape pour moi étant d'installer TOMCAT et de lancer tout
> ça depuis tomcat. Mais vu que je n'y connais rien, j'ai peur de créer
> plus de problème de configuration/utilisation tomcat qu'autre chose...
>
> merci
> Fabien

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT with JPA

You need to place your entity in server/domain folder and your DTO in
shared. After that add the client and shared folder to your
<module>.gwt.xml file.

On 2/28/11, FritzTheCat <wg27_2000@hotmail.com> wrote:
> Hi people,
>
> i try to use gwt 2.2 with JPA. For this I use the @Entity annotation
> in my shared folder and i get the error message:
> The import javax.persistence cannot be resolved, Entity cannot be
> resolved to a type. For me it is clear that something is missing in
> the .gwt.xml file and I found the rpc enhanced feature but I don't
> know how to include those classes. I used the following "<define-
> configuration-property name="rpc.enhancedClasses" is-multi-
> valued="true"/>" in my .gwt.xml file but I also have to define my
> @Entity annotated classes. So how must the be defined in the .gwt.xml
> file? Any help is appreciated,
>
> thank you and nice greetings
>
> --
> 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-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


--
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com <http://www.sinati.com>
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT with JPA

I am using Eclipse and I have the javax.persistence in my class-path,
otherwise I could not compile?

Yes.

I use the @Entity for the shared object
used by client and server, the only possibility I found now is to
create a DAO object for the client, but then I have redundancy. I
think it is possible to do this without DAO but I am not sure how....,
otherwise I have to do it with it

Add this file to your classpath: http://tinyurl.com/4nrxk37 (JPA API SOURCES).  Then recompile the project and tell me.

Juan





2011/2/28 FritzTheCat <wg27_2000@hotmail.com>
I am using Eclipse and I have the javax.persistence in my class-path,
otherwise I could not compile? I use the @Entity for the shared object
used by client and server, the only possibility I found now is to
create a DAO object for the client, but then I have redundancy. I
think it is possible to do this without DAO but I am not sure how....,
otherwise I have to do it with it

many thanks for your help

On 28 Feb., 17:10, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
>  but I don't have to use maven to solve my
> @Entity annotation problem?
>
> No.
>
> How would you include the
> javax.persistence in the class-path?
>
> If you are using Eclipse see:http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.u...
>
> You must add source and you can download here:http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hi...
>
>  (you mean to include this in
> the .gwt.xml file?)
>
> >No.
>
> Juan
> 2011/2/28 FritzTheCat <wg27_2...@hotmail.com>
>
> > Hm, I don't use maven in my project, I saw the xml-file you posted in
> > some sample applications, but I don't have to use maven to solve my
> > @Entity annotation problem? How would you include the
> > javax.persistence in the class-path (you mean to include this in
> > the .gwt.xml file?), because at the server I already have it included,
> > otherwise I could not compile
>
> > Thanks for your help
>
> > On 28 Feb., 16:41, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> > wrote:
> > > I don't do anything in my .gwt.xml for compiling my project. Are you
> > compile
> > > with gwt-maven-plugin?
>
> > > Here is my pom.xml and my .gwt-xml.
>
> > > Juan
>
> > > .gwt.xml:
> > > <module rename-to='...'>
> > > <!-- 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 -->
> > > <inherits name="com.google.gwt.activity.Activity" />
> > > <inherits name="com.google.gwt.place.Place" />
> > >  <!-- Specify the app entry point class. -->
> > > <entry-point class='...' />
>
> > > <!-- Specify the paths for translatable code -->
> > > <source path='client' />
> > > <source path='shared' />
>
> > > </module>
>
> > > pom.xml:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <project xmlns="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.0http://maven.apache.org/maven-v4_0_0...
> > ">
>
> > > <!-- POM file generated with GWT webAppCreator -->
> > > <modelVersion>4.0.0</modelVersion>
> > > <groupId></groupId>
> > > <artifactId></artifactId>
> > > <packaging>war</packaging>
> > > <version></version>
>
> > > <properties>
> > > <!-- Convenience property to set the GWT version -->
> > > <gwtVersion>2.1.1</gwtVersion>
> > > <hibernate.version>3.6.1.Final</hibernate.version>
> > > <!-- GWT needs at least java 1.5 -->
> > > <maven.compiler.source>1.6</maven.compiler.source>
> > > <maven.compiler.target>1.6</maven.compiler.target>
>
> > <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
> > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > > </properties>
>
> > > <dependencies>
> > > <dependency>
> > > <groupId>com.google.gwt</groupId>
> > > <artifactId>gwt-servlet</artifactId>
> > > <version>${gwtVersion}</version>
> > > <scope>runtime</scope>
> > > </dependency>
> > > <dependency>
> > > <groupId>com.google.gwt</groupId>
> > > <artifactId>gwt-user</artifactId>
> > > <version>${gwtVersion}</version>
> > > <scope>provided</scope>
> > > </dependency>
> > > <!-- Persistencia -->
> > > <dependency>
> > > <groupId>org.hibernate.javax.persistence</groupId>
> > > <artifactId>hibernate-jpa-2.0-api</artifactId>
> > > <version>1.0.0.Final</version>
> > > </dependency>
> > > <dependency>
> > > <groupId>org.hibernate</groupId>
> > > <artifactId>hibernate-core</artifactId>
> > > <version>${hibernate.version}</version>
> > > <exclusions>
> > > <exclusion>
> > > <groupId>cglib</groupId>
> > > <artifactId>cglib</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>net.sf.ehcache</groupId>
> > > <artifactId>ehcache</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>asm</groupId>
> > > <artifactId>asm</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>asm</groupId>
> > > <artifactId>asm-attrs</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>javax.transaction</groupId>
> > > <artifactId>jta</artifactId>
> > > </exclusion>
> > > </exclusions>
> > > </dependency>
> > > <dependency>
> > > <groupId>org.hibernate</groupId>
> > > <artifactId>hibernate-entitymanager</artifactId>
> > > <version>${hibernate.version}</version>
> > > <exclusions>
> > > <exclusion>
> > > <groupId>cglib</groupId>
> > > <artifactId>cglib</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>dom4j</groupId>
> > > <artifactId>dom4j</artifactId>
> > > </exclusion>
> > > </exclusions>
> > > </dependency>
>
> > > <dependency>
> > > <groupId>javax.transaction</groupId>
> > > <artifactId>jta</artifactId>
> > > <version>1.1</version>
> > > </dependency>
>
> > > <!-- Test -->
> > > <dependency>
> > > <groupId>junit</groupId>
> > > <artifactId>junit</artifactId>
> > > <version>4.8.2</version>
> > > <scope>test</scope>
> > > </dependency>
>
> > >  </dependencies>
>
> > > <build>
>
> > > <!-- Generate compiled stuff in the folder used for developing mode -->
> > > <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
>
> > > <plugins>
>
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-compiler-plugin</artifactId>
> > > <version>2.3.2</version>
> > > <configuration>
> > > <source>1.6</source>
> > > <target>1.6</target>
> > > </configuration>
> > > </plugin>
>
> > > <!-- GWT Maven Plugin -->
> > > <plugin>
> > > <groupId>org.codehaus.mojo</groupId>
> > > <artifactId>gwt-maven-plugin</artifactId>
> > > <version>2.1.0-1</version>
> > > <executions>
> > > <execution>
> > > <goals>
> > > <goal>compile</goal>
> > > <goal>test</goal>
> > > <goal>i18n</goal>
> > > <!-- goal>generateAsync</goal -->
> > > </goals>
> > > </execution>
> > > </executions>
> > > <!-- Plugin configuration. There are many available options, see
> > > gwt-maven-plugin
> > > documentation at codehaus.org -->
> > > <configuration>
> > > <runTarget>embalajemadera.html</runTarget>
> > > <hostedWebapp>${webappDirectory}</hostedWebapp>
>
> > <i18nMessagesBundle>${project.groupId}.client.Messages</i18nMessagesBundle>
> > > <!-- Genera las interfaces Async -->
> > > <!-- servicePattern>com/foo/client/services/*.java</servicePattern -->
> > > </configuration>
> > > </plugin>
>
> > > <!-- Copy static web files before executing gwt:run -->
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-war-plugin</artifactId>
> > > <version>2.1.1</version>
> > > <executions>
> > > <execution>
> > > <phase>compile</phase>
> > > <goals>
> > > <goal>exploded</goal>
> > > </goals>
> > > </execution>
> > > </executions>
> > > <configuration>
> > > <webappDirectory>${webappDirectory}</webappDirectory>
> > > </configuration>
> > > </plugin>
>
> > > <!-- IDE -->
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-eclipse-plugin</artifactId>
> > > <version>2.7</version>  <!-- Note 2.8 does not work with AspectJ aspect
> > path
> > > -->
> > > <configuration>
> > > <downloadSources>true</downloadSources>
> > > <downloadJavadocs>false</downloadJavadocs>
> > > <wtpversion>2.0</wtpversion>
> > > <additionalBuildcommands>
> > > <buildCommand>
> > > <name>org.eclipse.jdt.core.javabuilder</name>
> > > <arguments>
> > > </arguments>
> > > </buildCommand>
> > > <buildCommand>
> > > <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
> > > <arguments>
> > > </arguments>
> > > </buildCommand>
> > > <buildCommand>
> > > <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
> > > <arguments>
> > > </arguments>
> > > </buildCommand>
> > > </additionalBuildcommands>
> > > <additionalProjectnatures>
>
> > > <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
> > > </additionalProjectnatures>
> > > </configuration>
> > > </plugin>
>
> > >   </plugins>
> > >   </build>
>
> > > <repositories>
> > > <repository>
> > > <snapshots>
> > > <enabled>false</enabled>
> > > </snapshots>
> > > <id>central (jboss)</id>
> > > <name>Maven Repository Switchboard</name>
> > > <url>http://repo2.maven.org/maven2</url>
> > > </repository>
> > > <repository>
> > > <snapshots>
> > > <enabled>false</enabled>
> > > </snapshots>
> > > <id>Public Repository Group (jboss)</id>
> > > <url>http://repository.jboss.org/nexus/content/groups/public</url>
> > > </repository>
> > > </repositories>
>
> > > </project>
>
> > > 2011/2/28 FritzTheCat <wg27_2...@hotmail.com>
>
> > > > Thanks Juan for your quick reply, I think I did not explain my problem
> > > > enough detailled so I try it again: My project compiles right so I
> > > > don't think it is a class-path problem in the common way: Refering to
>
> > > >http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideServe.
> > ..
> > > > I have to assure the following:
> > > >  # The class is annotated with a JPA javax.persistence.Entity
> > > > annotation. -> I did this in my Entity object
>
> > > > for example:
> > > > @Entity
> > > > public class Member implements Serializable{
>
> > > >        private static final long serialVersionUID =
> > -8354006649751924339L;
>
> > > >        public Long id;
> > > > }
>
> > > > # The fully-qualified class name is listed as one of the values of the
> > > > rpc.enhancedClasses configuration property in a .gwt.xml module file
> > > > that is part of the application. -> I think this is my problem. I
> > > > don't know how to put the class into my .gwt.xml file and I cannot
> > > > find any description how to do this, I only found some comments, that
> > > > the annotation can not be read by the client gwt code (which is clear
> > > > to me), but how can I put them into the gwt.xml file?
>
> > > > Thanks for your help
>
> > > > On 28 Feb., 16:18, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> > > > wrote:
> > > > > I think you need the jpa sources in your classpath.
>
> > > > > Juan
>
> > > > > 2011/2/28 FritzTheCat <wg27_2...@hotmail.com>
>
> > > > > > Hi people,
>
> > > > > > i try to
>
> ...
>
> Erfahren Sie mehr »

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

CssResource and image sprites

Hi All,

I am facing a problem when i go for optimization using @sprite and cssResource.
The details as follows,

style.css 

body {
margin:0px;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#333333;
}

a {
color:#333333;
text-decoration:none;
}

#header {
padding:5px 10px;
}

.clr {
clear:both;
}

#header-left {
float:left;
}

#header-right {
float:right;
padding-top:7px;
font-size:13px;
}

.left {
width:16%;
float:left;
}


.center {
width:42%;
float:left;
}

.right {
width:42%;
float:left;
}


.pop-up {
width:250px;
float:right;
}



@sprite .heading-left {
/* background:url(images/heading-left.jpg) left top no-repeat; */
gwt-image:'headingLeft'; 
height:32px;
padding-left:12px;
}

@sprite .heading-right {
/*background:url(images/heading-right.jpg) right top no-repeat;*/
gwt-image:'headingRight';
height:32px;
padding-right:12px;
}

@sprite .heading-middel {
/*background:url(images/heading-mid.jpg) top repeat-x;*/
gwt-image:'headingMid';
height:26px;
line-height:26px;
padding-top:6px;
padding-left:5px;
color:#FFFFFF;
}

.heading-middel-text {
float:left;
}

.heading-middel-icon {
float:right;
padding-top:11px;
padding-right:5px;
}

@sprite .middel-shadow-left {
/*background:url(images/mid-left.jpg) left repeat-y;*/
gwt-image:'midLeft';
padding-left:8px;
}

@sprite .middel-shadow-right {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
min-height:500px;
}

@sprite .middel-shadow-right1 {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
min-height:460px;
}


@sprite .middel-shadow-right2 {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
}

@sprite .middel-shadow-right3 {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
min-height:460px;
}

.box .middel-shadow-right {
min-height:inherit;
}


.middel-shadow-right3 ul,
.middel-shadow-right2 ul,
.middel-shadow-right ul {
margin:0px;
padding:10px;
}


@sprite .middel-shadow-right3 li,
@sprite .middel-shadow-right2 li,
@sprite .middel-shadow-right li {
gwt-image:'arrow';
margin:0px;
padding:0px 0 0 15px;
/*background:url(images/arrow.jpg) left no-repeat;*/
list-style:none;
}

@sprite .bottom-left {
/*background:url(images/bot-left.jpg) left top no-repeat;*/
gwt-image:'botLeft';
padding-left:12px;
height:12px;
}

@sprite .bottom-right {
/*background:url(images/bot-right.jpg) right top no-repeat;*/
gwt-image:'botRight';
padding-right:12px;
height:12px;
}

@sprite .bottom-middel {
/*background:url(images/bot-mid.jpg) top repeat-x;*/
gwt-image:'botMid';
height:12px;
}


@sprite .bottom-blue-left {
/*background:url(images/bot-b-left.jpg) left bottom no-repeat;*/
gwt-image:'botBLeft';
padding-left:12px;
}

@sprite .bottom-blue-right {
/*background:url(images/bot-b-right.jpg) right bottom no-repeat;*/
gwt-image:'botBRight';
padding-right:12px;
}

@sprite .bottom-blue-middel {
/*background:url(images/bot-b-mid.jpg) bottom repeat-x;*/
gwt-image:'botBMid';
padding:5px 4px 13px;
text-align:right;
}

.light-blue {
background:#c9e2fc;
padding:4px 10px;
}

.light-blue .inputdiv {
float:left;
width:25.3%;
margin-right:2px;
}

.light-blue .inputdiv1 {
float:left;
width:20%;
margin-right:2px;
}

.light-blue .inputdiv2 {
float:left;
width:12%;
margin-right:2px;
}

.light-blue .inputdiv3 {
float:left;
width:15%;
margin-right:2px;
padding-top:12px;
}

.light-blue select {
border:1px solid #5896db;
width:50px;
}

.light-blue input.inputbox {
width:93%;
border:1px solid #5896db;
padding:1px 2px;
}

form {
margin:0px;
padding:0px;
}

#footer {
background:url(images/footer.jpg) top repeat-x;
line-height:32px;
text-align:center;
color:#fff;
}

#footer a {
color:#FFFFFF;
text-decoration:none;
}

#footer1 {
text-align:center;
line-height:32px;
}

.font-label {
font-size: small;
font-style: normal;
font-weight: bold;
font-family: verdana, arial, helvetica, sans-serif;
float: inherit;
width: auto;
color: #4B4A4A;   /* previous color for black #4B4A4A */
padding-bottom: 3px;
padding-right: 15px;
padding-top: 3x;
text-align: center;
text-shadow: 1px 1px 0 #DDDDFF;
}


class MyResources extends ClientBundle {
  @Source("bundle/style.css")
CssResource style();
   
   @Source("bundle/shivDesign/heading-left.jpg")
ImageResource headingLeft();
@Source("bundle/shivDesign/heading-right.jpg")
ImageResource headingRight();

@Source("bundle/shivDesign/heading-mid.jpg")
ImageResource headingMid();

@Source("bundle/shivDesign/mid-left.jpg")
ImageResource midLeft();

@Source("bundle/shivDesign/mid-right.jpg")
ImageResource midRight();

@Source("bundle/shivDesign/arrow.jpg")
ImageResource arrow();

@Source("bundle/shivDesign/bot-left.jpg")
ImageResource botLeft();

@Source("bundle/shivDesign/bot-right.jpg")
ImageResource botRight();

@Source("bundle/shivDesign/bot-mid.jpg")
ImageResource botMid();

@Source("bundle/shivDesign/bot-b-left.jpg")
ImageResource botBLeft();

@Source("bundle/shivDesign/bot-b-right.jpg")
ImageResource botBRight();

@Source("bundle/shivDesign/bot-b-mid.jpg")
ImageResource botBMid();
}


In my onModuleLoad() {
   StyleInjector.inject(resource.style().getText());
}

Then i run in development mode and gets the following error

[DEBUG] [faregugly] - Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
          [DEBUG] [faregugly] - Creating assignment for style()
                           [DEBUG] [faregugly] - Creating image sprite classes
                                                   22:43:18.998 [ERROR] [faregugly] The @sprite rule [] must specify the gwt-image property
                                                       22:43:18.960 [ERROR] [faregugly] Unable to process CSS
                                                         22:43:18.852 [ERROR] [faregugly] Deferred binding failed for 'com.faregugly.client.Resources'; expect subsequent failures
                                                       22:43:18.874 [ERROR] [faregugly] Failed to create an instance of 'com.faregugly.client.Faregugly' via deferred binding 


I make sure that all the @sprite has gwt-image property in css with proper imageResource method.
Do i need to do anything else for this sprite to work?

Thanks in advance

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Problems with Firefox 4B12 in dev mode.

i went ahead and filed it here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6084

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Problems with Firefox 4B12 in dev mode.

Hi Chris

Do you want me to file a bug report?  I haven't had a chance to test it on more than one platform (win7/x86_64)/GWT2.1.1 but its likely that I could test it with Vista X86_64/GWT.2.2 this afternoon PST.

Alan



On 2/28/2011 8:28 AM, Chris Conroy wrote:
Alan,

Thanks for the bug report. This appears to be a Windows specific problem for beta 12.

On Sun, Feb 27, 2011 at 8:35 AM, Alan Chaney <alan@mechnicality.com> wrote:


Hmm, Firefox decided to upgrade my Win 7/64 from B11 to B12 this morning. I'm using GWT 2.1.1

I suspect dev mode is broken in FFB12 (although it was fine in B10 and B11)

When I try and run with FF in dev (hosted) mode I'm getting

Exception in thread "Code server for mollychat from Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on http://127.0.0.1:8888/MollyChat.html?gwt.codesvr=127.0.0.1:9997 @ 7^GWSIdAe-|p~%Y/" com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost
   at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
   at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
   at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
   at java.io.DataOutputStream.flush(DataOutputStream.java:106)
   at com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
   at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
   ... 2 more

but it still works fine in Chrome 11.0.672.2. It also works fine with FFB12 in production mode.

Sigh... I suppose this is yet another 'upstream' issue with Mozilla changing their plug-in API?

If someone else can confirm this I'll report a bug.

Regards

Alan





--  Alan Chaney CTO and Founder, Mechnicality, Inc. www.mechnicality.com

Re: Problems with Firefox 4B12 in dev mode.

Alan,

Thanks for the bug report. This appears to be a Windows specific problem for beta 12.

On Sun, Feb 27, 2011 at 8:35 AM, Alan Chaney <alan@mechnicality.com> wrote:


Hmm, Firefox decided to upgrade my Win 7/64 from B11 to B12 this morning. I'm using GWT 2.1.1

I suspect dev mode is broken in FFB12 (although it was fine in B10 and B11)

When I try and run with FF in dev (hosted) mode I'm getting

Exception in thread "Code server for mollychat from Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on http://127.0.0.1:8888/MollyChat.html?gwt.codesvr=127.0.0.1:9997 @ 7^GWSIdAe-|p~%Y/" com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost
   at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
   at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
   at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
   at java.io.DataOutputStream.flush(DataOutputStream.java:106)
   at com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
   at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
   ... 2 more

but it still works fine in Chrome 11.0.672.2. It also works fine with FFB12 in production mode.

Sigh... I suppose this is yet another 'upstream' issue with Mozilla changing their plug-in API?

If someone else can confirm this I'll report a bug.

Regards

Alan



--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT with JPA

I am using Eclipse and I have the javax.persistence in my class-path,
otherwise I could not compile? I use the @Entity for the shared object
used by client and server, the only possibility I found now is to
create a DAO object for the client, but then I have redundancy. I
think it is possible to do this without DAO but I am not sure how....,
otherwise I have to do it with it

many thanks for your help

On 28 Feb., 17:10, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
>  but I don't have to use maven to solve my
> @Entity annotation problem?
>
> No.
>
> How would you include the
> javax.persistence in the class-path?
>
> If you are using Eclipse see:http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.u...
>
> You must add source and you can download here:http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hi...
>
>  (you mean to include this in
> the .gwt.xml file?)
>
> >No.
>
> Juan
> 2011/2/28 FritzTheCat <wg27_2...@hotmail.com>
>
> > Hm, I don't use maven in my project, I saw the xml-file you posted in
> > some sample applications, but I don't have to use maven to solve my
> > @Entity annotation problem? How would you include the
> > javax.persistence in the class-path (you mean to include this in
> > the .gwt.xml file?), because at the server I already have it included,
> > otherwise I could not compile
>
> > Thanks for your help
>
> > On 28 Feb., 16:41, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> > wrote:
> > > I don't do anything in my .gwt.xml for compiling my project. Are you
> > compile
> > > with gwt-maven-plugin?
>
> > > Here is my pom.xml and my .gwt-xml.
>
> > > Juan
>
> > > .gwt.xml:
> > > <module rename-to='...'>
> > > <!-- 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 -->
> > > <inherits name="com.google.gwt.activity.Activity" />
> > > <inherits name="com.google.gwt.place.Place" />
> > >  <!-- Specify the app entry point class. -->
> > > <entry-point class='...' />
>
> > > <!-- Specify the paths for translatable code -->
> > > <source path='client' />
> > > <source path='shared' />
>
> > > </module>
>
> > > pom.xml:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <project xmlns="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.0http://maven.apache.org/maven-v4_0_0...
> > ">
>
> > > <!-- POM file generated with GWT webAppCreator -->
> > > <modelVersion>4.0.0</modelVersion>
> > > <groupId></groupId>
> > > <artifactId></artifactId>
> > > <packaging>war</packaging>
> > > <version></version>
>
> > > <properties>
> > > <!-- Convenience property to set the GWT version -->
> > > <gwtVersion>2.1.1</gwtVersion>
> > > <hibernate.version>3.6.1.Final</hibernate.version>
> > > <!-- GWT needs at least java 1.5 -->
> > > <maven.compiler.source>1.6</maven.compiler.source>
> > > <maven.compiler.target>1.6</maven.compiler.target>
>
> > <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
> > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > > </properties>
>
> > > <dependencies>
> > > <dependency>
> > > <groupId>com.google.gwt</groupId>
> > > <artifactId>gwt-servlet</artifactId>
> > > <version>${gwtVersion}</version>
> > > <scope>runtime</scope>
> > > </dependency>
> > > <dependency>
> > > <groupId>com.google.gwt</groupId>
> > > <artifactId>gwt-user</artifactId>
> > > <version>${gwtVersion}</version>
> > > <scope>provided</scope>
> > > </dependency>
> > > <!-- Persistencia -->
> > > <dependency>
> > > <groupId>org.hibernate.javax.persistence</groupId>
> > > <artifactId>hibernate-jpa-2.0-api</artifactId>
> > > <version>1.0.0.Final</version>
> > > </dependency>
> > > <dependency>
> > > <groupId>org.hibernate</groupId>
> > > <artifactId>hibernate-core</artifactId>
> > > <version>${hibernate.version}</version>
> > > <exclusions>
> > > <exclusion>
> > > <groupId>cglib</groupId>
> > > <artifactId>cglib</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>net.sf.ehcache</groupId>
> > > <artifactId>ehcache</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>asm</groupId>
> > > <artifactId>asm</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>asm</groupId>
> > > <artifactId>asm-attrs</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>javax.transaction</groupId>
> > > <artifactId>jta</artifactId>
> > > </exclusion>
> > > </exclusions>
> > > </dependency>
> > > <dependency>
> > > <groupId>org.hibernate</groupId>
> > > <artifactId>hibernate-entitymanager</artifactId>
> > > <version>${hibernate.version}</version>
> > > <exclusions>
> > > <exclusion>
> > > <groupId>cglib</groupId>
> > > <artifactId>cglib</artifactId>
> > > </exclusion>
> > > <exclusion>
> > > <groupId>dom4j</groupId>
> > > <artifactId>dom4j</artifactId>
> > > </exclusion>
> > > </exclusions>
> > > </dependency>
>
> > > <dependency>
> > > <groupId>javax.transaction</groupId>
> > > <artifactId>jta</artifactId>
> > > <version>1.1</version>
> > > </dependency>
>
> > > <!-- Test -->
> > > <dependency>
> > > <groupId>junit</groupId>
> > > <artifactId>junit</artifactId>
> > > <version>4.8.2</version>
> > > <scope>test</scope>
> > > </dependency>
>
> > >  </dependencies>
>
> > > <build>
>
> > > <!-- Generate compiled stuff in the folder used for developing mode -->
> > > <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
>
> > > <plugins>
>
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-compiler-plugin</artifactId>
> > > <version>2.3.2</version>
> > > <configuration>
> > > <source>1.6</source>
> > > <target>1.6</target>
> > > </configuration>
> > > </plugin>
>
> > > <!-- GWT Maven Plugin -->
> > > <plugin>
> > > <groupId>org.codehaus.mojo</groupId>
> > > <artifactId>gwt-maven-plugin</artifactId>
> > > <version>2.1.0-1</version>
> > > <executions>
> > > <execution>
> > > <goals>
> > > <goal>compile</goal>
> > > <goal>test</goal>
> > > <goal>i18n</goal>
> > > <!-- goal>generateAsync</goal -->
> > > </goals>
> > > </execution>
> > > </executions>
> > > <!-- Plugin configuration. There are many available options, see
> > > gwt-maven-plugin
> > > documentation at codehaus.org -->
> > > <configuration>
> > > <runTarget>embalajemadera.html</runTarget>
> > > <hostedWebapp>${webappDirectory}</hostedWebapp>
>
> > <i18nMessagesBundle>${project.groupId}.client.Messages</i18nMessagesBundle>
> > > <!-- Genera las interfaces Async -->
> > > <!-- servicePattern>com/foo/client/services/*.java</servicePattern -->
> > > </configuration>
> > > </plugin>
>
> > > <!-- Copy static web files before executing gwt:run -->
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-war-plugin</artifactId>
> > > <version>2.1.1</version>
> > > <executions>
> > > <execution>
> > > <phase>compile</phase>
> > > <goals>
> > > <goal>exploded</goal>
> > > </goals>
> > > </execution>
> > > </executions>
> > > <configuration>
> > > <webappDirectory>${webappDirectory}</webappDirectory>
> > > </configuration>
> > > </plugin>
>
> > > <!-- IDE -->
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-eclipse-plugin</artifactId>
> > > <version>2.7</version>  <!-- Note 2.8 does not work with AspectJ aspect
> > path
> > > -->
> > > <configuration>
> > > <downloadSources>true</downloadSources>
> > > <downloadJavadocs>false</downloadJavadocs>
> > > <wtpversion>2.0</wtpversion>
> > > <additionalBuildcommands>
> > > <buildCommand>
> > > <name>org.eclipse.jdt.core.javabuilder</name>
> > > <arguments>
> > > </arguments>
> > > </buildCommand>
> > > <buildCommand>
> > > <name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
> > > <arguments>
> > > </arguments>
> > > </buildCommand>
> > > <buildCommand>
> > > <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>
> > > <arguments>
> > > </arguments>
> > > </buildCommand>
> > > </additionalBuildcommands>
> > > <additionalProjectnatures>
>
> > > <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
> > > </additionalProjectnatures>
> > > </configuration>
> > > </plugin>
>
> > >   </plugins>
> > >   </build>
>
> > > <repositories>
> > > <repository>
> > > <snapshots>
> > > <enabled>false</enabled>
> > > </snapshots>
> > > <id>central (jboss)</id>
> > > <name>Maven Repository Switchboard</name>
> > > <url>http://repo2.maven.org/maven2</url>
> > > </repository>
> > > <repository>
> > > <snapshots>
> > > <enabled>false</enabled>
> > > </snapshots>
> > > <id>Public Repository Group (jboss)</id>
> > > <url>http://repository.jboss.org/nexus/content/groups/public</url>
> > > </repository>
> > > </repositories>
>
> > > </project>
>
> > > 2011/2/28 FritzTheCat <wg27_2...@hotmail.com>
>
> > > > Thanks Juan for your quick reply, I think I did not explain my problem
> > > > enough detailled so I try it again: My project compiles right so I
> > > > don't think it is a class-path problem in the common way: Refering to
>
> > > >http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideServe.
> > ..
> > > > I have to assure the following:
> > > >  # The class is annotated with a JPA javax.persistence.Entity
> > > > annotation. -> I did this in my Entity object
>
> > > > for example:
> > > > @Entity
> > > > public class Member implements Serializable{
>
> > > >        private static final long serialVersionUID =
> > -8354006649751924339L;
>
> > > >        public Long id;
> > > > }
>
> > > > # The fully-qualified class name is listed as one of the values of the
> > > > rpc.enhancedClasses configuration property in a .gwt.xml module file
> > > > that is part of the application. -> I think this is my problem. I
> > > > don't know how to put the class into my .gwt.xml file and I cannot
> > > > find any description how to do this, I only found some comments, that
> > > > the annotation can not be read by the client gwt code (which is clear
> > > > to me), but how can I put them into the gwt.xml file?
>
> > > > Thanks for your help
>
> > > > On 28 Feb., 16:18, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> > > > wrote:
> > > > > I think you need the jpa sources in your classpath.
>
> > > > > Juan
>
> > > > > 2011/2/28 FritzTheCat <wg27_2...@hotmail.com>
>
> > > > > > Hi people,
>
> > > > > > i try to
>
> ...
>
> Erfahren Sie mehr »

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.