[Beginners Corner] - java.util.zip.ZipException: duplicate entry
by amnon77
Hi ,
trying to publish an ear with serveral ejb and one web project , when exporting teh web project slone to a WAR everything is ok , browsed it and everything is ok , when trying to publish the ear without the web project everything is ok after adding the web project to the ear fails :
| java.util.zip.ZipException: duplicate entry: WEB-INF/classes/com/retalix/scm/web/WFAPIProxy/WFAPIProxy.class
| at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source)
| at java.util.jar.JarOutputStream.putNextEntry(Unknown Source)
| at org.eclipse.jst.server.generic.core.internal.publishers.ModulePackager.write(ModulePackager.java:83)
| at org.eclipse.jst.server.generic.core.internal.publishers.ModulePackager.write(ModulePackager.java:166)
| at org.eclipse.jst.server.generic.core.internal.publishers.ModulePackager.write(ModulePackager.java:114)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:380)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.doPackModule(JstPublisher.java:374)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.packModule(JstPublisher.java:349)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.assembleEar(JstPublisher.java:334)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.assemble(JstPublisher.java:306)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher$JBossAntPublisher.publish(JstPublisher.java:172)
| at org.jboss.ide.eclipse.as.core.server.publishers.JstPublisher.publishModule(JstPublisher.java:107)
| at org.jboss.ide.eclipse.as.core.server.JBossServerBehavior.publishModule(JBossServerBehavior.java:375)
| at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:676)
| at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:756)
| at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:611)
| at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:862)
| at org.eclipse.wst.server.core.internal.Server.publish(Server.java:850)
| at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
|
anyone has any idea ?
thanks in advance .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109613#4109613
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109613
17 years
[JBoss Seam] - Page Parameter validation - Bug in org.jboss.seam.navigation
by wschwendt
is the code in org.jboss.seam.navigation.Pages.convertAndValidateStringValuesInPageContext() really correct?
The order in which the conversion and validation of page parameters is done, looks to me like a bug.
| // org.jboss.seam.navigation.Pages.convertAndValidateStringValuesInPageContext()
|
|
|
| String value = (String) Contexts.getPageContext().get( pageParameter.getName() );
| if (value!=null)
| {
| pageParameter.validateConvertedValue(facesContext, value);
| Object convertedValue = pageParameter.convertValueFromString(facesContext, value);
| Contexts.getEventContext().set( pageParameter.getName(), convertedValue );
| }
|
Shouldn't conversion and validation occur in the order as follows?
| // org.jboss.seam.navigation.Pages.convertAndValidateStringValuesInPageContext()
|
|
| String value = (String) Contexts.getPageContext().get( pageParameter.getName() );
| if (value!=null)
| {
| Object convertedValue = pageParameter.convertValueFromString(facesContext, value);
| pageParameter.validateConvertedValue(facesContext, convertedValue);
| Contexts.getEventContext().set( pageParameter.getName(), convertedValue );
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109610#4109610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109610
17 years