Excludin a jar file while buildinga war in maven.
add a war plugin to the maven pom.xml file and exclude the jar file from it.
see sample below.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1</version>
<configuration>
<packagingExcludes>WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar</packagingExcludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
javax.servlet.ServletException: Unrecognized HTTP request or response object
This error occured while i am viewing my wsdl file deployed in Jboss-5.1.
Solution : remove all the servlet related jar files from war file before deploying.
remove geronimo-servlet_3.0_spec-1.0.jar fiel from the war.
java.lang.RuntimeException: mapped-name is required for org.apache.cxf.binding.BindingFactoryManagerImpl/bus of deployment
For me this error occured while deploying a application.war file in the Jboss-5.1.
Solution to fix this is Add
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-annotation_1.0_spec</artifactId>
<version>1.1.1</version>
<type>jar</type>
<scope>compile</scope>
<dependency>
Add this dependency to your pom.xml or add this jar file to ant’s build.xml file.