Re: GWT 1.6 works on 64 bits?

2009-03-03 Thread Arend van der Veen

Hi,

I currently am running 1.5.3 on 32-bit on Ubuntu but need to upgrade
to 64-bit Ubuntu.  When I install java Ubintu now installs a 64-bit
version.  I have found that I can compile to JS in 64-bit but am not
able to run hosted.  I have read that I should install a 32-bit
version of java but have not had any success.

Has anybody tried using hosted mode with version GWT 1.6 with 64-bit
java?

Thanks,
Arend

On Feb 15, 11:44 am, Tóth Imre  wrote:
> As far as i know gwt, and js is bit independent:) If you have a browser on a
> 64 bit machine that supports a js engine and gwt supports that:)
> it will work, so bravely i can say that the current gwt support it aswell.
>
> 2009/2/15 anderson...@gmail.com 
>
>
>
> > Hi.
>
> > We all want to know, GWT 1.6 works on 64 bits?
>
> > Thank you.
>
> > Best Regards;
>
> --
> Best Regards
> Tóth Imre
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Google Map Info Window

2009-02-20 Thread Arend van der Veen

Hi,

I am using the gwt google map api.  Previously, I had a hypertext link
on a InfoWindow in Google Maps.  This link loaded a new page.  I am
now trying to implement the same functionality in GWT.  I can still
add a hypertext link in the InfoWindowContent but I can not figure out
how to have it throw an event in my application.

Is it possible to add a hypertext link (or button) on a InfoWindow
that triggers an event in GWT?


Thanks,
Arend
--~--~-~--~~~---~--~~
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: Script error in IE 7 in web mode

2009-02-05 Thread Arend van der Veen
Hi Danny,

I had a similar problem when I was parsing an XML document.  In my case, I
was a little careless about trapping errors and casting classes.  As it
turned out Safari and Firefox ignored the errors while IE generated an
error.  I was able to identify the offending lines of code and rewrote them
and made sure that I caught all the errors.

Hope this helps,
Arend



On Thu, Feb 5, 2009 at 4:57 AM, Danny Goovaerts
wrote:

>
> I have a GWT application that runs OK in hosted mode. When I compile
> it, it gives a script error on Internet Explorer 7. The compile
> version runs correctly in Firfox, Chrome and Safari.
> I've turned on script debugging in IE7 and it gives me the following
> message (translated from Dutch)
> --
> Line : 2
> Character : 23530
> Error : Exception activated but not handled
> Code: 0
> -
>
> Can anyone point me to some documentation how I can further
> investigate what's wrong. The application is quite big, so it's not so
> easy to isolate the piece of code where it goes wrong.
>
> Thanks,
>
> Danny
> >
>

--~--~-~--~~~---~--~~
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: IE 7.0 Issue with ScrollPanel

2009-02-05 Thread Arend van der Veen
Hi All,

I finally found a solution to this and it appears to work everywhere.  The
problem was definitely assocated with the ScrollPanel.  Instead of directly
add the scroll panel to my dock panel, I made a composite widget that
contained a tree on a scroll panel on a vertical panel.  I call initWidget
only on the vertical panel.  When I do the resizing, I adjust the size of
the scroll panel.  This works on all my target browsers.

Thanks,
Arend

On Thu, Feb 5, 2009 at 1:52 AM, Arend van der Veen <
arend.vanderv...@gmail.com> wrote:

> Hi All,
>
> I have a small application that works great in FireFox and Safari but every
> time I try to load it into IE 7.0 it completely fails.  I get an unspecified
> error.  The following is JavaScript code contains the error:
>
> function $onWindowResized(this$static, width, height){
>   var shortcutHeight;
>   shortcutHeight = height -
> (this$static.scrollPanel.element.getBoundingClientRect().top + ($clinit_51()
> , documentRoot).scrollTop) - 8;
>   if (shortcutHeight < 1) {
> shortcutHeight = 1;
>   }
>   this$static.scrollPanel.element.style['height'] = shortcutHeight + 'px';
>   $adjustSize(this$static.objectDetail, width, height);
> }
>
> It fails when shortcutHeight is set.  I can associate this with the
> following lines of GWT java code:
>
> public void onWindowResized(int width, int height) {
> int shortcutHeight = height - scrollPanel.getAbsoluteTop() - 8;
> if (shortcutHeight < 1) {
> shortcutHeight = 1;
> }
> scrollPanel.setHeight(shortcutHeight + "px");
> objectDetail.adjustSize(width, height);
> }
>
> The line
>
> int shortcutHeight = height - scrollPanel.getAbsoluteTop() - 8;
>
> appears to be the problem.  The variable scrollPanel is of type
> ScrollPanel.  It contains a Tree.  If I remove the scroll panel and just
> display and resize the tree it works but I now longer have scrolling and the
> tree falls off the screen.  I read somewhere that you should be careful when
> you attempt to resize widgets and that sometimes it works and other times it
> does not depending on how the widget is rendered.  Is this the source of the
> problem?
>
> My real goal is to layout an application like the a mail application (from
> the GWT Tutorial) with the left hand side containing a scrolling tree
> control.  To support this I create a ScrollPanel and add my tree.  I then
> set the height when the window is resized.  This creates the desired effect
> on all platforms except IE.  Any suggestions on how I can support this?
>
> Thanks,
> Arend
>
>
>

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



IE 7.0 Issue with ScrollPanel

2009-02-04 Thread Arend van der Veen
Hi All,

I have a small application that works great in FireFox and Safari but every
time I try to load it into IE 7.0 it completely fails.  I get an unspecified
error.  The following is JavaScript code contains the error:

function $onWindowResized(this$static, width, height){
  var shortcutHeight;
  shortcutHeight = height -
(this$static.scrollPanel.element.getBoundingClientRect().top + ($clinit_51()
, documentRoot).scrollTop) - 8;
  if (shortcutHeight < 1) {
shortcutHeight = 1;
  }
  this$static.scrollPanel.element.style['height'] = shortcutHeight + 'px';
  $adjustSize(this$static.objectDetail, width, height);
}

It fails when shortcutHeight is set.  I can associate this with the
following lines of GWT java code:

public void onWindowResized(int width, int height) {
int shortcutHeight = height - scrollPanel.getAbsoluteTop() - 8;
if (shortcutHeight < 1) {
shortcutHeight = 1;
}
scrollPanel.setHeight(shortcutHeight + "px");
objectDetail.adjustSize(width, height);
}

The line

int shortcutHeight = height - scrollPanel.getAbsoluteTop() - 8;

appears to be the problem.  The variable scrollPanel is of type
ScrollPanel.  It contains a Tree.  If I remove the scroll panel and just
display and resize the tree it works but I now longer have scrolling and the
tree falls off the screen.  I read somewhere that you should be careful when
you attempt to resize widgets and that sometimes it works and other times it
does not depending on how the widget is rendered.  Is this the source of the
problem?

My real goal is to layout an application like the a mail application (from
the GWT Tutorial) with the left hand side containing a scrolling tree
control.  To support this I create a ScrollPanel and add my tree.  I then
set the height when the window is resized.  This creates the desired effect
on all platforms except IE.  Any suggestions on how I can support this?

Thanks,
Arend

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



escape html

2009-02-03 Thread Arend van der Veen
Hi All,

I have a very simple question.  I have been sifting through the API looking
for a way to escape a string so that it is HTML safe?

new HTML(""+escapeFunction(variable)+"")

Am I missing something or is escapeFunction something that I need to support
myself.

Thanks,
Arend

--~--~-~--~~~---~--~~
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: whitelist

2009-01-28 Thread Arend van der Veen
Hi Daniel,

Thanks for the reply.  I know about the limitations of the same origin
policy.  I didn't realize that the GWT Shell was behaving like a real
browser.  I thought that whitelist would allow me to override it for the
Shell.

Thanks,
Arend

On Wed, Jan 28, 2009 at 2:34 AM, Daniel Kurka
wrote:

> Hello Arend,
> you should read up on the same orign policy:
> The browser is not allowed to perform an ajax request to any other server
> than the webpage was loaded from (same host AND same port). I noticed that
> IE somtimes lets you do this request (even though it shouldnt).
>
> So if you want to contact your webservice with an ajax request you have to
> first contact the server with an rpc call and he can call the webservice and
> return the result to the browser
>
> Daniel
>
> 2009/1/27 Arend van der Veen 
>
>
>> HI All,
>>
>> I am developing a GWT application with requires access to a restful
>> service (not java based).  I can compile the program and post it on a
>> web server with the web service and everything works great.  However,
>> I am having trouble getting it to work properly in hosted mode.  I
>> previously tried the noserver option but had problem with missing
>> images,etc. and was hoping to see if I could use whitelist to resolve
>> the problem.
>>
>> The restful service is listening on a different port (8000).My
>> shell script is setup to execute as follows:
>>
>> java  -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:
>> $GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -whitelist
>> "^http[:][/][/]127[.]0[.]0[.]1[:]8000" -out "$APPDIR/www" "$@" a.B/
>> B.html;
>>
>> Tomcat Lite is running on the default address of http://localhost:.
>> I can access http://127.0.0.1:8000/restlet/profile if I type it
>> directory into the location in hosted mode.
>>
>> As part of my application I attempt to access this service using:
>>
>> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"http://
>> 127.0.0.1:8000/restlet/profile");
>> try {
>>builder.sendRequest(null, new RequestCallback() {
>>...
>>...
>>
>> This call will generate an error:  The URL
>> http://127.0.0.1:8000/restlet/profile
>> is invalid or violates the same-origin security restriction.I
>> thought that setting whitelist would allow me to access this URL from
>> my application without getting the error.  Am I missing someting?  I
>> have seen previous posts about this but have not found a solution.
>>
>> Thanks for any help,
>> Arend
>>
>>
>>
>>
>
> >
>

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



whitelist

2009-01-27 Thread Arend van der Veen

HI All,

I am developing a GWT application with requires access to a restful
service (not java based).  I can compile the program and post it on a
web server with the web service and everything works great.  However,
I am having trouble getting it to work properly in hosted mode.  I
previously tried the noserver option but had problem with missing
images,etc. and was hoping to see if I could use whitelist to resolve
the problem.

The restful service is listening on a different port (8000).My
shell script is setup to execute as follows:

java  -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:
$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -whitelist
"^http[:][/][/]127[.]0[.]0[.]1[:]8000" -out "$APPDIR/www" "$@" a.B/
B.html;

Tomcat Lite is running on the default address of http://localhost:.
I can access http://127.0.0.1:8000/restlet/profile if I type it
directory into the location in hosted mode.

As part of my application I attempt to access this service using:

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"http://
127.0.0.1:8000/restlet/profile");
try {
builder.sendRequest(null, new RequestCallback() {
...
...

This call will generate an error:  The URL http://127.0.0.1:8000/restlet/profile
is invalid or violates the same-origin security restriction.I
thought that setting whitelist would allow me to access this URL from
my application without getting the error.  Am I missing someting?  I
have seen previous posts about this but have not found a solution.

Thanks for any help,
Arend


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



My own SSL server in Hosted Mode

2009-01-23 Thread Arend van der Veen

Hi All,

I have a number of restful web services (not Java based) that I need
to develop client-side functionality for using GWT.  To access these
restful web services I setup my own Apache server to use in hosted
mode.  I initially configured it using http and everything worked
create.  However, since all communication to these restful services
must be over https, I move everything to a port that uses https
instead of http.  When I now start hosted mode I get a nice java
error:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb7f6c540, pid=9891, tid=2944183184
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode,
sharing)
# Problematic frame:
# C  [libpthread.so.0+0x7540]  pthread_mutex_lock+0x20
#
# An error report file with more information is saved as
hs_err_pid9891.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

This occurs just after I acknowledge that I am am accessing a remote
site.  I did do a reality change and compile the application and move
it to secure port in Apache and it worked.

At this point I am planing to update my development environment to
only use http but deploy into production using https.  However, I
would like to develop using hosted mode with https.  Is this possible
or is this a limitation of GWTShell.

Thanks for your help,
Arend

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



Eclipse Version

2009-01-22 Thread Arend van der Veen
Hi All,
I have convinced myself that I really should use an IDE to support GWT
development.  At this point I think that Eclipse would be the best option.
 I am now wondering what version of Eclipse I should use.   I
am running Xubuntu 8.04 LTS Desktop and it comes with Eclipse SDK 3.2.2.  I
think the latest version is 3.4.1.  Is there any advantage to trying to
install from source and upgrade to the latest release?  Also, are there any
Eclipse plugins that I should be using?

Thanks,
Arend

--~--~-~--~~~---~--~~
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: Stock Watcher Tutorial

2009-01-22 Thread Arend van der Veen
Hi Isaac,
I ran the tutorial again using Eclipse and everything went fine.

Thanks for your help,
Arend

On Wed, Jan 21, 2009 at 4:52 PM, Isaac Truett  wrote:

>
> > I am not using Eclipse.
>
> Eclipse, like any good IDE, compiles for you automatically in the
> background. I haven't taken the tutorial in question, but if it
> assumes you are using Eclipse then that would explain why it doesn't
> explicitly tell you to compile your servlet.
>
>
>
> On Wed, Jan 21, 2009 at 4:16 PM, Arend van der Veen
>  wrote:
> >
> > Hi,
> >
> > I have found a work around but still do not understand why I had to do
> > this.  What I did was the following:
> >
> > 1.  I created a directory called bin
> >
> > 2.  I then compiled my server code using the following:
> >
> > ~/srs-2/src$ javac -cp $GWT_HOME/gwt-user.jar -d ../bin com/google/gwt/
> > sample/stockwatcher/client/StockPrice.java com/google/gwt/sample/
> > stockwatcher/client/StockPriceService.java com/google/gwt/sample/
> > stockwatcher/server/*.java
> >
> > 3.  Stared shell
> >
> > Now the application works.  So my final question is why did I have to
> > do this manually?  From what I have read it appears that this is what
> > other users are doing but that does not match what the Stock Watcher
> > Tutorial indicated.
> >
> > Thanks,
> > Arend
> >
> >
> > On Jan 21, 3:39 pm, Arend van der Veen 
> > wrote:
> >> HI All,
> >>
> >> I am sure this is a very simple question but it has me stumped.   I am
> >> using GWT 1.5.3 on Ubuntu 8.04 LTS and Java 1.5.0_15.  I am not using
> >> Eclipse.
> >>
> >> I have been building he Stock Watcher demo and have everything working
> >> great up to but not including "Use Remote Procedure Calls".  After I
> >> added the remote procedure example, the Stock Watcher Demo started to
> >> fail.  It generated the following error message:
> >>
> >> [ERROR] Unable to instantiate
> >> 'com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl'
> >> java.lang.ClassNotFoundException:
> >> com.utrs.srs.server.StockPriceServiceImpl
> >> 
> >> 
> >>
> >> I looked around my development environment for a copy of this class
> >> and could only find the java source version of it.  It was never
> >> compiled.  I am currently researching how to compile this.  However, I
> >> am also concerned that there is something wrong with my development
> >> environment because the tutorial indicated that all I needed to do to
> >> test this was to restart hosted mode.  I would have expected it to get
> >> compiled automatically.  What piece in the puzzle am I missing?
> >>
> >> Thanks,
> >> Arend
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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: Stock Watcher Tutorial

2009-01-21 Thread Arend van der Veen

Hi,

I have found a work around but still do not understand why I had to do
this.  What I did was the following:

1.  I created a directory called bin

2.  I then compiled my server code using the following:

~/srs-2/src$ javac -cp $GWT_HOME/gwt-user.jar -d ../bin com/google/gwt/
sample/stockwatcher/client/StockPrice.java com/google/gwt/sample/
stockwatcher/client/StockPriceService.java com/google/gwt/sample/
stockwatcher/server/*.java

3.  Stared shell

Now the application works.  So my final question is why did I have to
do this manually?  From what I have read it appears that this is what
other users are doing but that does not match what the Stock Watcher
Tutorial indicated.

Thanks,
Arend


On Jan 21, 3:39 pm, Arend van der Veen 
wrote:
> HI All,
>
> I am sure this is a very simple question but it has me stumped.   I am
> using GWT 1.5.3 on Ubuntu 8.04 LTS and Java 1.5.0_15.  I am not using
> Eclipse.
>
> I have been building he Stock Watcher demo and have everything working
> great up to but not including "Use Remote Procedure Calls".  After I
> added the remote procedure example, the Stock Watcher Demo started to
> fail.  It generated the following error message:
>
> [ERROR] Unable to instantiate
> 'com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl'
> java.lang.ClassNotFoundException:
> com.utrs.srs.server.StockPriceServiceImpl
>     
>     
>
> I looked around my development environment for a copy of this class
> and could only find the java source version of it.  It was never
> compiled.  I am currently researching how to compile this.  However, I
> am also concerned that there is something wrong with my development
> environment because the tutorial indicated that all I needed to do to
> test this was to restart hosted mode.  I would have expected it to get
> compiled automatically.  What piece in the puzzle am I missing?
>
> Thanks,
> Arend
--~--~-~--~~~---~--~~
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 StockWatcher Tutorial

2009-01-21 Thread Arend van der Veen

Hi Sumit,

I figured it out and works.  Please ignore my previous post.

Regards,
Arend

On Jan 21, 3:45 pm, Arend van der Veen 
wrote:
> Hi Sumit,
>
> Could you elaborate for a newbee how you would compile the servlet and
> add it to the GWTShell process.  I am using GWT 1.5.3 on Linux with
> Java 1.5 (I am not using Eclipse yet).
>
> Thanks in advance.
> Arend
>
> On Jan 8, 8:45 pm, Sumit Chandel  wrote:
>
> > *GWTShell process, rather. Sorry for the confusion.
>
> > Cheers,
> > -Sumit Chandel
>
> > On Thu, Jan 8, 2009 at 5:45 PM, Sumit Chandel 
> > wrote:
>
> > > Hi Glenn,
>
> > > Did you make sure that you've compiled the servlet to a .class file and
> > > added it (or the bin directory) to your GWTShellServlet process?
>
> > > Hope that helps,
> > > -Sumit Chandel
>
> > > On Tue, Jan 6, 2009 at 6:31 AM, Glenn  wrote:
>
> > >> Hi All,
>
> > >> I am working through the GWT stock watcher tutorial. Everything is
> > >> great up until the Async RPC section. When I try to run I get the
> > >> following error:
>
> > >> [ERROR] Unable to instantiate
> > >> 'com.google.gwt.sample.stockwatcher.server.StockPriceServerImpl'
> > >> java.lang.ClassNotFoundException:
> > >> com.google.gwt.sample.stockwatcher.server.StockPriceServerImpl
> > >>        at java.net.URLClassLoader$1.run(Unknown Source)
> > >>        at java.security.AccessController.doPrivileged(Native Method)
> > >>        at java.net.URLClassLoader.findClass(Unknown Source)
> > >>        at java.lang.ClassLoader.loadClass(Unknown Source)
> > >>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > >>        at java.lang.ClassLoader.loadClass(Unknown Source)
> > >>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> > >>        at java.lang.Class.forName0(Native Method)
> > >>        at java.lang.Class.forName(Unknown Source)
> > >>        at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet
> > >> (GWTShellServlet.java:936)
> > >>        at com.google.gwt.dev.shell.GWTShellServlet.service
> > >> (GWTShellServlet.java:277)
> > >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > >>        at 
> > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > >> (ApplicationFilterChain.java:237)
> > >>        at org.apache.catalina.core.ApplicationFilterChain.doFilter
> > >> (ApplicationFilterChain.java:157)
> > >>        at org.apache.catalina.core.StandardWrapperValve.invoke
> > >> (StandardWrapperValve.java:214)
> > >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> > >> (StandardValveContext.java:104)
> > >>        at org.apache.catalina.core.StandardPipeline.invoke
> > >> (StandardPipeline.java:520)
> > >>        at org.apache.catalina.core.StandardContextValve.invokeInternal
> > >> (StandardContextValve.java:198)
> > >>        at org.apache.catalina.core.StandardContextValve.invoke
> > >> (StandardContextValve.java:152)
> > >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> > >> (StandardValveContext.java:104)
> > >>        at org.apache.catalina.core.StandardPipeline.invoke
> > >> (StandardPipeline.java:520)
> > >>        at org.apache.catalina.core.StandardHostValve.invoke
> > >> (StandardHostValve.java:137)
> > >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> > >> (StandardValveContext.java:104)
> > >>        at org.apache.catalina.valves.ErrorReportValve.invoke
> > >> (ErrorReportValve.java:118)
> > >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> > >> (StandardValveContext.java:102)
> > >>        at org.apache.catalina.core.StandardPipeline.invoke
> > >> (StandardPipeline.java:520)
> > >>        at org.apache.catalina.core.StandardEngineValve.invoke
> > >> (StandardEngineValve.java:109)
> > >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> > >> (StandardValveContext.java:104)
> > >>        at org.apache.catalina.core.StandardPipeline.invoke
> > >> (StandardPipeline.java:520)
> > >>        at
> > >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> > >> 929)
> > >>

Re: GWT StockWatcher Tutorial

2009-01-21 Thread Arend van der Veen

Hi Sumit,

Could you elaborate for a newbee how you would compile the servlet and
add it to the GWTShell process.  I am using GWT 1.5.3 on Linux with
Java 1.5 (I am not using Eclipse yet).

Thanks in advance.
Arend




On Jan 8, 8:45 pm, Sumit Chandel  wrote:
> *GWTShell process, rather. Sorry for the confusion.
>
> Cheers,
> -Sumit Chandel
>
> On Thu, Jan 8, 2009 at 5:45 PM, Sumit Chandel wrote:
>
> > Hi Glenn,
>
> > Did you make sure that you've compiled the servlet to a .class file and
> > added it (or the bin directory) to your GWTShellServlet process?
>
> > Hope that helps,
> > -Sumit Chandel
>
> > On Tue, Jan 6, 2009 at 6:31 AM, Glenn  wrote:
>
> >> Hi All,
>
> >> I am working through the GWT stock watcher tutorial. Everything is
> >> great up until the Async RPC section. When I try to run I get the
> >> following error:
>
> >> [ERROR] Unable to instantiate
> >> 'com.google.gwt.sample.stockwatcher.server.StockPriceServerImpl'
> >> java.lang.ClassNotFoundException:
> >> com.google.gwt.sample.stockwatcher.server.StockPriceServerImpl
> >>        at java.net.URLClassLoader$1.run(Unknown Source)
> >>        at java.security.AccessController.doPrivileged(Native Method)
> >>        at java.net.URLClassLoader.findClass(Unknown Source)
> >>        at java.lang.ClassLoader.loadClass(Unknown Source)
> >>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >>        at java.lang.ClassLoader.loadClass(Unknown Source)
> >>        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >>        at java.lang.Class.forName0(Native Method)
> >>        at java.lang.Class.forName(Unknown Source)
> >>        at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet
> >> (GWTShellServlet.java:936)
> >>        at com.google.gwt.dev.shell.GWTShellServlet.service
> >> (GWTShellServlet.java:277)
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >> (ApplicationFilterChain.java:237)
> >>        at org.apache.catalina.core.ApplicationFilterChain.doFilter
> >> (ApplicationFilterChain.java:157)
> >>        at org.apache.catalina.core.StandardWrapperValve.invoke
> >> (StandardWrapperValve.java:214)
> >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> >> (StandardValveContext.java:104)
> >>        at org.apache.catalina.core.StandardPipeline.invoke
> >> (StandardPipeline.java:520)
> >>        at org.apache.catalina.core.StandardContextValve.invokeInternal
> >> (StandardContextValve.java:198)
> >>        at org.apache.catalina.core.StandardContextValve.invoke
> >> (StandardContextValve.java:152)
> >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> >> (StandardValveContext.java:104)
> >>        at org.apache.catalina.core.StandardPipeline.invoke
> >> (StandardPipeline.java:520)
> >>        at org.apache.catalina.core.StandardHostValve.invoke
> >> (StandardHostValve.java:137)
> >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> >> (StandardValveContext.java:104)
> >>        at org.apache.catalina.valves.ErrorReportValve.invoke
> >> (ErrorReportValve.java:118)
> >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> >> (StandardValveContext.java:102)
> >>        at org.apache.catalina.core.StandardPipeline.invoke
> >> (StandardPipeline.java:520)
> >>        at org.apache.catalina.core.StandardEngineValve.invoke
> >> (StandardEngineValve.java:109)
> >>        at org.apache.catalina.core.StandardValveContext.invokeNext
> >> (StandardValveContext.java:104)
> >>        at org.apache.catalina.core.StandardPipeline.invoke
> >> (StandardPipeline.java:520)
> >>        at
> >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> >> 929)
> >>        at
> >> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> >> 160)
> >>        at org.apache.coyote.http11.Http11Processor.process
> >> (Http11Processor.java:799)
> >>        at org.apache.coyote.http11.Http11Protocol
> >> $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >>        at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> >> (PoolTcpEndpoint.java:577)
> >>        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> >> (ThreadPool.java:683)
> >>        at java.lang.Thread.run(Unknown Source)
>
> >> I have seen a post of this but no solution, I am using eclipse.
>
> >> Thanks
>
> >>  Glenn
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Stock Watcher Tutorial

2009-01-21 Thread Arend van der Veen

HI All,

I am sure this is a very simple question but it has me stumped.   I am
using GWT 1.5.3 on Ubuntu 8.04 LTS and Java 1.5.0_15.  I am not using
Eclipse.

I have been building he Stock Watcher demo and have everything working
great up to but not including "Use Remote Procedure Calls".  After I
added the remote procedure example, the Stock Watcher Demo started to
fail.  It generated the following error message:

[ERROR] Unable to instantiate
'com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl'
java.lang.ClassNotFoundException:
com.utrs.srs.server.StockPriceServiceImpl



I looked around my development environment for a copy of this class
and could only find the java source version of it.  It was never
compiled.  I am currently researching how to compile this.  However, I
am also concerned that there is something wrong with my development
environment because the tutorial indicated that all I needed to do to
test this was to restart hosted mode.  I would have expected it to get
compiled automatically.  What piece in the puzzle am I missing?

Thanks,
Arend
--~--~-~--~~~---~--~~
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 with Linux Ubuntu 8.10

2009-01-20 Thread Arend van der Veen

Hi,

I am running GWT 1.5.3 with Java 5 on Ubuntu 8.04 LTS and I am not
experiencing your problem.  When I initially create the project using
applicationCreator  I get a folder and two scripts.

~/tmp/srs-2$ ls
src  srs-compile  srs-shell

I then execute srs-shell:

~/tmp/srs-2$ ./srs-shell
~/tmp/srs-2$ ls
src  srs-compile  srs-shell  tomcat

The tomcat directory is created.  Then I compile using

~/tmp/srs-2$ ./srs-compile
~/tmp/srs-2$ ls
src  srs-compile  srs-shell  tomcat www

Regards,
Arend

On Jan 20, 4:10 am, Muhannad  wrote:
> Through GWT projectCreator
>
> On Jan 20, 10:56 am, "Litty Preeth"  wrote:
>
> > How are you creating the project? Through cypal studio or GWT projectCreator
>
> > On Tue, Jan 20, 2009 at 2:22 PM, Muhannad  wrote:
>
> > > Hi Litty,
>
> > > But as I told you before the folder named "tomcat" is not exist (I
> > > don't know why).
> > > When I built the same application on Windows, that folder "tomcat" is
> > > automatically created!
>
> > > Thanks!
>
> > > On Jan 20, 10:42 am, "Litty Preeth"  wrote:
> > > > Hi Muhannad,
>
> > > > You can keep the context parameters in your web.xml itself.
>
> > > > - Litty Preeth
>
> > > > On Tue, Jan 20, 2009 at 1:53 PM, Muhannad 
> > > wrote:
>
> > > > > Hello!
> > > > > Any body's here??!
>
> > > > > On Jan 19, 10:58 am, Muhannad  wrote:
> > > > > > Hi,
>
> > > > > > I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm
> > > > > > facing some problems:
> > > > > > 1. My application try to connect to MySQL database using "mysql-
> > > > > > connector-java-5.1.6". I don't want to hard-code the connection
> > > string
> > > > > > so where should I put the context parameters (url, driver,
> > > > > > username...).
>
> > > > > > Note:
> > > > > > the folder named "tomcat" is not created automatically as did on
> > > > > > Windows XP??!
>
> > > > > > 2. In hosted mode I get a blank white page when I click the "run"
> > > > > > button?
>
> > > > > > Please help. Thanks very much.

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