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
> > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:
> > 135)
> >     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
> >     [java]     at
> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
> >     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:
> > 104)
> >     [java]     at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
> > Source)
> >     [java]     at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> > l.java:
> > 25)
> >     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
> >     [java]     at
> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
> > 105)
> >     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
> >     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
> >     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:
> > 385)
> >     [java]     at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >     [java]     at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> >     [java]     at
>
> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor. 
> > java:
> > 41)
> >     [java]     at
>
> > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTarget 
> > s(EclipseDefaultExecutor.java:
> > 32)
> >     [java]     at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >     [java]     at
>
> > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRun 
> > ner.java:
> > 423)
> >     [java]     at
>
> > org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRu 
> > nner.java:
> > 137)
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to