users@jersey.java.net

[Jersey] Is it working with exsiting tow RuntimeException in one web project?

From: beanor <beanor_at_gmail.com>
Date: Mon, 12 Jan 2009 23:43:09 -0800 (PST)

hi,

If we have tow class like this:

A:

package com.a.rest.provider;
@Provider
public class RuntimeExceptionMapper implements
        ExceptionMapper<RuntimeException> {
......
}

B:

package com.b.rest.provider;
@Provider
public class RuntimeExceptionMapper implements
        ExceptionMapper<RuntimeException> {
......
}

Tow class name is same , But package is different, Web config the web.xml
like this:


<init-param>
<param-name>
com.sun.jersey.config.property.packages
</param-name>
<param-value>
com.a.rest.provider;
com.b.rest.provider
</param-value>
</init-param>

This case happen at A class in a jar, B is currently project.

My question is:

Is it working with exsiting tow RuntimeException implement in one web
project? And is it working for the same class name?

Thanks!

jack.

-- 
View this message in context: http://n2.nabble.com/Is-it-working-with-exsiting-tow-RuntimeException-in-one-web-project--tp2150052p2150052.html
Sent from the Jersey mailing list archive at Nabble.com.