gwt

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

我与影子孤独终老i 提交于 2019-12-22 08:23:26
问题 I am facing this error while running my GWT application. I have these jar files in my classpath: slf4j-api & slf4j-log4j12 Any idea what could be the reason? 回答1: This problem is due to a change in slf4j-log4j12 jar. From version 1.5.6 it doesn't allow to access the field org.slf4j.impl.StaticLoggerBinder.SINGLETON. To resolve it, use the newest jars (or at least version 1.5.6 onward) for both slf4j-api & slf4j-log4j12. <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api<

How to deploy GWT Project containing GWT modules without entry points with Eclipse GAE plugin?

痞子三分冷 提交于 2019-12-22 08:12:50
问题 I have a GWT Project containing some GWT modules that I would like to have NO entry point, functioning as libraries for other modules WITH entry points. The GWT 'entry point' modules compile fine with the "GWT Compile Project" option in Eclipse if I choose not to compile the GWT 'library' modules with them. They also run fine. When I choose to deploy my project to the Google App Engine with the "Deploy App Engine Project" option, all modules will get compiled and this process gets stuck on

Spring Method Level Security fails on second call

筅森魡賤 提交于 2019-12-22 08:12:41
问题 I want to use method level security on my GWT application. I'm trying to use Spring Security 3.1, as I found a working example here, but it doesn't use form-login. After reading this answer the first method call successfully obtains the SecurityContext, but then clears it before the next call: [org.springframework.security.web.context.HttpSessionSecurityContextRepository] - Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context

How to resolve this Error (GWT)

爱⌒轻易说出口 提交于 2019-12-22 07:07:18
问题 I'm getting this error after running my application. There were no errors during compilation. Also, thr's no other application running. Starting Jetty on port 8888 [WARN] failed SelectChannelConnector@127.0.0.1:8888 java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector

Sessions and Cookies to autologin in GWT

烂漫一生 提交于 2019-12-22 07:00:39
问题 i know there is a lot of questions on this already but I still didn't seem to find a definitive answer. What i'm looking to do is have users be remembered after they login for say 2 weeks or until they log out. Below is what I think should be happening and I was wondering if anyone with a bit more experience could tell me if i'm right or wrong. User logs in for the first time. An RPC call to the server returns a 'UserInfo' object which includes with it a new sessionID. Aka on the server this

Error installing Maven Integration for Eclipse WTP

橙三吉。 提交于 2019-12-22 06:38:02
问题 I am trying to install the gwt-maven-plugin for Eclipse Indigo 3.7.2 (running on Ubuntu), following the instructions here: http://uptick.com.au/content/getting-started-gwt-maven-and-eclipse However, when I get to the step to install "Maven Integration for Eclipse WTP", I get the following error: Cannot complete the install because one or more required items could not be found. Software being installed: Maven Integration for WTP (Optional) 0.12.0.20110421-1500 (org.maven.ide.eclipse.wtp

How to read local (Client) file with GWT?

回眸只為那壹抹淺笑 提交于 2019-12-22 06:33:12
问题 I would like to use GWT to read and parse local csv file. EDIT: Local file here means client file. I know I can use HTML5 with javascript to achieve that, but I would like to use GWT to do it. One way of doing it is by using JavaScript Native Interface (JSNI), however I think it beats the purpose of using GWT. Another way of doing this would be upload the file to server, and send it back as a json. But I feel it's not the best way of doing it. Please advise. Thanks. EDIT: I intend to design a

Importance of Shared Package in GWT

删除回忆录丶 提交于 2019-12-22 06:32:17
问题 I realize that GWt doesn't compile the classes not in the Client package. But what is the importance of the shared package? What are the classes that I need to put in this package? 回答1: What are the classes that I need to put in this package? Any logic or data types that are used by both the client and the server. This will save you from duplicating code across both sides, and potentially keep the logic and data types consistent . 来源: https://stackoverflow.com/questions/3356100/importance-of

GWT: The response could not be deserialized

孤街醉人 提交于 2019-12-22 05:27:22
问题 I'm using GWT (2.4) with Spring integrated as in this article. I have problem with getting list of User from database (Hibernate) and populate DataGrid with it. When i call greetingService.allUsers() method, I'm getting error ( onFailure() ): com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized Anybody helps with that? Below some pieces of code. Full working project is here. public void onModuleLoad() { // ... greetingService.allUsers( new

How to serialize a list in AutoBean (GWT)?

拜拜、爱过 提交于 2019-12-22 05:23:41
问题 I'm trying to figure out how to serialize a list using AutoBean in GWT, but I keep getting a Null Pointer Exception. Here's what I have: GuideCreatorFactory beanFactory = AutoBeanFactorySource.create(GuideCreatorFactory.class); List<Guide> guides = new LinkedList<Guide>(); Guide guide = new Guide(); guide.setText("this is the text"); guide.setTitle("this is the title"); guides.add(guide); GuideCreatorList<Guide> impl = new GuideCreatorListImpl(); impl.setGuides(guides); System.out.println(