Hi,
is there any reason why Seam still comes with these old Hibernate versions (in hibernate-all.jar)? I have read of some problems with embedded EJB3 and Tomcat but I didn't found any hint about incompatibilities with newer Hibernate version.
[17:56:05] [] [INFO ] [...org.hibernate.ejb.Version :15 ] >> Hibernate EntityManager 3.2.0.CR1
[17:56:05] [] [INFO ] [...ernate.cfg.annotations.Version:15 ] >> Hibernate Annotations 3.2.0.CR1
[17:56:05] [] [INFO ] [...org.hibernate.cfg.Environment :499 ] >> Hibernate 3.2 cr2
--
Axel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991049#3991049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991049
I've spent the better part of today playing with this, and researching it... There doesnt seem to be a resolution, just that java's zipinputstream cant read non-standard zips.
This is actually a pretty good site and info: http://mindprod.com/jgloss/zip.html Of course...
The following code won't work if ZipOutputStream was used to create the zip file. ZipEntry.getSize will return -1.
So even thought you can change things to use a tempFile and use ZipFile, you still have to do:
while (entries.hasMoreElements())
| {
| zipEntry = (ZipEntry)entries.nextElement();
| String itemName = zipEntry.getName();
| if (!zipEntry.isDirectory())
| {
| long fileSize = zipEntry.getSize();
|
Its the only way to read the file items, is to getSize, but if it returns -1, then we die again. So even using zipFile wont work.
I'll attach the changed I made to the jira, but for now, am adding some exception handling, as I dont see a workaround at all here.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991048#3991048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991048