讨论区 » AAS-V10企业版 »
aasv10中jersey组件类冲突问题
当应用中包含jersey组件时可能与v10自带的jersey产生冲突,解决办法是在apusic-web.xml中添加jersey的类加载配置,如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE aas-web-app PUBLIC "-//Apusic.com//DTD Apusic Application Server 10.1 Servlet 3.0//EN" "http://apusic.com/dtds/apusic-web-app_3_0-1.dtd">
<aas-web-app error-url="">
<class-loader delegate="false" >
<property name="ignoreParentsFiles" value="true"></property>
<property name="ignoreClassPrefix" value="org.glassfish.jersey"></property>
<property name="ignoreResources" value="META-INF/services/org.glassfish.jersey.server.spi.ComponentProvider;META-INF/services/org.glassfish.jersey.servlet.internal.spi.ServletContainerProvider">
</property>
</class-loader>
</aas-web-app>
apusic-web.xml-jersey (646 Bytes) apusic-web.xml-jersey |