java - SEVERE: Exception starting filter CORS -


i have restful web service deployed on tomcat' web service working fine in client/server on same domain scenario' required make web service available cross domain' purpose have used cors filter.

i have included filter's jars in both myprojects/lib , tomcat/lib' , have included following in web.xml file of web service project'

<filter>     <filter-name>cors</filter-name>     <filter-class>com.thetransactioncompany.cors.corsfilter</filter-class> </filter>  <init-param>     <param-name>cors.supportedheaders</param-name>     <param-value>accept, origin, x-requested-with, content-type, last-modified</param-value> </init-param>  <filter-mapping>     <filter-name>cors</filter-name>     <url-pattern>/*</url-pattern> </filter-mapping>  

but when try start web service following error regarding cors filter:

severe: exception starting filter cors java.lang.noclassdeffounderror: com/thetransactioncompany/util/propertyparseexception @ com.thetransactioncompany.cors.corsfilter.init(corsfilter.java:100) 

kindly guide me figure out wrong situation'

you need add java-properties-utils-1.7.1.jar file classpath cors filter has dependancy on it.

http://search.maven.org/#browse%7c-411787350


Comments