Re: Could not wrap a PopupPanel as a Composite!
It seems the PopupPanel will try to remove itself from its parent each time of showing. The parent in this case is a composite which does not implement HasWidgets, hence the exception. Is this my misuse of PopupPanel or a GWT bug? On Feb 21, 12:30 am, Tatchan wrote: > Hi, > > I always get the exception: "java.lang.IllegalStateException: This > widget's parent does not implement HasWidgets" while trying to use a > Composite which wraps a PopupPanel. > A simple example: > > // The main application window > public class AppWindow extends Composite { > private final PopupPanel panel = new PopupPanel(true); > > public AppWindow() { > initWidget(panel); > } > > public void show() { > panel.setSize("300px", "300px"); > panel.add(new Label("Application Window")); > panel.show(); > } > > } > > // A button to trigger the application window > public class AppButton extends Composite { > private final Button button = new Button("App"); > private final AppWindow window; > > public AppButton(AppWindow window) { > this.window = window; > button.addClickHandler(new ClickHandler() { > @Override > public void onClick(ClickEvent event) { > AppButton.this.window.show(); > } > }); > > initWidget(button); > } > > } > > // Entry > public class Ping implements EntryPoint { > @Override > public void onModuleLoad() { > AppWindow window = new AppWindow(); > AppButton button = new AppButton(window); > RootPanel.get().add(button); > } > > } > > Now click the button I always get the expected exception :) . It's the > same if the trigger is done via an event bus (i.e., the AppButton > fires an event, the AppWindow catchs the event and show it self). > > Note that it's ok if AppWindow does NOT extend Composite. > > Could someone explain please? > > The stack trace: > > 00:29:42.628 [ERROR] [ping] Uncaught exception escaped > java.lang.IllegalStateException: This widget's parent does not > implement HasWidgets > at > com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:127) > at > com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:84) > at > com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:75) > at com.google.gwt.user.client.ui.PopupPanel > $ResizeAnimation.onInstantaneousRun(PopupPanel.java:311) > at com.google.gwt.user.client.ui.PopupPanel > $ResizeAnimation.setState(PopupPanel.java:208) > at > com.google.gwt.user.client.ui.PopupPanel.setState(PopupPanel.java: > 1374) > at com.google.gwt.user.client.ui.PopupPanel.show(PopupPanel.java: > 969) > at com.oneo.ping.client.test.AppWindow.show(AppWindow.java:18) > at com.oneo.ping.client.test.AppButton$1.onClick(AppButton.java: > 17) > at > com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java: > 54) > at > com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) > at com.google.gwt.event.shared.HandlerManager > $HandlerRegistry.fireEvent(HandlerManager.java:65) > at com.google.gwt.event.shared.HandlerManager > $HandlerRegistry.access$1(HandlerManager.java:53) > at > com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: > 178) > at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52) > at > com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: > 116) > at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: > 100) > at > com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java: > 54) > at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307) > at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263) > at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > 25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) > at > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) > at > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: > 157) > at > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: > 1713) > at > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: > 165) > at > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: > 120) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: > 507) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: > 264) > at > com.google.
Re: passing all gwt modules' rpc requests through a single servlet.
This was because I changed the package. moved it back to com.google.gwt.user.server.rpc, errors are gone now. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: passing all gwt modules' rpc requests through a single servlet.
I am getting following errors: The field AbstractRemoteServiceServlet.perThreadRequest is not visible The field AbstractRemoteServiceServlet.perThreadResponse is not visible Code is same except imports : import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException; import com.google.gwt.user.client.rpc.SerializationException; import com.google.gwt.user.server.rpc.RPC; import com.google.gwt.user.server.rpc.RPCRequest; import com.google.gwt.user.server.rpc.RemoteServiceServlet; I am using GWT 2.0.2 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: passing all gwt modules' rpc requests through a single servlet.
Oh, it is in trunk. Sorry I didn't check earlier. Thanks. 2010/2/21 Prashant Gupta > Can I get the source ? > > Thanks. > > On 21 February 2010 11:37, Henry wrote: > >> See: >> >> http://code.google.com/p/gwtserviceresolver/ >> >> Cheers, >> Henry >> >> On Feb 20, 9:44 pm, Prashant Gupta wrote: >> > Hi, >> > >> > My app is using multiple gwt modules and I want to do some set up so >> that no >> > change to web.xml is required whenever I add or remove a gwt module. >> > >> > I replaced >> > >> > @RemoteServiceRelativePath("greet") >> > >> > by >> > >> > @RemoteServiceRelativePath("../greet/") >> > >> > so that all rpc requests from all the gwt modules pass through a single >> > servlet mapped to ../greet/* , say RPCService. Now I want to forward the >> > request from RPCService to corresponding ServiceImpl servlet based on >> > > qualified servlet name>. How do I do that ? I tried creating new >> instance to >> > ServiceImpl class and calling doPost() method, it threw >> > NullPointerException. >> > >> > Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-tool...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: passing all gwt modules' rpc requests through a single servlet.
Can I get the source ? Thanks. On 21 February 2010 11:37, Henry wrote: > See: > > http://code.google.com/p/gwtserviceresolver/ > > Cheers, > Henry > > On Feb 20, 9:44 pm, Prashant Gupta wrote: > > Hi, > > > > My app is using multiple gwt modules and I want to do some set up so that > no > > change to web.xml is required whenever I add or remove a gwt module. > > > > I replaced > > > > @RemoteServiceRelativePath("greet") > > > > by > > > > @RemoteServiceRelativePath("../greet/") > > > > so that all rpc requests from all the gwt modules pass through a single > > servlet mapped to ../greet/* , say RPCService. Now I want to forward the > > request from RPCService to corresponding ServiceImpl servlet based on > > qualified servlet name>. How do I do that ? I tried creating new instance > to > > ServiceImpl class and calling doPost() method, it threw > > NullPointerException. > > > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: passing all gwt modules' rpc requests through a single servlet.
See: http://code.google.com/p/gwtserviceresolver/ Cheers, Henry On Feb 20, 9:44 pm, Prashant Gupta wrote: > Hi, > > My app is using multiple gwt modules and I want to do some set up so that no > change to web.xml is required whenever I add or remove a gwt module. > > I replaced > > @RemoteServiceRelativePath("greet") > > by > > @RemoteServiceRelativePath("../greet/") > > so that all rpc requests from all the gwt modules pass through a single > servlet mapped to ../greet/* , say RPCService. Now I want to forward the > request from RPCService to corresponding ServiceImpl servlet based on qualified servlet name>. How do I do that ? I tried creating new instance to > ServiceImpl class and calling doPost() method, it threw > NullPointerException. > > Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
passing all gwt modules' rpc requests through a single servlet.
Hi, My app is using multiple gwt modules and I want to do some set up so that no change to web.xml is required whenever I add or remove a gwt module. I replaced @RemoteServiceRelativePath("greet") by @RemoteServiceRelativePath("../greet/") so that all rpc requests from all the gwt modules pass through a single servlet mapped to ../greet/* , say RPCService. Now I want to forward the request from RPCService to corresponding ServiceImpl servlet based on . How do I do that ? I tried creating new instance to ServiceImpl class and calling doPost() method, it threw NullPointerException. Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWTTestCase setup problem
Hi! My (trial, test) project named "sample" is configured like this: sample src com.kereki.sample.client MainForm others... com.kereki.sample.server others... gwttests com.kereki.sample.client FirstTest.java When I try to run FirstTest.java, a GWTTest, I get: Validating newly compiled units [ERROR] Errors in 'file:/home/fkereki/workspace/sample/gwttests/com/ kereki/sample/client/FirstTest.java' [ERROR] Line 18: No source code is available for type com.kereki.sample.client.MainForm; did you forget to inherit a required module? I tried adding all sources just about everywhere I could imagine, but I cannot fix this. What am I missing? What should I add, and where' Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Styling of TabLayoutPanel tabs
Hi, I have noticed since 2.0.2 that there seems to now be changes to the styling applied to the TabLayoutPanel tabs. Before I 2.0.2 I found that the default TabLayoutPanel had effectively no styling (Firefox on Linux) and now there is a distinct background colour for the selected tab, the unseleted tabs and a border around the area below the tabs. Before the update I was styling the widgets I added to the tabs (Labels) to give them the appearance I wanted when selected/unselected. I have been using firebug to have a look, and there seems to be a class called "gwt-TabLayoutPanelTab gwt-TabLayoutPanelTab-selected" that gets applied to the selected tab, and "gwt-TabLayoutPanelTab" (as per the JavaDoc) for the unselected ones. (Firebug also says the styling is coming from a file called chrome.css, but I am using Firefox - I assume chrome.css is meant to refer to the appearance not the browser?) If I try and have in my style sheet the following to override it, it does not work: .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab .gwt-TabLayoutPanelTab- selected { background: red; } What am I doing wrong? Or, what is the best way to style the tabs? Thanks, Richard -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using FocusWidget.addClickHandler for GWT 2.0 Hyperlink (ClickHandler deprecated)
So does it mean , I need to change the HyperLink to anchor wherever I need a link functionality but doesn't need a history support ? Can anybody provide some suggestion / example code ? Thanks, -Tapas On Sat, Feb 20, 2010 at 11:18 PM, Zak wrote: > Hi Tapas- > > Check out this issue for the reasoning behind the deprecation of > Hyperlink.addClickHandler: > > http://code.google.com/p/google-web-toolkit/issues/detail?id=1960 > > from tamplinjohn's comment on that thread: > > "I also think that allowing click listeners/handlers on Hyperlink is > part of the > reason for the confusion -- if its goal is to manipulate the history > state, there > isn't any reason for adding a listener on the click, but you should > instead add a > history listener so that function works the same way whether activated > by a click, a > back button, or loading from a bookmark. If for some reason you do > really need a > click handler, then it can still be done by using Anchor and calling > History.newItem > from its listener." > > On Feb 19, 2:18 pm, Tapas Adhikary wrote: > > I have upgraded my project to GWT 2.0, and my hyperlinks keeps getting > > the wornings for using the deprecated ClickHandler. > > > > The JavaDoc says to use FocusWidget.addClickHandle. Why does the > > Hyperlink need to use this FocusWidget? How should I use it ? Why can > > a Hyperlink not use a ClickHandler but a GWT Button and Anchor can? > > What is the logic behind it ? > > > > I'm not sure how to use it? Does anyone have an example? Please share. > > > > Thanks, > > -Tapas > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
have you looked mod_rewrite ( http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html ) ? doesn't it help you? Why you need that the client side runs on apache httpd and not in a tomcat? do you have shared resources? if not, maybe you can let tomcat serve the client side also and, if you need performance, look at APR for tomcat ( http://tomcat.apache.org/tomcat-6.0-doc/apr.html ) On Sat, Feb 20, 2010 at 11:21 PM, dablack wrote: > Sorry to lead you on a wild goose chase. I guess you will have to use > the Apache mod_proxy_http module with the Tomcat NIO connector using > the http protocol after all. I don't have any experience with the > mod_proxy_http module at all so not really anything I can help you > with. > > Good luck. > > > On Feb 20, 7:21 pm, Fran wrote: > > The problem persist with the news changes. > > Seems that apache cant connect to tomcat :( > > The error log of apache and mod_jk dont show nothing. Not ever nio > conection > > stablished > > > > 2010/2/21 dablack > > > > > I borrowed that connector configuration from a website I came across. > > > I'm not sure why port=0 either. If I put more research into the NIO > > > connector I could probably find out. Why don't you try adding the > > > lines, > > > > > enableLookups="false" > > > scheme="http" > > > > > to the NIO connector configuration in the server.xml file that I gave > > > you earlier. > > > > > As far as accessing the ajp service usinghttp://localhost:8009/servlet, > > > that will not work. Your browser uses the http protocol and the 8009 > > > port is being serviced by the ajp protocol. You should still have your > > > connector using the http protocol configured to listen on port 8081. > > > > > Hopefully the scheme line above will help the NIO connector > > > communicate back to Apache. > > > > > On Feb 20, 4:45 pm, Fran wrote: > > > > I test your config, dablack, but I cant connect to the servlet. > > > > With this config I cant access not even to: > http://localhost:8009/servlet > > > > that is tomcat directly without apache > > > > > > On 20 feb, 23:36, Fran wrote: > > > > > > > I cant undestand why this config: > > > > > > > > > > > channelNioSocket.maxThreads=" > > > > > 150" > > > > > channelNioSocket.maxSpareThreads="50" > > > > > channelNioSocket.minSpareThreads="25" > > > > > channelNioSocket.bufferSize="16384" /> > > > > > > > Why port 0 ? > > > > > > > 2010/2/20 dablack > > > > > > > > Fran, > > > > > > > > I'm really not an expert on setting up the connection between > Apache > > > > > > and Tomcat but I believe that the connections only operate in two > > > > > > protocols: http or ajp. NIO is a Tomcat connector that can > > > communicate > > > > > > in either http or ajp. Because of that, I don't see any reason > that > > > > > > the Apache mod_jk connector module couldn't communicate with the > NIO > > > > > > connector. Since I don't use an NIO connector I could be wrong, > but > > > > > > that is the way I see it. As a starting point, try these > > > > > > configurations: > > > > > > > > server.xml > > > > > > > > channelNioSocket.port="8009" > > > > > > channelNioSocket.maxThreads="150" > > > > > > channelNioSocket.maxSpareThreads="50" > > > > > > channelNioSocket.minSpareThreads="25" > > > > > > channelNioSocket.bufferSize="16384" /> > > > > > > > > (You seem to want to use port 8081 which should be fine, but the > > > > > > standard ajp port is 8009. However, I wouldn't put it on port > 8081 if > > > > > > you are already using that port for another protocol such as > http.) > > > > > > > > httpd.conf > > > > > > > > LoadModule jk_module modules/mod_jk.so > > > > > > JkWorkersFile conf/workers.properties > > > > > > JkLogFile /var/log/httpd/mod_jk.log > > > > > > JkLogLevel info > > > > > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > > > > > > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > > > > > > JkRequestLogFormat "%w %V %T" > > > > > > JkMount /*.svc ajp13 > > > > > > > > (For the JkMount I use *.svc because I use the svc extension for > my > > > > > > GWT service target to differentiate service points from other > files.) > > > > > > > > (For example, in my web.xml file I will map my service something > like > > > > > > this to use the svc extension: > > > > > > > > > > > > MyService > > > > > > com.mysite.server.MyServiceImpl > > > > > > > > > > > > > > > > > > MyService > > > > > > /MyService.svc > > > > > > > > > > > > > > And in my GWT code I create my service target like this: > > > > > > > > target.setServiceEntryPoint( GWT.getModuleBaseURL() + > > > > > > "MyService.svc" ); > > > > > > > > I did this because I had troubles with the 'JkMount /* ajp13' > entry, > > > > > > but when I used /*.svc the problems cleared up.) > > > > > > > > workers.properties > > > > > > > > workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 > > > > > > workers.java_home=/usr/java/jdk1.6.0_06 > > > > > > worker.list=ajp13 > > > > > > worker.ajp13.port=8009 > > > > > > w
Re: tomcat and apache problem
Sorry to lead you on a wild goose chase. I guess you will have to use the Apache mod_proxy_http module with the Tomcat NIO connector using the http protocol after all. I don't have any experience with the mod_proxy_http module at all so not really anything I can help you with. Good luck. On Feb 20, 7:21 pm, Fran wrote: > The problem persist with the news changes. > Seems that apache cant connect to tomcat :( > The error log of apache and mod_jk dont show nothing. Not ever nio conection > stablished > > 2010/2/21 dablack > > > I borrowed that connector configuration from a website I came across. > > I'm not sure why port=0 either. If I put more research into the NIO > > connector I could probably find out. Why don't you try adding the > > lines, > > > enableLookups="false" > > scheme="http" > > > to the NIO connector configuration in the server.xml file that I gave > > you earlier. > > > As far as accessing the ajp service usinghttp://localhost:8009/servlet, > > that will not work. Your browser uses the http protocol and the 8009 > > port is being serviced by the ajp protocol. You should still have your > > connector using the http protocol configured to listen on port 8081. > > > Hopefully the scheme line above will help the NIO connector > > communicate back to Apache. > > > On Feb 20, 4:45 pm, Fran wrote: > > > I test your config, dablack, but I cant connect to the servlet. > > > With this config I cant access not even to:http://localhost:8009/servlet > > > that is tomcat directly without apache > > > > On 20 feb, 23:36, Fran wrote: > > > > > I cant undestand why this config: > > > > > > > > channelNioSocket.maxThreads=" > > > > 150" > > > > channelNioSocket.maxSpareThreads="50" > > > > channelNioSocket.minSpareThreads="25" > > > > channelNioSocket.bufferSize="16384" /> > > > > > Why port 0 ? > > > > > 2010/2/20 dablack > > > > > > Fran, > > > > > > I'm really not an expert on setting up the connection between Apache > > > > > and Tomcat but I believe that the connections only operate in two > > > > > protocols: http or ajp. NIO is a Tomcat connector that can > > communicate > > > > > in either http or ajp. Because of that, I don't see any reason that > > > > > the Apache mod_jk connector module couldn't communicate with the NIO > > > > > connector. Since I don't use an NIO connector I could be wrong, but > > > > > that is the way I see it. As a starting point, try these > > > > > configurations: > > > > > > server.xml > > > > > > > > > > channelNioSocket.maxThreads="150" > > > > > channelNioSocket.maxSpareThreads="50" > > > > > channelNioSocket.minSpareThreads="25" > > > > > channelNioSocket.bufferSize="16384" /> > > > > > > (You seem to want to use port 8081 which should be fine, but the > > > > > standard ajp port is 8009. However, I wouldn't put it on port 8081 if > > > > > you are already using that port for another protocol such as http.) > > > > > > httpd.conf > > > > > > LoadModule jk_module modules/mod_jk.so > > > > > JkWorkersFile conf/workers.properties > > > > > JkLogFile /var/log/httpd/mod_jk.log > > > > > JkLogLevel info > > > > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > > > > > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > > > > > JkRequestLogFormat "%w %V %T" > > > > > JkMount /*.svc ajp13 > > > > > > (For the JkMount I use *.svc because I use the svc extension for my > > > > > GWT service target to differentiate service points from other files.) > > > > > > (For example, in my web.xml file I will map my service something like > > > > > this to use the svc extension: > > > > > > > > > > MyService > > > > > com.mysite.server.MyServiceImpl > > > > > > > > > > > > > > > MyService > > > > > /MyService.svc > > > > > > > > > > > And in my GWT code I create my service target like this: > > > > > > target.setServiceEntryPoint( GWT.getModuleBaseURL() + > > > > > "MyService.svc" ); > > > > > > I did this because I had troubles with the 'JkMount /* ajp13' entry, > > > > > but when I used /*.svc the problems cleared up.) > > > > > > workers.properties > > > > > > workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 > > > > > workers.java_home=/usr/java/jdk1.6.0_06 > > > > > worker.list=ajp13 > > > > > worker.ajp13.port=8009 > > > > > worker.ajp13.host=localhost > > > > > worker.ajp13.type=ajp13 > > > > > worker.ajp13.lbfactor=1 > > > > > worker.loadbalancer.type=lb > > > > > worker.loadbalancer.balance_workers=ajp13 > > > > > > (Of course, match the ajp port in the workers.property file to the > > > > > port you define in the server.xml file. Also, if your Tomcat is not > > on > > > > > the same server as your Apache you will need to change the localhost > > > > > host entry to the correct host URL.) > > > > > > I hope this helps. > > > > > > On Feb 20, 12:51 pm, Fran wrote: > > > > > > Bad notices. > > > > > > > This dude has same problem that me and he was answered that mod_jk > > > > > > dont support NIO > > > > > > > http://www.mail-archive.co
Re: tomcat and apache problem
The problem persist with the news changes. Seems that apache cant connect to tomcat :( The error log of apache and mod_jk dont show nothing. Not ever nio conection stablished 2010/2/21 dablack > I borrowed that connector configuration from a website I came across. > I'm not sure why port=0 either. If I put more research into the NIO > connector I could probably find out. Why don't you try adding the > lines, > > enableLookups="false" > scheme="http" > > to the NIO connector configuration in the server.xml file that I gave > you earlier. > > As far as accessing the ajp service using http://localhost:8009/servlet, > that will not work. Your browser uses the http protocol and the 8009 > port is being serviced by the ajp protocol. You should still have your > connector using the http protocol configured to listen on port 8081. > > Hopefully the scheme line above will help the NIO connector > communicate back to Apache. > > On Feb 20, 4:45 pm, Fran wrote: > > I test your config, dablack, but I cant connect to the servlet. > > With this config I cant access not even to:http://localhost:8009/servlet > > that is tomcat directly without apache > > > > On 20 feb, 23:36, Fran wrote: > > > > > I cant undestand why this config: > > > > > > > channelNioSocket.maxThreads=" > > > 150" > > > channelNioSocket.maxSpareThreads="50" > > > channelNioSocket.minSpareThreads="25" > > > channelNioSocket.bufferSize="16384" /> > > > > > Why port 0 ? > > > > > 2010/2/20 dablack > > > > > > Fran, > > > > > > I'm really not an expert on setting up the connection between Apache > > > > and Tomcat but I believe that the connections only operate in two > > > > protocols: http or ajp. NIO is a Tomcat connector that can > communicate > > > > in either http or ajp. Because of that, I don't see any reason that > > > > the Apache mod_jk connector module couldn't communicate with the NIO > > > > connector. Since I don't use an NIO connector I could be wrong, but > > > > that is the way I see it. As a starting point, try these > > > > configurations: > > > > > > server.xml > > > > > > > > > channelNioSocket.maxThreads="150" > > > > channelNioSocket.maxSpareThreads="50" > > > > channelNioSocket.minSpareThreads="25" > > > > channelNioSocket.bufferSize="16384" /> > > > > > > (You seem to want to use port 8081 which should be fine, but the > > > > standard ajp port is 8009. However, I wouldn't put it on port 8081 if > > > > you are already using that port for another protocol such as http.) > > > > > > httpd.conf > > > > > > LoadModule jk_module modules/mod_jk.so > > > > JkWorkersFile conf/workers.properties > > > > JkLogFile /var/log/httpd/mod_jk.log > > > > JkLogLevel info > > > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > > > > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > > > > JkRequestLogFormat "%w %V %T" > > > > JkMount /*.svc ajp13 > > > > > > (For the JkMount I use *.svc because I use the svc extension for my > > > > GWT service target to differentiate service points from other files.) > > > > > > (For example, in my web.xml file I will map my service something like > > > > this to use the svc extension: > > > > > > > > MyService > > > > com.mysite.server.MyServiceImpl > > > > > > > > > > > > MyService > > > > /MyService.svc > > > > > > > > > > And in my GWT code I create my service target like this: > > > > > > target.setServiceEntryPoint( GWT.getModuleBaseURL() + > > > > "MyService.svc" ); > > > > > > I did this because I had troubles with the 'JkMount /* ajp13' entry, > > > > but when I used /*.svc the problems cleared up.) > > > > > > workers.properties > > > > > > workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 > > > > workers.java_home=/usr/java/jdk1.6.0_06 > > > > worker.list=ajp13 > > > > worker.ajp13.port=8009 > > > > worker.ajp13.host=localhost > > > > worker.ajp13.type=ajp13 > > > > worker.ajp13.lbfactor=1 > > > > worker.loadbalancer.type=lb > > > > worker.loadbalancer.balance_workers=ajp13 > > > > > > (Of course, match the ajp port in the workers.property file to the > > > > port you define in the server.xml file. Also, if your Tomcat is not > on > > > > the same server as your Apache you will need to change the localhost > > > > host entry to the correct host URL.) > > > > > > I hope this helps. > > > > > > On Feb 20, 12:51 pm, Fran wrote: > > > > > Bad notices. > > > > > > > This dude has same problem that me and he was answered that mod_jk > > > > > dont support NIO > > > > > > > http://www.mail-archive.com/us...@tomcat.apache.org/msg67701.html > > > > > > > :( > > > > > > > On 20 feb, 19:13, Fran wrote: > > > > > > > > Here the error when I change the protocol of > > > > > > protocol="org.apache.coyote.http11.Http11NioProtocol" to > protocol="AJP/ > > > > > > 1.3" > > > > > > > > [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or > refused > > > > > > connection. No response has been sent to the client (yet) > > > > > > [error] jk_ajp_common.c (2466): (worker1)
Re: tomcat and apache problem
I borrowed that connector configuration from a website I came across. I'm not sure why port=0 either. If I put more research into the NIO connector I could probably find out. Why don't you try adding the lines, enableLookups="false" scheme="http" to the NIO connector configuration in the server.xml file that I gave you earlier. As far as accessing the ajp service using http://localhost:8009/servlet, that will not work. Your browser uses the http protocol and the 8009 port is being serviced by the ajp protocol. You should still have your connector using the http protocol configured to listen on port 8081. Hopefully the scheme line above will help the NIO connector communicate back to Apache. On Feb 20, 4:45 pm, Fran wrote: > I test your config, dablack, but I cant connect to the servlet. > With this config I cant access not even to:http://localhost:8009/servlet > that is tomcat directly without apache > > On 20 feb, 23:36, Fran wrote: > > > I cant undestand why this config: > > > > channelNioSocket.maxThreads=" > > 150" > > channelNioSocket.maxSpareThreads="50" > > channelNioSocket.minSpareThreads="25" > > channelNioSocket.bufferSize="16384" /> > > > Why port 0 ? > > > 2010/2/20 dablack > > > > Fran, > > > > I'm really not an expert on setting up the connection between Apache > > > and Tomcat but I believe that the connections only operate in two > > > protocols: http or ajp. NIO is a Tomcat connector that can communicate > > > in either http or ajp. Because of that, I don't see any reason that > > > the Apache mod_jk connector module couldn't communicate with the NIO > > > connector. Since I don't use an NIO connector I could be wrong, but > > > that is the way I see it. As a starting point, try these > > > configurations: > > > > server.xml > > > > > > channelNioSocket.maxThreads="150" > > > channelNioSocket.maxSpareThreads="50" > > > channelNioSocket.minSpareThreads="25" > > > channelNioSocket.bufferSize="16384" /> > > > > (You seem to want to use port 8081 which should be fine, but the > > > standard ajp port is 8009. However, I wouldn't put it on port 8081 if > > > you are already using that port for another protocol such as http.) > > > > httpd.conf > > > > LoadModule jk_module modules/mod_jk.so > > > JkWorkersFile conf/workers.properties > > > JkLogFile /var/log/httpd/mod_jk.log > > > JkLogLevel info > > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > > > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > > > JkRequestLogFormat "%w %V %T" > > > JkMount /*.svc ajp13 > > > > (For the JkMount I use *.svc because I use the svc extension for my > > > GWT service target to differentiate service points from other files.) > > > > (For example, in my web.xml file I will map my service something like > > > this to use the svc extension: > > > > > > MyService > > > com.mysite.server.MyServiceImpl > > > > > > > > > MyService > > > /MyService.svc > > > > > > > And in my GWT code I create my service target like this: > > > > target.setServiceEntryPoint( GWT.getModuleBaseURL() + > > > "MyService.svc" ); > > > > I did this because I had troubles with the 'JkMount /* ajp13' entry, > > > but when I used /*.svc the problems cleared up.) > > > > workers.properties > > > > workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 > > > workers.java_home=/usr/java/jdk1.6.0_06 > > > worker.list=ajp13 > > > worker.ajp13.port=8009 > > > worker.ajp13.host=localhost > > > worker.ajp13.type=ajp13 > > > worker.ajp13.lbfactor=1 > > > worker.loadbalancer.type=lb > > > worker.loadbalancer.balance_workers=ajp13 > > > > (Of course, match the ajp port in the workers.property file to the > > > port you define in the server.xml file. Also, if your Tomcat is not on > > > the same server as your Apache you will need to change the localhost > > > host entry to the correct host URL.) > > > > I hope this helps. > > > > On Feb 20, 12:51 pm, Fran wrote: > > > > Bad notices. > > > > > This dude has same problem that me and he was answered that mod_jk > > > > dont support NIO > > > > > http://www.mail-archive.com/us...@tomcat.apache.org/msg67701.html > > > > > :( > > > > > On 20 feb, 19:13, Fran wrote: > > > > > > Here the error when I change the protocol of > > > > > protocol="org.apache.coyote.http11.Http11NioProtocol" to > > > > > protocol="AJP/ > > > > > 1.3" > > > > > > [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or refused > > > > > connection. No response has been sent to the client (yet) > > > > > [error] jk_ajp_common.c (2466): (worker1) connecting to tomcat failed. > > > > > > On 20 feb, 19:04, Fran wrote: > > > > > > > Should be due to protocol. > > > > > > My messenger seems that need NIO protocol but if I put the NIO > > > > > > protocol MOD_JK cant conect apache with tomcat > > > > > > > If I use this tomcat config, mod_jk cant conect apache with tomcat. > > > > > > > > > > > > connectionTimeout="2" > > > > > > port="8081" > > > > > > protocol="org.apache.coyote.http11.Htt
Re: tomcat and apache problem
The module that you are telling is mod_jk and I cant use it because dont support NIO or I cant to do work. I cant implement all aplication without apache because I am implementing a comet chat that will be included in a web aplication that already exists and I cant import to tomcat. Thanks for your help 2010/2/21 Paul S > So basically you are trying to serve up 2 things. An app from Tomcat > and some other web content from Apache server? Firstly, can't the > other content be served from Tomcat too? That way you could just stop > your Apache server from running, then configure Tomcat to load up on > port 80 (default for http) and that way no one will every know they're > hitting a Tomcat server. Or, there is an Apache server module, I > forgot the name, but is allows you to specify that any normal request > goes to the http server and then any request at /j/* gets pushed along > to the Tomcat server. I'm hazy on the details but have seen it working > before and I don't think it's using a proxy in the way you are. > > Could work? > > > On Feb 16, 12:47 am, Fran wrote: > > Hello, > > > > I need your help about GWT integration in apache and tomcat. > > > > I have a GWT aplication that has server side. This server side is > > listening in 8081 port at tomcat. > > I need that the client side be in apache that is listening in port 80, > > so I need call server side at port 8081 of tomcat. > > How can I do? > > > > If I run the aplication int tomcat, its works fine. But If I run the > > aplication in apache, the server side dont work. > > > > Help me please > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: XHTML does not work?
That is pretty curious that the svg would load just because you have .xhtml as the file extension instead of .html, I have never used svg so this may very well be true and I'm showing my ignorance. About the validator, it's not the Holy Grail, code validation is very handy and a good discipline to keep, but sometimes you just can't make your code validate simply because you are using a modern spec that is unsupported or some browser specific feature. I see http://jwatt.org/svg/demos/xhtml-with-inline-svg.xhtml does have .xhtml on the end. Hmm. Well, stick with your .xhtml extension, and live with the fact that GWT's plugin will not offer you the convenient link? What you could do is just manually type the "production mode" link into your browser and then bookmark that... oh, having said that, perhaps the production mode browser plugin will not accept non-html extensions? Is the SVG something that GWT interacts with? On Feb 21, 2:56 am, markww wrote: > Hmm ok I see what you're saying. I'm trying to include an > element in my document. > > If I use the xhtml doc type template you linked to, I get it validated > 100% in that validator you mentioned. Now I try adding a simple svg > element and it failes. > > When I add my stuff to it, the validation fails. But I'm adding > it as specified from the mozilla page on > svg:http://jwatt.org/svg/demos/xhtml-with-inline-svg.xhtml > > when I leave this document as .html, no svg elements are rendered. > When switching to .xhtml, then the browsers render it. > > I know this out of scope of GWT, just throwing it out there! > > Thanks for your help! > > On Feb 20, 3:35 pm, Paul S wrote: > > > > > Oh yeah you're right. GWT development mode just simply scans the war > > folder for anything ending in .html and then offers those options to > > you "for your convenience". So 2 things to say here, > > 1. you are not limited to these URLs, you can type anything in your > > browser > > 2. GWT plugin just isn't seeing your .xhtml file, doesn't mean it's > > not there. > > However, to make everyone happy I'd recommend you change your .xhtml > > back to .html and then fix up the doctype to be XHTML. Honestly, > > that's all that counts, not the file extension. In fact try this: > > 1. run your app > > 2. right click and view source > > 3. copy your (x)html source code > > 4. visithttp://validator.w3.organdclick the Validate by Direct > > Input tab > > 5. paste your source code into there and click validate. > > If you have provided valid xhtml code it will detect that and tell > > you. > > > Paul S > > > On Feb 21, 2:29 am, markww wrote: > > > > Hi Paul, > > > > Yes I set the path in web.xml, so it doesn't have any problem with > > > that, it looks like when I try to run my project as a web app, I get > > > the usual startup sequence, but no URL is provided for me when launch > > > is complete. > > > > When I run a project using a .html file, I see this appear in the > > > console: > > > > "For your convenience, here are some URLs that you may wish to view > > > in development mode. Simply copy/paste a URL below into any suported > > > browser." > > > > and normally the url is shown right there, but when using xhtml, no > > > url is shown, that area is just empty. > > > > If I run a normal project, I can copy the url, then change it to point > > > to my other project's xhtml file, and it is shown by the browser, but > > > no javascript is executed. > > > > I am using Safari so it should be able to handle xhtml documents. I > > > also updated the doc type via the url you had provided. This should be > > > working? > > > > Thanks > > > > On Feb 20, 3:14 pm, Paul S wrote: > > > > > Switching to XHTML is about changing the doctype of the page, not the > > > > file extension. > > > > See this:http://www.w3.org/QA/2002/04/valid-dtd-list.html > > > > > When you say you have updated the references, where? Are you getting > > > > something like: > > > > > HTTP ERROR: 404 > > > > NOT_FOUND > > > > RequestURI=/index.html > > > > Powered by Jetty:// > > > > > If so then you need to tell browser to hit your new URL. Also go into > > > > web.xml and change the default welcome page URL. > > > > > On Feb 21, 12:33 am, markww wrote: > > > > > > Hi, > > > > > > I want to use an XHTML file instead of an HTML file as the entry page > > > > > for my project. If I change myproject.HTML to myproject.XHTML, the > > > > > project no longer works (I updated the other references to .HTML in my > > > > > project as well). Does gwt just not work with XHTML? > > > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
So basically you are trying to serve up 2 things. An app from Tomcat and some other web content from Apache server? Firstly, can't the other content be served from Tomcat too? That way you could just stop your Apache server from running, then configure Tomcat to load up on port 80 (default for http) and that way no one will every know they're hitting a Tomcat server. Or, there is an Apache server module, I forgot the name, but is allows you to specify that any normal request goes to the http server and then any request at /j/* gets pushed along to the Tomcat server. I'm hazy on the details but have seen it working before and I don't think it's using a proxy in the way you are. Could work? On Feb 16, 12:47 am, Fran wrote: > Hello, > > I need your help about GWT integration in apache and tomcat. > > I have a GWT aplication that has server side. This server side is > listening in 8081 port at tomcat. > I need that the client side be in apache that is listening in port 80, > so I need call server side at port 8081 of tomcat. > How can I do? > > If I run the aplication int tomcat, its works fine. But If I run the > aplication in apache, the server side dont work. > > Help me please > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: XHTML does not work?
Hmm ok I see what you're saying. I'm trying to include an element in my document. If I use the xhtml doc type template you linked to, I get it validated 100% in that validator you mentioned. Now I try adding a simple svg element and it failes. When I add my stuff to it, the validation fails. But I'm adding it as specified from the mozilla page on svg: http://jwatt.org/svg/demos/xhtml-with-inline-svg.xhtml when I leave this document as .html, no svg elements are rendered. When switching to .xhtml, then the browsers render it. I know this out of scope of GWT, just throwing it out there! Thanks for your help! On Feb 20, 3:35 pm, Paul S wrote: > Oh yeah you're right. GWT development mode just simply scans the war > folder for anything ending in .html and then offers those options to > you "for your convenience". So 2 things to say here, > 1. you are not limited to these URLs, you can type anything in your > browser > 2. GWT plugin just isn't seeing your .xhtml file, doesn't mean it's > not there. > However, to make everyone happy I'd recommend you change your .xhtml > back to .html and then fix up the doctype to be XHTML. Honestly, > that's all that counts, not the file extension. In fact try this: > 1. run your app > 2. right click and view source > 3. copy your (x)html source code > 4. visithttp://validator.w3.organd click the Validate by Direct > Input tab > 5. paste your source code into there and click validate. > If you have provided valid xhtml code it will detect that and tell > you. > > Paul S > > On Feb 21, 2:29 am, markww wrote: > > > > > Hi Paul, > > > Yes I set the path in web.xml, so it doesn't have any problem with > > that, it looks like when I try to run my project as a web app, I get > > the usual startup sequence, but no URL is provided for me when launch > > is complete. > > > When I run a project using a .html file, I see this appear in the > > console: > > > "For your convenience, here are some URLs that you may wish to view > > in development mode. Simply copy/paste a URL below into any suported > > browser." > > > and normally the url is shown right there, but when using xhtml, no > > url is shown, that area is just empty. > > > If I run a normal project, I can copy the url, then change it to point > > to my other project's xhtml file, and it is shown by the browser, but > > no javascript is executed. > > > I am using Safari so it should be able to handle xhtml documents. I > > also updated the doc type via the url you had provided. This should be > > working? > > > Thanks > > > On Feb 20, 3:14 pm, Paul S wrote: > > > > Switching to XHTML is about changing the doctype of the page, not the > > > file extension. > > > See this:http://www.w3.org/QA/2002/04/valid-dtd-list.html > > > > When you say you have updated the references, where? Are you getting > > > something like: > > > > HTTP ERROR: 404 > > > NOT_FOUND > > > RequestURI=/index.html > > > Powered by Jetty:// > > > > If so then you need to tell browser to hit your new URL. Also go into > > > web.xml and change the default welcome page URL. > > > > On Feb 21, 12:33 am, markww wrote: > > > > > Hi, > > > > > I want to use an XHTML file instead of an HTML file as the entry page > > > > for my project. If I change myproject.HTML to myproject.XHTML, the > > > > project no longer works (I updated the other references to .HTML in my > > > > project as well). Does gwt just not work with XHTML? > > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: XHTML does not work?
Oh yeah you're right. GWT development mode just simply scans the war folder for anything ending in .html and then offers those options to you "for your convenience". So 2 things to say here, 1. you are not limited to these URLs, you can type anything in your browser 2. GWT plugin just isn't seeing your .xhtml file, doesn't mean it's not there. However, to make everyone happy I'd recommend you change your .xhtml back to .html and then fix up the doctype to be XHTML. Honestly, that's all that counts, not the file extension. In fact try this: 1. run your app 2. right click and view source 3. copy your (x)html source code 4. visit http://validator.w3.org and click the Validate by Direct Input tab 5. paste your source code into there and click validate. If you have provided valid xhtml code it will detect that and tell you. Paul S On Feb 21, 2:29 am, markww wrote: > Hi Paul, > > Yes I set the path in web.xml, so it doesn't have any problem with > that, it looks like when I try to run my project as a web app, I get > the usual startup sequence, but no URL is provided for me when launch > is complete. > > When I run a project using a .html file, I see this appear in the > console: > > "For your convenience, here are some URLs that you may wish to view > in development mode. Simply copy/paste a URL below into any suported > browser." > > and normally the url is shown right there, but when using xhtml, no > url is shown, that area is just empty. > > If I run a normal project, I can copy the url, then change it to point > to my other project's xhtml file, and it is shown by the browser, but > no javascript is executed. > > I am using Safari so it should be able to handle xhtml documents. I > also updated the doc type via the url you had provided. This should be > working? > > Thanks > > On Feb 20, 3:14 pm, Paul S wrote: > > > > > Switching to XHTML is about changing the doctype of the page, not the > > file extension. > > See this:http://www.w3.org/QA/2002/04/valid-dtd-list.html > > > When you say you have updated the references, where? Are you getting > > something like: > > > HTTP ERROR: 404 > > NOT_FOUND > > RequestURI=/index.html > > Powered by Jetty:// > > > If so then you need to tell browser to hit your new URL. Also go into > > web.xml and change the default welcome page URL. > > > On Feb 21, 12:33 am, markww wrote: > > > > Hi, > > > > I want to use an XHTML file instead of an HTML file as the entry page > > > for my project. If I change myproject.HTML to myproject.XHTML, the > > > project no longer works (I updated the other references to .HTML in my > > > project as well). Does gwt just not work with XHTML? > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: XHTML does not work?
Hi Paul, Yes I set the path in web.xml, so it doesn't have any problem with that, it looks like when I try to run my project as a web app, I get the usual startup sequence, but no URL is provided for me when launch is complete. When I run a project using a .html file, I see this appear in the console: "For your convenience, here are some URLs that you may wish to view in development mode. Simply copy/paste a URL below into any suported browser." and normally the url is shown right there, but when using xhtml, no url is shown, that area is just empty. If I run a normal project, I can copy the url, then change it to point to my other project's xhtml file, and it is shown by the browser, but no javascript is executed. I am using Safari so it should be able to handle xhtml documents. I also updated the doc type via the url you had provided. This should be working? Thanks On Feb 20, 3:14 pm, Paul S wrote: > Switching to XHTML is about changing the doctype of the page, not the > file extension. > See this:http://www.w3.org/QA/2002/04/valid-dtd-list.html > > When you say you have updated the references, where? Are you getting > something like: > > HTTP ERROR: 404 > NOT_FOUND > RequestURI=/index.html > Powered by Jetty:// > > If so then you need to tell browser to hit your new URL. Also go into > web.xml and change the default welcome page URL. > > On Feb 21, 12:33 am, markww wrote: > > > > > Hi, > > > I want to use an XHTML file instead of an HTML file as the entry page > > for my project. If I change myproject.HTML to myproject.XHTML, the > > project no longer works (I updated the other references to .HTML in my > > project as well). Does gwt just not work with XHTML? > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Small error in UiBuilder doc page
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Overview contains some getting started examples. In the following styleNames should be styleName (no s). This button doesn't look like one -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: custom runtime exception got translated to StatusCodeException
I'm not sure about this one, but basically I do know that the GWT RPC mechanism needs to know if your RPC services are planning on throwing an exception. In my code I have the following: public interface UserService extends RemoteService { void save(User user) throws ServerSideException; } If I don't specify throws ServerSideException then I get "Call failed on the server; check server logs", if I do add throws ServerSideException I get control of the exception and I can give it a meaningful message. I'm not sure that this is exactly what you are facing though? Paul S On Feb 20, 11:42 pm, bhomass wrote: > I got my server side code to throw custom exceptions for a long time > and have a lot of working code to copy from. > > this time, I throw a ExpiredSessionException, it got translated to > StatusCodeException. and on the client side, caught.getMessage() is > this huge html fragment, starting with Http Error: 500. the whole > message is too big to display in the error dialog and is unsuitable > for users. > > the only difference I can detect is > 1. the ExpiredSessionException is not a declared exception, > 2. it is throw during the service() call, instead of in one the rpc > methods. > > I am not sure what is the cause for loosing my original Exception. > > how can I get gwt to throw my own exception and not the > StatusCodeException? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: XHTML does not work?
Switching to XHTML is about changing the doctype of the page, not the file extension. See this: http://www.w3.org/QA/2002/04/valid-dtd-list.html When you say you have updated the references, where? Are you getting something like: HTTP ERROR: 404 NOT_FOUND RequestURI=/index.html Powered by Jetty:// If so then you need to tell browser to hit your new URL. Also go into web.xml and change the default welcome page URL. On Feb 21, 12:33 am, markww wrote: > Hi, > > I want to use an XHTML file instead of an HTML file as the entry page > for my project. If I change myproject.HTML to myproject.XHTML, the > project no longer works (I updated the other references to .HTML in my > project as well). Does gwt just not work with XHTML? > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Events (like Click) not firing when using UiBuilder? SOLVED
I started playing with UiBuilder this evening and I love it, thanks Google! I was working through the examples on http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Overview In the third code block down we see this: HelloWorld helloWorld = new HelloWorld(); Document.get().getBody().appendChild(helloWorld.getElement()); ... which works fine. Later there is an example with a button that you can click and apparently the event handling is magically done like this: @UiHandler("button") void handleClick(ClickEvent e) { Window.alert("Hello, AJAX"); } Clicking the button does nothing! It had me stumped for a while. I found a few comments in the group saying it wasn't working. Then I remembered that GWT has a "different" way of handling events other than hooking onto raw elements, so of course this won't work: Document.get().getBody().appendChild(helloWorld.getElement()); The solution is to use: RootPanel.get().add(helloWorld); Obvious now! Paul S -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
I test your config, dablack, but I cant connect to the servlet. With this config I cant access not even to: http://localhost:8009/servlet that is tomcat directly without apache On 20 feb, 23:36, Fran wrote: > I cant undestand why this config: > > channelNioSocket.maxThreads=" > 150" > channelNioSocket.maxSpareThreads="50" > channelNioSocket.minSpareThreads="25" > channelNioSocket.bufferSize="16384" /> > > Why port 0 ? > > 2010/2/20 dablack > > > Fran, > > > I'm really not an expert on setting up the connection between Apache > > and Tomcat but I believe that the connections only operate in two > > protocols: http or ajp. NIO is a Tomcat connector that can communicate > > in either http or ajp. Because of that, I don't see any reason that > > the Apache mod_jk connector module couldn't communicate with the NIO > > connector. Since I don't use an NIO connector I could be wrong, but > > that is the way I see it. As a starting point, try these > > configurations: > > > server.xml > > > > channelNioSocket.maxThreads="150" > > channelNioSocket.maxSpareThreads="50" > > channelNioSocket.minSpareThreads="25" > > channelNioSocket.bufferSize="16384" /> > > > (You seem to want to use port 8081 which should be fine, but the > > standard ajp port is 8009. However, I wouldn't put it on port 8081 if > > you are already using that port for another protocol such as http.) > > > httpd.conf > > > LoadModule jk_module modules/mod_jk.so > > JkWorkersFile conf/workers.properties > > JkLogFile /var/log/httpd/mod_jk.log > > JkLogLevel info > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > > JkRequestLogFormat "%w %V %T" > > JkMount /*.svc ajp13 > > > (For the JkMount I use *.svc because I use the svc extension for my > > GWT service target to differentiate service points from other files.) > > > (For example, in my web.xml file I will map my service something like > > this to use the svc extension: > > > > MyService > > com.mysite.server.MyServiceImpl > > > > > > MyService > > /MyService.svc > > > > > And in my GWT code I create my service target like this: > > > target.setServiceEntryPoint( GWT.getModuleBaseURL() + > > "MyService.svc" ); > > > I did this because I had troubles with the 'JkMount /* ajp13' entry, > > but when I used /*.svc the problems cleared up.) > > > workers.properties > > > workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 > > workers.java_home=/usr/java/jdk1.6.0_06 > > worker.list=ajp13 > > worker.ajp13.port=8009 > > worker.ajp13.host=localhost > > worker.ajp13.type=ajp13 > > worker.ajp13.lbfactor=1 > > worker.loadbalancer.type=lb > > worker.loadbalancer.balance_workers=ajp13 > > > (Of course, match the ajp port in the workers.property file to the > > port you define in the server.xml file. Also, if your Tomcat is not on > > the same server as your Apache you will need to change the localhost > > host entry to the correct host URL.) > > > I hope this helps. > > > On Feb 20, 12:51 pm, Fran wrote: > > > Bad notices. > > > > This dude has same problem that me and he was answered that mod_jk > > > dont support NIO > > > > http://www.mail-archive.com/us...@tomcat.apache.org/msg67701.html > > > > :( > > > > On 20 feb, 19:13, Fran wrote: > > > > > Here the error when I change the protocol of > > > > protocol="org.apache.coyote.http11.Http11NioProtocol" to protocol="AJP/ > > > > 1.3" > > > > > [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or refused > > > > connection. No response has been sent to the client (yet) > > > > [error] jk_ajp_common.c (2466): (worker1) connecting to tomcat failed. > > > > > On 20 feb, 19:04, Fran wrote: > > > > > > Should be due to protocol. > > > > > My messenger seems that need NIO protocol but if I put the NIO > > > > > protocol MOD_JK cant conect apache with tomcat > > > > > > If I use this tomcat config, mod_jk cant conect apache with tomcat. > > > > > > > > > > connectionTimeout="2" > > > > > port="8081" > > > > > protocol="org.apache.coyote.http11.Http11NioProtocol" > > > > > maxThreads="5" > > > > > acceptorThreadCount="2" > > > > > redirectPort="8443" > > > > > socket.directBuffer="false" /> > > > > > > If I use the last tomcat config, tomcat cant execute the servlet. > > > > > This is the error log: > > > > > > GRAVE: Error, processing connection > > > > > java.lang.IndexOutOfBoundsException > > > > > at java.io.BufferedInputStream.read(Unknown Source) > > > > > at > > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620) > > > > > at > > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577) > > > > > at > > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > > > > 685) > > > > > at org.apache.jk.common.ChannelSocket > > > > > $SocketConnection.runIt(ChannelSocket.java:889) > > > > > at org.apache.tomcat.util.threads.ThreadPool > > > > > $ControlRunnable.run(ThreadPool.ja
Re: tomcat and apache problem
I cant undestand why this config: Why port 0 ? 2010/2/20 dablack > Fran, > > I'm really not an expert on setting up the connection between Apache > and Tomcat but I believe that the connections only operate in two > protocols: http or ajp. NIO is a Tomcat connector that can communicate > in either http or ajp. Because of that, I don't see any reason that > the Apache mod_jk connector module couldn't communicate with the NIO > connector. Since I don't use an NIO connector I could be wrong, but > that is the way I see it. As a starting point, try these > configurations: > > server.xml > > channelNioSocket.maxThreads="150" > channelNioSocket.maxSpareThreads="50" > channelNioSocket.minSpareThreads="25" > channelNioSocket.bufferSize="16384" /> > > (You seem to want to use port 8081 which should be fine, but the > standard ajp port is 8009. However, I wouldn't put it on port 8081 if > you are already using that port for another protocol such as http.) > > httpd.conf > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile conf/workers.properties > JkLogFile /var/log/httpd/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > JkRequestLogFormat "%w %V %T" > JkMount /*.svc ajp13 > > (For the JkMount I use *.svc because I use the svc extension for my > GWT service target to differentiate service points from other files.) > > (For example, in my web.xml file I will map my service something like > this to use the svc extension: > > MyService > com.mysite.server.MyServiceImpl > > > MyService > /MyService.svc > > > And in my GWT code I create my service target like this: > > target.setServiceEntryPoint( GWT.getModuleBaseURL() + > "MyService.svc" ); > > I did this because I had troubles with the 'JkMount /* ajp13' entry, > but when I used /*.svc the problems cleared up.) > > workers.properties > > workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 > workers.java_home=/usr/java/jdk1.6.0_06 > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > worker.ajp13.lbfactor=1 > worker.loadbalancer.type=lb > worker.loadbalancer.balance_workers=ajp13 > > (Of course, match the ajp port in the workers.property file to the > port you define in the server.xml file. Also, if your Tomcat is not on > the same server as your Apache you will need to change the localhost > host entry to the correct host URL.) > > I hope this helps. > > > > On Feb 20, 12:51 pm, Fran wrote: > > Bad notices. > > > > This dude has same problem that me and he was answered that mod_jk > > dont support NIO > > > > http://www.mail-archive.com/us...@tomcat.apache.org/msg67701.html > > > > :( > > > > On 20 feb, 19:13, Fran wrote: > > > > > Here the error when I change the protocol of > > > protocol="org.apache.coyote.http11.Http11NioProtocol" to protocol="AJP/ > > > 1.3" > > > > > [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or refused > > > connection. No response has been sent to the client (yet) > > > [error] jk_ajp_common.c (2466): (worker1) connecting to tomcat failed. > > > > > On 20 feb, 19:04, Fran wrote: > > > > > > Should be due to protocol. > > > > My messenger seems that need NIO protocol but if I put the NIO > > > > protocol MOD_JK cant conect apache with tomcat > > > > > > If I use this tomcat config, mod_jk cant conect apache with tomcat. > > > > > > > > > connectionTimeout="2" > > > > port="8081" > > > > protocol="org.apache.coyote.http11.Http11NioProtocol" > > > > maxThreads="5" > > > > acceptorThreadCount="2" > > > > redirectPort="8443" > > > > socket.directBuffer="false" /> > > > > > > If I use the last tomcat config, tomcat cant execute the servlet. > > > > This is the error log: > > > > > > GRAVE: Error, processing connection > > > > java.lang.IndexOutOfBoundsException > > > > at java.io.BufferedInputStream.read(Unknown Source) > > > > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620) > > > > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577) > > > > at > > > > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > > > 685) > > > > at org.apache.jk.common.ChannelSocket > > > > $SocketConnection.runIt(ChannelSocket.java:889) > > > > at org.apache.tomcat.util.threads.ThreadPool > > > > $ControlRunnable.run(ThreadPool.java:690) > > > > at java.lang.Thread.run(Unknown Source) > > > > > > On 20 feb, 18:49, Fran wrote: > > > > > > > I am configuring mod_jk > > > > > > > For tomat, in server.xml : > > > > > > > > > > > connectionTimeout="2" > > > > > port="8081" > > > > > protocol="AJP/1.3" > > > > > maxThreads="5" > > > > > acceptorThreadCount="2" > > > > > redirectPort="8443" > > > > > socket.directBuffer="false" /> > > > > > > > For apache, in httpd.conf : > > > > > > > > > > > > JkWorkersFile "/etc/httpd/conf/workers.properties" > > > >
Re: tomcat and apache problem
Fran, I'm really not an expert on setting up the connection between Apache and Tomcat but I believe that the connections only operate in two protocols: http or ajp. NIO is a Tomcat connector that can communicate in either http or ajp. Because of that, I don't see any reason that the Apache mod_jk connector module couldn't communicate with the NIO connector. Since I don't use an NIO connector I could be wrong, but that is the way I see it. As a starting point, try these configurations: server.xml (You seem to want to use port 8081 which should be fine, but the standard ajp port is 8009. However, I wouldn't put it on port 8081 if you are already using that port for another protocol such as http.) httpd.conf LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /*.svc ajp13 (For the JkMount I use *.svc because I use the svc extension for my GWT service target to differentiate service points from other files.) (For example, in my web.xml file I will map my service something like this to use the svc extension: MyService com.mysite.server.MyServiceImpl MyService /MyService.svc And in my GWT code I create my service target like this: target.setServiceEntryPoint( GWT.getModuleBaseURL() + "MyService.svc" ); I did this because I had troubles with the 'JkMount /* ajp13' entry, but when I used /*.svc the problems cleared up.) workers.properties workers.tomcat_home=/usr/tomcat/apache-tomcat-6.0.16 workers.java_home=/usr/java/jdk1.6.0_06 worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=ajp13 (Of course, match the ajp port in the workers.property file to the port you define in the server.xml file. Also, if your Tomcat is not on the same server as your Apache you will need to change the localhost host entry to the correct host URL.) I hope this helps. On Feb 20, 12:51 pm, Fran wrote: > Bad notices. > > This dude has same problem that me and he was answered that mod_jk > dont support NIO > > http://www.mail-archive.com/us...@tomcat.apache.org/msg67701.html > > :( > > On 20 feb, 19:13, Fran wrote: > > > Here the error when I change the protocol of > > protocol="org.apache.coyote.http11.Http11NioProtocol" to protocol="AJP/ > > 1.3" > > > [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or refused > > connection. No response has been sent to the client (yet) > > [error] jk_ajp_common.c (2466): (worker1) connecting to tomcat failed. > > > On 20 feb, 19:04, Fran wrote: > > > > Should be due to protocol. > > > My messenger seems that need NIO protocol but if I put the NIO > > > protocol MOD_JK cant conect apache with tomcat > > > > If I use this tomcat config, mod_jk cant conect apache with tomcat. > > > > > > connectionTimeout="2" > > > port="8081" > > > protocol="org.apache.coyote.http11.Http11NioProtocol" > > > maxThreads="5" > > > acceptorThreadCount="2" > > > redirectPort="8443" > > > socket.directBuffer="false" /> > > > > If I use the last tomcat config, tomcat cant execute the servlet. > > > This is the error log: > > > > GRAVE: Error, processing connection > > > java.lang.IndexOutOfBoundsException > > > at java.io.BufferedInputStream.read(Unknown Source) > > > at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620) > > > at > > > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577) > > > at > > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > > 685) > > > at org.apache.jk.common.ChannelSocket > > > $SocketConnection.runIt(ChannelSocket.java:889) > > > at org.apache.tomcat.util.threads.ThreadPool > > > $ControlRunnable.run(ThreadPool.java:690) > > > at java.lang.Thread.run(Unknown Source) > > > > On 20 feb, 18:49, Fran wrote: > > > > > I am configuring mod_jk > > > > > For tomat, in server.xml : > > > > > > > > connectionTimeout="2" > > > > port="8081" > > > > protocol="AJP/1.3" > > > > maxThreads="5" > > > > acceptorThreadCount="2" > > > > redirectPort="8443" > > > > socket.directBuffer="false" /> > > > > > For apache, in httpd.conf : > > > > > > > > > JkWorkersFile "/etc/httpd/conf/workers.properties" > > > > JkLogFile "/etc/httpd/logs/mod_jk.log" > > > > JkLogLevel warn > > > > JkMount /msn/* worker1 > > > > > > > > > The result is that the url:http://localhost/msn/Messenger.htmlworks, > > > > but this html conects to servelet that not work. > > > > The mod_jk runs html in apache that fisically are in tomcat, but cant > > > > run the servlet. > > > > > ¿Is necesary some special configure? > > > > > Thanks! > > > > > On 20 feb, 16:04, Fran wrote: > > > > > > Ok, thanks. > > >
XHTML does not work?
Hi, I want to use an XHTML file instead of an HTML file as the entry page for my project. If I change myproject.HTML to myproject.XHTML, the project no longer works (I updated the other references to .HTML in my project as well). Does gwt just not work with XHTML? Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
custom runtime exception got translated to StatusCodeException
I got my server side code to throw custom exceptions for a long time and have a lot of working code to copy from. this time, I throw a ExpiredSessionException, it got translated to StatusCodeException. and on the client side, caught.getMessage() is this huge html fragment, starting with Http Error: 500. the whole message is too big to display in the error dialog and is unsuitable for users. the only difference I can detect is 1. the ExpiredSessionException is not a declared exception, 2. it is throw during the service() call, instead of in one the rpc methods. I am not sure what is the cause for loosing my original Exception. how can I get gwt to throw my own exception and not the StatusCodeException? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: libstdc++.so.5 error
Well, if you're running ubuntu karmic, then just Google for it more carefully. I had this problem too and I found that many others did also. Solution was to install that lib somehow, but I don't remember exact link I used.. On Feb 19, 9:02 am, DD wrote: > I am trying to run a GWT application with the hosted mode in Eclipse > (In Ubuntu) but I am getting the following errors when attempting to > it. Please look at it and give me a suggestion how to overcome it. > > ** Unable to load Mozilla for hosted mode ** > java.lang.UnsatisfiedLinkError: /home/zaloni/Dhiraj/GWT/gwt- > linux-1.7.0/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open > shared object file: No such file or directory > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) > at java.lang.Runtime.load0(Runtime.java:770) > at java.lang.System.load(System.java:1003) > at > com.google.gwt.dev.shell.moz.MozillaInstall.load(MozillaInstall.java: > 190) > at > com.google.gwt.dev.BootStrapPlatform.initHostedMode(BootStrapPlatform.java: > 53) > at com.google.gwt.dev.HostedModeBase.(HostedModeBase.java:362) > at com.google.gwt.dev.SwtHostedModeBase.(SwtHostedModeBase.java: > 98) > at com.google.gwt.dev.HostedMode.(HostedMode.java:271) > at com.google.gwt.dev.HostedMode.main(HostedMode.java:230) > > When I checked my system I have found libstdc++6 installed in my > system, so I tried to install the libstdc++5 by using the following > command > > apt-get install libstdc++5 > > But then I found the following problem > > r...@zaloni-desktop:/home/zaloni# apt-get install libstdc++5 > Reading package lists... Done > Building dependency tree > Reading state information... Done > Package libstdc++5 is not available, but is referred to by > another package. > This may mean that the package is missing, has been obsoleted, > or > is only available from another source > E: Package libstdc++5 has no installation candidate > r...@zaloni-desktop:/home/zaloni# -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: unresolved issues
On Fri, Feb 19, 2010 at 4:01 PM, mwaschkowski wrote: > Hi, > > This is a general question regarding outstanding issues in the issue > tracker - how does this thing work? I know there was an effort to > clean things up a few months ago, but I haven't seen the results of > that, if any. > The effort to get the triage process under control is still a work in progress. To give you an idea what we're looking at, there were over 180 issues submitted post 2.0. Many of them without a sufficient repro case, or simply support related questions. On top of that, we have a backlog of roughly 600 internal issues that have been reported by Googlers that we are trying to address. We've managed to triage 380 of those issues, and should have the internal issue tracker cleaned up shortly. Once we have that out of the way we're moving to the external issue tracker. We talked the internal issue tracker first because, for most issues, we know more of the history and therefore it's easy to triage. Net, net -- there's a large amount of information that we need to clean up and organize. It's going to take some time. The effort a few months ago was a broad swipe at removing items that are no longer an issue. I still have starred issues from 2006 like: > > http://code.google.com/p/google-web-toolkit/issues/detail?id=374 > > which is still in accepted status and has even been commented that it > was still present in 2.0.0-m2, but still no resolution. > "Accepted" is admittedly a bit vague. Really, John has accepted because he knows it fails within an area of the SDK that he's normally hanging out in. What you want to watch for is "Started". Or > > > http://code.google.com/p/google-web-toolkit/issues/detail?id=1405&start=100 > > which is from 2007, and was last updated with: > > Comment 9 by jlaba...@google.com, Jan 05, 2009 > The close button is such a common use case, I agree we should add it. > Status: Accepted > Labels: Milestone-Planned > > What does this mean? > Planned for inclusion in an unspecified upcoming release. We know that we need to get to it, but we don't have a timeframe yet. Also vague, and not useful when the issue has been "planned" for a year. I don't want this space to become like Adobe's tracking where issues > are opened and never resolved. I don't see this as being an issue > about actually fixing the issues, just updating/clarifying the status > of current issues. > > This is an urgent issue that requires immediate attention - what can I > do to help? > Triaging issues, by identifying those that are reproducible or providing a repro case, where one doesn't exist, would be extremely beneficial. Right now, there's quite a bit of noise in the issue tracker, and legit items are being overlooked. We, much like you, want to fix this. > > Thank you, > > Mark > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to add unit test to GWT/AppEngine project created by Eclipse
Hi, How do I add easily unit tests to a GWT/AppEngine project that I already created a while ago. If I start from scratch I know I can use webAppCreator like described here [1] but I already have my project. I also noticed that when I create a New Web Application Project in Eclipse that a test directory is created but what do I do to make tests run that are in there. Thanks Jaap [1] http://code.google.com/webtoolkit/doc/latest/tutorial/JUnit.html -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Slider Panel like in maps?
you can find Collapsible panel implemented in GWT here: http://code.google.com/p/gwt-incubator-1-5-wiki/wiki/CollapsiblePanel or in GXT just set panel.setCollapsible(true); to the panel. See the demo here: http://www.extjs.com/example Peter On Feb 19, 3:57 am, Panam wrote: > I really love the "slider panel" that is used with Google maps. Is > this (or a very similar) widget somehow available for GWT? Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
Bad notices. This dude has same problem that me and he was answered that mod_jk dont support NIO http://www.mail-archive.com/us...@tomcat.apache.org/msg67701.html :( On 20 feb, 19:13, Fran wrote: > Here the error when I change the protocol of > protocol="org.apache.coyote.http11.Http11NioProtocol" to protocol="AJP/ > 1.3" > > [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or refused > connection. No response has been sent to the client (yet) > [error] jk_ajp_common.c (2466): (worker1) connecting to tomcat failed. > > On 20 feb, 19:04, Fran wrote: > > > Should be due to protocol. > > My messenger seems that need NIO protocol but if I put the NIO > > protocol MOD_JK cant conect apache with tomcat > > > If I use this tomcat config, mod_jk cant conect apache with tomcat. > > > > connectionTimeout="2" > > port="8081" > > protocol="org.apache.coyote.http11.Http11NioProtocol" > > maxThreads="5" > > acceptorThreadCount="2" > > redirectPort="8443" > > socket.directBuffer="false" /> > > > If I use the last tomcat config, tomcat cant execute the servlet. > > This is the error log: > > > GRAVE: Error, processing connection > > java.lang.IndexOutOfBoundsException > > at java.io.BufferedInputStream.read(Unknown Source) > > at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620) > > at > > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577) > > at > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > 685) > > at org.apache.jk.common.ChannelSocket > > $SocketConnection.runIt(ChannelSocket.java:889) > > at org.apache.tomcat.util.threads.ThreadPool > > $ControlRunnable.run(ThreadPool.java:690) > > at java.lang.Thread.run(Unknown Source) > > > On 20 feb, 18:49, Fran wrote: > > > > I am configuring mod_jk > > > > For tomat, in server.xml : > > > > > > connectionTimeout="2" > > > port="8081" > > > protocol="AJP/1.3" > > > maxThreads="5" > > > acceptorThreadCount="2" > > > redirectPort="8443" > > > socket.directBuffer="false" /> > > > > For apache, in httpd.conf : > > > > > > > JkWorkersFile "/etc/httpd/conf/workers.properties" > > > JkLogFile "/etc/httpd/logs/mod_jk.log" > > > JkLogLevel warn > > > JkMount /msn/* worker1 > > > > > > > The result is that the url:http://localhost/msn/Messenger.htmlworks, > > > but this html conects to servelet that not work. > > > The mod_jk runs html in apache that fisically are in tomcat, but cant > > > run the servlet. > > > > ¿Is necesary some special configure? > > > > Thanks! > > > > On 20 feb, 16:04, Fran wrote: > > > > > Ok, thanks. > > > > > I will test mod_jk. I tested jk but i couldnt to run it in tomcat 6. > > > > Im going to test jk one more time. > > > > > Thanks a lot! > > > > > On 20 feb, 03:46, Chris Lercher wrote: > > > > > > The timeout is for the max time the app server gets to respond. If it > > > > > closes the connection earlier (which it should do, once it sends its > > > > > response), then the delay is shorter. This is what long polling is all > > > > > about. So if you set the delay to 15 seconds, it doesn't mean you have > > > > > to wait for 15 seconds every time. That's only, when the server > > > > > doesn't send the response within 15 seconds. > > > > > > But as dablack says, probably mod_jk is the better solution anyway. > > > > > However, like I said earlier, there may be additional proxies between > > > > > your server and the client. So if it doesn't work correctly with > > > > > mod_proxy, this could indicate, that there is some problem in the way > > > > > the app server and the client interact. I have the feeling, that the > > > > > server maybe doesn't close its connection, so the proxy won't (always) > > > > > flush its contents. This triggers a timeout on the proxy or on the > > > > > client (depending on which is shorter). > > > > > > On Feb 20, 2:08 am, Fran wrote: > > > > > > > If I dont put a short timeout, the aplication isnt good. > > > > > > Do you imagine that the MSN Messenger delay 15 seconds to show you > > > > > > the > > > > > > contact list? > > > > > > > I need that the solution works as the aplication in tomcat. If I > > > > > > execute the aplication on tomcat, it work without timeout. So I need > > > > > > when the aplication works in apache, seems that is working in > > > > > > tomcat. > > > > > > > Im going to show the url that you tell me. Thanks! > > > > > > > On 20 feb, 01:57, Chris Lercher wrote: > > > > > > > > BTW, here's a link about timeouts + > > > > > > > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http
Re: MVP Beginner Question
Chris, Thanks for the link and great content. I've been looking for something like this that really walks through step by step, piece by piece, not just how to do it, but why to do it so much so, that I started doing it myself: http://howtogwt.blogspot.com/ . Not sure yet if what I've been blogging on is pure duplication of other stuff out there, like this doc. you reference. Anyway, I look forward to the upcoming parts of your doc and thanks again for the link. - Eric On Feb 19, 8:23 am, Krishna wrote: > Chris, > > Thanks so much for linking to the tutorial on MVP architecture. Do you > have any idea as to when the follow up articles will be posted? I'm > specifically interested in the integration with Ui Binder as well as > best practices wrt code splitting. > > Thanks a ton, > > Krishna > > On Dec 23 2009, 12:38 am, Sripathi Krishnan > > > > wrote: > > Pretty neat article. > > Eagerly waiting for the "UI Binder and MVP" follow up post, cause thats a > > pain right now. > > > (I know there are a few threads floating around on that topic, and the > > solutions provided are good .. but I would still like a better integration > > with UiBinder). > > > --Sri > > > 2009/12/22 Chris Ramsdale > > > > We've just added a tech article related to building GWT-based apps using > > > the MVP architecture. Although it doesn't discuss all of the topics > > > discussed in Ray's presentation (stay tuned, we'll be adding more), it > > > does > > > cover the basics of MVP, using the Event Bus, getting History right, and > > > testing. > > > >http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur... > > > > - Chris > > > > On Mon, Dec 21, 2009 at 2:32 PM, pohl wrote: > > > >> I haven't used any of the pre-packaged frameworks, so I can't help you > > >> select from them. > > > >> However, my team is using this architecture, having been inspired by > > >> the original talk at Google I/O. In my opinion, there is no better > > >> source of wisdom than that presentation, and its slides. > > > >> If you haven't seen it yet, do so. If you've seen it less than 20 > > >> times, keep re-watching it day after day until you have. > > > >>http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr... > > > >> > I understand that GIN is used for dependency injection but not able to > > >> > understand Event bus, Presenter and Dispatcher as they are handled > > >> > differently by these examples.. > > > >> EventBus is a decoupling mechanism, and is adequately explained by > > >> rjrjr in the video. > > > >> "Dispatcher" is probably what rjrjr refers to as ActionService, which > > >> is an implementation of the "command pattern" for RPC. This is also > > >> discussed very well in the video. > > > >> Presenter is the P in MVP, which is also discussed very well in the > > >> video. I suspect that after you have fully absorbed the > > >> presentation, you'll come back and look at the three samples/ > > >> frameworks with different eyes. > > > >> -- > > > >> You received this message because you are subscribed to the Google Groups > > >> "Google Web Toolkit" group. > > >> To post to this group, send email to google-web-tool...@googlegroups.com. > > >> To unsubscribe from this group, send email to > > >> google-web-toolkit+unsubscr...@googlegroups.com > >> cr...@googlegroups.com> > > >> . > > >> For more options, visit this group at > > >>http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-tool...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com > > cr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text > > >- > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
Here the error when I change the protocol of protocol="org.apache.coyote.http11.Http11NioProtocol" to protocol="AJP/ 1.3" [error] jk_ajp_common.c (1962): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet) [error] jk_ajp_common.c (2466): (worker1) connecting to tomcat failed. On 20 feb, 19:04, Fran wrote: > Should be due to protocol. > My messenger seems that need NIO protocol but if I put the NIO > protocol MOD_JK cant conect apache with tomcat > > If I use this tomcat config, mod_jk cant conect apache with tomcat. > > connectionTimeout="2" > port="8081" > protocol="org.apache.coyote.http11.Http11NioProtocol" > maxThreads="5" > acceptorThreadCount="2" > redirectPort="8443" > socket.directBuffer="false" /> > > If I use the last tomcat config, tomcat cant execute the servlet. > This is the error log: > > GRAVE: Error, processing connection > java.lang.IndexOutOfBoundsException > at java.io.BufferedInputStream.read(Unknown Source) > at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620) > at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 685) > at org.apache.jk.common.ChannelSocket > $SocketConnection.runIt(ChannelSocket.java:889) > at org.apache.tomcat.util.threads.ThreadPool > $ControlRunnable.run(ThreadPool.java:690) > at java.lang.Thread.run(Unknown Source) > > On 20 feb, 18:49, Fran wrote: > > > I am configuring mod_jk > > > For tomat, in server.xml : > > > > connectionTimeout="2" > > port="8081" > > protocol="AJP/1.3" > > maxThreads="5" > > acceptorThreadCount="2" > > redirectPort="8443" > > socket.directBuffer="false" /> > > > For apache, in httpd.conf : > > > > > JkWorkersFile "/etc/httpd/conf/workers.properties" > > JkLogFile "/etc/httpd/logs/mod_jk.log" > > JkLogLevel warn > > JkMount /msn/* worker1 > > > > > The result is that the url:http://localhost/msn/Messenger.htmlworks, > > but this html conects to servelet that not work. > > The mod_jk runs html in apache that fisically are in tomcat, but cant > > run the servlet. > > > ¿Is necesary some special configure? > > > Thanks! > > > On 20 feb, 16:04, Fran wrote: > > > > Ok, thanks. > > > > I will test mod_jk. I tested jk but i couldnt to run it in tomcat 6. > > > Im going to test jk one more time. > > > > Thanks a lot! > > > > On 20 feb, 03:46, Chris Lercher wrote: > > > > > The timeout is for the max time the app server gets to respond. If it > > > > closes the connection earlier (which it should do, once it sends its > > > > response), then the delay is shorter. This is what long polling is all > > > > about. So if you set the delay to 15 seconds, it doesn't mean you have > > > > to wait for 15 seconds every time. That's only, when the server > > > > doesn't send the response within 15 seconds. > > > > > But as dablack says, probably mod_jk is the better solution anyway. > > > > However, like I said earlier, there may be additional proxies between > > > > your server and the client. So if it doesn't work correctly with > > > > mod_proxy, this could indicate, that there is some problem in the way > > > > the app server and the client interact. I have the feeling, that the > > > > server maybe doesn't close its connection, so the proxy won't (always) > > > > flush its contents. This triggers a timeout on the proxy or on the > > > > client (depending on which is shorter). > > > > > On Feb 20, 2:08 am, Fran wrote: > > > > > > If I dont put a short timeout, the aplication isnt good. > > > > > Do you imagine that the MSN Messenger delay 15 seconds to show you the > > > > > contact list? > > > > > > I need that the solution works as the aplication in tomcat. If I > > > > > execute the aplication on tomcat, it work without timeout. So I need > > > > > when the aplication works in apache, seems that is working in tomcat. > > > > > > Im going to show the url that you tell me. Thanks! > > > > > > On 20 feb, 01:57, Chris Lercher wrote: > > > > > > > BTW, here's a link about timeouts + > > > > > > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
Should be due to protocol. My messenger seems that need NIO protocol but if I put the NIO protocol MOD_JK cant conect apache with tomcat If I use this tomcat config, mod_jk cant conect apache with tomcat. If I use the last tomcat config, tomcat cant execute the servlet. This is the error log: GRAVE: Error, processing connection java.lang.IndexOutOfBoundsException at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 685) at org.apache.jk.common.ChannelSocket $SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Unknown Source) On 20 feb, 18:49, Fran wrote: > I am configuring mod_jk > > For tomat, in server.xml : > > connectionTimeout="2" > port="8081" > protocol="AJP/1.3" > maxThreads="5" > acceptorThreadCount="2" > redirectPort="8443" > socket.directBuffer="false" /> > > For apache, in httpd.conf : > > > JkWorkersFile "/etc/httpd/conf/workers.properties" > JkLogFile "/etc/httpd/logs/mod_jk.log" > JkLogLevel warn > JkMount /msn/* worker1 > > > The result is that the url:http://localhost/msn/Messenger.htmlworks, > but this html conects to servelet that not work. > The mod_jk runs html in apache that fisically are in tomcat, but cant > run the servlet. > > ¿Is necesary some special configure? > > Thanks! > > On 20 feb, 16:04, Fran wrote: > > > Ok, thanks. > > > I will test mod_jk. I tested jk but i couldnt to run it in tomcat 6. > > Im going to test jk one more time. > > > Thanks a lot! > > > On 20 feb, 03:46, Chris Lercher wrote: > > > > The timeout is for the max time the app server gets to respond. If it > > > closes the connection earlier (which it should do, once it sends its > > > response), then the delay is shorter. This is what long polling is all > > > about. So if you set the delay to 15 seconds, it doesn't mean you have > > > to wait for 15 seconds every time. That's only, when the server > > > doesn't send the response within 15 seconds. > > > > But as dablack says, probably mod_jk is the better solution anyway. > > > However, like I said earlier, there may be additional proxies between > > > your server and the client. So if it doesn't work correctly with > > > mod_proxy, this could indicate, that there is some problem in the way > > > the app server and the client interact. I have the feeling, that the > > > server maybe doesn't close its connection, so the proxy won't (always) > > > flush its contents. This triggers a timeout on the proxy or on the > > > client (depending on which is shorter). > > > > On Feb 20, 2:08 am, Fran wrote: > > > > > If I dont put a short timeout, the aplication isnt good. > > > > Do you imagine that the MSN Messenger delay 15 seconds to show you the > > > > contact list? > > > > > I need that the solution works as the aplication in tomcat. If I > > > > execute the aplication on tomcat, it work without timeout. So I need > > > > when the aplication works in apache, seems that is working in tomcat. > > > > > Im going to show the url that you tell me. Thanks! > > > > > On 20 feb, 01:57, Chris Lercher wrote: > > > > > > BTW, here's a link about timeouts + > > > > > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
I am configuring mod_jk For tomat, in server.xml : For apache, in httpd.conf : JkWorkersFile "/etc/httpd/conf/workers.properties" JkLogFile "/etc/httpd/logs/mod_jk.log" JkLogLevel warn JkMount /msn/* worker1 The result is that the url: http://localhost/msn/Messenger.html works, but this html conects to servelet that not work. The mod_jk runs html in apache that fisically are in tomcat, but cant run the servlet. ¿Is necesary some special configure? Thanks! On 20 feb, 16:04, Fran wrote: > Ok, thanks. > > I will test mod_jk. I tested jk but i couldnt to run it in tomcat 6. > Im going to test jk one more time. > > Thanks a lot! > > On 20 feb, 03:46, Chris Lercher wrote: > > > The timeout is for the max time the app server gets to respond. If it > > closes the connection earlier (which it should do, once it sends its > > response), then the delay is shorter. This is what long polling is all > > about. So if you set the delay to 15 seconds, it doesn't mean you have > > to wait for 15 seconds every time. That's only, when the server > > doesn't send the response within 15 seconds. > > > But as dablack says, probably mod_jk is the better solution anyway. > > However, like I said earlier, there may be additional proxies between > > your server and the client. So if it doesn't work correctly with > > mod_proxy, this could indicate, that there is some problem in the way > > the app server and the client interact. I have the feeling, that the > > server maybe doesn't close its connection, so the proxy won't (always) > > flush its contents. This triggers a timeout on the proxy or on the > > client (depending on which is shorter). > > > On Feb 20, 2:08 am, Fran wrote: > > > > If I dont put a short timeout, the aplication isnt good. > > > Do you imagine that the MSN Messenger delay 15 seconds to show you the > > > contact list? > > > > I need that the solution works as the aplication in tomcat. If I > > > execute the aplication on tomcat, it work without timeout. So I need > > > when the aplication works in apache, seems that is working in tomcat. > > > > Im going to show the url that you tell me. Thanks! > > > > On 20 feb, 01:57, Chris Lercher wrote: > > > > > BTW, here's a link about timeouts + > > > > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using FocusWidget.addClickHandler for GWT 2.0 Hyperlink (ClickHandler deprecated)
Hi Tapas- Check out this issue for the reasoning behind the deprecation of Hyperlink.addClickHandler: http://code.google.com/p/google-web-toolkit/issues/detail?id=1960 from tamplinjohn's comment on that thread: "I also think that allowing click listeners/handlers on Hyperlink is part of the reason for the confusion -- if its goal is to manipulate the history state, there isn't any reason for adding a listener on the click, but you should instead add a history listener so that function works the same way whether activated by a click, a back button, or loading from a bookmark. If for some reason you do really need a click handler, then it can still be done by using Anchor and calling History.newItem from its listener." On Feb 19, 2:18 pm, Tapas Adhikary wrote: > I have upgraded my project to GWT 2.0, and my hyperlinks keeps getting > the wornings for using the deprecated ClickHandler. > > The JavaDoc says to use FocusWidget.addClickHandle. Why does the > Hyperlink need to use this FocusWidget? How should I use it ? Why can > a Hyperlink not use a ClickHandler but a GWT Button and Anchor can? > What is the logic behind it ? > > I'm not sure how to use it? Does anyone have an example? Please share. > > Thanks, > -Tapas -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Could not wrap a PopupPanel as a Composite!
Hi, I always get the exception: "java.lang.IllegalStateException: This widget's parent does not implement HasWidgets" while trying to use a Composite which wraps a PopupPanel. A simple example: // The main application window public class AppWindow extends Composite { private final PopupPanel panel = new PopupPanel(true); public AppWindow() { initWidget(panel); } public void show() { panel.setSize("300px", "300px"); panel.add(new Label("Application Window")); panel.show(); } } // A button to trigger the application window public class AppButton extends Composite { private final Button button = new Button("App"); private final AppWindow window; public AppButton(AppWindow window) { this.window = window; button.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { AppButton.this.window.show(); } }); initWidget(button); } } // Entry public class Ping implements EntryPoint { @Override public void onModuleLoad() { AppWindow window = new AppWindow(); AppButton button = new AppButton(window); RootPanel.get().add(button); } } Now click the button I always get the expected exception :) . It's the same if the trigger is done via an event bus (i.e., the AppButton fires an event, the AppWindow catchs the event and show it self). Note that it's ok if AppWindow does NOT extend Composite. Could someone explain please? The stack trace: 00:29:42.628 [ERROR] [ping] Uncaught exception escaped java.lang.IllegalStateException: This widget's parent does not implement HasWidgets at com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:127) at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:84) at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:75) at com.google.gwt.user.client.ui.PopupPanel $ResizeAnimation.onInstantaneousRun(PopupPanel.java:311) at com.google.gwt.user.client.ui.PopupPanel $ResizeAnimation.setState(PopupPanel.java:208) at com.google.gwt.user.client.ui.PopupPanel.setState(PopupPanel.java: 1374) at com.google.gwt.user.client.ui.PopupPanel.show(PopupPanel.java: 969) at com.oneo.ping.client.test.AppWindow.show(AppWindow.java:18) at com.oneo.ping.client.test.AppButton$1.onClick(AppButton.java: 17) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java: 54) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.HandlerManager $HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager $HandlerRegistry.access$1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 178) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 100) at com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java: 54) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.M
Re: Some question about Serialization tricks...
That doesn't fully address the entire question, though. Aside from the potential gotchas about using java.io.Serializable, the source files are still in a separate project, which is easy to imagine in a larger modular project. I've heard of people including the source when bundling their jars, but I wasn't able to get GWT to find the source there myself. My imperfect solution to the problem was to write a code generator that uses reflection on specified classes to generate both IsSerializable DTOs and utility classes for convering between the two. It turned out to be a bigger project than I wanted it to be, even for the limited cases I had, and it needs a complete rewrite. However, I'd be happy to share the ideas and what code I have if anyone else is interested in contributing. I think this is a significant inconvenience for GWT and would like to find a good long-term solution for it. -Brian On Feb 1, 10:22 am, Paul Robinson wrote: > You don't *have* to use IsSerializable. Serializable is also supported. > Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... > > and > > http://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#Does_the... > > Paul > > > > BM wrote: > > Hi, folks. > > I have a little question that I haven't figured out myself (mea > > culpa). Since GWT requires IsSerializable, how better I can avoid > > hassle with duplicating redundant Java Beans? The way it works for me > > now: one JavaBean is for database, another is for GWT, but both of > > them are identical (GWT's one IsSerializable that's the only a > > difference so far). > > > I will explain you how I am doing now (not sure it is best way, but it > > works so far). For example, suppose I have a completely separated > > library, called "Database Operations". It looks like this: > > > DatabaseOperations op = new DatabaseOperations(jndiStringOfJDBC); > > List hellos = op.getABunchOfHellos(); > > > Now, the code above will return me a list of HelloBean that has a > > method .getHelloWorldText() for example. So far, so good. Now, in > > order to display these beans from the GWT callback in the javascript > > client, I need make sure HelloBean implements IsSerializable and its > > source is in GWT tree, otherwise GWT Compiler will complain and fail. > > Bo!, but that's _another_ project with _another_ namespace etc > > etc. So what I do is simply create a stupid clone of HelloBean for GWT > > that implements IsSerializable and then import HelloBean-not- > > serializable to HelloBean-that-is-serializable. I don't like this way, > > because if I changed something in the service, I have to change a lot > > of stuff elsewhere etc. It is also redundant beans... OTOH, I can not > > find how to avoid this either... :-( > > > So the question is: how I can get rid of these redundant beans, having > > my HelloBean made once and forever made or where to RTFM about this, > > since I can not find any doc regarding this? > > > Please note, I don't use ORM due to my own point of view that ORM > > (Hibernate, Top-Link etc) is just a plain wrong idea for actually > > amplify your hassle, rather then solve it. So I have no problem to > > twist my JavaBeans in any direction, basically. I am fine storing in a > > Database any POJO that implements anything (Serializable, > > IsSerializable or nothing at all). > > > P.S. I am using NetBeans for the development, if this would help. > > Probably not. > > > -- > > BM -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problems faced while upgrading version from 1.1.10 to 1.7.0
hello there, can anyone please provide any help to me ASAP in the issue posted by me since I am running out of time already. ISSUE::- I want to upgrade the GWT version of my application from current version 1.1.10 to newer version 1.7.0 but when ever I am trying to do the same after build I am getting the error in com.gwt.components and com.gwt.components.client and in the client I am getting the error in the class canvas.java. Does anyone faced the same error while upgrading and if yes then please provide the possible solution for the same. It will be helpfull for me if you are able to provide the solution ASAP. Regards, Ashish -- Forwarded message -- From: chotu Date: Thu, Feb 18, 2010 at 3:09 PM Subject: Problems faced while upgrading version from 1.1.10 to 1.7.0 To: Google Web Toolkit Hi There, I want to upgrade the GWT version of my application from current version 1.1.10 to newer version 1.7.0 but when ever I am trying to do the same after build I am getting the error in com.gwt.components and com.gwt.components.client and in the client I am getting the error in the class canvas.java. Does anyone faced the same error while upgrading and if yes then please provide the possible solution for the same. It will be helpfull for me if you are able to provide the solution ASAP. Regards, Ashish -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Hope is a good thing;probably one of the best thing and no good thing ever dies -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: tomcat and apache problem
Ok, thanks. I will test mod_jk. I tested jk but i couldnt to run it in tomcat 6. Im going to test jk one more time. Thanks a lot! On 20 feb, 03:46, Chris Lercher wrote: > The timeout is for the max time the app server gets to respond. If it > closes the connection earlier (which it should do, once it sends its > response), then the delay is shorter. This is what long polling is all > about. So if you set the delay to 15 seconds, it doesn't mean you have > to wait for 15 seconds every time. That's only, when the server > doesn't send the response within 15 seconds. > > But as dablack says, probably mod_jk is the better solution anyway. > However, like I said earlier, there may be additional proxies between > your server and the client. So if it doesn't work correctly with > mod_proxy, this could indicate, that there is some problem in the way > the app server and the client interact. I have the feeling, that the > server maybe doesn't close its connection, so the proxy won't (always) > flush its contents. This triggers a timeout on the proxy or on the > client (depending on which is shorter). > > On Feb 20, 2:08 am, Fran wrote: > > > If I dont put a short timeout, the aplication isnt good. > > Do you imagine that the MSN Messenger delay 15 seconds to show you the > > contact list? > > > I need that the solution works as the aplication in tomcat. If I > > execute the aplication on tomcat, it work without timeout. So I need > > when the aplication works in apache, seems that is working in tomcat. > > > Im going to show the url that you tell me. Thanks! > > > On 20 feb, 01:57, Chris Lercher wrote: > > > > BTW, here's a link about timeouts + > > > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
desigining an application
Hie I am planning to design a web application using GWT with GAE Please have a look at: http://www.sakshum.com This has stuff like data forms, admin area and all. Can I design this kind of application using GWT or GWT is good for a single page app?\] Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with GWT FlowPanel and other Panel Styles!
You need to apply the CSS to the children of the FlowPanel (i.e. what you are adding to the panel) rather than the FlowPanel itself. Out of interest, are you using UiBinder or not? Any particular reason you don't want to use HorizontalPanel? On Feb 20, 3:57 am, Tan Jia Bao wrote: > Hi, thank you for your reply. > > I've done what you said and attached a CSS style to that flowpanel but it > still wouldn't work, though I'm not sure whether is my css file in the > correct folder but it works for my regular webpage. > > However, when I attach a style to some GWT generated text, it doesn't work. > What am I probably doing wrong? Thanks again! > > > > On Fri, Feb 19, 2010 at 8:40 PM, RPB wrote: > > > A FlowPanel will act like a vertical panel (since block-level elements > > will naturally stack up vertically) unless you change the CSS property > > of it's children to float:left; > > > Have a look at this for further info: > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html > > > On Feb 19, 6:17 am, Tan Jia Bao wrote: > > > Hi, I'm currently making an e-commerce site using GWT and DnD. > > > > Basically everything is well and in order except for the displaying of > > the > > > panels is done correctly. > > > > I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC > > > Client side, the data are used to create a new Widget where stuffs such > > as > > > the Product name and Image are used in. > > > > In that Widget's constructor, I put all the Labels, Image into a Vertical > > > Panel, the constructor is created with UsageExample client side file, in > > > that client file, I have a FlowPanel which adds the widget into itself. > > Then > > > my mainentrypoint calls and retrieves that FlowPanel and placing it into > > the > > > mainPanel to display on the webpage. > > > > Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like > > a > > > VerticalPanel, I tried changing it to horizontalPanel and it works, > > > everything else works except for the FlowPanel. Can anyone help on what > > I'm > > > doing wrong? Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.