如何在不部署 WAR 文件的情况下将 Spring Boot 应用程序部署到 weblogic 12.2.1.3.0? [英] How to deploy a Spring boot application to weblogic 12.2.1.3.0 without deploy a WAR file?

查看:38
本文介绍了如何在不部署 WAR 文件的情况下将 Spring Boot 应用程序部署到 weblogic 12.2.1.3.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无权访问 weblogic.Deployer 内容或 Web 管理 GUI(如果 Linux 服务器版本中存在)

I have no right to access the weblogic.Deployer stuff nor the web admin GUI (if that exists in Linux server version)

我只能通过 FTP 将文件上传到管理员设置给我们的部署文件夹(有 jsp/META-INF/WEB-INF 子文件夹).并且管理员还为我们提供了一个脚本来重新启动应用服务器.(操作系统是linux)

I can only upload file via FTP to a deployment folder (there are jsp/META-INF/WEB-INF sub folders) where the admin setup to us. And the admin also provide us a script to restart the app server. (OS is linux)

我想知道是否可以解压缩WAR文件并将文件上传到服务器并重新启动应用程序服务器以使其启动?

I wonder if this is possible to unzip the WAR file and upload files to server and restart the app server to get it started?

我实际上尝试过但无法看到任何与 spring 相关的标准输出和日志.应用服务器仅显示在 Web 浏览器中找不到.就像应用程序根本不存在一样.

I actually tried and unable to see any spring related stdout and logs. The app server only show not found in web browser. just like the application does not exist at all.

我可以在 weblogic(windows 版)中部署 WAR 文件.应用文件应该没问题.

I can deploy the WAR file in weblogic (windows edition). the app files should be ok.

推荐答案

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://xmlns.oracle.com/weblogic/weblogic-web-app
        http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
    <wls:context-root>/</wls:context-root>
    <wls:container-descriptor>
        <wls:prefer-application-packages>
            <!-- added these after some google -->
            <wls:package-name>javax.validation</wls:package-name>
            <wls:package-name>org.hibernate.validator</wls:package-name>
            <wls:package-name>javax.el</wls:package-name>
            <wls:package-name>javax.persistence</wls:package-name>
            <!-- added above after some google -->

            <wls:package-name>org.slf4j.*</wls:package-name>
            <wls:package-name>org.springframework.*</wls:package-name>
        </wls:prefer-application-packages>
    </wls:container-descriptor>
</wls:weblogic-web-app>

这篇关于如何在不部署 WAR 文件的情况下将 Spring Boot 应用程序部署到 weblogic 12.2.1.3.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆