Well, I have created from scratch the simplest GWT application I could think of... I created the simplest build file I could think of (No Ivy dependency management, no code... Just a blank web page) and then attempted to build the project... I got exactly the same results as above.
I decided to try a different version of Ant just to ensure it had nothing to do with Ant, and again the same results. I am not sure what to do at this point. I may try the build on another machine just to make sure it is not my environment. I may have to rely on a non-ant build (Cypal Studio in Eclipse) which seems to work without any problems. Unfortunately, there is no way to automate that process. - Brian I. On Oct 13, 12:24 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > Sorry I couldn't identify the exact problem. It certainly is an odd > error. The only other time I've seen it fail to find java.lang.Object > was in this thread: > > http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse... > > ... where I solved the problem by dumping my classpath and starting > from scratch, basically. > I never did find exactly what was causing the problem, but hopefully > starting from scratch will work for you, too. > > On Mon, Oct 13, 2008 at 2:20 PM, birwin <[EMAIL PROTECTED]> wrote: > > > It does contain com/google/gwt/emul/java/lang/Object.java > > > Just to make sure the GWTCompile task handles spaces in its classpath, > > I moved the user.jar to the root directory and created a new classpath > > that just had that JAR. I tried a recompile and included the new > > classpath and again it failed with the same error. > > > I believe I am going to start from scratch and try to do a "Hello > > World"-type build where I don't include any Ivy dependencies, etc... > > and everything is very basic. > > > Once I have that working, I will return to debugging this build. If I > > find a solution, I will post it here when I finish. > > > Thank you for your help I appreciate it. > > > - Brian I. > > > On Oct 13, 12:03 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > >> That looks fine to me. I'm really fishing now... could you open up > >> gwt-user.jar and confirm that it contains > >> com/google/gwt/emul/java/lang/Object.java? > > >> On Mon, Oct 13, 2008 at 1:47 PM, birwin <[EMAIL PROTECTED]> wrote: > > >> > Sorry, the last Timecard.gwt.xml was not the correct one. Here is the > >> > one I am using: > > >> > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > >> > <module> > > >> > <!-- Inherit the core Web Toolkit stuff. --> > >> > <inherits name="com.google.gwt.user.User"/> > > >> > <!-- Inherit Web Toolkit Incubator stuff --> > >> > <inherits name="com.google.gwt.widgetideas.WidgetIdeas"/> > >> > <inherits name="com.google.gwt.libideas.LibIdeas"/> > > >> > <!-- Specify the app entry point class. --> > >> > <entry-point class="com.webapp.client.Timecard" /> > > >> > <source path="client" /> > >> > <public path="public" /> > > >> > <servlet class="com.webapp.server.TimecardServiceImpl" path="/ > >> > timecardservice" /> > >> > </module> > > >> > Thanks, > > >> > Brian I. > > >> > On Oct 13, 11:32 am, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > >> >> You're right, it does appear to be there. Off the top of my head, I > >> >> can't think of what else would prevent the compiler from finding > >> >> java.lang.Object. I guess I'd want to look at Timecard.gwt.xml next, > >> >> just to see if something looks off. Would you mind posting that? > > >> >> On Mon, Oct 13, 2008 at 1:16 PM, birwin <[EMAIL PROTECTED]> wrote: > > >> >> > Thanks again for your response Isaac, > > >> >> > I believe I do have the gwt-user.jar on my path... I am using Ivy for > >> >> > my dependency resolution. I assigned the gwt JARs from IVY and named > >> >> > the path "gwt.path" > > >> >> > Just to make sure the user JAR was on the path, I assigned the path to > >> >> > a property and then echoed the property to System.out. Here is the ant > >> >> > calls I made and the subsequent message printed to System.out: > > >> >> > <property name="gwt.path.property" refid="gwt.path" /> > >> >> > <echo message="classpath= ${gwt.path.property}"/> > > >> >> > [echo] classpath= C:\Documents and Settings\irwinb\.ivy2\cache > >> >> > \com.google\gwt-dev-windows\jars\gwt-dev-windows-1.5.0.jar;C: > >> >> > \Documents and Settings\irwinb\.ivy2\cache\com.google\gwt-user\jars > >> >> > \gwt-user-1.5.0.jar > > >> >> > You can see that gwt.path apears to hold gwt-user.jar (Version 1.5). > > >> >> > Assembling this path is controlled by an Ivy task, so I don't know the > >> >> > details of how Ivy assembles classpaths, but I did verify the JAR was > >> >> > in the location specified. > > >> >> > Any other ideas or did I miss something? > > >> >> > - Brian I. > > >> >> > On Oct 13, 10:38 am, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > >> >> >> > [java] com.google.gwt.core.ext.typeinfo.NotFoundException: > >> >> >> > java.lang.Object > > >> >> >> This suggests to me that you don't have gwt-user.jar on your > >> >> >> classpath. > > >> >> >> On Mon, Oct 13, 2008 at 12:23 PM, birwin <[EMAIL PROTECTED]> wrote: > > >> >> >> > Thank You Isaac, > > >> >> >> > That did eliminate the ZipException... > > >> >> >> > I am now getting this error. From what I can tell, this indicates > >> >> >> > my > >> >> >> > classpath does not include my client source files. > > >> >> >> > [java] Loading module 'com.sosstaffing.soar.webapp.Timecard' > >> >> >> > [java] Translatable source found in... > >> >> >> > [java] [WARN] No source path entries; expect subsequent > >> >> >> > failures > >> >> >> > [java] com.google.gwt.core.ext.typeinfo.NotFoundException: > >> >> >> > java.lang.Object > > >> >> >> > My GWT Compile task now looks like this: > > >> >> >> > <java classname="com.google.gwt.dev.GWTCompiler"> > >> >> >> > <arg value="-out" /> > >> >> >> > <arg file="web" /> > >> >> >> > <arg value="%*" /> > >> >> >> > <arg value="com.webapp.Timecard" /> > >> >> >> > <classpath> > >> >> >> > <pathelement location="${dir.src}" > >> >> >> > /> > >> >> >> > <path refid="compile.cp" /> > >> >> >> > <path refid="class.path" /> > >> >> >> > <path refid="gwt.path" /> > >> >> >> > </classpath> > >> >> >> > </java> > > >> >> >> > I am assuming this error means that the GWT compiler still cannot > >> >> >> > find > >> >> >> > my source files. The ${dir.src} in my pathelement tag is the > >> >> >> > location > >> >> >> > of my source files (the src directory that contains my com folder) > >> >> >> > My > >> >> >> > Timecard.gwt.xml file is located in the com.webapp folder and my > >> >> >> > client source files are located in com.webapp.client folder. > > >> >> >> > Here is my file structure: > > >> >> >> > +src > >> >> >> > +com > >> >> >> > +webapp > >> >> >> > +client > >> >> >> > Timecard.gwt.xml > > >> >> >> > This looks right to me, but I am new to GWT and must be missing > >> >> >> > something. > > >> >> >> > On Oct 11, 6:35 am, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > >> >> >> >> It appears that you are putting individual files in your > >> >> >> >> classpath instead > >> >> >> >> of directories. Ant tries to open each of those files expecting > >> >> >> >> them to be > >> >> >> >> zip files. > >> >> >> >> Change your classpath so that it points to the root of your > >> >> >> >> source and class > >> >> >> >> file trees, not each file in those trees. The only non-directory > >> >> >> >> entries in > >> >> >> >> your classpath should be jar files. > > >> >> >> >> On Fri, Oct 10, 2008 at 7:39 PM, birwin <[EMAIL PROTECTED]> wrote: > > >> >> >> >> > I have been trying to solve this problem all day and I cannot > >> >> >> >> > seem to > >> >> >> >> > make any headway. My Ant task that compiles my GWT files is > >> >> >> >> > giving me > >> >> >> >> > this exception over and over: > > >> >> >> >> > java.util.zip.ZipException: error in opening zip file > > >> >> >> >> > I am using Eclipse 3.4 (Ganymede) with Ant 1.7.0. My GWT > >> >> >> >> > Version is > >> >> >> >> > 1.5. > > >> >> >> >> > Here is the portion of the task that is supposed to compile the > >> >> >> >> > GWT > >> >> >> >> > code: > > >> >> >> >> > <java classname="com.google.gwt.dev.GWTCompiler"> > >> >> >> >> > <arg value="-out" /> > >> >> >> >> > <arg file="web" /> > >> >> >> >> > <arg value="%*" /> > >> >> >> >> > <arg value="com.webapp.Timecard" /> > >> >> >> >> > <classpath> > >> >> >> >> > <fileset dir="src" /> > >> >> >> >> > <path refid="compile.cp" /> > >> >> >> >> > <path refid="class.path" /> > >> >> >> >> > <path refid="gwt.path" /> > >> >> >> >> > </classpath> > >> >> >> >> > </java> > > >> >> >> >> > My log file has thousands of the following error messages: > > >> >> >> >> > Ignoring Exception java.util.zip.ZipException: error in opening > >> >> >> >> > zip > >> >> >> >> > file reading resource com/google/gwt/dev/GWTCompiler.class from > >> >> >> >> > C: > >> >> >> >> > \Documents and > >> >> >> >> > Settings\fred\workspace\com\webapp\Timecard.gwt.xml > > >> >> >> >> > (Each message is exactly the same except that the file name is > >> >> >> >> > different. Each of my "Java" and "PNG" files are listed) > > >> >> >> >> > Then this stack trace is displayed in my log file over and over > >> >> >> >> > again: > > >> >> >> >> > [java] java.util.zip.ZipException: error in opening zip file > >> >> >> >> > [java] at java.util.zip.ZipFile.open(Native Method) > >> >> >> >> > [java] at java.util.zip.ZipFile.<init>(ZipFile.java:203) > >> >> >> >> > [java] at java.util.zip.ZipFile.<init>(ZipFile.java:234) > >> >> >> >> > [java] at > >> >> >> >> > org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java: > >> >> >> >> > 1014) > >> >> >> >> > [java] at > >> >> >> >> > org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java: > >> >> >> >> > 917) > >> >> >> >> > [java] at > >> >> >> >> > com.google.gwt.util.tools.Utility.computeInstallationPath(Utility.java: > >> >> >> >> > 283) > >> >> >> >> > [java] at > >> >> >> >> > com.google.gwt.util.tools.Utility.getInstallPath(Utility.java:224) > >> >> >> >> > [java] at > >> >> >> >> > com.google.gwt.util.tools.ToolBase.<clinit>(ToolBase.java:55) > >> >> >> >> > [java] at java.lang.Class.forName0(Native Method) > >> >> >> >> > [java] at java.lang.Class.forName(Class.java:242) > >> >> >> >> > [java] at... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
