Re: GWT menu item text alignment issue

2011-03-17 Thread maximus
Instead of using setText() from menuitem i have created my own
settext() as below

public void setText(String text, String acceleratorKey) {
Element leftDIV = DOM.createDiv();
DOM.setElementProperty(leftDIV, "align", "left");
DOM.setInnerText(leftDIV, text);
DOM.insertChild(getElement(), leftDIV, 0);
Element rightDIV = DOM.createDiv();
DOM.setElementProperty(rightDIV, "align", "right");
DOM.setInnerText(rightDIV, acceleratorKey);
DOM.insertChild(getElement(), rightDIV, 2);
}

This method shows the menuitems but do not show any effect of
DOM.setElementProperty(leftDIV, "align", "left");
or
DOM.setElementProperty(rightDIV, "align", "right");

output from above code is:

CreateAlt+Ctrl+C
EditShift+E
OptimizeCtrl+O

can anyone help if i can create two div elements so that alignment can
be done properly or is there any otherway to achieve this.

On Mar 18, 9:08 am, maximus  wrote:
> On Mar 17, 4:13 pm, maximus  wrote:
>
> > Hi all,
> > Is it possible in GWT to set Menu Item text in two different
> > alignments,what I mean to say is I want my menu item's label to be
> > left justified and its accelerator key to be right justified.
>
> > i.e,
>
> >       Create     Alt+Ctrl+C
> >       Edit          Shift+E
> >       Optimize       Ctrl+O
>
> > 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-toolkit@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: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread tanteanni
" Put the persistence.xml in your source in the correct place."

what does this mean?

the persistence.xml is located in myIncluded.jar/META-INF. And in my
webApp.war it is located in /WEB-INF/lib/myincluded.jar/META-INF. Imho
that's the right place, isn't it?

p.s. sorry for double post, don't know how this could happen

On 17 Mrz., 21:43, Juan Pablo Gardella 
wrote:
> Put the persistence.xml in your source in the correct place.
>
> Juan
>
> 2011/3/17 tanteanni 
>
> > I feel a bit sheepish about it.But the Failure was much simpler then
> > you all could imagine (obviously):
>
> > simply i missed "extends RemoteService" !
>
> > but now it seems i got a real problem: the 3rd party class the server
> > side uses jpa2 as mentioned before. and its code now throws "no
> > persistence unit found". But the unit exists: in fact this 3rd party
> > jar is executable and its running fine stand alone (the
> > persistence.xml is contained in jar file, packed by maven-assembly-
> > plugin).
>
> > so it seems that the access to "persistence.xml" is some how
> > restricted if the jar is accessed through jetty/myApp? Or why i got
> > this error only if run via myApp?
>
> > On 17 Mrz., 16:03, tanteanni  wrote:
> > > (this is my last attempt to get a message through the moderators - my
> > > last 2 question seem to be ignored)
>
> > > at the moment i am working on my first gwt application (after going
> > > through the (great) stockwatcher tutorial). I am facing problem on
> > > getting server side services to work. on starting my app in
> > > development mode i get:
>
> > > 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> > > myPackage.client.myApp (see associated exception for details)
>
> > > java.lang.RuntimeException: Deferred binding failed for
> > > 'myPackage.client.services.AgsService' (did you forget to inherit a
> > > required module?)
> > >     at
> > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
> > >     at com.google.gwt.core.client.GWT.create(GWT.java:98)
> > >     at myPackage.client.GWZmenu.(GWZmenu.java:39)
> > >     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
> > >     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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > > 396)
> > >     at
>
> > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> > > 183)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> > > 510)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> > > 352)
> > >     at java.lang.Thread.run(Thread.java:619)
> > > Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> > > previous log entries)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > > 503)
> > >     at
> > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
> > >     at com.google.gwt.core.client.GWT.create(GWT.java:98)
> > >     at myPackage.client.GWZmenu.(GWZmenu.java:39)
> > >     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
> > >     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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > > 396)
> > >     at
>
> > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> > > 183)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> > > 510)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> > > 352)
> > >     at java.lang.Thread.run(Thread.java:619)
>
> > > The Serviceinterface is:
> > > @RemoteServiceRelativePath("AgsService")
> > > public interface AgsService {
> > >         Map getFedLandsCounties();
> > >         Map getFedLandsComm();
> > >         Map getCountiesComm();
>
> > > }
>
> > > The Implementation uses a jar that connects via jpa2 to a db to get
> > > the Maps. I am using Maven the app was generated via appcreator (-
> > > maven).
>
> > > with this interface i went through the according part of stockwatcher-
> > > tutorial (added Impl(emantation), an Async interface, updated web.xml)
>
> > > the web.xml looks like this:
> > > 
> > >  > >     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > >     "http://java.sun.com/d

RequestFactory+Service Layer with User ID in the HTTP Header

2011-03-17 Thread Kathiravan Tamilvanan
In our application we have implemented the following


   1. User security by extending the RequestFactoryServlet and *overriding 
   the doPost* method for validating the user session. 
   2. If the user is logged in the request is proceeded further
   3. If the user is not logged in Error is sent back as the response ( Have 
   *custom RequestTransport* for this as Thomas Broyer suggested in the 
   groups )
   4. Also the user id, session id is added to the HTTP Header in the 
*RequestTransport's 
   configureHeader*.

Now what we would like to do is to use the user id as part of the 
RequestContext internally. 

For example, to retrieve all the record's for a particular user,

@Service(value = IUserService.class, locator = ServiceLocator.class)
public interface UserRequest extends RequestContext
{
abstract Request>* findRecords(String userId);*
}

The service locator locates the IUserService implementation from the spring 
layer. The User service also has the method findRecords(String userID) which 
returns List objects.

I am wondering whether, Is it possible to have the method signatures on the 
RequestContext as follows,

@Service(value = IUserService.class, locator = ServiceLocator.class)
public interface UserRequest extends RequestContext
{
abstract Request> *findRecords()*;
}

The findRecords() is not taking the user id as the parameter. Is it possible 
to add the user id from the session to the server call. I just dont want all 
the my RequestContext methods to have "User ID".

I feel this is possible but can't figure it out on my own.

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-toolkit@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 menu item text alignment issue

2011-03-17 Thread maximus


On Mar 17, 4:13 pm, maximus  wrote:
> Hi all,
> Is it possible in GWT to set Menu Item text in two different
> alignments,what I mean to say is I want my menu item's label to be
> left justified and its accelerator key to be right justified.
>
> i.e,
>
>       Create     Alt+Ctrl+C
>       Edit          Shift+E
>       Optimize       Ctrl+O
>
> 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-toolkit@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: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Juan Pablo Gardella
No. SessionId is create.


2011/3/17 Johannes Stein 

> Cookies are fine, but what happens if cookies are disabled?
> Then two sessions will be created by the server, or not?
>
>
>
> On 17 Mrz., 12:40, Uemit  wrote:
> > It depends how session management is done on the client.  If you use
> cookies
> > to store the session id it should make no difference as long as you
> > communicate with the same domain (Cookies are domain specific).
> > If you open gmail in two tabs in your browser you won't have to
> authenticate
> > twice only one time right?. Both gmail instances will share the session.
>
> --
> 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+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-toolkit@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: math performance

2011-03-17 Thread csillag
On márc. 18, 02:25, joe kolba  wrote:
> Why do you have to do it on the client side?  why not just do all of your
> processing on the server side and send the client the results.
Because I do not want to kill the server; the clients can take care of
themselves.

> Not every client is going to have a machine that can do heavy calculations
Even tablets are getting dual core these days, so I don't think this
is going to be a problem.

> and they might actually be using IE
Well, hopefully not for long.

Best wishes:

  Csillag

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



Re: math performance

2011-03-17 Thread joe kolba
Why do you have to do it on the client side?  why not just do all of your
processing on the server side and send the client the results.  Not every
client is going to have a machine that can do heavy calculations and they
might actually be using IE

On Thu, Mar 17, 2011 at 9:04 PM, csillag  wrote:

> Hi there,
>
> We are developing an application which neds to do some heavy
> calculations on the client side.
> We are using the Java double type, standard arithmetic operations,
> plus sqrt and power from math.
>
> When I run the app on dev mode, the code runs OK, but when I actually
> deploy it, the time required to perform the same calculation (on the
> same host!) jumps to ~90 times of the original.
>
> I guess this is because when running in dev mode, the calculations
> happen in the JVM, and when running in deployed mode, they run in JS
> space, in the browser.
>
> But still, is this expected? Is basic arithmetic in JS this slow?
> (Tried with both FF3.6 and FF4.0 RC.)
>
> What can I do to improve this situation?
>
> Thank you for your help:
>
> Kristof Csillag
>
> --
> 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+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-toolkit@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.



math performance

2011-03-17 Thread csillag
Hi there,

We are developing an application which neds to do some heavy
calculations on the client side.
We are using the Java double type, standard arithmetic operations,
plus sqrt and power from math.

When I run the app on dev mode, the code runs OK, but when I actually
deploy it, the time required to perform the same calculation (on the
same host!) jumps to ~90 times of the original.

I guess this is because when running in dev mode, the calculations
happen in the JVM, and when running in deployed mode, they run in JS
space, in the browser.

But still, is this expected? Is basic arithmetic in JS this slow?
(Tried with both FF3.6 and FF4.0 RC.)

What can I do to improve this situation?

Thank you for your help:

 Kristof Csillag

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



Unit Testing RequestFactory with ServiceLocator

2011-03-17 Thread Kathiravan Tamilvanan
We have used EntityLocator and ServiceLocator with our Application's 
RequestFactory. Now that we want to unit test the implementation, What is 
the best way to unit test ?
I have looked at RequestFactoryMagic which creates InProcessRequestFactory 
but not quiet sure how that applies to a ServiceLocator approach. 

Here is my thought.

 1. Insert test data in to in memory database
 2. Create RequestFactory Instance
 3. Call a method on a Request object ( This is where the problem is, If the 
request is to query a table on the database using the ServiceLocator. it 
does not work. )
 4. Verify the result.

Any pointers?

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



Re: Programmatic manipulation of the style elements

2011-03-17 Thread Simon M
I used the # 3 : 

   - arrow.getElement().getStyle().setTop(y, Style.Unit.PCT);

Thank you for your help

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



How to pass objects between modules, in a RPC based service

2011-03-17 Thread Ashish Sinha
Hi all,

I am working on a project, in which RPC based services are implemented
using GWT.
This project is to be deployed on  GAE.

The first module contains UI for login.
After a successful login, a session id is created and send back to
this module (login module).
Immediately after this, I redirect the user to a new page using
"Window.Location.assign()".
My problem is, that I need to send session id to this new  module.
Please suggest, how can I accomplish this?

Thanks for t he help.

- Ashish

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



Extending a ClientBundle and using replace-with in gxt.xml

2011-03-17 Thread Chris Martin
I'd like to change the default css for CellTable in my entire
application. I have a subtype defined like so:

public interface MyCellTableResources extends CellTable.Resources {
  interface CellTableStyle extends CellTable.Style {}
  @Source({"celltable.css", CellTable.Style.DEFAULT_CSS})
  @Override CellTableStyle cellTableStyle();
}

And I'd hope to be able to do something like this in gwt.xml:


  


I expected that GWT.create(CellTable.Resources.class) would
effectively call GWT.create(MyCellTableResources.class) and get the
implementation. But deferred binding just fails because
MyCellTableResources is not an instantiable type. Isn't it a bit silly
that GWT.create fails here, when the type that it is complaining about
not being able to instantiate is a type that can be GWT.create()ed?

Is there a workaround - maybe some way I can bind to the generated
implementation of MyCellTableResources?

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



Re: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread Juan Pablo Gardella
Put the persistence.xml in your source in the correct place.

Juan

2011/3/17 tanteanni 

> I feel a bit sheepish about it.But the Failure was much simpler then
> you all could imagine (obviously):
>
> simply i missed "extends RemoteService" !
>
> but now it seems i got a real problem: the 3rd party class the server
> side uses jpa2 as mentioned before. and its code now throws "no
> persistence unit found". But the unit exists: in fact this 3rd party
> jar is executable and its running fine stand alone (the
> persistence.xml is contained in jar file, packed by maven-assembly-
> plugin).
>
> so it seems that the access to "persistence.xml" is some how
> restricted if the jar is accessed through jetty/myApp? Or why i got
> this error only if run via myApp?
>
> On 17 Mrz., 16:03, tanteanni  wrote:
> > (this is my last attempt to get a message through the moderators - my
> > last 2 question seem to be ignored)
> >
> > at the moment i am working on my first gwt application (after going
> > through the (great) stockwatcher tutorial). I am facing problem on
> > getting server side services to work. on starting my app in
> > development mode i get:
> >
> > 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> > myPackage.client.myApp (see associated exception for details)
> >
> > java.lang.RuntimeException: Deferred binding failed for
> > 'myPackage.client.services.AgsService' (did you forget to inherit a
> > required module?)
> > at
> > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
> > at com.google.gwt.core.client.GWT.create(GWT.java:98)
> > at myPackage.client.GWZmenu.(GWZmenu.java:39)
> > at myPackage.client.myApp.onModuleLoad(myApp.java:35)
> > 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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > 396)
> > at
> >
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> > 183)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> > 510)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> > 352)
> > at java.lang.Thread.run(Thread.java:619)
> > Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> > previous log entries)
> > at
> > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > 503)
> > at
> > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
> > at com.google.gwt.core.client.GWT.create(GWT.java:98)
> > at myPackage.client.GWZmenu.(GWZmenu.java:39)
> > at myPackage.client.myApp.onModuleLoad(myApp.java:35)
> > 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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > 396)
> > at
> >
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> > 183)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> > 510)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> > 352)
> > at java.lang.Thread.run(Thread.java:619)
> >
> > The Serviceinterface is:
> > @RemoteServiceRelativePath("AgsService")
> > public interface AgsService {
> > Map getFedLandsCounties();
> > Map getFedLandsComm();
> > Map getCountiesComm();
> >
> > }
> >
> > The Implementation uses a jar that connects via jpa2 to a db to get
> > the Maps. I am using Maven the app was generated via appcreator (-
> > maven).
> >
> > with this interface i went through the according part of stockwatcher-
> > tutorial (added Impl(emantation), an Async interface, updated web.xml)
> >
> > the web.xml looks like this:
> > 
> >  > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> > 
> >
> > 
> > 
> > AgsServiceImpl
> >
> myPackage.server.AgsServiceImpl
> > 
> >
> > 
> > AgsServiceImpl
> > /myApp/AgsService
> > 
> >
> > 
> > 
> > myApp.html
> > 
> >
> > 
> >
> > is there anybody whi can say what i did wrong or could say how / where
> > to look to solve this problem?
> >
> > thx in advance
>
> --
> You received this message because you are subscribed to t

Re: MySQL server in development mode

2011-03-17 Thread Juan Pablo Gardella
I use maven. So I put this jar as scope provided that meaning that this jar
is provided for the environment where I put the WAR.

Now, you doesn't need the jar to compile because you use it at runtime, so
you can compile your application without the jar in your classpath. Then
delete this jar in the classpath and you don't have problem

Juan

PD: Sorry my english

2011/3/17 Erel Segal 

> I did 3 and it worked.
>
> But I still wonder, do I really have to manually delete this jar
> whenever I upload my application to Tomcat? Or is there a better way?
>
> On 17 מרץ, 13:35, Juan Pablo Gardella 
> wrote:
> > Try this:
> >
> > 1) Verify if you put the mysql-connector-java-5.1.15-bin.jar in correct
> > place. Seehttp://
> tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html.
> >
> > 2) What version of mysql you use? Is the driver for this version? If yes
> > perhaps the jar is corrupt. Try download it again
> >
> > 3) Delete mysql-connector-java-5.1.15-bin.jar from WEB-INF/lib/ if you
> have
> > in your war.
> >
> > Juan
> >
> > 2011/3/17 Erel Segal 
> >
> > > It doesn't work at Tomcat either, but I don't know if the problems are
> > > related. This is what I did regarding Tomcat:
> >
> > > * I put the file "mysql-connector-java-5.1.15-bin.jar" in Tomcat's
> > > lib/ folder;
> >
> > > * I edited the file conf/context.xml to declare a resource:
> > > 
> > >WEB-INF/web.xml
> > > > > type="javax.sql.DataSource"
> > >   maxActive="100" maxIdle="30" maxWait="1"
> > >   username="[username]" password="[password]"
> > > driverClassName="com.mysql.jdbc.Driver"
> > >   url="jdbc:mysql://localhost:3306/gwtchat"/>
> > > 
> >
> > > * I edited my application's web.xml file to declare a resource:
> >
> > > 
> > >  
> > >chatroom
> > >gwtchat.server.ChatRoomServiceImpl
> > >  
> > >  
> > >chatroom
> > >/gwtchat/chatroom
> > >  
> > >  
> > >chatroom
> > >/wizardofoz/chatroom
> > >  
> > >  
> > >  DB Connection
> > >  jdbc/TestDB
> > >  javax.sql.DataSource
> > >  Container
> > >  
> > > 
> >
> > > * I restarted Tomcat.
> >
> > > Now, in the Tomcat log file, I get the following exception:
> > > "No suitable driver found for jdbc:mysql://localhost:3306/gwtchat?..."
> >
> > > On 15 מרץ, 13:16, Juan Pablo Gardella 
> > > wrote:
> > > > It seems that your classpath is good. When you said:
> >
> > > > "But then I restarted the server (from the eclipse "development
> pane"),
> > > > and I started getting errors saying that the server cannot find a
> > > > driver for jdbc:mysql connection!"
> >
> > > > You want to "deploy" the app in a servlet container?. Try make a war
> and
> > > put
> > > > in it and test. Tell me if the error persist
> >
> > > > Juan
> >
> > > > 2011/3/15 Erel Segal 
> >
> > > > > Here it is:
> >
> > > > > 
> > > > > 
> > > > >
> > > > > path="test"/>
> > > > > > > > > path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
> > > > > > > > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > > > > path="/
> > > > > GeniusBI"/>
> > > > > > > path="/home//workspace/gwtchat/
> > > > > war/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar"/>
> > > > >
> > > > > 
> >
> > > > > On 9 מרץ, 18:49, Juan Pablo Gardella 
> > > > > wrote:
> > > > > > Is classpath error problem. Show the .classpath file
> >
> > > > > > Juan
> >
> > > > > > 2011/3/9 Erel Segal 
> >
> > > > > > > I added a mysql server to the default GWT application. I put
> the
> > > mysql
> > > > > > > connector jar in the lib folder under WEBINF, and also added it
> to
> > > the
> > > > > > > build path. I ran the web application in development mode and
> it
> > > > > > > worked fine.
> >
> > > > > > > But then I restarted the server (from the eclipse "development
> > > pane"),
> > > > > > > and I started getting errors saying that the server cannot find
> a
> > > > > > > driver for jdbc:mysql connection!
> >
> > > > > > > Can you please help me?
> >
> > > > > > > --
> > > > > > > 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+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-toolkit@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.
> >
> > > --
> > > Y

Re: GWT Error

2011-03-17 Thread Juan Pablo Gardella
See: Problem accessing /ria2/calendar.

And in your web.xml have this:/riaca2/calendar

Juan

2011/3/17 but43r 

> Ok. So I'm trying to create login page for my Application from this
> article http://checkappointments.com/gwt/
> All is good until I click login button.
>
> I get this error:
> Error 404Error 404 NOT_FOUND 
> HTTP ERROR 404 Problem accessing /ria2/calendar.
> Reason:  NOT_FOUNDPowered by
> Jetty://   
> >  
>
> In my web.xml I have 1 servlet mapping
> 
>   calendarServlet
>com.ca2.calendar.server.CalendarServiceImpl servlet-class>
>  
>
>  
>calendarServlet
>  /riaca2/calendar
>
> All looks well. What could be common causes that cause this 404
> error???
> Finding GWT really nice but starting to look like it's very hard to
> find errors when 1 occurs.
> Very annoyed at this.
>
> Any help will be appreciated.
> 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-toolkit@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-toolkit@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 Error

2011-03-17 Thread David Chandler
Check that the URL in your @RemoteServiceRelativePath annotation
("ria2/calendar") matches the URL you've mapped in web.xml
("/riaca2/calendar").

/dmc

On Thu, Mar 17, 2011 at 11:28 AM, but43r  wrote:

> Ok. So I'm trying to create login page for my Application from this
> article http://checkappointments.com/gwt/
> All is good until I click login button.
>
> I get this error:
> Error 404Error 404 NOT_FOUND 
> HTTP ERROR 404 Problem accessing /ria2/calendar.
> Reason:  NOT_FOUNDPowered by
> Jetty://   
> >  
>
> In my web.xml I have 1 servlet mapping
> 
>   calendarServlet
>com.ca2.calendar.server.CalendarServiceImpl servlet-class>
>  
>
>  
>calendarServlet
>  /riaca2/calendar
>
> All looks well. What could be common causes that cause this 404
> error???
> Finding GWT really nice but starting to look like it's very hard to
> find errors when 1 occurs.
> Very annoyed at this.
>
> Any help will be appreciated.
> 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-toolkit@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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



GWT Error

2011-03-17 Thread but43r
Ok. So I'm trying to create login page for my Application from this
article http://checkappointments.com/gwt/
All is good until I click login button.

I get this error:
Error 404Error 404 NOT_FOUND 
HTTP ERROR 404 Problem accessing /ria2/calendar.
Reason:  NOT_FOUNDPowered by
Jetty://   
 

In my web.xml I have 1 servlet mapping

   calendarServlet
com.ca2.calendar.server.CalendarServiceImpl
 

 
calendarServlet
 /riaca2/calendar

All looks well. What could be common causes that cause this 404
error???
Finding GWT really nice but starting to look like it's very hard to
find errors when 1 occurs.
Very annoyed at this.

Any help will be appreciated.
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-toolkit@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: Where placeholders in uibinder?

2011-03-17 Thread Thomas Broyer


On Thursday, March 17, 2011 7:51:47 PM UTC+1, ss.require wrote:
>
> > UiBinder is not a templating tool, it's a "UI building" tool. 
> > templating, use Messages or SafeHtmlTemplates. 
> I understand that clearly. In other words, Why does GWT not provide a 
> templating tool.?


I don't have the answer, but I believe this will come one day or another, 
particularly given the Cell widgets and the new orientation they're taking 
for widgets: 
http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets
The real question (other than "when?") is: will they augment UiBinder, 
create a new thing, or integrate Closure Templates?
 

> For example, like JSP. In general, a templating tool 
> is much more clever and simple solution than UI binder. Messages or 
> SafeHtmlTemplates - It's not the case, It's for another purposes: 
> Messages - for internalization,


But wouldn't you internationalize many things that use a template? (such as 
your "Hello MAX" example)
 

> SafeHtmlTemplates is related to security.


No, SafeHtml is about security, and SafeHtmlTemplates is a templating tool 
producing SafeHtml and enforcing that "security", because many uses of 
templates are about putting "external values" into the placeholders (whether 
the user provided the values, or your got them from the server –you 
shouldn't trust a server, because you cannot trust the network between the 
app and your server, so it might actually not be *your* server that 
responded–).
 

> I don't see any performance reasons not to do a templating 
> tool. 
>
> > In the case of your "Hello MAX", assuming its part of a bigger "UiBinder 
> > template", I'd rather put the ui:field on the  and use setInnerHtml 
> or 
> > setInnerText on it, building the "template" in the code (using Messages 
> or 
> > SafeHtmlTemplates) 
>
> In this case It's much more simple and elegant to use a template in 
> only place than make a lot of redundant code throughout application. 
>
>  
 Using a SafeHtmlTemplates, you'd have a single template in one place, and 
then use it wherever you need.
Note that I was presuming this was only a part of a bigger UiBinder file 
(one with widgets et al.) Otherwise, of course, you'd only use 
SafeHtmlTemplates or Messages, without UiBinder (but didn't we agree on that 
already?)

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



Re: Where placeholders in uibinder?

2011-03-17 Thread ss.require
> UiBinder is not a templating tool, it's a "UI building" tool.
> templating, use Messages or SafeHtmlTemplates.
I understand that clearly. In other words, Why does GWT not provide a
templating tool.? For example, like JSP. In general, a templating tool
is much more clever and simple solution than UI binder. Messages or
SafeHtmlTemplates - It's not the case, It's for another purposes:
Messages - for internalization, SafeHtmlTemplates is related to
security. I don't see any performance reasons not to do a templating
tool.

> In the case of your "Hello MAX", assuming its part of a bigger "UiBinder
> template", I'd rather put the ui:field on the  and use setInnerHtml or
> setInnerText on it, building the "template" in the code (using Messages or
> SafeHtmlTemplates)

In this case It's much more simple and elegant to use a template in
only place than make a lot of redundant code throughout application.

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



Re: Where placeholders in uibinder?

2011-03-17 Thread Thomas Broyer
UiBinder is not a templating tool, it's a "UI building" tool. If you want 
templating, use Messages or SafeHtmlTemplates.

In the case of your "Hello MAX", assuming its part of a bigger "UiBinder 
template", I'd rather put the ui:field on the  and use setInnerHtml or 
setInnerText on it, building the "template" in the code (using Messages or 
SafeHtmlTemplates)

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



Re: Where placeholders in uibinder?

2011-03-17 Thread Hilco Wijbenga
On 17 March 2011 17:20, ss.require  wrote:
> Let's assume I need to paste some piece of html in my page: e.g.
> 
>    Hello, MAX
>  
> Where "MAX" is a parameter.
>
> If I would do that in the code I would make the next function:
> public String getHtmlTemplate(String parameter){
>     return "
>    Hello, " + parameter + "
>  "
> }
>
> But If I would use uibinder I should make the next:
> 
>  
>    Hello, .
>  
> 
> +
> declare @UiField SpanElement nameSpan; + call
> nameSpan.setInnerText(name).
>
> I think the first approach is simpler, has less code and more
> effective(no need extra calls to js object-elements). However, the
> first approach is maybe less  maintainable.
>
> So, in general I think it's better to do html-template in the source
> code than uibinder templates! Why does GWT not handle placeholders? I
> don't see any hindrances to implement that for GWT. What do others
> think about uibinder?

Go with UiBinder. Use InlineLabel and simply call setText.

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



CellTable Filter

2011-03-17 Thread gadaleta.marco
Hello everyone,
I was wondering if there is the possibility to apply a filter on a
celltable or celllist.
If so, could you tell me how?

Txh,
Marco

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



Re: have to invoke eclipse/project/clean for modified server classes

2011-03-17 Thread Juan Pablo Gardella
Are you open your project after run mvn eclipse:eclipse? Probably your
pom.xml is bad configurate. I use this plugin and work well with eclipse

2011/3/17 cri 

> I've got a gwt project that accesses a Spring server back end. The
> project was initially created using the gwt-maven-plugin maven
> archetype. Every time I change a back end Spring service class, my
> eclipse project doesn't pick up the changes unless I invoke Eclipse/
> Project/clean on my project. I've developed similar projects in
> the past and don't think I was forced to do this. Assuming that this
> isn't the way that its supposed to work, does anyone have any ideas
> what my problem might be? 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-toolkit@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-toolkit@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: Javascript exception when deleting the last node in a CellTree

2011-03-17 Thread rujan
Hi,

doesn't anybody encounter the same problem ?
I don't know if I misuse the framework or if there's a bug in the
CellTree composite.

Thank you for all help you can give me.

On 11 mar, 11:41, rujan  wrote:
> I found another problem which finally seems to have the same cause :
> in another tree, I have a AsyncDataProvider which updates the tree
> when I select a value in a selectBox.
> But when I select (in the selectBox) an item for which the tree to
> display is empty, I have the same problem as explained before.
>
> It seems that it is possible to have an empty tree when creating it,
> but if you update it so that it becomes empty, it generates some weird
> behaviour.
>
> If someone has an idea of why this his happening, it will be very
> helpful.
>
> On 10 mar, 15:37, rujan  wrote:
>
> > Hi all,
>
> > I am using the CellTree to add and remove nodes (on the same level,
> > only a list of nodes).
> > But I've encountered an exception when attempting to remove the last
> > node of the CellTree :
>
> > Uncaught JavaScript exception [uncaught exception:
> > java.lang.AssertionError: Child index out of bounds] in , line 0
>
> > Here is my code ;
>
> > public class Test extends Composite {
> >     private static TestUiBinder uiBinder =
> > GWT.create(TestUiBinder.class);
>
> >     interface TestUiBinder extends UiBinder {
> >     }
>
> >     @UiField(provided = true)
> >     CellTree rightTree;
>
> >     @UiField
> >     PushButton removeEntity;
>
> >     private SingleSelectionModel rightTreeSelectionModel;
> >     private TreeViewModel rightTreeModel;
> >     private ListDataProvider rightTreeProvider;
>
> >     public Test() {
> >         init();
> >     }
>
> >     public void init() {
> >         createRightTree();
> >         initWidget(uiBinder.createAndBindUi(this));
> >     }
>
> >     @UiHandler("removeEntity")
> >     public void onRemoveEntityClick(ClickEvent event) {
> >         EntiteDTO entSelected =
> > rightTreeSelectionModel.getSelectedObject();
>
> >         Iterator ite =
> > rightTreeProvider.getList().iterator();
> >         while (ite.hasNext()) {
> >             EntiteDTO ent = ite.next();
> >             if (ent.getId().equals(entSelected.getId())) {
> >                 ite.remove();
> >             }
> >         }
> >         rightTreeProvider.refresh();
> >     }
>
> >     private void createRightTree() {
> >         CellTree.Resources res =
> > GWT.create(CellTree.BasicResources.class);
>
> >         rightTreeSelectionModel = new
> > SingleSelectionModel();
>
> >         rightTreeProvider = new ListDataProvider();
> >         rightTreeModel = new TreeViewModel() {
>
> >             @Override
> >             public boolean isLeaf(Object value) {
> >                 if (value == null) {
> >                     return false;
> >                 }
> >                 return true;
> >             }
>
> >             @Override
> >             public  NodeInfo getNodeInfo(T value) {
> >                 return new
> > DefaultNodeInfo(rightTreeProvider, new FolderEntityCell(),
> >                         rightTreeSelectionModel, null);
> >             }
> >         };
>
> >         rightTree = new CellTree(rightTreeModel, null, res);
> >         rightTree.setAnimationEnabled(true);
> >     }
>
> > }
>
> > The FolderEntityCell is a cell with icon, and EntiteDTO just some
> > POJO.
>
> > So I added some nodes to the rightTree with
> > rightTreeProvider.getList().add(...) on the first level.
>
> > I can remove these nodes by clicking on the removeEntity PushButton,
> > but when I want to remove the last one, it is removed on the browser,
> > but a java.lang.AssertionError occur :
>
> > Uncaught JavaScript exception [uncaught exception:
> > java.lang.AssertionError: Child index out of bounds] in , line 0
>
> > So I'm wondering if I do something wrong in my removal process.
>
> > I hope you can help me on this point, and thank you in advance.
>
> > Cheers.
>
>

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



Where placeholders in uibinder?

2011-03-17 Thread ss.require
Let's assume I need to paste some piece of html in my page: e.g.

Hello, MAX
  
Where "MAX" is a parameter.

If I would do that in the code I would make the next function:
public String getHtmlTemplate(String parameter){
 return "
Hello, " + parameter + "
  "
}

But If I would use uibinder I should make the next:

  
Hello, .
  

+
declare @UiField SpanElement nameSpan; + call
nameSpan.setInnerText(name).

I think the first approach is simpler, has less code and more
effective(no need extra calls to js object-elements). However, the
first approach is maybe less  maintainable.

So, in general I think it's better to do html-template in the source
code than uibinder templates! Why does GWT not handle placeholders? I
don't see any hindrances to implement that for GWT. What do others
think about uibinder?

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



Re: Syntax error, insert "enum Identifier" to complete EnumHeaderName when using ClientBundle

2011-03-17 Thread David E.
Got it,

1. delete the semicolon at the end of @Source
2. make sure image is on classpath

Thanks,


On Mar 17, 1:10 pm, "David E."  wrote:
> I'm trying to use ClientBundle and I'm getting the following two
> errors in Eclipse with the following class.
>
> What am I doing wrong?
>
> Thanks,
> David
>
> Syntax error, insert "enum Identifier" to complete EnumHeaderName
> ImageResources.java     FormsUI_v2/src/com/dve/client/imagebundle       line 9
> Java Problem
>
> Syntax error, insert "EnumBody" to complete EnumDeclaration
> ImageResources.java     FormsUI_v2/src/com/dve/client/imagebundle       line 9
> Java Problem
>
> 
>
> import com.google.gwt.resources.client.ClientBundle;
> import com.google.gwt.resources.client.ImageResource;
>
> interface ImageResources extends ClientBundle {
>
>         @Source("images/GIF/tree/blank.gif");
>         ImageResource blank();
>
> }

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



Syntax error, insert "enum Identifier" to complete EnumHeaderName when using ClientBundle

2011-03-17 Thread David E.
I'm trying to use ClientBundle and I'm getting the following two
errors in Eclipse with the following class.

What am I doing wrong?

Thanks,
David


Syntax error, insert "enum Identifier" to complete EnumHeaderName
ImageResources.java FormsUI_v2/src/com/dve/client/imagebundle   line 9
Java Problem

Syntax error, insert "EnumBody" to complete EnumDeclaration
ImageResources.java FormsUI_v2/src/com/dve/client/imagebundle   line 9
Java Problem



import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;


interface ImageResources extends ClientBundle {

@Source("images/GIF/tree/blank.gif");
ImageResource blank();

}

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



Re: Javascript exception when deleting the last node in a CellTree

2011-03-17 Thread rujan
Hi,

doesn't anybody encounter the same problem ?
I don't know if I misuse the framework or if there's a bug in the
CellTree composite.

Thank you for all help you can give me.

On 11 mar, 11:41, rujan  wrote:
> I found another problem which finally seems to have the same cause :
> in another tree, I have a AsyncDataProvider which updates the tree
> when I select a value in a selectBox.
> But when I select (in the selectBox) an item for which the tree to
> display is empty, I have the same problem as explained before.
>
> It seems that it is possible to have an empty tree when creating it,
> but if you update it so that it becomes empty, it generates some weird
> behaviour.
>
> If someone has an idea of why this his happening, it will be very
> helpful.
>
> On 10 mar, 15:37, rujan  wrote:
>
> > Hi all,
>
> > I am using the CellTree to add and remove nodes (on the same level,
> > only a list of nodes).
> > But I've encountered an exception when attempting to remove the last
> > node of the CellTree :
>
> > Uncaught JavaScript exception [uncaught exception:
> > java.lang.AssertionError: Child index out of bounds] in , line 0
>
> > Here is my code ;
>
> > public class Test extends Composite {
> >     private static TestUiBinder uiBinder =
> > GWT.create(TestUiBinder.class);
>
> >     interface TestUiBinder extends UiBinder {
> >     }
>
> >     @UiField(provided = true)
> >     CellTree rightTree;
>
> >     @UiField
> >     PushButton removeEntity;
>
> >     private SingleSelectionModel rightTreeSelectionModel;
> >     private TreeViewModel rightTreeModel;
> >     private ListDataProvider rightTreeProvider;
>
> >     public Test() {
> >         init();
> >     }
>
> >     public void init() {
> >         createRightTree();
> >         initWidget(uiBinder.createAndBindUi(this));
> >     }
>
> >     @UiHandler("removeEntity")
> >     public void onRemoveEntityClick(ClickEvent event) {
> >         EntiteDTO entSelected =
> > rightTreeSelectionModel.getSelectedObject();
>
> >         Iterator ite =
> > rightTreeProvider.getList().iterator();
> >         while (ite.hasNext()) {
> >             EntiteDTO ent = ite.next();
> >             if (ent.getId().equals(entSelected.getId())) {
> >                 ite.remove();
> >             }
> >         }
> >         rightTreeProvider.refresh();
> >     }
>
> >     private void createRightTree() {
> >         CellTree.Resources res =
> > GWT.create(CellTree.BasicResources.class);
>
> >         rightTreeSelectionModel = new
> > SingleSelectionModel();
>
> >         rightTreeProvider = new ListDataProvider();
> >         rightTreeModel = new TreeViewModel() {
>
> >             @Override
> >             public boolean isLeaf(Object value) {
> >                 if (value == null) {
> >                     return false;
> >                 }
> >                 return true;
> >             }
>
> >             @Override
> >             public  NodeInfo getNodeInfo(T value) {
> >                 return new
> > DefaultNodeInfo(rightTreeProvider, new FolderEntityCell(),
> >                         rightTreeSelectionModel, null);
> >             }
> >         };
>
> >         rightTree = new CellTree(rightTreeModel, null, res);
> >         rightTree.setAnimationEnabled(true);
> >     }
>
> > }
>
> > The FolderEntityCell is a cell with icon, and EntiteDTO just some
> > POJO.
>
> > So I added some nodes to the rightTree with
> > rightTreeProvider.getList().add(...) on the first level.
>
> > I can remove these nodes by clicking on the removeEntity PushButton,
> > but when I want to remove the last one, it is removed on the browser,
> > but a java.lang.AssertionError occur :
>
> > Uncaught JavaScript exception [uncaught exception:
> > java.lang.AssertionError: Child index out of bounds] in , line 0
>
> > So I'm wondering if I do something wrong in my removal process.
>
> > I hope you can help me on this point, and thank you in advance.
>
> > Cheers.
>
>

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



have to invoke eclipse/project/clean for modified server classes

2011-03-17 Thread cri
I've got a gwt project that accesses a Spring server back end. The
project was initially created using the gwt-maven-plugin maven
archetype. Every time I change a back end Spring service class, my
eclipse project doesn't pick up the changes unless I invoke Eclipse/
Project/clean on my project. I've developed similar projects in
the past and don't think I was forced to do this. Assuming that this
isn't the way that its supposed to work, does anyone have any ideas
what my problem might be? 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-toolkit@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: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread tanteanni
I feel a bit sheepish about it.But the Failure was much simpler then
you all could imagine (obviously):

simply i missed "extends RemoteService" !

but now it seems i got a real problem: the 3rd party class the server
side uses jpa2 as mentioned before. and its code now throws "no
persistence unit found". But the unit exists: in fact this 3rd party
jar is executable and its running fine stand alone (the
persistence.xml is contained in jar file, packed by maven-assembly-
plugin).

so it seems that the access to "persistence.xml" is some how
restricted if the jar is accessed through jetty/myApp? Or why i got
this error only if run via myApp?

On 17 Mrz., 16:03, tanteanni  wrote:
> (this is my last attempt to get a message through the moderators - my
> last 2 question seem to be ignored)
>
> at the moment i am working on my first gwt application (after going
> through the (great) stockwatcher tutorial). I am facing problem on
> getting server side services to work. on starting my app in
> development mode i get:
>
> 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> myPackage.client.myApp (see associated exception for details)
>
> java.lang.RuntimeException: Deferred binding failed for
> 'myPackage.client.services.AgsService' (did you forget to inherit a
> required module?)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at myPackage.client.GWZmenu.(GWZmenu.java:39)
>     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>     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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>     at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 503)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at myPackage.client.GWZmenu.(GWZmenu.java:39)
>     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>     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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>     at java.lang.Thread.run(Thread.java:619)
>
> The Serviceinterface is:
> @RemoteServiceRelativePath("AgsService")
> public interface AgsService {
>         Map getFedLandsCounties();
>         Map getFedLandsComm();
>         Map getCountiesComm();
>
> }
>
> The Implementation uses a jar that connects via jpa2 to a db to get
> the Maps. I am using Maven the app was generated via appcreator (-
> maven).
>
> with this interface i went through the according part of stockwatcher-
> tutorial (added Impl(emantation), an Async interface, updated web.xml)
>
> the web.xml looks like this:
> 
>      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>         
>         
>                 AgsServiceImpl
>                 myPackage.server.AgsServiceImpl
>         
>
>         
>                 AgsServiceImpl
>                 /myApp/AgsService
>         
>
>         
>         
>                 myApp.html
>         
>
> 
>
> is there anybody whi can say what i did wrong or could say how / where
> to look to solve this problem?
>
> thx 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread tanteanni
I feel a bit sheepish about it.But the Failure was much simpler then
you all could imagine (obviously):

simply i missed "extends RemoteService" !

but now it seems i got a real problem: the 3rd party class the server
side uses jpa2 as mentioned before. and its code now throws "no
persistence unit found". But the unit exists: in fact this 3rd party
jar is executable and its running fine stand alone (the
persistence.xml is contained in jar file, packed by maven-assembly-
plugin).

so it seems that the access to "persistence.xml" is some how
restricted if the jar is accessed thru jetty/myApp?

On 17 Mrz., 16:03, tanteanni  wrote:
> (this is my last attempt to get a message through the moderators - my
> last 2 question seem to be ignored)
>
> at the moment i am working on my first gwt application (after going
> through the (great) stockwatcher tutorial). I am facing problem on
> getting server side services to work. on starting my app in
> development mode i get:
>
> 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> myPackage.client.myApp (see associated exception for details)
>
> java.lang.RuntimeException: Deferred binding failed for
> 'myPackage.client.services.AgsService' (did you forget to inherit a
> required module?)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at myPackage.client.GWZmenu.(GWZmenu.java:39)
>     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>     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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>     at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 503)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at myPackage.client.GWZmenu.(GWZmenu.java:39)
>     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>     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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>     at java.lang.Thread.run(Thread.java:619)
>
> The Serviceinterface is:
> @RemoteServiceRelativePath("AgsService")
> public interface AgsService {
>         Map getFedLandsCounties();
>         Map getFedLandsComm();
>         Map getCountiesComm();
>
> }
>
> The Implementation uses a jar that connects via jpa2 to a db to get
> the Maps. I am using Maven the app was generated via appcreator (-
> maven).
>
> with this interface i went through the according part of stockwatcher-
> tutorial (added Impl(emantation), an Async interface, updated web.xml)
>
> the web.xml looks like this:
> 
>      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>         
>         
>                 AgsServiceImpl
>                 myPackage.server.AgsServiceImpl
>         
>
>         
>                 AgsServiceImpl
>                 /myApp/AgsService
>         
>
>         
>         
>                 myApp.html
>         
>
> 
>
> is there anybody whi can say what i did wrong or could say how / where
> to look to solve this problem?
>
> thx 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MySQL server in development mode

2011-03-17 Thread Erel Segal
I did 3 and it worked.

But I still wonder, do I really have to manually delete this jar
whenever I upload my application to Tomcat? Or is there a better way?

On 17 מרץ, 13:35, Juan Pablo Gardella 
wrote:
> Try this:
>
> 1) Verify if you put the mysql-connector-java-5.1.15-bin.jar in correct
> place. Seehttp://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html.
>
> 2) What version of mysql you use? Is the driver for this version? If yes
> perhaps the jar is corrupt. Try download it again
>
> 3) Delete mysql-connector-java-5.1.15-bin.jar from WEB-INF/lib/ if you have
> in your war.
>
> Juan
>
> 2011/3/17 Erel Segal 
>
> > It doesn't work at Tomcat either, but I don't know if the problems are
> > related. This is what I did regarding Tomcat:
>
> > * I put the file "mysql-connector-java-5.1.15-bin.jar" in Tomcat's
> > lib/ folder;
>
> > * I edited the file conf/context.xml to declare a resource:
> > 
> >    WEB-INF/web.xml
> >     > type="javax.sql.DataSource"
> >               maxActive="100" maxIdle="30" maxWait="1"
> >               username="[username]" password="[password]"
> > driverClassName="com.mysql.jdbc.Driver"
> >               url="jdbc:mysql://localhost:3306/gwtchat"/>
> > 
>
> > * I edited my application's web.xml file to declare a resource:
>
> > 
> >  
> >    chatroom
> >    gwtchat.server.ChatRoomServiceImpl
> >  
> >  
> >    chatroom
> >    /gwtchat/chatroom
> >  
> >  
> >    chatroom
> >    /wizardofoz/chatroom
> >  
> >  
> >      DB Connection
> >      jdbc/TestDB
> >      javax.sql.DataSource
> >      Container
> >  
> > 
>
> > * I restarted Tomcat.
>
> > Now, in the Tomcat log file, I get the following exception:
> > "No suitable driver found for jdbc:mysql://localhost:3306/gwtchat?..."
>
> > On 15 מרץ, 13:16, Juan Pablo Gardella 
> > wrote:
> > > It seems that your classpath is good. When you said:
>
> > > "But then I restarted the server (from the eclipse "development pane"),
> > > and I started getting errors saying that the server cannot find a
> > > driver for jdbc:mysql connection!"
>
> > > You want to "deploy" the app in a servlet container?. Try make a war and
> > put
> > > in it and test. Tell me if the error persist
>
> > > Juan
>
> > > 2011/3/15 Erel Segal 
>
> > > > Here it is:
>
> > > > 
> > > > 
> > > >        
> > > >        
> > > >         > > > path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
> > > >         > > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > > >        
> > > >         > path="/home//workspace/gwtchat/
> > > > war/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar"/>
> > > >        
> > > > 
>
> > > > On 9 מרץ, 18:49, Juan Pablo Gardella 
> > > > wrote:
> > > > > Is classpath error problem. Show the .classpath file
>
> > > > > Juan
>
> > > > > 2011/3/9 Erel Segal 
>
> > > > > > I added a mysql server to the default GWT application. I put the
> > mysql
> > > > > > connector jar in the lib folder under WEBINF, and also added it to
> > the
> > > > > > build path. I ran the web application in development mode and it
> > > > > > worked fine.
>
> > > > > > But then I restarted the server (from the eclipse "development
> > pane"),
> > > > > > and I started getting errors saying that the server cannot find a
> > > > > > driver for jdbc:mysql connection!
>
> > > > > > Can you please help me?
>
> > > > > > --
> > > > > > 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+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-toolkit@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-toolkit@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-toolkit@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-

Re: Proxy & POST

2011-03-17 Thread julio
basically what I have done is adding:

gwt-dev.jar in the client classpath, and adding at the file web.xml:


JettyProxy
org.mortbay.servlet.ProxyServlet$Transparent

  
  ProxyTo
  http://localhost:8080/


  
  Prefix
  /

1
  

I used localhost:8080 as proxied url, as my server app runs (in
another jetty) under:

http://localhost:8080/myservapp

anyway this code:


final StringBuilder content = new StringBuilder();
content.append("j_username=" + URL.encode("myusername"));
content.append("&j_password=" + URL.encode("mypasswd"));

final RequestBuilder builder = new
RequestBuilder(RequestBuilder.POST, URL.encode(BASEURL + "/
j_spring_security_check"));
builder.setHeader("Content-Type", "application/x-www-form-
urlencoded");

try {
builder.sendRequest(content.toString(), new
RequestCallback() {

public void onResponseReceived(Request request, 
Response response)
{
Window.alert("STATUS : " + 
response.getStatusCode());
}

public void onError(Request request, Throwable 
exception) {
Window.alert("ERROR");
}

});
} catch (final RequestException e) {
Window.alert(e.getLocalizedMessage());
}

returns always status-code = 0...

any help?

Thanks,
Julio

On Mar 17, 11:07 am, julio  wrote:
> Hi,
>
> I'm using GWT 2.1.1 and in my app there is a RequestBuilder/POST to a
> different url respect to the client (basically client  in dev mode
> against 8080 localhost server). The POST fails cos of the "XSS" from
> Firefox.
>
> I followed suggestions 
> here:http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c46
>
> without any luck and as I'm stuck on the same problem since days(!)
> I'm asking you is someone has got a working configuration/solution for
> this problem.
>
> Thanks,
> Julio

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



Re: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread David Chandler
Looks like the Java source for AgsService is not available, but it should be
available by default since it's under the client package. However, if you've
put a source path in your gwt.xml to make another package hierarchy
available to the GWT compiler, you have to explicitly include client , as
well.

WRONG

  

RIGHT

  

  


HTH,
/dmc

On Thu, Mar 17, 2011 at 11:03 AM, tanteanni  wrote:

> (this is my last attempt to get a message through the moderators - my
> last 2 question seem to be ignored)
>
> at the moment i am working on my first gwt application (after going
> through the (great) stockwatcher tutorial). I am facing problem on
> getting server side services to work. on starting my app in
> development mode i get:
>
> 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> myPackage.client.myApp (see associated exception for details)
>
> java.lang.RuntimeException: Deferred binding failed for
> 'myPackage.client.services.AgsService' (did you forget to inherit a
> required module?)
>at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>at com.google.gwt.core.client.GWT.create(GWT.java:98)
>at myPackage.client.GWZmenu.(GWZmenu.java:39)
>at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 503)
>at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>at com.google.gwt.core.client.GWT.create(GWT.java:98)
>at myPackage.client.GWZmenu.(GWZmenu.java:39)
>at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>at java.lang.Thread.run(Thread.java:619)
>
> The Serviceinterface is:
> @RemoteServiceRelativePath("AgsService")
> public interface AgsService {
>Map getFedLandsCounties();
>Map getFedLandsComm();
>Map getCountiesComm();
> }
>
> The Implementation uses a jar that connects via jpa2 to a db to get
> the Maps. I am using Maven the app was generated via appcreator (-
> maven).
>
> with this interface i went through the according part of stockwatcher-
> tutorial (added Impl(emantation), an Async interface, updated web.xml)
>
> the web.xml looks like this:
> 
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>
>
>AgsServiceImpl
>
>  myPackage.server.AgsServiceImpl
>
>
>
>AgsServiceImpl
>/myApp/AgsService
>
>
>
>
>myApp.html
>
>
> 
>
> is there anybody whi can say what i did wrong or could say how / where
> to look to solve this problem?
>
> thx 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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

Re: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread Khanh Dao Minh
Maybe problem at GWZmenu.java:39
Could you post this code here?

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



Re: how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread Jim Douglas
You said:

> The Implementation uses a jar ...

Does that jar file contain only .class files?  GWT needs the .java
files so it can wave a magic wand over them and translate them to
JavaScript.


On Mar 17, 8:03 am, tanteanni  wrote:
> (this is my last attempt to get a message through the moderators - my
> last 2 question seem to be ignored)
>
> at the moment i am working on my first gwt application (after going
> through the (great) stockwatcher tutorial). I am facing problem on
> getting server side services to work. on starting my app in
> development mode i get:
>
> 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
> myPackage.client.myApp (see associated exception for details)
>
> java.lang.RuntimeException: Deferred binding failed for
> 'myPackage.client.services.AgsService' (did you forget to inherit a
> required module?)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at myPackage.client.GWZmenu.(GWZmenu.java:39)
>     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
> .java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 352)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
> previous log entries)
>     at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 503)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at myPackage.client.GWZmenu.(GWZmenu.java:39)
>     at myPackage.client.myApp.onModuleLoad(myApp.java:35)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
> .java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 352)
>     at java.lang.Thread.run(Thread.java:619)
>
> The Serviceinterface is:
> @RemoteServiceRelativePath("AgsService")
> public interface AgsService {
>         Map getFedLandsCounties();
>         Map getFedLandsComm();
>         Map getCountiesComm();
>
> }
>
> The Implementation uses a jar that connects via jpa2 to a db to get
> the Maps. I am using Maven the app was generated via appcreator (-
> maven).
>
> with this interface i went through the according part of stockwatcher-
> tutorial (added Impl(emantation), an Async interface, updated web.xml)
>
> the web.xml looks like this:
> 
>      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>         
>         
>                 AgsServiceImpl
>                 myPackage.server.AgsServiceImpl
>         
>
>         
>                 AgsServiceImpl
>                 /myApp/AgsService
>         
>
>         
>         
>                 myApp.html
>         
>
> 
>
> is there anybody whi can say what i did wrong or could say how / where
> to look to solve this problem?
>
> thx 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to debug "java.lang.RuntimeException: Deferred binding failed for..."

2011-03-17 Thread tanteanni
(this is my last attempt to get a message through the moderators - my
last 2 question seem to be ignored)

at the moment i am working on my first gwt application (after going
through the (great) stockwatcher tutorial). I am facing problem on
getting server side services to work. on starting my app in
development mode i get:

15:41:13.749 [ERROR] [myApp] Unable to load module entry point class
myPackage.client.myApp (see associated exception for details)

java.lang.RuntimeException: Deferred binding failed for
'myPackage.client.services.AgsService' (did you forget to inherit a
required module?)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at myPackage.client.GWZmenu.(GWZmenu.java:39)
at myPackage.client.myApp.onModuleLoad(myApp.java:35)
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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
503)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at myPackage.client.GWZmenu.(GWZmenu.java:39)
at myPackage.client.myApp.onModuleLoad(myApp.java:35)
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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)

The Serviceinterface is:
@RemoteServiceRelativePath("AgsService")
public interface AgsService {
Map getFedLandsCounties();
Map getFedLandsComm();
Map getCountiesComm();
}

The Implementation uses a jar that connects via jpa2 to a db to get
the Maps. I am using Maven the app was generated via appcreator (-
maven).

with this interface i went through the according part of stockwatcher-
tutorial (added Impl(emantation), an Async interface, updated web.xml)

the web.xml looks like this:

http://java.sun.com/dtd/web-app_2_3.dtd";>





AgsServiceImpl
myPackage.server.AgsServiceImpl



AgsServiceImpl
/myApp/AgsService




myApp.html




is there anybody whi can say what i did wrong or could say how / where
to look to solve this problem?

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



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Johannes Stein
Cookies are fine, but what happens if cookies are disabled?
Then two sessions will be created by the server, or not?



On 17 Mrz., 12:40, Uemit  wrote:
> It depends how session management is done on the client.  If you use cookies
> to store the session id it should make no difference as long as you
> communicate with the same domain (Cookies are domain specific).
> If you open gmail in two tabs in your browser you won't have to authenticate
> twice only one time right?. Both gmail instances will share the session.

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



Re: Vertical menu

2011-03-17 Thread Khanh Dao Minh
I think there are two options:

- Use Tree instead of MenuBar, or
- Extends the MenuBar then make it expand when init

Hope this help,
KhanhDM.

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



GWT menu item text alignment issue

2011-03-17 Thread maximus
Hi all,
Is it possible in GWT to set Menu Item text in two different
alignments,what I mean to say is I want my menu item's label to be
left justified and its accelerator key to be right justified.

i.e,

  Create Alt+Ctrl+C
  Edit Shift+E
  Optimize   Ctrl+O


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-toolkit@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.



Using Ant 1.7.1 with GWT 2.2 in Eclipse Dev Mode

2011-03-17 Thread Simon
Hello,

I want to use Ant 1.7.1 on the server side for some zip tasks.
However, if I start the application from within eclipse using the
development mode, there is a conflict between the ant library included
within the gwt-dev.jar (as it includes ant 1.8.2) and ant 1.7.1 I want
to use.

If I deploy my webapp to Tomcat 7, I do not have any problems.

Is it possible to override the ant 1.8.2 library from gwt-dev.jar with
the ant 1.7.1 library and still be able to use the Eclipse
Developement Mode for GWT?

Cheers,
Simon

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



Re: Need Help for gwt-rpc mysql database connectivity

2011-03-17 Thread Khanh Dao Minh
It sound you need a SocketPermission. Try this: 
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html#SocketPermission

Regards,
KhanhDM.

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



Re: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a required module?)

2011-03-17 Thread Khanh Dao Minh
Dear Dg,

AFAIK, GWT Maps API now work only with GWT 2.1, not 2.2, since some abstract 
classes now changed to interfaces.
However, if you want GWT 2.2, you can:
- Re-compile the GWT Maps API from source code: 
http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource
- Rewrite bytecode of the GWT Maps API: 
http://grack.com/blog/2011/03/03/gwt-2-2-and-java-lang-incompatibleclasschangeerror

Hope this help,
KhanhDM.

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



Re: Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread Khanh Dao Minh
I think, first, you need to deploy your app to the web container (maybe 
Tomcat, Jetty, ...) on the hosting server, double check the database 
parameter (url, port, database name, user, password).
Then, check the permission of the user on MySQL database.
If any error, please show the stack trace / logs.

If everything OK, then now setup the Apache HTTP server.

Hope this help,
KhanhDM.

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



Re: How to extend gwt designer

2011-03-17 Thread Eric Clayberg
The core of GWT Designer is an Eclipse open source project called
"WindowBuilder". Source for WindowBuilder is available at Eclipse.org,
if you want to look at any of the extension points in detail.

You should also look at the following two PDF files in the docs...

http://code.google.com/webtoolkit/tools/gwtdesigner/NewComponentsTutorial.pdf

http://code.google.com/webtoolkit/tools/gwtdesigner/DesignerCustomizationAPI.pdf

On Mar 16, 8:00 am, Oussema Gabtni  wrote:
> Hello :)
> I'm working in a project to create an eclipse plugin which extend the
> gwt designer plugin.
> I learned how to manipulate eclipse plugin but i don't know how to use
> extension points of gwt designer
> How can i do that? What are the steps to follow?
> Is gwt designer open source?
> Thanks for all
>
> --
> Oussema GABTNI
> Étudiant ingénieur à la Faculté des Sciences de Tunis

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



Master-Detail View & Proxies (GWT 2.2)

2011-03-17 Thread Jerome Thoma
Hi everyone,
I am building a typical business application that manipulates database 
tables. Most screens of the application manage one datatype with two 
different views:
- a master view that shows all records of a give type as rows in a table
- a detail view that shows all fields for a given entry and allows CRUD 
operations
For most screens I use two different proxy classes for the master and detail 
views:
XMasterProxy extends ValueProxy
XDetailsProxy extends EntityProxy
The XMasterProxy does not need to be an EntityProxy because it is never sent 
back to the server. But as it is never mentioned that ValueProxy should be 
used for this kind of scenario, I wonder if I am not mis-using it. The 
documentation only mentions embedded objects as a case for ValueProxies. The 
reason I originally changed the type of XMasterProxy to ValueProxy was that 
each time I requested a list of XMasterProxy (extends EntityProxy) objects 
from the server, the RequestFactory servlet requested another copy through 
the findEntity(Long id) method of my locator. This added a huge payload on 
the server that now had to handle hundreds of db requests instead of a 
single one. As this the desired workflow? How can you make this behaviour 
work in a scenario where several entities are transferred in one go?

Thanks for enlightening me,
Jerome Thoma
GWT Application Developer

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



Re: RequestFactory: return persisted ID in proxy after successful persist()

2011-03-17 Thread Jake Wharton
Is this possible using the editors as well?

When you flush the driver you get a RequestContext whose fire() only accepts 
a Receiver.

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



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Uemit
It depends how session management is done on the client.  If you use cookies 
to store the session id it should make no difference as long as you 
communicate with the same domain (Cookies are domain specific).
If you open gmail in two tabs in your browser you won't have to authenticate 
twice only one time right?. Both gmail instances will share the session. 




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



Re: MySQL server in development mode

2011-03-17 Thread Juan Pablo Gardella
Try this:

1) Verify if you put the mysql-connector-java-5.1.15-bin.jar in correct
place. See http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html.

2) What version of mysql you use? Is the driver for this version? If yes
perhaps the jar is corrupt. Try download it again

3) Delete mysql-connector-java-5.1.15-bin.jar from WEB-INF/lib/ if you have
in your war.

Juan

2011/3/17 Erel Segal 

> It doesn't work at Tomcat either, but I don't know if the problems are
> related. This is what I did regarding Tomcat:
>
> * I put the file "mysql-connector-java-5.1.15-bin.jar" in Tomcat's
> lib/ folder;
>
> * I edited the file conf/context.xml to declare a resource:
> 
>WEB-INF/web.xml
> type="javax.sql.DataSource"
>   maxActive="100" maxIdle="30" maxWait="1"
>   username="[username]" password="[password]"
> driverClassName="com.mysql.jdbc.Driver"
>   url="jdbc:mysql://localhost:3306/gwtchat"/>
> 
>
> * I edited my application's web.xml file to declare a resource:
>
> 
>  
>chatroom
>gwtchat.server.ChatRoomServiceImpl
>  
>  
>chatroom
>/gwtchat/chatroom
>  
>  
>chatroom
>/wizardofoz/chatroom
>  
>  
>  DB Connection
>  jdbc/TestDB
>  javax.sql.DataSource
>  Container
>  
> 
>
> * I restarted Tomcat.
>
> Now, in the Tomcat log file, I get the following exception:
> "No suitable driver found for jdbc:mysql://localhost:3306/gwtchat?..."
>
>
>
> On 15 מרץ, 13:16, Juan Pablo Gardella 
> wrote:
> > It seems that your classpath is good. When you said:
> >
> > "But then I restarted the server (from the eclipse "development pane"),
> > and I started getting errors saying that the server cannot find a
> > driver for jdbc:mysql connection!"
> >
> > You want to "deploy" the app in a servlet container?. Try make a war and
> put
> > in it and test. Tell me if the error persist
> >
> > Juan
> >
> > 2011/3/15 Erel Segal 
> >
> > > Here it is:
> >
> > > 
> > > 
> > >
> > >
> > > > > path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
> > > > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > >
> > > path="/home//workspace/gwtchat/
> > > war/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar"/>
> > >
> > > 
> >
> > > On 9 מרץ, 18:49, Juan Pablo Gardella 
> > > wrote:
> > > > Is classpath error problem. Show the .classpath file
> >
> > > > Juan
> >
> > > > 2011/3/9 Erel Segal 
> >
> > > > > I added a mysql server to the default GWT application. I put the
> mysql
> > > > > connector jar in the lib folder under WEBINF, and also added it to
> the
> > > > > build path. I ran the web application in development mode and it
> > > > > worked fine.
> >
> > > > > But then I restarted the server (from the eclipse "development
> pane"),
> > > > > and I started getting errors saying that the server cannot find a
> > > > > driver for jdbc:mysql connection!
> >
> > > > > Can you please help me?
> >
> > > > > --
> > > > > 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+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-toolkit@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-toolkit@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-toolkit@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: MySQL server in development mode

2011-03-17 Thread Erel Segal
OK, the problem with Tomcat was solved when I deleted  mysql-connector-
java-5.1.15-bin.jar from WEB-INF/lib under webapps. It probably should
be only in the Tomcat lib. Very strange, as it means I cannot just
copy my project and paste it into webapps.


On 17 מרץ, 09:42, Erel Segal  wrote:
> It doesn't work at Tomcat either, but I don't know if the problems are
> related. This is what I did regarding Tomcat:
>
> * I put the file "mysql-connector-java-5.1.15-bin.jar" in Tomcat's
> lib/ folder;
>
> * I edited the file conf/context.xml to declare a resource:
> 
>     WEB-INF/web.xml
>      type="javax.sql.DataSource"
>                maxActive="100" maxIdle="30" maxWait="1"
>                username="[username]" password="[password]"
> driverClassName="com.mysql.jdbc.Driver"
>                url="jdbc:mysql://localhost:3306/gwtchat"/>
> 
>
> * I edited my application's web.xml file to declare a resource:
>
> 
>   
>     chatroom
>     gwtchat.server.ChatRoomServiceImpl
>   
>   
>     chatroom
>     /gwtchat/chatroom
>   
>   
>     chatroom
>     /wizardofoz/chatroom
>   
>   
>       DB Connection
>       jdbc/TestDB
>       javax.sql.DataSource
>       Container
>   
> 
>
> * I restarted Tomcat.
>
> Now, in the Tomcat log file, I get the following exception:
> "No suitable driver found for jdbc:mysql://localhost:3306/gwtchat?..."
>
> On 15 מרץ, 13:16, Juan Pablo Gardella 
> wrote:
>
> > It seems that your classpath is good. When you said:
>
> > "But then I restarted the server (from the eclipse "development pane"),
> > and I started getting errors saying that the server cannot find a
> > driver for jdbc:mysql connection!"
>
> > You want to "deploy" the app in a servlet container?. Try make a war and put
> > in it and test. Tell me if the error persist
>
> > Juan
>
> > 2011/3/15 Erel Segal 
>
> > > Here it is:
>
> > > 
> > > 
> > >        
> > >        
> > >         > > path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
> > >         > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> > >        
> > >         > > path="/home//workspace/gwtchat/
> > > war/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar"/>
> > >        
> > > 
>
> > > On 9 מרץ, 18:49, Juan Pablo Gardella 
> > > wrote:
> > > > Is classpath error problem. Show the .classpath file
>
> > > > Juan
>
> > > > 2011/3/9 Erel Segal 
>
> > > > > I added a mysql server to the default GWT application. I put the mysql
> > > > > connector jar in the lib folder under WEBINF, and also added it to the
> > > > > build path. I ran the web application in development mode and it
> > > > > worked fine.
>
> > > > > But then I restarted the server (from the eclipse "development pane"),
> > > > > and I started getting errors saying that the server cannot find a
> > > > > driver for jdbc:mysql connection!
>
> > > > > Can you please help me?
>
> > > > > --
> > > > > 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+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-toolkit@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-toolkit@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: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Johannes Stein
But if i have two seperate modules each client will get a different
sessionId from the server (rpc-call), because the servers interprets
each module as a single client!?

On 16 Mrz., 20:00, Johannes Stein 
wrote:
> No ideas?
>
> On 16 Mrz., 18:58, Johannes Stein 
> wrote:
>
>
>
>
>
>
>
> > Yes, thats right.
> > But will it then be possible to make in each module a gwt-rpc-call
> > which checks, if the user is logged-in?
> > Will the Session be the same, or will each call (from different
> > modules) deliver a different session-id?
> > And what happens, if the users browser has cookies disabled? Is there
> > a way to rewrite the url like in JSP or Servlets?
>
> > On 16 Mrz., 18:47, Juan Pablo Gardella 
> > wrote:
>
> > > The modules is in client side. Session is in the server side.
>
> > > Juan
>
> > > 2011/3/16 Johannes Stein 
>
> > > > hello,
>
> > > > im implementing a little online-game with gwt.
> > > > this game contains two modules - one ui for the game itself and a
> > > > seperate user-area.
> > > > if a user is logged-in into the user-area he should be able to write
> > > > comments etc. in the game-gui (the other module).
> > > > is it possible to share a http-session between the modules? what could
> > > > be a solution?
>
> > > > thanks for any help!
>
> > > > johannes
>
> > > > --
> > > > 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+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-toolkit@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.



Proxy & POST

2011-03-17 Thread julio
Hi,

I'm using GWT 2.1.1 and in my app there is a RequestBuilder/POST to a
different url respect to the client (basically client  in dev mode
against 8080 localhost server). The POST fails cos of the "XSS" from
Firefox.

I followed suggestions here:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c46

without any luck and as I'm stuck on the same problem since days(!)
I'm asking you is someone has got a working configuration/solution for
this problem.

Thanks,
Julio

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



Re: How to call existing javascript functions (without arguments) in GWT?

2011-03-17 Thread federico

on your EntryPoint:

public void onModuleLoad() {
  ..
test();
}

private native void test() /*-{
$wnd.testFunction();
}-*/;



or if you want extra time defer it


Scheduler.get().scheduleDeferred(new Command() {
public void execute() {
  test();
}
});


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



Re: Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread dg
Thanks for the reply. If my web hosting service does not provide Java
application server like TomCat, should I be able to install one in the
subdomain in the web hosting site or should the web hosting service
owners do it?

On Mar 17, 3:38 pm, Alex Nederlof  wrote:
> Hi,
>
> You need a Java application server like Tomcat (or Jetty or Glassfish, etc.)
> to run Java. Apache (httpd) alone can't run your java code.
>
> Best,
>
> Alex
>
> On Thu, Mar 17, 2011 at 9:38 AM, dg  wrote:
> > I have developed a GWT application which connects to a MySQL database
> > and returns some value. My application runs fine on a Apache Tomcat
> > server on my computer (with Windows XP Professional). However, I have
> > problems running it when I port it to a web hosting service with a
> > Apache server on Linux OS and a MySQL database. I recreate my table in
> > the database in the web hosting site and make appropriate changes to
> > my GWT files (for accessing the database) and then, transport them. I
> > can see only the main HTML page and I think the java source code is
> > not running at all because I cannot see the output of the Java client-
> > side code.
>
> > What can be going wrong?
> > Can some one give me the exact steps of porting a GWT application
> > accessing a MySQL database to a web hosting service?
>
> > --
> > 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+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-toolkit@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: How to call existing javascript functions (without arguments) in GWT?

2011-03-17 Thread Thai Dang Vu
It's easy for the 1st question:

addSymbolButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
test();
}
});

private native void test() /*-{
$wnd.testFunction();
}-*/;

where testFunction is the existing javascript function.

I still don't know the answer for the 2nd question which is: how to call an
existing javascript function when GWT finishes its job when a page is
loaded?

On Thu, Mar 17, 2011 at 6:36 AM, Thai  wrote:

> Hi All,
>
> addSymbolButton.addClickHandler(new ClickHandler() {
>@Override
>public void onClick(ClickEvent event) {
>// How to call a javascript function, e.g. buttonClick(),
> here?
>}
> });
>
> and how to call an existing javascript function after GWT finishes
> everything on a page? Let me explain it in another way: for example my
> page is like this:
>
> http://www.w3.org/
> TR/html4/strict.dtd">
> 
> 
>

Re: Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread Alex Nederlof
Hi,

You need a Java application server like Tomcat (or Jetty or Glassfish, etc.)
to run Java. Apache (httpd) alone can't run your java code.

Best,

Alex

On Thu, Mar 17, 2011 at 9:38 AM, dg  wrote:

> I have developed a GWT application which connects to a MySQL database
> and returns some value. My application runs fine on a Apache Tomcat
> server on my computer (with Windows XP Professional). However, I have
> problems running it when I port it to a web hosting service with a
> Apache server on Linux OS and a MySQL database. I recreate my table in
> the database in the web hosting site and make appropriate changes to
> my GWT files (for accessing the database) and then, transport them. I
> can see only the main HTML page and I think the java source code is
> not running at all because I cannot see the output of the Java client-
> side code.
>
> What can be going wrong?
> Can some one give me the exact steps of porting a GWT application
> accessing a MySQL database to a web hosting service?
>
> --
> 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+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-toolkit@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.



How to call existing javascript functions (without arguments) in GWT?

2011-03-17 Thread Thai
Hi All,

addSymbolButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// How to call a javascript function, e.g. buttonClick(),
here?
}
});

and how to call an existing javascript function after GWT finishes
everything on a page? Let me explain it in another way: for example my
page is like this:

http://www.w3.org/
TR/html4/strict.dtd">







I think in MName.nocache.js GWT will catch the onLoad event of the
body or the DOM ready event. What I want is to execute a javascript
function (without arguments) after GWT finishes its job in the body's
onLoad event handler or DOM-ready event handler.

Thank you.

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



Constant turned into unclobberable portion by I18N.

2011-03-17 Thread dindeman
Hi everyone.
Please look at the below simple UiBinder using a constant:







At  we strive
for our customers.




The cons.businessName gets translated properly according to the
'localed' MyCons.properties that are provided:
MyCons.properties
MyCons_fr.properties
MyCons_es.properties
... etc.

But when I18N gets into the game I can't manage to get the constant
internationalized anymore:








At  we
strive for our customers.





As soon as I surround the translatable text with the  tags it
gets indeed translated according to the various
*GenMessages.properties files but then the previous  tag becomes an
unclobberable portion (see
http://code.google.com/webtoolkit/doc/trunk/DevGuideUiBinderI18n.html#Messages_with_unclobberable_portions.)
Here is how the generated *GenMessages.properties looks like:

B572CBEE8B7279CC8CC18CCFA9B9DCE1=At {0}{1} we strive for our
customers.

Does anyone have any idea how to get, on the one side, constants
translated properly according to the various MyCons.properties files
and the other parts of the text, on the other side, translated
according to the various *GenMessages.properties files?

Thank you.
Luc

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



Re: GWT application requires Plugin to be installed in browser

2011-03-17 Thread BhaskerT
Hi Ben & David,

Thanks alot for the suggetions:)
It worked:)

Do we have any option of getting it worked in debug mode also. without
deploying it on server?

On Mar 15, 11:49 pm, David Chandler  wrote:
> Hi BhaskerT, welcome to GWT.
>
> Ben is correct. GWT development mode allows you to develop and debug quickly
> in the browser without having to do a full compile to JavaScript. If you
> haven't tried it already, be sure to try Debug As | Web Application and set
> a breakpoint in your app in Eclipse, then tickle it in the browser. When
> you're ready to publish your app, click the Compile button in Eclipse to
> create the war folder.
>
> FYI, Gmail was written before GWT and hasn't yet been rewritten. Many other
> Google apps use GWT, including the AdWords and AdSense admin consoles, parts
> of Docs and Maps, the new Groups interface, Google Moderator, and coming
> soon, Blogger, which I tweeted yesterday from @googledevtools.
>
> /dmc
>
>
>
>
>
> On Tue, Mar 15, 2011 at 2:31 PM, Ben Imp  wrote:
> > You are running your application in development mode, which means you
> > are probably running it from your IDE.  Its used for debugging and fun
> > stuff like that.
>
> > If you compile and deploy your web application to a server, like
> > Apache or Tomcat, you wont get that.
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html
>
> > -Ben
>
> > On Mar 15, 7:57 am, BhaskerT  wrote:
> > > Hi All,
>
> > > I am new to GWT(2.0) development.
> > > Problem statement: While accessing a GWT based web application, IE ask
> > > me to install GWT plugin.
>
> > > Solution: If i instal the plugin then it works perfectly fine.
>
> > > As per my knowledge Gmail is based on GWT. and if i try to access
> > > gmail from any where it does not ask me to install any plugin.
>
> > > I want my application to behave in similar manner.
>
> > > What i have googled till now is, there is something called GWT
> > > development mode, due to which this problem is caused.
>
> > > Any suggestion will be very helpful.
>
> > > 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-toolkit@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.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools- Hide quoted text -
>
> - Show quoted text -

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



New project - serialization for gears workers

2011-03-17 Thread dominikz
We hacked GWT compiling/linking process and RPC serialization so that
it is possible to write workers in Java and have DTOs only in Java.

http://code.google.com/p/gj-workers/

We believe that this code actually belongs to GWT-gears library and we
would really like to see this code merged there. If you are owner or
contributor of GWT-gears and are interested in doing this, please
contact me.

We made this code available as a separate project, so that everyone
has a chance to evaluate its usability.

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



Problem porting a GWT application to a Apache web server on a web hosting service

2011-03-17 Thread dg
I have developed a GWT application which connects to a MySQL database
and returns some value. My application runs fine on a Apache Tomcat
server on my computer (with Windows XP Professional). However, I have
problems running it when I port it to a web hosting service with a
Apache server on Linux OS and a MySQL database. I recreate my table in
the database in the web hosting site and make appropriate changes to
my GWT files (for accessing the database) and then, transport them. I
can see only the main HTML page and I think the java source code is
not running at all because I cannot see the output of the Java client-
side code.

What can be going wrong?
Can some one give me the exact steps of porting a GWT application
accessing a MySQL database to a web hosting service?

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



Re: MySQL server in development mode

2011-03-17 Thread Erel Segal
It doesn't work at Tomcat either, but I don't know if the problems are
related. This is what I did regarding Tomcat:

* I put the file "mysql-connector-java-5.1.15-bin.jar" in Tomcat's
lib/ folder;

* I edited the file conf/context.xml to declare a resource:

WEB-INF/web.xml



* I edited my application's web.xml file to declare a resource:


  
chatroom
gwtchat.server.ChatRoomServiceImpl
  
  
chatroom
/gwtchat/chatroom
  
  
chatroom
/wizardofoz/chatroom
  
  
  DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container
  


* I restarted Tomcat.

Now, in the Tomcat log file, I get the following exception:
"No suitable driver found for jdbc:mysql://localhost:3306/gwtchat?..."



On 15 מרץ, 13:16, Juan Pablo Gardella 
wrote:
> It seems that your classpath is good. When you said:
>
> "But then I restarted the server (from the eclipse "development pane"),
> and I started getting errors saying that the server cannot find a
> driver for jdbc:mysql connection!"
>
> You want to "deploy" the app in a servlet container?. Try make a war and put
> in it and test. Tell me if the error persist
>
> Juan
>
> 2011/3/15 Erel Segal 
>
> > Here it is:
>
> > 
> > 
> >        
> >        
> >         > path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
> >         > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> >        
> >        
> >        
> > 
>
> > On 9 מרץ, 18:49, Juan Pablo Gardella 
> > wrote:
> > > Is classpath error problem. Show the .classpath file
>
> > > Juan
>
> > > 2011/3/9 Erel Segal 
>
> > > > I added a mysql server to the default GWT application. I put the mysql
> > > > connector jar in the lib folder under WEBINF, and also added it to the
> > > > build path. I ran the web application in development mode and it
> > > > worked fine.
>
> > > > But then I restarted the server (from the eclipse "development pane"),
> > > > and I started getting errors saying that the server cannot find a
> > > > driver for jdbc:mysql connection!
>
> > > > Can you please help me?
>
> > > > --
> > > > 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+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-toolkit@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-toolkit@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.