Wednesday, September 30, 2015

Re: Rewriting GWT java project to another framework

Looks like http://teavm.org/ is one that can replace GWT.

среда, 30 сентября 2015 г., 11:54:51 UTC+3 пользователь Vladislav Borisov написал:

Hi all,


i'm doing research which is the best solution to rewrite my CRM, which is written on google web toolkit. Can you please give me some ideas with that. I want to write java and the code to be translated to javascript. Thanks in advance.


Best Regards :)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Rewriting GWT java project to another framework


Try to look for another language. Like kotlin or something like that. (Or even javascript ;) )

If you want to stay at Java, than there is the only choise - GWT.

среда, 30 сентября 2015 г., 11:54:51 UTC+3 пользователь Vladislav Borisov написал:

Hi all,


i'm doing research which is the best solution to rewrite my CRM, which is written on google web toolkit. Can you please give me some ideas with that. I want to write java and the code to be translated to javascript. Thanks in advance.


Best Regards :)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Rewriting GWT java project to another framework

It looks like u still want to use GWT :)

On 30 Sep 2015 10:53, "Vladislav Borisov" <vladislav.a.borisov@gmail.com> wrote:

Hi all,


i'm doing research which is the best solution to rewrite my CRM, which is written on google web toolkit. Can you please give me some ideas with that. I want to write java and the code to be translated to javascript. Thanks in advance.


Best Regards :)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Problems GWT2.7 superdevmode + tomcat server

Thanks Thomas, I found some time to work on this issue and it is working fine. To get the unpacked war directory I did unzip the war file. My CodeServer debug launcher has 3 args: -src, -launcherDir, and the GWT module.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Rewriting GWT java project to another framework

Hi all,


i'm doing research which is the best solution to rewrite my CRM, which is written on google web toolkit. Can you please give me some ideas with that. I want to write java and the code to be translated to javascript. Thanks in advance.


Best Regards :)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Tuesday, September 29, 2015

Re: GWT 2.7 Layout Question

Thank You Jens!

Ed

On Tue, Sep 29, 2015 at 3:22 PM, Jens <jens.nehlmeier@gmail.com> wrote:
Just check the HTML + CSS in your browser dev tools and then fix whatever is causing the right alignment?

The above code should generate something pretty similar to: http://jsfiddle.net/wng1rs6a/1/

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: GWT 2.7 Layout Question

Just check the HTML + CSS in your browser dev tools and then fix whatever is causing the right alignment?

The above code should generate something pretty similar to: http://jsfiddle.net/wng1rs6a/1/

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

GWT 2.7 Layout Question

Hi,

Trying to create a HorizontalPanel with an East and West side.  Using the followint code the layout on the West side appears fine whil the East side it right justified.  Any suggestions on how to handle this?

HorizontalPanel REPORTSVP = new HorizontalPanel();

REPORTSVP.setSize("100%", "100%");
REPORTSVP.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
REPORTSVP.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

VerticalPanel REPORTSWEST = new VerticalPanel();
REPORTSWEST.setSize("49%", "100%");
REPORTSWEST.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
REPORTSWEST.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

VerticalPanel REPORTSEAST = new VerticalPanel();
REPORTSEAST.setSize("49%", "100%");
REPORTSEAST.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
REPORTSEAST.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

HTML reports = new HTML("Reports");
reports.setStyleName("text-header1");
reports.setSize("100%", "100%");

HTML charts = new HTML("Charts");
charts.setStyleName("text-header1");
charts.setSize("100%", "100%");

REPORTSWEST.add(reports);
REPORTSEAST.add(charts);
REPORTSVP.add(REPORTSWEST);

 REPORTSVP.add(REPORTSEAST);
 ViewPanel.add(REPORTSVP);

Best Regards,

Ed

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Cannot install GWT Eclipse Plugin on JBoss Developer Studio 8.1.0

Hi 

I'm trying to install GWT plugin on JBoss Developer Studio 8.1.0 from
https://dl.google.com/eclipse/plugin/4.4

Installation fails with error:

An error occurred while collecting items to be installed
session context was:(profile=jbds, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.google.appengine.eclipse.core,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.appengine.eclipse.datatools,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.appengine.eclipse.webtools,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.appengine.eclipse.wtp,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.appengine.eclipse.wtp.jpa,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.appengine.eclipse.wtp.jpa.e43,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.appengine.eclipse.wtp.swarm,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.apiclientlib,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.appengine.api,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.appengine.swarm,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.appengine.swarm_backend,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.core,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.drive,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.gph,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.gph.hge,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.gph.subclipse,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.gph.subversive,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.login,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.managedapis,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.maven,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.platform,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.suite,3.8.0.v201410302155-rel-r44
No repository found containing: org.eclipse.update.feature,com.google.gdt.eclipse.suite.e44.feature,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.suite.ext,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gdt.eclipse.suite.ext.e38,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gwt.eclipse.core,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gwt.eclipse.libs,3.8.0.v201410302155-rel-r44
No repository found containing: osgi.bundle,com.google.gwt.eclipse.oophm,3.8.0.v201410302155-rel-r44

Eclipse version here:







Can anybody explain whats wrong with it?
Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Monday, September 28, 2015

Re: Deploy issue of GWT with Hibernate

Still unsolved. Any idea on this?
    Thank you! 
 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: (modern) chart system for GWT

On Mon, Sep 28, 2015 at 3:07 PM, ronifabio <ronifabio@gmail.com> wrote:
> I use GWT-charts.
> https://code.google.com/p/gwt-charts/
> http://gwt-charts.appspot.com/
> https://github.com/google/gwt-charts

but it uses Google charts... and if I remember well we need to be
connected to have the chart rendered...

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: (modern) chart system for GWT

I use GWT-charts.
https://code.google.com/p/gwt-charts/
http://gwt-charts.appspot.com/
https://github.com/google/gwt-charts


Em terça-feira, 18 de agosto de 2015 04:31:44 UTC-3, Luca Morettoni escreveu:
Hello, in my GWT app to render some dynamics chart on client side I
used "Client Side GChart" project [1], everything work fine, but we're
going to "refresh" the application user interface and we like to have
a more "fresh" and "modern" chart system.
The structure of the project requires:

• the rendering of the charts can't use external servers, so we can
immediately exclude Google Visualisation API;

• we can't use any external plugin in the browser to render the charts
(like Flash);

• we need to interact with the charts (handle user clicks on the curves)

I started to evaluate some packages, but I have found some limits and
difficulties and I'd like to know your experience or if you have other
package to evaluate:

• GWT Highcharts [2] looks well structured, easy to use and has a good
documentation, but I have found a lot of troubles using it in our
project and I can't render any charts, I need to investigate the
source of the issue;

• gflot [3] I like this package, the problem is the documentation;

• D3js [4] this is the last resort, but using it require a lot of code
to render a simple chart


Thanks for any hints!

[1]https://code.google.com/p/clientsidegchart/
[2]http://www.moxiegroup.com/moxieapps/gwt-highcharts/
[3]https://github.com/nmorel/gflot
[4]https://github.com/gwtd3/gwt-d3

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Errors migrating to GWT 2.7.0 . Can someone please help me ?


I could get past it by removing *.gwtar from gwt-user-2.5.0.jar which are supposed to be loaded by gwt for increased performance.
Along with it removed gwt-Unit cache and complied...it rebuilt entire jar and worked fine.
--sri


On Thursday, February 12, 2015 at 11:08:07 PM UTC, Jens wrote:
Its a JVM parameter for defining a system property and not a GWT compiler/DevMode parameter.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Removing the SuperDevMode code server prompt


Actually no. It is in 2.7 [1], and has since been made synchronous [2] (so you possibly wait a little longer).

But if you're using CodeServer rather than DevMode, you have to wait before loading the page; that code is only about enabling the "Launch Default Browser" and "Copy to Clipboard" buttons in the DevMode UI.



Ah I see, well I start SDM through IntelliJ which uses the DevMode class (with -noserver) and the browser is launched when everything is ready.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Removing the SuperDevMode code server prompt



On Monday, September 28, 2015 at 10:23:18 AM UTC+2, Jens wrote:

That sounds like what I have been after.  I can't see that feature in the 2.7.0 download - is it in the 2.8 builds?

I would say so as I use it and never had an issue with any prompts.

Actually no. It is in 2.7 [1], and has since been made synchronous [2] (so you possibly wait a little longer).

But if you're using CodeServer rather than DevMode, you have to wait before loading the page; that code is only about enabling the "Launch Default Browser" and "Copy to Clipboard" buttons in the DevMode UI.

[1] https://github.com/gwtproject/gwt/commit/3eff9127f6be4969a5a04b965f5f94441f4eb440
[2] https://github.com/gwtproject/gwt/commit/457610e31bad3468fd1355015d3596528ae61df4 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Removing the SuperDevMode code server prompt


That sounds like what I have been after.  I can't see that feature in the 2.7.0 download - is it in the 2.8 builds?

I would say so as I use it and never had an issue with any prompts.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Sunday, September 27, 2015

Re: Removing the SuperDevMode code server prompt

That sounds like what I have been after.  I can't see that feature in the 2.7.0 download - is it in the 2.8 builds?

On 27 September 2015 at 23:22, Jens <jens.nehlmeier@gmail.com> wrote:
Not sure what you mean. But I know that there was a commit that changed DevMode to wait until SuperDevMode CodeServer and Jetty/Tomcat have been fully started before continuing. Obviously that does not prevent you from visiting the URL of your app before DevMode has been fully started.

-- J.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/4G6IaSURdHY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@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/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Removing the SuperDevMode code server prompt

Not sure what you mean. But I know that there was a commit that changed DevMode to wait until SuperDevMode CodeServer and Jetty/Tomcat have been fully started before continuing. Obviously that does not prevent you from visiting the URL of your app before DevMode has been fully started.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Removing the SuperDevMode code server prompt

An irritation for me when using SuperDevMode is the prompt that appears when the application starts before the code server is ready.  I have patched my copy of gwt-dev to remove this prompt and keep the code cycling until the code server starts.  What I'd ideally like to do is to have this as an option that can be configured from gwt.properties.  If this option is already present somewhere and I haven't noticed it, I'd like to hear.  If the option isn't already present and this fix would be of interest to others, I'll put some more work in and submit it as new code for GWT.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Deploy issue of GWT with Hibernate


Hello, everyone:

i am playing with GWT(2.6) with Hibernate recently. the integration works well in devmode, i can operate local mysql db correctly. But when i tried to deploy the war to my local tomcat server, i got following error:

27-Sep-2015 16:48:45.335 SEVERE [http-apr-8080-exec-9] org.apache.catalina.core.ApplicationContext.log Exception while dispatching incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.meta.myapp.shared.ResponseDataBox com.meta.myapp.client.rpc.MyappService.remoteCall(com.meta.myapp.shared.RequestDataBox)' threw an unexpected exception: java.lang.NullPointerException
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:265)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        ...........
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.meta.myapp.server.HibernateUtil.getSessionFactory(HibernateUtil.java:55)
at com.meta.myapp.server.SchedulerServiceServlet.remoteCall(SchedulerServiceServlet.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
... 26 more

Here was how my HibernateUtil implemented, mostly following the guide on http://www.gwtproject.org/articles/using_gwt_with_hibernate.html
It looks like the static segment was not invoked at all.
public class HibernateUtil {
        
        private static final SessionFactory sessionFactory;   
        private static Configuration config;
        
        static {
            try {   
                config = new Configuration();
                
                // addMapping(config);
                // Create the SessionFactory from hibernate.cfg.xml   
                sessionFactory = config.configure().buildSessionFactory();  

            } catch (Throwable ex) {   
                System.err.println("Initial SessionFactory creation failed.\n" + ex);   
                throw new ExceptionInInitializerError(ex);   
            }   
        }   
      
        public static SessionFactory getSessionFactory() {   
            return sessionFactory;   
        }   
               
}


Here was my server.xml of tomcat 8.0:
      <Host name="localhost"  appBase="c:/yshaoxp/workspace/Myapp"
            unpackWARs="true" autoDeploy="true">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
<Context path="" reloadable="true" docBase="war" debug="1"/>

      </Host>

and, here is my hibernate.cfg.xml:
<hibernate-configuration>
<session-factory>

<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>

<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/myapp</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>

<property name="show_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Enable Hibernate's automatic session context management -->
                <property name="current_session_context_class">thread</property>

                <!-- Disable the second-level cache -->
                <property name="cache.use_second_level_cache">false</property>
        
</session-factory>
</hibernate-configuration>

It works well when i work on devmode with eclipse. Your support is appreciated!

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Friday, September 25, 2015

Follow THE V.I.P. HIDEAWAY, swissbusiness and Matthew Chung on Twitter!

Here are some people we think you might like to follow:
swissbusiness  @swissbusiness
  Follow
Matthew Chung   @WISEMythaes
  Follow

Re: Jar file detected in WAR but not in DevMode

DevMode does not support Servlets 3.0: https://github.com/gwtproject/gwt/issues/8456

On Friday, September 25, 2015 at 10:21:06 AM UTC+2, Scarlet wrote:
Hi,

I'am using GWT 2.7 with GXT 3 for my application,

I follow steps described in this link : (http://piotrnowicki.com/2011/03/using-servlets-3-0-servletcontainerinitializer/  ), to create a jar file that contain a java class aim to configure "context-param" of my application using ServletContainerInitializer Interface.

The jar file produced work fine in WAR mode with an external Jetty server. But it not detected when I run the application in the Super DevMode.

Do you have an idea what I can do to make it work ?

Thanks in advance

More details : 

The tree view of my jar 
├── com
│   └── nullhaus
│       └── MyInitializer.class
└── META-INF
    └── services
        └── javax.servlet.ServletContainerInitializer

I copy the jar in WEB-INF/lib folder

If the application server (jetty for example) detect a class that implement this interface (ServletContainerInitializer) it launch the onStartup() method automatically.


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Jar file detected in WAR but not in DevMode

Hi,

I'am using GWT 2.7 with GXT 3 for my application,

I follow steps described in this link : (http://piotrnowicki.com/2011/03/using-servlets-3-0-servletcontainerinitializer/  ), to create a jar file that contain a java class aim to configure "context-param" of my application using ServletContainerInitializer Interface.

The jar file produced work fine in WAR mode with an external Jetty server. But it not detected when I run the application in the Super DevMode.

Do you have an idea what I can do to make it work ?

Thanks in advance

More details : 

The tree view of my jar 
├── com
│   └── nullhaus
│       └── MyInitializer.class
└── META-INF
    └── services
        └── javax.servlet.ServletContainerInitializer

I copy the jar in WEB-INF/lib folder

If the application server (jetty for example) detect a class that implement this interface (ServletContainerInitializer) it launch the onStartup() method automatically.


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Thursday, September 24, 2015

JsInterop callback function with parameters

Hey:
  
   I'm using JsInterop to map some JS APIs.
What is the best way to map a callback to receive multiple parameters?

For example, a jQuery click handler: function (event, params)

Java could be:
  Function (Event, Object []), but then is complicated to manipulate the "Object []", there is a more direct way?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.

Re: Why code ends up in Left over Soyc report? How to analyze?

Anybody knows a better way to ensure that the interface isn't replaced by the only implementing class by the Static code analyzer during compilation?

Above I did it by creating another implementing class, but just wondering if there isn't an easier way. Maybe some annotation to tell the compiler to skip any replacement.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@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/d/optout.