JBoss Community

Snowdrop 1.1 error

created by Joe Thomas in Snowdrop - View the full discussion

We're trying out Spring with our JBoss5.0 EAP. My understaning is that by using snowdrop we get better intergration with JBoss and Spring. I downloaded the snowdrop 1.1 distro and unzipped itnto my /{config}/deployers directory:

http://community.jboss.org/servlet/JiveServlet/downloadImage/2-600172-16159/450-280/snowdrop.png

 

I also have a 3rd party poral .war that uses spring internally, I noticed the following exception when starting the server:

Deployment "vfsfile:/C:/jboss-eap-5.0/jboss-as/server/production/deploy/liferay.war/" is in error due to the following reason(s): java.lang.IllegalArgumentException: Multiple matching files not allowed: [ZipEntryHandler@6825008[path=liferay.war/WEB-INF/lib/portal-impl.jar/META-INF/base-spring.xml context=file:/C:/jboss-eap-5.0/jboss-as/server/production/deploy/ real=file:/C:/jboss-eap-5.0/jboss-as/server/production/deploy/liferay.war/WEB-INF/lib/portal-impl.jar/META-INF/base-spring.xml], ZipEntryHandler@18873538[path=liferay.war/WEB-INF/lib/portal-impl.jar/META-INF/counter-spring.xml....etc

 

however, when I add the following stanza to spring-deployers-jboss-beans.xml, the exception is gone:

 

   <bean name="SpringParserDeployer" class="org.jboss.spring.deployers.SpringParserDeployer">

       <property name="allowMultipleFiles">true</property>

   </bean>

 

is this how we go 2 bat if we have multiple spring-based application on Jboss5.0?

Reply to this message by going to Community

Start a new discussion in Snowdrop at Community