[MGNLDMS-167] Zipfile upload to DMS broken with NoClassDefFoundError exception Created: 28/Jul/09  Updated: 07/Aug/09  Resolved: 06/Aug/09

Status: Closed
Project: Document Management System (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Will Scheidegger Assignee: Teresa Miyar
Resolution: Not an issue Votes: 0
Labels: classnotfound, dms, file, zip
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X 10.5.7, Java 1.5


Issue Links:
relation
is related to MGNLDMS-169 Ant Zipfile is not needed anymore sin... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

When trying to upload a zip file to the dms a NoClassDefFoundError exception is thrown:

2009-07-28 15:39:42,270 ERROR se.[Catalina].[localhost].[/magnolia411].[default]: Servlet.service() for servlet default threw exception
java.lang.NoClassDefFoundError: org/apache/tools/zip/ZipFile
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
at java.beans.Introspector$1.run(Introspector.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
at java.beans.Introspector.getBeanInfo(Introspector.java:387)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptors(PropertyUtilsBean.java:896)
at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:326)
at info.magnolia.content2bean.TypeDescriptor.getPropertyDescriptors(TypeDescriptor.java:116)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.setProperties(Content2BeanProcessorImpl.java:212)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:107)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:75)
at info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:151)
at info.magnolia.module.admininterface.PageHandlerManager$RepositoryPageDefinition.newInstance(PageHandlerManager.java:208)
at info.magnolia.module.admininterface.PageHandlerManager.getPageHandler(PageHandlerManager.java:85)
at info.magnolia.module.admininterface.PageMVCServlet.getHandler(PageMVCServlet.java:90)
at info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:110)
at info.magnolia.cms.servlets.MVCServlet.doGet(MVCServlet.java:68)
.....



 Comments   
Comment by Teresa Miyar [ 06/Aug/09 ]

ant-1.6.5.jar is bundled with the application

Comment by Will Scheidegger [ 06/Aug/09 ]

ant-1.6.5.jar was not bundled in the trunk version that I checked out July 27th. So the issue is only resolved if someone changed this in the meantime. But you're right: Once I added ant-1.6.5.jar manually, the issue was resolved.

Comment by Magnolia International [ 07/Aug/09 ]

To be clearer: this hasn't changed in months. The build generates magnolia-module-dms-x.y.z-bundle.zip and .tgz files, which contain the magnolia-module-dms-x.y.z.jar and the necessary dependencies, like all other modules. (in this case ant and json-rpc)

Generated at Mon Feb 12 00:49:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.