无法在Weblogic 12C上部署我的应用程序

时间:2019-04-02 04:02:33

标签: java spring weblogic12c

我尝试在禁用禁用JAX-RS资源的自动注册
    WebLogic 12c / Jersey。这就是为什么我从
删除了3个jar文件     对应的位置。
    wlserver / modules / com.oracle.weblogic.security.opensaml2
    wlserver / modules / weblogic.jaxrs.integration.jar
    oracle_common / modules / com.sun.jersey.jersey-core.jar
    oracle_common / modules / weblogic.jaxrs.portable.server.jar这个解决了     它在WL12.2.1.3上为我提供,但是问题是当我尝试删除
时     然后,这会震撼     WLServer无法正常工作。要解决此问题,我尝试了     将所有程序包放入Weblogic.xml文件中。     问题没有解决。谁能帮我解决这个问题     问题。如果您需要任何其他信息,请告诉我。     这是我的weblogic.xml文件


<?xml version="1.0" encoding="UTF-8"?>

    <wls:weblogic-web-app
        xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
            http://xmlns.oracle.com/weblogic/weblogic-web-app
            http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">

        <wls:context-root>reporting</wls:context-root>
        <wls:library-ref>
            <wls:library-name>OrbitJars</wls:library-name>
            <wls:specification-version>1.0</wls:specification-version>
            <wls:exact-match>true</wls:exact-match>
        </wls:library-ref>

        <wls:container-descriptor>
                <wls:prefer-application-packages>
                <wls:package-name>org.slf4j.*</wls:package-name>
                <wls:package-name>javax.validation.*</wls:package-name>
                <wls:package-name>org.joda.*</wls:package-name>
                <wls:package-name>org.apache.commons.*</wls:package-name>
                <wls:package-name>org.apache.commons.lang3.*</wls:package-name>
                <wls:package-name>org.apache.xmlgraphics.*</wls:package-name>   
                <wls:package-name>org.apache.xmlgraphics.xmp.*</wls:package-name>   
                <wls:package-name>org.opensaml.*</wls:package-name> 

                    <wls:package-name>com.sun.jersey.api.provider.jaxb.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.api.representation.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.api.uri.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.header.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.header.reader.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.impl.provider.entity.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.impl.provider.header.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.impl.provider.xml.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.osgi.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.provider.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.provider.jaxb.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.reflection.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.spi.component.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.spi.component.ioc.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.spi.factory.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.spi.scanning.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.spi.scanning.uri.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.core.util.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.impl.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.localization.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.spi.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.spi.inject.*</wls:package-name>
                    <wls:package-name>com.sun.jersey.spi.service.*</wls:package-name>

                    <!--weblogic.jaxrs.integration.jar-->
                    <wls:package-name>weblogic.i18n.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.client.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.client.internal.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.concurrent.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.integration.internal.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.monitoring.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.monitoring.impl.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.monitoring.resource.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.monitoring.resource.data.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.monitoring.spi.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.monitoring.util.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.onwls.cdi.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.onwls.ejb.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.server.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.server.extension.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.server.internal.*</wls:package-name>

                    <!--weblogic.jaxrs.portable.server.jar-->
                    <wls:package-name>com.sun.jersey.spi.container.servlet.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.server.media.multipart.*</wls:package-name>
                    <wls:package-name>weblogic.jaxrs.server.portable.servlet.*</wls:package-name>

                    <!--weblogic.opensaml2.jar-->
                    <wls:package-name>org.opensaml.util.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.message.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.message.decoder.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.message.encoder.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.message.handler.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.security.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.security.provider.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.client.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.client.http.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.common.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.soap11.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.soap11.decoder.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.soap11.encoder.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.soap11.encoder.http.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.soap11.impl.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.soap12.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.soap.util.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.transport.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.transport.http.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wsaddressing.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wsaddressing.util.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wsfed.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wsfed.impl.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wspolicy.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wspolicy.impl.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wssecurity.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wssecurity.impl.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wssecurity.util.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wstrust.*</wls:package-name>
                    <wls:package-name>org.opensaml.ws.wstrust.impl.*</wls:package-name>


                    <!--<wls:package-name>org.apache.ignite.spi.discovery.tcp.*</wls:package-name>
                    <wls:package-name>org.apache.ignite.internal.processors.cache.*</wls:package-name>

                    <wls:package-name>javax.ws.rs.*</wls:package-name>
                    <wls:package-name>com.fasterxml.jackson.*</wls:package-name>-->
            </wls:prefer-application-packages>
            <wls:prefer-application-resources>
                <wls:resource-name>org/slf4j/impl/StaticLoggerBinder.class</wls:resource-name>
                <wls:resource-name>org/apache/xmlgraphics/xmp/Metadata.class</wls:resource-name>
            </wls:prefer-application-resources>
            <wls:prefer-web-inf-classes>false</wls:prefer-web-inf-classes>
        </wls:container-descriptor>

    </wls:weblogic-web-app>

0 个答案:

没有答案