CC'd to the mailing list; it's better dealt with on the lists instead of
direct email (someone else might have had the same problem and found an
answer already).
A wise old hermit known only as Chris DeGreef <[EMAIL PROTECTED]>
once said:
> 1. I mount the CVS repository with SunOne FFJ4 from sourceforge into
the
> c:\open-source\xdoclet directory
> 2. I go to the c:\open-source\xdoclet\xdoclet directory and run ant
> 3. From this I get the
> c:\open-source\xdoclet\xdoclet\target\xdoclet-1.2.0.zip file.
> 4. I unzip this into c:\xdoclet-1.2.0 directory, in which I get a lib
> subdirectory with 23 jar files. I guess I only expected one,
> xdoclet.jar,
> as it was in the previous release. But, instead I put all of these
> jars in the classpath for the ant task.
> <path id="xdoclet.classpath">
> <pathelement location="${ant.home}\lib\ant.jar"/>
> <fileset dir="${xdoclet.home}\lib"/>
> </path>
> <taskdef classname="xdoclet.modules.ejb.EjbDocletTask"
> classpathref="xdoclet.classpath" name="ejbdoclet"/>
>
> When I run the applications build (that uses xdoclet) I get the
> ZipException.
>
> If I change the xdt files that reference the *-custom.xdt files to NOT
> reference them, and rerun the steps 2 through 4, things work just as I
> would
> expect. No errors and my EJB generated class / interfaces look just
> fine.
Are you removing those merge points altogether, or just changing the name
to something else?
I guess once it reaches the reference to the custom xdt file, it'll search
all the jars on the classpath in case it can find the file in any of them;
when it doesn't, it should carry on. However, it's not getting that far
because for some reason it can't open one of them, giving the exception.
But the way you've described it above, there shouldn't be anything else
using it.
> I suspect that I have something set up incorrectly, but I cant figure
> out what that might be. My environment is
>
> * Windows 2000 Professional
> * SunOne FFJ4
> * JDK1.4.0
> * Ant 1.5
Not overly dissimilar to my setup at work - NT4, Netbeans 3.4, JDK1.4
(previously 1.4.0_01, now on 1.4.1) and Ant 1.5. How are you running the
applications build, from the command line or through Forte?
You haven't mounted any of the jars as Archive filesystems in Forte, have
you? I used to have problems with not being able to access jars from the
command line if I'd mounted them in Netbeans. I raised it as a bug with
them, but got told it was due to the JDK (also version 1.4.0 IIRC), and
there was nothing they could do about it. The only way I found to stop it
once it happened was to close Netbeans before I re-ran Ant.
Andrew.
> Thank you for your help. I would really like to become productive with
> making changes to Xdoclet as well as with my application. I am
> converting
> my application from EJB1.0 to EJB2.0 and Xdoclet at the same time.
>
> Chris
>
>
> > Remote.xdt in the ejb interfaces references a merge file named
> > remote-custom.xdt. It does not exist in the current CVS download.
> > Perhaps,
> > since I am new at this, I am doing something wrong but, I think it
> > just isnt there.
>
> There's various *-custom.xdt merge points, they're intended for the user
> to be able to include their own custom code within the template (hence
> the
> name). You won't find them anywhere in CVS, you should create them (if
> you actually want to use them for anything) in whatever directory you
> specified in the merge dir parameter. If they're not there, the
> template engine shouldn't complain.
>
> > I build the system and attempt to run Xdoclet on my
> > project. I get stack traces like this
> >
> > [ejbdoclet] java.util.zip.ZipException: error in opening zip file
> > [ejbdoclet] at java.util.zip.ZipFile.open(Native Method)
>
> I don't know what your problem is, other than it appears unable to open
> one of the jars. Have you tried listing the contents of each of the
> jars
> with 'jar tvf <file>' to make sure one hasn't got corrupted or locked by
> another application?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user