Archive

Archive for October, 2011

Excludin a jar file while buildinga war in maven.

October 24, 2011 Comments off

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>

Advertisements
Categories: Errors & Exceptions

javax.servlet.ServletException: Unrecognized HTTP request or response object

October 24, 2011 Comments off
Categories: General

java.lang.RuntimeException: mapped-name is required for org.apache.cxf.binding.BindingFactoryManagerImpl/bus of deployment

October 24, 2011 Comments off

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.

 

Categories: General
%d bloggers like this: