Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Chak Lai
If IE7support is removed from GWT, will GWT run correctly on IE in 
Intranet? (IE will default to IE7 Browser mode for Intranet Website)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: undefined.cache.js when starting GWT app in web mode?

2013-10-28 Thread Ed
I am debugging the bootstrap js script to find out what is going wrong and 
I am a bit confused, please some help?

It seems that the bootstrap script throws an exception that is silently 
ignored, such that the strongName variable is undefined, such that it tries 
to load undefined.cache.js..
BTW: I noticed this issue: 
8135https://code.google.com/p/google-web-toolkit/issues/detail?id=8135, 
that also had problems solving a bootstrap issue as the same exception is 
silently ignored. Please improve this exception handling.
Anyway: I have defined a property called browser.engine (with the help of 
@Thomas) as specified below (in it's own gwt xml file). Because it's a 
derived property, I haven't specified a property provider. However, as far 
as I understand, an exception occurs as in the bootstrap script as it can't 
find a property provider.
In the boostrap script that is included in the index.html file the 
following line determines the strong name (that fails):

  strongName = 
answers[computePropValue($intern_47)][computePropValue($intern_48)][computePropValue($intern_59)];

It fails on the first call, namely: computePropValue($intern_47)
With $intern_47 containing browser.engine.
Below the method being called. This line results a value null, such that an 
exception is thrown:
   var value = providers[propName](), allowedValuesMap = values[propName];
Because browser.egine is a derived property, it contains no provider, but 
as such an exception is thrown.
What is going wrong here ? please some help?


function computePropValue(propName){
*  var value = providers[propName](), allowedValuesMap = 
values[propName];*
  if (value in allowedValuesMap) {
return value;
  }
  var allowedValuesList = [];
  for (var k in allowedValuesMap) {
allowedValuesList[allowedValuesMap[k]] = k;
  }
  if (__propertyErrorFunc) {
__propertyErrorFunc(propName, allowedValuesList, value);
  }
  throw null;
}

-

The Property in it's own BrowserEngine.gwt.xml file:

module
define-property name=browser.engine values=gecko,webkit,presto,trident 
/

set-property name=browser.engine value=gecko
when-property-is name=user.agent value=gecko1_8 /
/set-property
 set-property name=browser.engine value=webkit
when-property-is name=user.agent value=safari /
/set-property
 set-property name=browser.engine value=presto
when-property-is name=user.agent value=opera /
/set-property
 set-property name=browser.engine value=trident
any
when-property-is name=user.agent value=ie6 /
when-property-is name=user.agent value=ie8 /
!-- ie9 and ie10 will fallback to ie8 --
/any
/set-property
/module

-

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: undefined.cache.js when starting GWT app in web mode?

2013-10-28 Thread Ed
I didn't think it would help, but I just added a default browser.engine 
property to the BrowserEngine.gwt.xml file, just below the 
define-property...:
set-property name=browser.engine value=webkit / !-- provide a 
default as last resort --

Strange enough this does help, as it does starts now.
The code to determine the strong name has changed to:
 strongName = 
answers[computePropValue($intern_47)][computePropValue($intern_58)];

As you can see the browser.engine property has been removed as argument. 
Before it was:
 strongName = answers[computePropValue($intern_47)][computePropValue($
intern_48)][computePropValue($intern_59)];

Why this difference?
btw: it seems to work in both chrome/FF.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How conditional Css for all IE browsers?

2013-10-28 Thread Ed
@Thomas: apparently I had to include a default value for browser.engine 
property, else it doesn't work, the app wont' start, as explained in this 
forum post: 
https://groups.google.com/forum/#!topic/google-web-toolkit/LPqQb4P9xI4

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT - How add files from other project?

2013-10-28 Thread Daniel De Leon
did you include your new module into your project?
:
inherits name='com.domain.sample.Dto'/

On Sunday, October 27, 2013 4:39:02 PM UTC-7, giuseppe...@ab4cus.com wrote:

 I have a GWT project. Client code is located in the client dir. I want 
 to add external java classes (mainly DTO classes) that are in external 
 directory (project). How I need to configure the gwt.xml file?

 I get errors of this kind:

 [ERROR] Errors in 
 'file:/C:/Myprojects/ProjectName/ProjectModule/src/com/domain/sample/client/MyWeb.java'
  
 [ERROR] Line XX: No source code is available for type 
 com.domain.sample.dto.MyClass; did you forget to inherit a required module?

 I'm working with Eclipse and my workspace structure is:

 MyDTO - Java Project

 MyDAO

 MyModel

 MyBF

 MyWebUI - GWT Project

 I need that *MyWebUI *take files from *MyClass* located at the *package 
 **com.domain.sample.dto 
 *wich is part of *MyDTO project* and compiles it as a client code. The 
 idea is to reuse the code of MyDTO in other GWT's. Is this possible at all? 
 From what I see GWT allows only that the code MUST BE under client 
 directory (package) within the GWT project.


 Already tried to define MyDTO as a module, adding the Dto.gwt.xml to 
 com.domain.sample, 
 pointing to com.domain.sample.dto.

 Contents of Dto.gwt.xml:

 ?xml version=1.0 encoding=UTF-8?

 !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.5.1//EN 
 
 http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd
 

 module

   inherits name='com.google.gwt.user.User' /

   source path='dto'/

 /module

 But still get the same error... Any ideas?

 Thanks for helping me :D


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Thomas Broyer


On Monday, October 28, 2013 4:22:29 PM UTC+1, Chak Lai wrote:

 If IE7support is removed from GWT, will GWT run correctly on IE in 
 Intranet? (IE will default to IE7 Browser mode for Intranet Website)


Include the correct meta http-equiv=X-UA-Compat in the HTML?

A Google search led me to 
http://tesmond.blogspot.fr/2011/10/ie9-intranet-compatibility-mode-in.html 
(which 
also links to 
http://blogs.msdn.com/b/ie/archive/2009/06/17/compatibility-view-and-smart-defaults.aspx
)

Otherwise, well, just don't upgrade to a newer GWT: if you live in the 
past, don't use cutting-edge tools. (this is not a criticism)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: undefined.cache.js when starting GWT app in web mode?

2013-10-28 Thread Colin Alworth
If you compile in PRETTY instead of DETAILED, it won't intern those 
strings, but still will leave the output mostly readable (just no packages).

Without seeing the rest of the structure of the module files, it is hard to 
speculate, but we're using more or less the same idea successfully, though 
we're doing it backward. Inside of GXT we defined a broader set of user 
agents, and then distill down to just the 6 (as of gwt 2.4, 2.5) 
permutations that GWT itself supports. This takes over GWT's own 
property-provider and uses ours instead. The chief difference is that 
user.agent already has a property-provider, but we're trying to instruct it 
which property to use instead.

In lieu of your full module/setup, here's a quick sample I threw together 
that seems to do more or less what you are requiring, and seems to fail in 
the same way:

module rename-to=test
  inherits name=com.google.gwt.core.Core /

  define-property name=foo value=a, b, c /

  define-property name=bar value=x, y /

  set-property name=bar value=x
any
  when-property-is name=foo value=a /
  when-property-is name=foo value=b /
/any
  /set-property
  set-property name=bar value=y
when-property-is name=foo value=c /
  /set-property

  property-provider name=foo![CDATA[return 
window.location.query;]]/property-provider

  entry-point class=path.to.client.Test /
/module

public class Test implements EntryPoint {
  @Override
  public native void onModuleLoad() /*-{
console  console.log  console.log('loaded successfully');
  }-*/;
}

The foo provider is compiled out as expected:
  providers['foo'] = function(){
return window.location.search[1];
  }

but bar gets a default handler, one that clearly doesn't make sense here:
  providers['bar'] = function(){
return __gwt_getMetaProperty('bar');
  }

By adding set-property name=bar value=x /, the code works, but it 
doesn't correctly select a y value when it should (the permutation selector 
code is just gone).

Through any case where bar is present in the selector, I continue to see 
this block:
  unflattenKeylistIntoAnswers(['x', 'a', 'gecko1_8'], 
'20D7C847BEB9A7D69CDF024B3FA7AE54');
  unflattenKeylistIntoAnswers(['x', 'b', 'gecko1_8'], 
'20D7C847BEB9A7D69CDF024B3FA7AE54');
  unflattenKeylistIntoAnswers(['y', 'c', 'gecko1_8'], 
'20D7C847BEB9A7D69CDF024B3FA7AE54');
  unflattenKeylistIntoAnswers(['x', 'a', 'ie9'], 
'2F5083A323F0E99E2BC83F08F6D97D35');
  unflattenKeylistIntoAnswers(['x', 'b', 'ie9'], 
'2F5083A323F0E99E2BC83F08F6D97D35');
  unflattenKeylistIntoAnswers(['y', 'c', 'ie9'], 
'2F5083A323F0E99E2BC83F08F6D97D35');
 //etc
demonstrating that the 'collapsing' work is being done - there is never a 
x-y, nor a y-a/y-b line. From this, I'm suspecting that the design of this 
feature is to minimize permutations, not remove selector scripts altogether 
- from 
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties, 

This alternateFeatures property is called *derived* because its value can 
be determined solely from other deferred-binding properties. There is never 
a need to execute a property provider for a derived property. Moreover, 
derived properties do not expand the permutation matrix and have no 
deployment cost.

Misleading, not not actually inaccurate - there *isn't* a need to execute 
the property provider, but the current implementation seems to still do it 
anyway, and fails when it cannot be done. The only advantage we are getting 
out of conditional properties is the minimized set of permutations.

On Monday, October 28, 2013 11:23:02 AM UTC-5, Ed wrote:

 I didn't think it would help, but I just added a default browser.engine 
 property to the BrowserEngine.gwt.xml file, just below the 
 define-property...:
 set-property name=browser.engine value=webkit / !-- provide a 
 default as last resort --

 Strange enough this does help, as it does starts now.
 The code to determine the strong name has changed to:
  strongName = 
 answers[computePropValue($intern_47)][computePropValue($intern_58)];

 As you can see the browser.engine property has been removed as argument. 
 Before it was:
  strongName = answers[computePropValue($intern_47)][computePropValue($
 intern_48)][computePropValue($intern_59)];

 Why this difference?
 btw: it seems to work in both chrome/FF.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Colin Alworth
We've found experimentally that the meta tag has no effect on IE8 when in 
intranet mode. We've further found that it does seem to respect the http 
header, which could be set in a filter like this:

public class LatestIEFilter implements Filter {
  @Override
  public void doFilter(ServletRequest req, ServletResponse resp, 
FilterChain chain) throws IOException, ServletException {
((HttpServletResponse)resp).setHeader(X-UA-Compatible, IE=latest);
chain.doFilter(req, resp);
  }
  //...
}

rant
Since IE8-pretending-to-be-IE7 behaves like neither IE8 nor IE7 (at least 
not completely), I generally maintain that code trying to fit either one 
shouldn't be expected to work. IIRC, IE8-pretending-to-be-IE7 can't be 
distinguished from IE7, so the only way to make a library/application work 
in a so-called compatibility mode is to custom tailor it for that mode, and 
ignore the 'real' browser modes. 
/rant

On Monday, October 28, 2013 12:00:57 PM UTC-5, Thomas Broyer wrote:



 On Monday, October 28, 2013 4:22:29 PM UTC+1, Chak Lai wrote:

 If IE7support is removed from GWT, will GWT run correctly on IE in 
 Intranet? (IE will default to IE7 Browser mode for Intranet Website)


 Include the correct meta http-equiv=X-UA-Compat in the HTML?

 A Google search led me to 
 http://tesmond.blogspot.fr/2011/10/ie9-intranet-compatibility-mode-in.html 
 (which 
 also links to 
 http://blogs.msdn.com/b/ie/archive/2009/06/17/compatibility-view-and-smart-defaults.aspx
 )

 Otherwise, well, just don't upgrade to a newer GWT: if you live in the 
 past, don't use cutting-edge tools. (this is not a criticism)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: undefined.cache.js when starting GWT app in web mode?

2013-10-28 Thread Ed Bras
@Colin: thanks for isolated example that shows  the problem.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: undefined.cache.js when starting GWT app in web mode?

2013-10-28 Thread Colin Alworth
Looks like my sample may have been too simplistic - upon re-reading 
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties it 
looks like they do indeed suggest using a default as the 'correct' way to 
do things:

!-- Provide a default --
set-property name=alternateFeatures value=false /


I'll try to build a more complex test case that actually uses the 
properties defined, just in case the compiler is getting to clever for me.

On Monday, October 28, 2013 12:45:45 PM UTC-5, Colin Alworth wrote:

 If you compile in PRETTY instead of DETAILED, it won't intern those 
 strings, but still will leave the output mostly readable (just no packages).

 Without seeing the rest of the structure of the module files, it is hard 
 to speculate, but we're using more or less the same idea successfully, 
 though we're doing it backward. Inside of GXT we defined a broader set of 
 user agents, and then distill down to just the 6 (as of gwt 2.4, 2.5) 
 permutations that GWT itself supports. This takes over GWT's own 
 property-provider and uses ours instead. The chief difference is that 
 user.agent already has a property-provider, but we're trying to instruct it 
 which property to use instead.

 In lieu of your full module/setup, here's a quick sample I threw together 
 that seems to do more or less what you are requiring, and seems to fail in 
 the same way:

 module rename-to=test
   inherits name=com.google.gwt.core.Core /

   define-property name=foo value=a, b, c /

   define-property name=bar value=x, y /

   set-property name=bar value=x
 any
   when-property-is name=foo value=a /
   when-property-is name=foo value=b /
 /any
   /set-property
   set-property name=bar value=y
 when-property-is name=foo value=c /
   /set-property

   property-provider name=foo![CDATA[return 
 window.location.query;]]/property-provider

   entry-point class=path.to.client.Test /
 /module

 public class Test implements EntryPoint {
   @Override
   public native void onModuleLoad() /*-{
 console  console.log  console.log('loaded successfully');
   }-*/;
 }

 The foo provider is compiled out as expected:
   providers['foo'] = function(){
 return window.location.search[1];
   }

 but bar gets a default handler, one that clearly doesn't make sense here:
   providers['bar'] = function(){
 return __gwt_getMetaProperty('bar');
   }

 By adding set-property name=bar value=x /, the code works, but it 
 doesn't correctly select a y value when it should (the permutation selector 
 code is just gone).

 Through any case where bar is present in the selector, I continue to see 
 this block:
   unflattenKeylistIntoAnswers(['x', 'a', 'gecko1_8'], 
 '20D7C847BEB9A7D69CDF024B3FA7AE54');
   unflattenKeylistIntoAnswers(['x', 'b', 'gecko1_8'], 
 '20D7C847BEB9A7D69CDF024B3FA7AE54');
   unflattenKeylistIntoAnswers(['y', 'c', 'gecko1_8'], 
 '20D7C847BEB9A7D69CDF024B3FA7AE54');
   unflattenKeylistIntoAnswers(['x', 'a', 'ie9'], 
 '2F5083A323F0E99E2BC83F08F6D97D35');
   unflattenKeylistIntoAnswers(['x', 'b', 'ie9'], 
 '2F5083A323F0E99E2BC83F08F6D97D35');
   unflattenKeylistIntoAnswers(['y', 'c', 'ie9'], 
 '2F5083A323F0E99E2BC83F08F6D97D35');
  //etc
 demonstrating that the 'collapsing' work is being done - there is never a 
 x-y, nor a y-a/y-b line. From this, I'm suspecting that the design of this 
 feature is to minimize permutations, not remove selector scripts altogether 
 - from 
 http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties, 

 This alternateFeatures property is called *derived* because its value 
 can be determined solely from other deferred-binding properties. There is 
 never a need to execute a property provider for a derived property. 
 Moreover, derived properties do not expand the permutation matrix and have 
 no deployment cost.

 Misleading, not not actually inaccurate - there *isn't* a need to execute 
 the property provider, but the current implementation seems to still do it 
 anyway, and fails when it cannot be done. The only advantage we are getting 
 out of conditional properties is the minimized set of permutations.

 On Monday, October 28, 2013 11:23:02 AM UTC-5, Ed wrote:

 I didn't think it would help, but I just added a default browser.engine 
 property to the BrowserEngine.gwt.xml file, just below the 
 define-property...:
 set-property name=browser.engine value=webkit / !-- provide a 
 default as last resort --

 Strange enough this does help, as it does starts now.
 The code to determine the strong name has changed to:
  strongName = 
 answers[computePropValue($intern_47)][computePropValue($intern_58)];

 As you can see the browser.engine property has been removed as 
 argument. Before it was:
  strongName = answers[computePropValue($intern_47)][computePropValue($
 intern_48)][computePropValue($intern_59)];

 Why this difference?
 btw: it seems to work in both chrome/FF.



-- 
You received this message because you are subscribed to 

Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Chak Lai
In Intranet environment, that META tag can only change IE Document Mode 
(such as how IE layout the web page), but it cannot change IE Browser Mode 
(such as IE's JavaScript Engine). It is because the Browser Mode is loaded 
(Intranet is detected) before IE parse the HTML.

Even with the meta http-equiv=X-UA-Compatible 
content=IE=edge,chrome=1 tag, in the Intranet environment IE 9 can 
display HTML5 sites in appearance only, but using IE 7's JavaScript engine, 
which does not support HTML5 feature like canvas... etc.  


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error using IMAGE/IO in a Servlet

2013-10-28 Thread Sean
This is the full Error:
java.lang.ClassCastException: 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
at com.ll.io.GeoImageReader.readTif(GeoImageReader.java:54)
at com.ll.cidb.server.MapsServlet.doGet(MapsServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at 
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

On Monday, October 28, 2013 3:32:42 PM UTC-4, Sean wrote:

 I'm trying to read a .tiff on the back end of my server. I do:

 [...]
 FileImageInputStream fis = new FileImageInputStream(new File(p_tifName));
 Object o = ImageIO.getImageReadersByFormatName(
 tiff).next();
 TIFFImageReader reader = (TIFFImageReader)o;
 reader.setInput(fis);
 [...]

 If I run this code in the Servlet via a main() it works fine. But when 
 running in Dev Mode, I get the error:
 java.lang.ClassCastException: 
 com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to 
 com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

 I have the imageIO.jar on the class path. Everything seems happy, except 
 in Dev mode. Does anyone have any ideas? I'm at a loss at how to get around 
 an error saying a class can't be casted to itself. 

 -Sean


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Error using IMAGE/IO in a Servlet

2013-10-28 Thread Sean
I'm trying to read a .tiff on the back end of my server. I do:

[...]
FileImageInputStream fis = new FileImageInputStream(new File(p_tifName));
Object o = ImageIO.getImageReadersByFormatName(
tiff).next();
TIFFImageReader reader = (TIFFImageReader)o;
reader.setInput(fis);
[...]

If I run this code in the Servlet via a main() it works fine. But when 
running in Dev Mode, I get the error:
java.lang.ClassCastException: 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

I have the imageIO.jar on the class path. Everything seems happy, except in 
Dev mode. Does anyone have any ideas? I'm at a loss at how to get around an 
error saying a class can't be casted to itself. 

-Sean

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Jens


 In Intranet environment, that META tag can only change IE Document Mode 
 (such as how IE layout the web page), but it cannot change IE Browser Mode 
 (such as IE's JavaScript Engine). It is because the Browser Mode is loaded 
 (Intranet is detected) before IE parse the HTML.

 Even with the meta http-equiv=X-UA-Compatible 
 content=IE=edge,chrome=1 tag, in the Intranet environment IE 9 can 
 display HTML5 sites in appearance only, but using IE 7's JavaScript engine, 
 which does not support HTML5 feature like canvas... etc. 



I guess you have to uncheck the checkbox Display intranet sites in 
compatibility view in IE's compatibility view settings.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: BUG? GWT modules inherit: filepath vs classpath

2013-10-28 Thread Vassilis Virvilis

On 10/26/13 12:16, Thomas Broyer wrote:


Modules can specify which subpackages contain translatable /source/,
causing the named package and its subpackages to be added to the
/source
path/. Only files found on the source path are candidates to be
translated into JavaScript, making it possible to mix client-side

http://www.gwtproject.org/doc/latest/DevGuideCodingBasics.html#DevGuideClientSide

http://www.gwtproject.org/doc/latest/DevGuideCodingBasics.html#DevGuideClientSide

and server-side

http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideServerSide

http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideServerSide

code together in the same classpath without conflict.
---

so the behavior looks inconsistent with the documentation (bug?)


What do you find inconsistent? The doc talks about the named 
package and its subpackages and classpath, and that's the behavior 
you described too (which is expected, as Jens already said)

--



Thanks for clearing this out. It is good to know that it is intended 
behavior.


What do I find inconsistent?

The documentation says Only files found on the source path... and 
.gwt.xml I thought/hope relative filepath was specified and not classpath.


So I would propose the following change

-Only files found on the source path are candidates
+Only files found on the source classpath are candidates
...
+Note: If you are merging classes from multiple projects on the same 
package structure and you have one .gwt.xml specifying a classpath in 
one of the projects all classes in that classpath (from multiple 
projects) are candidates to be translated in javascript.


   Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Chak Lai


On Monday, October 28, 2013 3:49:19 PM UTC-4, Jens wrote:

 In Intranet environment, that META tag can only change IE Document Mode 
 (such as how IE layout the web page), but it cannot change IE Browser Mode 
 (such as IE's JavaScript Engine). It is because the Browser Mode is loaded 
 (Intranet is detected) before IE parse the HTML.

 Even with the meta http-equiv=X-UA-Compatible 
 content=IE=edge,chrome=1 tag, in the Intranet environment IE 9 can 
 display HTML5 sites in appearance only, but using IE 7's JavaScript engine, 
 which does not support HTML5 feature like canvas... etc. 



 I guess you have to uncheck the checkbox Display intranet sites in 
 compatibility view in IE's compatibility view settings.

 -- J.




My concern is even if the users are using IE9 or IE10, in Intranet the 
application can be broken because IE7 Browser Mode is being used, and the 
users or developers may not aware of what is going on.


P.S: In my opinion, it is great for GWT moving forward, and personally I 
hate dealing with IE. However, just heads-up for those who are stuck with 
Intranet + IE.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Colin Alworth
Chak, take a look again at my post - while the meta tag definitely does not 
work to tell IE8 to behave when in intranet mode, loading the exact same 
html content and sending the same ua-compat details over a HTTP header 
*does* solve this. 

On Monday, October 28, 2013 3:08:47 PM UTC-5, Chak Lai wrote:



 On Monday, October 28, 2013 3:49:19 PM UTC-4, Jens wrote:

 In Intranet environment, that META tag can only change IE Document Mode 
 (such as how IE layout the web page), but it cannot change IE Browser Mode 
 (such as IE's JavaScript Engine). It is because the Browser Mode is loaded 
 (Intranet is detected) before IE parse the HTML.

 Even with the meta http-equiv=X-UA-Compatible 
 content=IE=edge,chrome=1 tag, in the Intranet environment IE 9 can 
 display HTML5 sites in appearance only, but using IE 7's JavaScript engine, 
 which does not support HTML5 feature like canvas... etc. 



 I guess you have to uncheck the checkbox Display intranet sites in 
 compatibility view in IE's compatibility view settings.

 -- J.




 My concern is even if the users are using IE9 or IE10, in Intranet the 
 application can be broken because IE7 Browser Mode is being used, and the 
 users or developers may not aware of what is going on.


 P.S: In my opinion, it is great for GWT moving forward, and personally I 
 hate dealing with IE. However, just heads-up for those who are stuck with 
 Intranet + IE.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error using IMAGE/IO in a Servlet

2013-10-28 Thread Jens
This kind of ClassCastException typically occurs if you have a ClassLoader 
issue. If the same class is loaded by two different ClassLoader then Java 
treats these two classes as different and its likely that you get the above 
ClassCastException.

First I would make sure that you have the imageIO.jar only once in your 
class path and then you could check if you have a ClassLoader leak when you 
redeploy your application. 

A ClassLoader leak isn't that unlikely because the first call to ImageIO 
pins the current ClassLoader. If that's the WebAppClassLoader that is 
responsible for your app, the app server (jetty) can not garbage collect 
your deployed app once you redeploy it because some Java system classes 
will hold a reference to that WebAppClassLoader...well and this reference 
will never go away unless you restart the server. 
If you are in that situations then its likely that everything works the 
first time you start Jetty and it will start to fail once you have 
redeployed your app the first time. 

To fix this situation you could try using a ServletContextListener and in 
its contextInitialized() method you first change the class loader of the 
current thread to the system class loader. Then you make a dummy call to 
ImageIO and finally you set back the class loader to the original one.

In our app we have to do that for multiple classes because libraries (and 
Java) are sometimes written in a way thats not very compatible to 
application server class loading.

-- J.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error using IMAGE/IO in a Servlet

2013-10-28 Thread Thad Humphries
The problem sounds like the JreMemoryLeakPreventionListener. In 
$CATALINA_HOME/conf/server.xml add appContextProtection=false to that 
Listener:

Listener 
className=org.apache.catalina.core.JreMemoryLeakPreventionListener
appContextProtection=false /

You will be opening up Tomcat to a memory leak, which will require 
restarting Tomcat when you change your WAR file.

For more on this issue, see this Tomcat thread: http://bit.ly/1bwiKuM and 
the Tomcat list for more info. 

On Monday, October 28, 2013 3:32:42 PM UTC-4, Sean wrote:

 I'm trying to read a .tiff on the back end of my server. I do:

 [...]
 FileImageInputStream fis = new FileImageInputStream(new File(p_tifName));
 Object o = ImageIO.getImageReadersByFormatName(
 tiff).next();
 TIFFImageReader reader = (TIFFImageReader)o;
 reader.setInput(fis);
 [...]

 If I run this code in the Servlet via a main() it works fine. But when 
 running in Dev Mode, I get the error:
 java.lang.ClassCastException: 
 com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to 
 com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader

 I have the imageIO.jar on the class path. Everything seems happy, except 
 in Dev mode. Does anyone have any ideas? I'm at a loss at how to get around 
 an error saying a class can't be casted to itself. 

 -Sean


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT - How add files from other project?

2013-10-28 Thread giuseppe . malatino
Sorry I forgot to mention that... Yes already defined the inherit in the 
gwt.xml from my GWTProject.

More precisely the content of the *Web.gwt.xml* is:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.5.1//EN 
http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd;

module rename-to=Web
!-- Inherit the core Web Toolkit stuff.  --
inherits name='com.google.gwt.user.User'/
inherits name='com.google.gwt.user.User'/
inherits name='com.smartgwt.SmartGwt'/
inherits name=com.smartclient.SmartClientDefault/
inherits name=com.google.gwt.i18n.I18N/
inherits name=com.google.gwt.user.ClippedImage/
*inherits name=**com.domain.sample.Dto**/ *!-- The inherit module 
from MyDTO --

!-- Specify the app entry point class.   --
entry-point class='com.domain.sample.client.Web'/

!-- Specify the app servlets.   --
 some servlets...

source path='client'/
source path='shared'/

/module

All on *MyWebUI *project* *under the package *com.domain.sample*



On Monday, October 28, 2013 10:41:10 AM UTC-4:30, Daniel De Leon wrote:

 did you include your new module into your project?
 :
 inherits name='com.domain.sample.Dto'/



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT - Send a message from the server to the client?

2013-10-28 Thread Timothy Spear
Google gwteventservice.

Tim

On Oct 28, 2013, at 5:01 PM, Joshua Godi joshuag...@gmail.com wrote:

 Good afternoon,
 
 I was curious how I would properly send a message from the server to the 
 client? Here is my scenario:
 
 Client A - Modifies User1 from the GUI and pushes the data to the server
 Client B - Is looking at User1 and needs to be notified that there are 
 changes that have been made
 
 So the server needs to send a message to all clients that the user has 
 changed.
 
 What is the best way to solve this?
 
 Thanks,
 Joshua
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT - Send a message from the server to the client?

2013-10-28 Thread Stevko
There are several ways I've managed to do push messages to the client:

If you are using appengine, research the Channel api
https://developers.google.com/appengine/docs/java/channel/

If you have access to an MQ server (like ActiveMQ), consider using a 
JMS/STOMP/WebSocket protocol stack
http://blog.furiousbob.com/2011/03/20/receiving-jms-gwt/

as per Timothy, gwteventservice using the Comet method of pushing messages 
to the client.

I've refactored MVP applications designed to use GWT RPC, consolidated the 
Async callback code into a bona fide Model layer injected into the 
presenter layer, and then replaced the Model layer with an async protocol 
stack that communicates via jms/websocket to push updates to the 
presenter/client component.


On Monday, 28 October 2013 14:01:27 UTC-7, Joshua Godi wrote:

 Good afternoon,

 I was curious how I would properly send a message from the server to the 
 client? Here is my scenario:

 Client A - Modifies User1 from the GUI and pushes the data to the server
 Client B - Is looking at User1 and needs to be notified that there are 
 changes that have been made

 So the server needs to send a message to all clients that the user has 
 changed.

 What is the best way to solve this?

 Thanks,
 Joshua


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: BUG? GWT modules inherit: filepath vs classpath

2013-10-28 Thread Thomas Broyer
No, the source path is a subset of the classpath (defined by the source
elements in gwt.XML files). It's defined in terms of packages, not file
paths.
Le 28 oct. 2013 21:03, Vassilis Virvilis vasv...@gmail.com a écrit :

 On 10/26/13 12:16, Thomas Broyer wrote:


 Modules can specify which subpackages contain translatable /source/,
 causing the named package and its subpackages to be added to the
 /source
 path/. Only files found on the source path are candidates to be
 translated into JavaScript, making it possible to mix client-side
 http://www.gwtproject.org/**doc/latest/**DevGuideCodingBasics.html#*
 *DevGuideClientSidehttp://www.gwtproject.org/doc/latest/DevGuideCodingBasics.html#DevGuideClientSide
 http://www.gwtproject.org/**doc/latest/**DevGuideCodingBasics.html#*
 *DevGuideClientSidehttp://www.gwtproject.org/doc/latest/DevGuideCodingBasics.html#DevGuideClientSide
 

 and server-side
 http://www.gwtproject.org/**doc/latest/**
 DevGuideServerCommunication.**html#DevGuideServerSidehttp://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideServerSide
 http://www.gwtproject.org/**doc/latest/**
 DevGuideServerCommunication.**html#DevGuideServerSidehttp://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideServerSide
 

 code together in the same classpath without conflict.
 ---

 so the behavior looks inconsistent with the documentation (bug?)


 What do you find inconsistent? The doc talks about the named package
 and its subpackages and classpath, and that's the behavior you described
 too (which is expected, as Jens already said)
 --



 Thanks for clearing this out. It is good to know that it is intended
 behavior.

 What do I find inconsistent?

 The documentation says Only files found on the source path... and
 .gwt.xml I thought/hope relative filepath was specified and not classpath.

 So I would propose the following change

 -Only files found on the source path are candidates
 +Only files found on the source classpath are candidates
 ...
 +Note: If you are merging classes from multiple projects on the same
 package structure and you have one .gwt.xml specifying a classpath in one
 of the projects all classes in that classpath (from multiple projects) are
 candidates to be translated in javascript.

Vassilis Virvilis



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-28 Thread Chak Lai
I have tried your filter, and the IE Browser Mode has changed, however:

For IE8, I got Internet Explorer 8 Compatibility View, and the user agent 
is:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET 
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; 
.NET4.0C; .NET4.0E; .NET CLR 1.1.4322; InfoPath.3)

For IE9, I got Internet Explorer 9 Compatibility View, and the user agent 
is:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; 
SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media 
Center PC 6.0; .NET4.0C; .NET4.0E; BRI/1)


I am not sure if your filter solves the issue; I would expect to see MSIE 
8.0 for IE8 in the user agent.




On Monday, October 28, 2013 4:11:44 PM UTC-4, Colin Alworth wrote:

 Chak, take a look again at my post - while the meta tag definitely does 
 not work to tell IE8 to behave when in intranet mode, loading the exact 
 same html content and sending the same ua-compat details over a HTTP header 
 *does* solve this. 

 On Monday, October 28, 2013 3:08:47 PM UTC-5, Chak Lai wrote:



 On Monday, October 28, 2013 3:49:19 PM UTC-4, Jens wrote:

 In Intranet environment, that META tag can only change IE Document Mode 
 (such as how IE layout the web page), but it cannot change IE Browser Mode 
 (such as IE's JavaScript Engine). It is because the Browser Mode is loaded 
 (Intranet is detected) before IE parse the HTML.

 Even with the meta http-equiv=X-UA-Compatible 
 content=IE=edge,chrome=1 tag, in the Intranet environment IE 9 can 
 display HTML5 sites in appearance only, but using IE 7's JavaScript 
 engine, 
 which does not support HTML5 feature like canvas... etc. 



 I guess you have to uncheck the checkbox Display intranet sites in 
 compatibility view in IE's compatibility view settings.

 -- J.




 My concern is even if the users are using IE9 or IE10, in Intranet the 
 application can be broken because IE7 Browser Mode is being used, and the 
 users or developers may not aware of what is going on.


 P.S: In my opinion, it is great for GWT moving forward, and personally I 
 hate dealing with IE. However, just heads-up for those who are stuck with 
 Intranet + IE.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


How to use “Scheduler.get().scheduleDeferred” the right way in GWT?

2013-10-28 Thread Tom


Here is my Pseudocode in my GWT app.

-Visible the loading Label
-Loading text from properties file (may take long)
-Invisible the loading Label  Visible the main HTMLPanel

So I want to use Scheduler.get().scheduleDeferred to achive that, here is 
the code:

loadingLabel.setVisible(true);
Scheduler.get().scheduleDeferred(new ScheduledCommand() { 
  @Override
  public void execute() {
   loadingText();
  }
}
loadingLabel.setVisible(false);
mainHTMLPanel.setVisible(true);

But it doesn't work correctly as it did not show the loadingLabel but show 
the mainHTMLPanel immediately  when i click a textbox inside the 
mainHTMLPanel since the Gui got frozen cos it is loading text. Then I have 
to wait for a while to be able to click the textbox inside mainHTMLPanel.

But if i put loadingLabel.setVisible(false);  
mainHTMLPanel.setVisible(true); insideexecute() Then it works.

But i am not sure that is the right way to do.

So, is the following code the right way to use 
Scheduler.get().scheduleDeferred?

loadingLabel.setVisible(true);
Scheduler.get().scheduleDeferred(new ScheduledCommand() { 
  @Override
  public void execute() {
   loadingText();
   loadingLabel.setVisible(false);
   mainHTMLPanel.setVisible(true);
  }
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Building Elemental fails

2013-10-28 Thread Jens
I just tried to add Elemental to our GWT trunk builds and thus changed ant 
clean dist to ant clean elemental dist and now always getting the 
following build error:


generate:
 [exec] Traceback (most recent call last):
 [exec]   File idl/scripts/elemental_fremontcutbuilder.py, line 217, 
in module
 [exec] sys.exit(main())
 [exec]   File idl/scripts/elemental_fremontcutbuilder.py, line 214, 
in main
 [exec] return build_database(idl_files, database_dir)
 [exec]   File idl/scripts/elemental_fremontcutbuilder.py, line 139, 
in build_database
 [exec] builder.import_idl_file(file_name, webkit_options)
 [exec]   File 
/var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/databasebuilder.py, 
line 472, in import_idl_file
 [exec] idl_file = self._load_idl_file(file_path, import_options)
 [exec]   File 
/var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/databasebuilder.py, 
line 86, in _load_idl_file
 [exec] raise RuntimeError('Failed to load file %s: %s' % 
(file_name, e))
 [exec] RuntimeError: Failed to load file 
idl/scripts/../third_party/WebCore/css/WebKitCSSRegionRule.idl: At line 1 
offset 0: Expected module or interface or exception but  found: 
 [exec] Traceback (most recent call last):
 [exec]   File idl/scripts/elementaldomgenerator.py, line 164, in 
module
 [exec] sys.exit(main())
 [exec]   File idl/scripts/elementaldomgenerator.py, line 155, in main
 [exec] database_dir, use_database_cache)
 [exec]   File idl/scripts/elementaldomgenerator.py, line 120, in 
GenerateDOM
 [exec] systems = systems)
 [exec]   File 
/var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/elementalgenerator.py,
 
line 279, in Generate
 [exec] 
self.PopulateMixinBase(self._database.GetInterface('ElementalMixinBase'), 
mixins)
 [exec]   File 
/var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/database.py, 
line 188, in GetInterface
 [exec] raise RuntimeError('Interface %s is not loaded' % 
interface_name)
 [exec] RuntimeError: Interface ElementalMixinBase is not loaded


The build is executed by Jenkins on Ubuntu 12.04 with Python 2.7.3. I tried 
the same on Mac OS (without Jenkins) and everything works as expected. I 
have also created MD5 sums of WebKitCSSRegionRule.idl on Ubuntu and Mac OS 
and both MD5 sums are the same.

Does anyone have an idea what can cause the above error?


-- J.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Building Elemental fails

2013-10-28 Thread Colin Alworth
I can't reproduce this, we're also running ant clean elemental dist on our 
teamcity build. We're also running ubuntu 12, python 2.7.3. Last confirmed 
building as of 0d6a865556ca56840114e8397a1f2be522e83361 (current HEAD).

On Monday, October 28, 2013 5:43:04 AM UTC-5, Jens wrote:

 I just tried to add Elemental to our GWT trunk builds and thus changed 
 ant clean dist to ant clean elemental dist and now always getting the 
 following build error:


 generate:
  [exec] Traceback (most recent call last):
  [exec]   File idl/scripts/elemental_fremontcutbuilder.py, line 217, 
 in module
  [exec] sys.exit(main())
  [exec]   File idl/scripts/elemental_fremontcutbuilder.py, line 214, 
 in main
  [exec] return build_database(idl_files, database_dir)
  [exec]   File idl/scripts/elemental_fremontcutbuilder.py, line 139, 
 in build_database
  [exec] builder.import_idl_file(file_name, webkit_options)
  [exec]   File 
 /var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/databasebuilder.py,
  
 line 472, in import_idl_file
  [exec] idl_file = self._load_idl_file(file_path, import_options)
  [exec]   File 
 /var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/databasebuilder.py,
  
 line 86, in _load_idl_file
  [exec] raise RuntimeError('Failed to load file %s: %s' % 
 (file_name, e))
  [exec] RuntimeError: Failed to load file 
 idl/scripts/../third_party/WebCore/css/WebKitCSSRegionRule.idl: At line 1 
 offset 0: Expected module or interface or exception but  found: 
  [exec] Traceback (most recent call last):
  [exec]   File idl/scripts/elementaldomgenerator.py, line 164, in 
 module
  [exec] sys.exit(main())
  [exec]   File idl/scripts/elementaldomgenerator.py, line 155, in 
 main
  [exec] database_dir, use_database_cache)
  [exec]   File idl/scripts/elementaldomgenerator.py, line 120, in 
 GenerateDOM
  [exec] systems = systems)
  [exec]   File 
 /var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/elementalgenerator.py,
  
 line 279, in Generate
  [exec] 
 self.PopulateMixinBase(self._database.GetInterface('ElementalMixinBase'), 
 mixins)
  [exec]   File 
 /var/lib/jenkins/jobs/GWT/workspace/elemental/idl/scripts/database.py, 
 line 188, in GetInterface
  [exec] raise RuntimeError('Interface %s is not loaded' % 
 interface_name)
  [exec] RuntimeError: Interface ElementalMixinBase is not loaded


 The build is executed by Jenkins on Ubuntu 12.04 with Python 2.7.3. I 
 tried the same on Mac OS (without Jenkins) and everything works as 
 expected. I have also created MD5 sums of WebKitCSSRegionRule.idl on 
 Ubuntu and Mac OS and both MD5 sums are the same.

 Does anyone have an idea what can cause the above error?


 -- J.


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Building Elemental fails

2013-10-28 Thread Jens
Thx for checking it, Colin. 

Pretty strange that it doesn't work. The error also happens if I just 
execute ant on console directly on the server.

-- J.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Building Elemental fails

2013-10-28 Thread Colin Alworth
Good thought, I tried that too to confirm that teamcity wasn't setting 
anything funny. Still passed, not sure what is up.
Other details that may or may not help:

$ java -version
java version 1.6.0_35
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) Server VM (build 20.10-b01, mixed mode)

$ ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011

$ uname -a
Linux ubuntu 3.2.0-55-generic #85-Ubuntu SMP Wed Oct 2 12:29:27 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

$ python --version
Python 2.7.3



On Monday, October 28, 2013 11:37:40 AM UTC-5, Jens wrote:

 Thx for checking it, Colin. 

 Pretty strange that it doesn't work. The error also happens if I just 
 execute ant on console directly on the server.

 -- J.


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[gwt-contrib] Re: Next GWT Contributor Hangout

2013-10-28 Thread Joshb
Hi Bhaskar,

I am a long time GWT user (5+ years), and am very much interested in the 
developments surrounding SDM for the 3.0 release.  I know there has been a 
lot of talk about how the debug environment will look, and was hoping 
someone from google's GWT team could speak to what the goal is for GWT 3. 
 I came across these two videos:

http://www.youtube.com/watch?v=EbRviM8HgBs is a demo of how DART+Eclipse 
debugging works, and is exactly how I would hope a GWT implementation would 
go.  The video is by Seth Ladd, and if memory serves, he was on the GWT 
team at some point.  It looks like the solution uses Source Maps, and from 
my (limited) understanding, I would think that there are enough 
similarities between what is going on that something similar should work 
for GWT.  

http://www.youtube.com/watch?v=_uzSw_fb7NQ is a more generic 
Javscript-Eclipse debugging example.

I apologize if this isn't the right forum for this type of request/message, 
but as always, I will be following the hangout to see how things are 
progressing.

Thanks,

Josh

On Friday, October 25, 2013 5:08:19 PM UTC-4, Bhaskar Janakiraman wrote:

 The next GWT contributors hangout will be on Wednesday, Oct 30, 10.45 - 
 11.30am PST. 

 We are making a change to the hangout sessions: it will be a regular 
 hangout and not a hangout-on-air, but we will record the session and upload 
 the video. Reasons for this:
 1. Improved audio quality with regular hangout.
 2. In the last couple of sessions, we only had 2-3 people who were 
 watching it live. 

 The video will be accessible from the GWT G+ 
 pagehttps://plus.google.com/u/1/b/116516353752856283537/116516353752856283537/posts
 .

 As before, if you want to participate in person in the hangout, please 
 send me your email address (to: bjanakiraman at google.com)  and I will 
 invite you to the hangout (limit of 10 remote participants). 
 Agenda:

 - GWT 2.6, status, patches in progress
 - Update on modular compilation and other on-going efforts. 

 Thanks,
 Bhaskar


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.