File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes invalid CEN Header (bad signature) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "invalid CEN Header (bad signature)" Watch "invalid CEN Header (bad signature)" New topic
Author

invalid CEN Header (bad signature)

Lawrence Kennon
Greenhorn

Joined: Jan 18, 2006
Posts: 23
Hi,

I have just finished configuring a CVS repository on a Mac OS X 1.5.6 host. I initialized CVS, configured a pserver, and imported a Java project. I am using Netbeans 6.5 as a development IDE on this Mac, and also on a Windows XP machine.

If checkout the project on the Mac using local access (from Netbeans) all goes well. I can build the project with no problems. I also just tried doing a checkout using the pserver on the Mac. For this my CVS Root argument goes:

:ext:lkennon@192.168.123.102:/usr/local/cvsrep

I have Netbeans use internal ssh (check the "Use Internal SSH" radio button doing checkout). I give my regular password and that also worked fine.

The problem is when I use Netbeans on Windows XP to attempt the check out the same project. I use the same method as above with pserver. It appears to work ok, but when I attempt to compile/build the project it fails and gives an error:

error: error reading C:\java\Bills\webWEB-INF\lib\jstl.jar; invalid CEN header (bad signature)

(etc. also for two other jars in the WEB-INF\lib subdirectory)

I understand this error means that the .jar files must have been corrupted somewhere doing the checkout. I just don't understand if there is something I am doing wrong. Like I said though, it seems to work on the Mac, even using pserver instead of local access with CVS.

This is the "Concurrent Versions System (CVS) 1.12.13 (client/server)" version of CVS that came with Mac OS X 1.5.6.

I was wondering if perhaps this might be a known problem (although have not found mention of that yet) with either CVS or Netbeans?

Any info/suggestions would be greatly appreciated.

lwk



Lawrence Kennon
Greenhorn

Joined: Jan 18, 2006
Posts: 23
Just in case it helps anyone else, I solved the problem. It was a problem with my CVS configuration. I needed to add the following entry in the cvswrappers file so that it would know that a .jar file is a binary.

*.jar -k 'b'


lwk

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invalid CEN Header (bad signature)