JUnit testing gwt app with multiple modules
I am currently using gwt 2.3 and smartgwtpower 2.5 nightly and using Eclipse on Linux. My web app is using common code, developed in house, and packaged to a jar called commonsmartgwt.jar. In this jar is the entry point class and has its own gwt.xml file. In my web app's gwt.xml file I inherit from the entry point class inherits name=common.code.Common/ and I use the entry point is common.code.client.Common as my web app's entry point. All my classes in my web app extend classes in the common code. Compilation works fine but when I try to run a test, I get the following error. Unable to find common/code/Common.gwt.xml on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source. If I create the folder common/code/ under classes and extract the .gwt.xml file from the commonsmartgwt.jar and put it in that directory, I get a different error. com.google.gwt.junit.JUnitFatalLaunchException: The test class 'my.package.client.MyFirstTest' was not found in module 'common.client.Common'; no compilation unit for that type was seen at com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java: 743) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java: 1346) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java: 1309) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java: 296) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java: 130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: 38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java: 390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 197) Is there a way to Unit test this application. Please let me know if my situation is not clear. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Scroll table border design
I have a tab panel that inside it has a list of clickable labels on the left side. When the label is clicked, I will create a scroll panel to the right of the labels. Here is a screenshot of it on dropbox. http://www.dropbox.com/gallery/2374591/1/Screen%20Shot?h=8204f3. Is there any way for me to draw the border of the scroll panel so that it can point to the label clicked, sort of like what happens for google instant previews that the link you hover over has a pop up to the right that points to it? To further explain myself I want it to have that sideways triangle that points to the label like google instant preview. Is that possible to do either with the css of the scroll panel or the border? Any insight would be much appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Package structure question
The project root package is com/example/report. I have other packages that all fall under this root package, eg. com/example/report/client com/example/report/client/controller. I need to know if it is possible to include different packages into my project that don't fall under the root package. For eg. com/example/viewtable com/example/ viewtable/server and can I put rpc methods in this new server package. I already have com/example/report/server with rpc classes in there and they work fine. But when I add the new package it complains that there is no source code available for the type ; did you forget to inherit a required module. My question is, do I have to put all my packages under com/example/report? Another question is then can I rename the root package to com/example and then go from there? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Package structure question
I just ended up moving the gwt.xml file one directory higher, then added the source path / code and it worked. Thanks. On May 11, 9:16 am, -sowdri- sow...@gmail.com wrote: no source code available for the type ; did you forget to inherit a required module You get this error, if GWT cannot find the source code for the module on the client side. So your job is to specify the packages which has to be converted into JS at compile time. This could be specified in your *Module.gwt.xml*. You can add any package as you want (as long as GWT can convert them into JS). Below is a simple example for doing the same: source path='client' / source path='shared' / source path='server/enums' / Here I was in need of all enums in *server/enums* package on the client side :) Thanks, -sowdri- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Datebox with day of year format?
The DateTimeFormat doesn't seem to support day of year format for the day, and I want to know if anyone has had any experience finding a work around. I'm trying to get my DateBox.DefaultFormat to be -DDD HH:MM:SS, but so far I can't find support for day of year, 1 - 365. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
onKeyDown getting incorrect keyCode
I've got a textbox that I only want positive floats in. So pretty much I just want to allow digits and a '.'. I have my class implement the KeyboardListener inteface and add the addkeyboardListener(this) to the textbox. I then implement onKeyDown, onKeyPress and onKeyUp with the parameters Widget sender, char keyCode, int modifiers. When I debug the code and break inside onKeyDown, after pressing the . in the number pad I get keyCode = n, then if i press the . in the main keyboard area I get keycode = 3/4. When I press the 1 in the number pad I get a, 2 = b, 3 = c etc... Can anyone help me figure this out. I am using gwt 2.1. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Getting database results from server to client
I am passing 2 Dates from the client to the server via RPC. The server will then take these 2 dates and query the database for the results between these dates, something roughly along the lines of select * from table where date_attribue between date1 and date2. Now when I get the result set, what is the best or maybe simplest way to pass back the results so that I can display the rows in something like a celltable widget? I'm wondering what options I have. I've read a little about code sharing but I've never used it before. Any suggestions and advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Returning URL from RPC
I make a call to and rpc and the rpc returns a string. The string is the name of a business report generated, report.html. Now I want the client to embed this html in the app, so I use a Frame widget. Now I want to know how to instantiate this frame, since I have been trying Frame frame = new Frame(GWT.getHostPageBaseURL() + report.html); This is just returning a 404 - GET error. I tried passing back the path of the file, /myfolder/report.html, but that didn't work. I also tried getHostPageBaseURL() + modulename/servicename/ + reportname but I get the same 404 error. My question is, what string do I have to pass back in order to be able to embed this page in my app? Is this even possible. I tried passing back the html as a string and it worked, but it took way too long for big business reports, approx 2 1/2 minutes to render, and this is too long, so I'm trying other options. Any insight or advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Returning URL from RPC
I'm testing this in development mode and when I do the GWT.log and find the path, and type it in the browser I get the 404 file not found error. How do I make the file visible to http requests? Is there a place I should be storing the file, like a public folder under the war file or something? On Mar 29, 11:44 am, Ben Imp benlee...@gmail.com wrote: I suppose the obvious thing to investigate would be whether ???/ myfolder/report.html is visible to http requests. That will depend on where exactly your code is writing this HTML file to and whether your app server and/or web server allow reading from that location. -Ben On Mar 29, 10:26 am, azuniga alessandro.zun...@gmail.com wrote: I make a call to and rpc and the rpc returns a string. The string is the name of a business report generated, report.html. Now I want the client to embed this html in the app, so I use a Frame widget. Now I want to know how to instantiate this frame, since I have been trying Frame frame = new Frame(GWT.getHostPageBaseURL() + report.html); This is just returning a 404 - GET error. I tried passing back the path of the file, /myfolder/report.html, but that didn't work. I also tried getHostPageBaseURL() + modulename/servicename/ + reportname but I get the same 404 error. My question is, what string do I have to pass back in order to be able to embed this page in my app? Is this even possible. I tried passing back the html as a string and it worked, but it took way too long for big business reports, approx 2 1/2 minutes to render, and this is too long, so I'm trying other options. Any insight or advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Returning URL from RPC
What I'm trying to do is add the html page which is the report, to the tab panel. I moved the report to the war file and I'm able to embed it in my app. When I tried the url, i would always get the 404 error, until I moved it. I guess it was not visible or accessible to the web app because I copied and pasted the path. On Mar 29, 12:16 pm, Harald Schilly harald.schi...@gmail.com wrote: On Tue, Mar 29, 2011 at 18:11, azuniga alessandro.zun...@gmail.com wrote: How do I make the file visible to http requests? A file in /war/* is visible. I think we still don't really know what you want to accomplish, when you file is created and so on. Also, is the URL valid? H -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
HTML widget takes too long to render
I have a gwt webapp that makes an rpc to the server, the server generates a report, then the report returns a string, which is just the html contents of the report, which contains a large amount of html. After timing the rpc and how long it takes for the html to be returned and a new html widget to be created and added to the panel, its about 1 minute. 27 seconds is spent running the report generation code. However, it takes really long for the html to render or to appear on the firefox page, about 2 minutes and 40 seconds and I am wondering why if all the code is completed in 58 seconds, why does it take so long for the html to display? It feels like it freezes up the computer for that time in between the 58 seconds and the 2 minutes and 40 seconds. Anyone have any insight? Also, any insights into how I can make my code more efficient or faster? Any links or info is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Out of memory: PermGen space
I'm using Eclipse IDE on RHEL. I am trying to determine if the problem is from the jvm, birt, gwt or my code. I started eclipse with a bigger perm gen space but still got the error. I am able to make an rpc call, return from it and then display the report, but once i try to run a 2nd report, the rpc calls again and this is where it fails. Here is the error: [WARN] A new version of GWT (2.2.0) is available For additional info see: file:/tmp/gwt-update-2.2.0.html Done generating report. The response was successful Starting Jetty on port [ERROR] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.birt.rpc.gwt.client.ReportGenerationService.executeReport(java.lang.String,java.util.ArrayList,java.util.ArrayList)' threw an unexpected exception: java.lang.OutOfMemoryError: PermGen space [ERROR] Error for /rpcsamplebirt/report java.lang.OutOfMemoryError: PermGen space [ERROR] EXCEPTION java.lang.OutOfMemoryError: PermGen space [ERROR] Out of memory; to increase the amount of memory, use the - Xmx flag at startup (java -Xmx128M ...) com.google.gwt.user.client.rpc.StatusCodeException: 500 Exception in thread State Saver java.lang.OutOfMemoryError: PermGen space -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Out of memory: PermGen space
Actually, I've tried that. Still get the same error. This is my eclipse.ini file. - -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503 -product org.eclipse.epp.package.reporting.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx512m - On Mar 24, 1:31 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Increase Permgem memory (http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_availa...), perhaps its too low 2011/3/24 azuniga alessandro.zun...@gmail.com I'm using Eclipse IDE on RHEL. I am trying to determine if the problem is from the jvm, birt, gwt or my code. I started eclipse with a bigger perm gen space but still got the error. I am able to make an rpc call, return from it and then display the report, but once i try to run a 2nd report, the rpc calls again and this is where it fails. Here is the error: [WARN] A new version of GWT (2.2.0) is available For additional info see: file:/tmp/gwt-update-2.2.0.html Done generating report. The response was successful Starting Jetty on port [ERROR] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.birt.rpc.gwt.client.ReportGenerationService.executeReport(java.lang.Str ing,java.util.ArrayList,java.util.ArrayList)' threw an unexpected exception: java.lang.OutOfMemoryError: PermGen space [ERROR] Error for /rpcsamplebirt/report java.lang.OutOfMemoryError: PermGen space [ERROR] EXCEPTION java.lang.OutOfMemoryError: PermGen space [ERROR] Out of memory; to increase the amount of memory, use the - Xmx flag at startup (java -Xmx128M ...) com.google.gwt.user.client.rpc.StatusCodeException: 500 Exception in thread State Saver java.lang.OutOfMemoryError: PermGen space -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to automatically download image to client from server when button clicked
I am having the user click a button that will generate a report on the server side. The report has embedded charts and graphs but since the report is generated server side with BIRT libraries, when I return the report as an HTML string, the images aren't displayed. What I'm trying to do is have those images downloaded to the user's machine automatically and then adding an image widget to the panel to display the charts and graphs. Is there some sample code I can use to do this? I have the server side servlet code I found from and example and modified it for my code. I am missing the client side code. Can anyone help? Also, I'd appreciate any suggestions or advice if I'm not doing this correctly or if there's some better way to do this. Server side: public class FileServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // set the responses content type resp.setContentType(image/svg+xml); // set the header for the response resp.setHeader(Content-Disposition, attachment; filename=image.svg); // get the output writer PrintWriter out = resp.getWriter(); // display a simple message out.println(This is the output content); out.println(Probably something dynamic should go in here); } } Client Side:? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT in Eclipse class load order
/** * */ package com.gwt.ReportGeneration.server; import org.eclipse.birt.report.engine.api.EngineException; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.gwt.ReportGeneration.client.ReportGenerationService; /** * @author azuniga * */ public class ReportGenerationServiceImpl extends RemoteServiceServlet implements ReportGenerationService { /* (non-Javadoc) * @see com.gwt.ReportGeneration.client.ReportGenerationService#executeReport(java.lang.String) */ @Override public void executeReport(String reportName) { // TODO Auto-generated method stub } public String getReport(String reportName){ // create an execute report object to execute the report ExecuteReport report = new ExecuteReport(); // run the report try { report.runReport(); } catch (EngineException e) { System.out.println(); e.printStackTrace(); } // return the string return report.getOutStreamAsString(); } public String getHTML(){ return null; } } and my classpath ?xml version=1.0 encoding=UTF-8? classpath classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/chartitemapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/com.ibm.icu_4.2.1.v20100412.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/chartengineapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/chartexamplescoreapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/commons-cli-1.0.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/coreapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/crosstabcoreapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dataadapterapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dataaggregationapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dataextraction.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dteapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/emitterconfig.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/engineapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/flute.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/js.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/modelapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/modelodaapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/odadesignapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/ org.apache.commons.codec_1.3.0.v20100518-1140.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/ org.eclipse.emf.common_2.6.0.v20100914-1218.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/ org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/ org.eclipse.emf.ecore_2.6.1.v20100914-1218.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/ org.w3c.css.sac_1.3.0.v200805290154.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/scriptapi.jar/ classpathentry kind=src path=src/ classpathentry kind=con path=com.google.gwt.eclipse.core.GWT_CONTAINER/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/ classpathentry kind=output path=war/WEB-INF/classes/ /classpath On Mar 11, 8:17 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: 1) Can you post the code in com.gwt.ReportGeneration.server.ReportGenerationServiceImpl. getReport(ReportGenerationServiceImpl.java:31)? 2) Can you attach .classpath? Juan 2011/3/10 azuniga
Re: GWT in Eclipse class load order
' to the web app classpath for this session For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/ webAppClassPath.html [WARN] Server class 'org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/ ReportEngine/lib/org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846.jar' to the web app classpath for this session For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/ webAppClassPath.html [WARN] Server class 'org.eclipse.birt.chart.examples.radar.model.RadarModelLoader' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/ ReportEngine/lib/chartexamplescoreapi.jar' to the web app classpath for this session For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/ webAppClassPath.html [WARN] Server class 'org.eclipse.birt.report.data.adapter.api.AdapterException' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/goesrapps1/birt-runtime-2_6_1/ ReportEngine/lib/dataadapterapi.jar' to the web app classpath for this session For additional info see: file:/goesrapps1/gwt-2.1.0/doc/helpInfo/ webAppClassPath.html On Mar 14, 5:31 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Can you share a sample that I can reproduce your error. It seems classloader issue. Juan 2011/3/14 azuniga alessandro.zun...@gmail.com /** * */ package com.gwt.ReportGeneration.server; import org.eclipse.birt.report.engine.api.EngineException; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.gwt.ReportGeneration.client.ReportGenerationService; /** * @author azuniga * */ public class ReportGenerationServiceImpl extends RemoteServiceServlet implements ReportGenerationService { /* (non-Javadoc) * @see com.gwt.ReportGeneration.client.ReportGenerationService#executeReport(java.lang.String) */ @Override public void executeReport(String reportName) { // TODO Auto-generated method stub } public String getReport(String reportName){ // create an execute report object to execute the report ExecuteReport report = new ExecuteReport(); // run the report try { report.runReport(); } catch (EngineException e) { System.out.println(); e.printStackTrace(); } // return the string return report.getOutStreamAsString(); } public String getHTML(){ return null; } } and my classpath ?xml version=1.0 encoding=UTF-8? classpath classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/chartitemapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/com.ibm.icu_4.2.1.v20100412.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/chartengineapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/chartexamplescoreapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/commons-cli-1.0.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/coreapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/crosstabcoreapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dataadapterapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dataaggregationapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dataextraction.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/dteapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/emitterconfig.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/engineapi.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/flute.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/js.jar/ classpathentry exported=true kind=lib path=/goesrapps1/ birt-runtime-2_6_1/ReportEngine/lib/modelapi.jar/ classpathentry exported=true kind=lib path
Re: using external jar
Andras, If you are going to be using external jars on the client side, you have to have the source code for those jars, and you have to create a .gwt.xml file for each one. If you already have this then I'll look deeper into your problem. Otherwise, if you don't have the source code then you can't use those jars on the client side. On Mar 10, 4:05 pm, András Csányi sayusi.a...@gmail.com wrote: Hi all! I think I lost a little bit. I would like to use and external jar in my gwt project. Basically, this jar contains the DTO classes which used by EJB Entity and gwt classes. So, because of this I made a new project and I put here my DTOs. I've found this [1] article about how can I use external jar. My problem is that, this method isn't working for me. I got this error message: [ERROR] Errors in 'file:/D:/PRIVATE/Projects/SATT/SATT2/SATTClient/SATTClient/src/java/hu/say usi/java/satt/client/stability/DeleteResultList.java' [ERROR] Line 30: No source code is available for type hu.sayusi.java.satt.library.dto.TestResultDTO; did you forget to inherit a required module? Which means there is a typo. I've checked my files many times and everything is fine. My projects are in the SATT directory: SATT/SATTClient/SATTClient SATT/SATTLib/SATTLib SATT/SATTServer/SATTServer My client.gwt.xml file contains this and placed here: SATT/SATTClient/SATTClient/src/hu/sayusi/java/satt ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.0//EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source...; module inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.http.HTTP/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines. -- inherits name=com.google.gwt.user.theme.standard.Standard/ inherits name=hu.sayusi.java.satt.library.dto/ !-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ -- !-- inherits name=com.google.gwt.user.theme.dark.Dark/ -- entry-point class=hu.sayusi.java.satt.client.clientEntryPoint/ !-- Do not define servlets here, use web.xml -- /module I would like to use the hu.sayusi.java.satt.library.dto.TestResultDTO class which placed in SATT/SATTLib/SATTLib/hu/sayusi/java/satt/library/dto/ directory The dto.gwt.xml file contains this and placed here: SATT/SATTLib/SATTLib/hu/sayusi/java/satt/library/ module inherits name=com.google.gwt.user.User/ source path=dto/source /module I went through many times and it should be working but isn't. I'm using Netbeans and the SATTLib project is added to SATTClient project. [1]:http://www.vogella.de/articles/GWT/article.html#modules I'm appreciating your kind help! András -- - - -- Csanyi Andras (Sayusi Ando) --http://sayusi.hu--http://facebook.com/andras.csanyi -- Trust in God and keep your gunpowder dry! - Cromwell -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT in Eclipse class load order
Is there a way to tell the GWT project which order to load the classes in development mode? I'm getting an error and I think its because there is a class conflict. I'm integrating BIRT with GWT and I have my jars on the server side and then I call the RPC and I get the error Could not initialize class org.eclipse.birt.chart.reportitem.i18n.Messages. I make sure that this jar is in the warweb-inflib folder but I still get this error. I have a post on the birt eclipse forums but I think this may have to be a gwt problem because when i run my birt code independently it runs fine. Here is my post in eclipse forums, http://www.eclipse.org/forums/index.php?t=msgth=205818start=0S=5252cea79c12cbe6e88a619be2e435c2, just for reference, and here is a similar bug with websphere, https://bugs.eclipse.org/bugs/show_bug.cgi?id=203703. Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT RPC getting 404 error
I am rather new to GWT and I'm attempting to get RPC working. I am getting the following error: [WARN] 404 - POST /com.gwt.ReportGeneration.ReportGeneration/report (127.0.0.1) 1434 bytes Request headers Host: 127.0.0.1: User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv: 1.9.2.13) Gecko/20101203 Firefox/3.6.13 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://127.0.0.1:/ReportGeneration.html?gwt.codesvr=127.0.0.1:9997 Cache-Control: no-cache X-GWT-Permutation: HostedMode X-GWT-Module-Base: http://127.0.0.1:/com.gwt.ReportGeneration.ReportGeneration/ Content-Type: text/x-gwt-rpc; charset=utf-8 Content-Length: 212 Pragma: no-cache Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1434 com.google.gwt.user.client.rpc.StatusCodeException: 404 html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head bodyh2HTTP ERROR: 404/h2preNOT_FOUND/pre pRequestURI=/com.gwt.ReportGeneration.ReportGeneration/report/ ppismalla href=http://jetty.mortbay.org/;Powered by Jetty:///a/small/i/pbr/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ /body /html at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 192) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) 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.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) 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:214) at sun.reflect.GeneratedMethodAccessor19.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.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) I don't know where my error is but I know when I make my rpc call, it always fails, the error is thrown at the line onFailure(Throwable caught). Here is my .gwt.xml file: ?xml version=1.0 encoding=UTF-8? module rename-to='reportgeneration' !-- Inherit the core gwt stuff -- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- !-- Specify the entry point for the class -- entry-point class='com.gwt.ReportGeneration.client.ReportGeneration'/ !-- Specify the paths for translatable code-- source path='client'/
Re: GWT RPC getting 404 error
Thank you, I thought that the rename-to in the .gwt.xml would allow me to reference it in that manner, but once I changed it to / com.gwt.ReportGeneration.ReportGeneration/report it worked. Now I gotta get the RPC's to work. Thanks again Erik. On Mar 8, 4:24 pm, Erik Bens bense...@googlemail.com wrote: Hi, this site is called: /com.gwt.ReportGeneration.ReportGeneration/ report your handling this site: url-pattern/reportgeneration/report/url- pattern Regards On Mar 8, 4:30 pm, azuniga alessandro.zun...@gmail.com wrote: I am rather new to GWT and I'm attempting to get RPC working. I am getting the following error: [WARN] 404 - POST /com.gwt.ReportGeneration.ReportGeneration/report (127.0.0.1) 1434 bytes Request headers Host: 127.0.0.1: User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv: 1.9.2.13) Gecko/20101203 Firefox/3.6.13 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer:http://127.0.0.1:/ReportGeneration.html?gwt.codesvr=127.0.0.1:9997 Cache-Control: no-cache X-GWT-Permutation: HostedMode X-GWT-Module-Base:http://127.0.0.1:/com.gwt.ReportGeneration.ReportGeneration/ Content-Type: text/x-gwt-rpc; charset=utf-8 Content-Length: 212 Pragma: no-cache Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1434 com.google.gwt.user.client.rpc.StatusCodeException: 404 html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head bodyh2HTTP ERROR: 404/h2preNOT_FOUND/pre pRequestURI=/com.gwt.ReportGeneration.ReportGeneration/report/ ppismalla href=http://jetty.mortbay.org/;Powered by Jetty:///a/small/i/pbr/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ /body /html at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 192) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) 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.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) 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:214) at sun.reflect.GeneratedMethodAccessor19.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.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) I don't know where my error is but I know when I make my rpc call, it always fails, the error is thrown at the line onFailure(Throwable caught). Here is my .gwt.xml file: ?xml version=1.0 encoding=UTF-8? module rename-to='reportgeneration
GWT external jars on client side
Is it possible to use external jars on the client side? For example I'm trying to create a project that call BIRT jars on the client side, but I get the typical error: Unable to find 'org/eclipse/birt/report/ engine/api/iReportEngine.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Since the iReportEngine doesn't have a .gwt.xml, I figure from what I've read is that i won't be able to use it on the client side. Is my only workaround to put all the BIRT code on the client side? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT TextBox with time format and DateBox format.
Is there a way I can pre-set the TextBox so that it will display hh:mm:ss and to on accept only text in time format and have it allow the user to enter the 2 digits for the hour, skip the : then go to mm, skip the other : and then go to ss, or is there a widget already in existence that does that? Also, for the DateBox, is there a way to modify the format that the date is displayed? I mean, it defaults to something like 2011 Feb 5 12:00:00, can I make it so that by default the format would be month, date, year and no time? Thanks for any advice that can be given. -Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.