将Spring Boot项目部署到WebSphere 8.5.5

发布于 2025-01-17 10:50:33 字数 307 浏览 2 评论 0原文

我正在尝试在 WebSphere Application Server 8.5.5 上使用 maven(但与 gradle 存在同样的问题)部署我的 spring boot 项目(由 springinitializr 制作),但这似乎不可能大部头书。 每次我尝试从“添加和删除”添加到服务器时,它都会说“没有可以从服务器添加或删除的资源”。 所以我尝试更改 项目属性上的动态 Web 模块 -->项目方面但没有任何改变。 可以部署在WAS 8.5.5上吗?

I'm trying to deploy my spring boot project (made by spring initializr) with maven (but same issue with gradle) on WebSphere Application Server 8.5.5 but it seems impossible to me.
Every-time I try to add to server from "Add and Remove" it says "There are no resources that can be added or removed from the server".
So I tried changing Dynamic Web Module on Project properties --> project facets but nothing changed.
Is it possible to deploy on WAS 8.5.5?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尸血腥色 2025-01-24 10:50:33

我在这里发现了类似的报道问题:无法在RAD 8.5上使用WebSphere 7添加和删除Maven项目。

我完全从Rad中删除了我的项目。然后,我从Spring Initializr提取ZIP文件以创建一个Maven项目。我使用了“ mvnw eclipse:eclipse”命令,并成功创建了构建。我将其作为一个通用项目导入到RAD。

然后,我单击项目。单击属性。点击项目面。没有一个可用的东西,但这促使我创建了它们,我做到了。从那里,我选择了动态Web模块facet(以及Jax-rs,但我不确定您是否在乎那个)。我单击申请并关闭。

之后,我能够将资源添加到WebSphere服务器。我不知道这是否是首选步骤。我正在学习,就像你一样。但是,它似乎有效。

我在Spring Initializr中指定了Java 8 Jar用于包装。 Maven版本为3.8.4。 Spring Boot 2.6.5(它是对我的预选)。我使用的是RAD 9.7,而在IDE中站立的WebSphere Server是版本8.5.5。

I found a similar reported issue here: Cannot 'Add and Remove' Maven Project with Websphere 7 on RAD 8.5.

I completely removed my project from RAD. I then extracted zip file from Spring Initializr to create a Maven project. I used "mvnw eclipse:eclipse" command and it successfully created build. I imported that as a general project to RAD.

I then clicked on project. Clicked on properties. Clicked on project facets. None were available, but it prompted me to create them and I did. From there, I selected Dynamic Web Module facet (and also JAX-RS, but I'm not sure if you'll care about that one). I clicked apply and close.

After this, I was able to add and remove resource to Websphere server. I don't know if this is preferred steps or not. I am learning, just as you are. But, it appeared to work.

I specified Java 8 Jar in Spring Initializr for packaging. Maven version is 3.8.4. Spring Boot 2.6.5 (it was pre-selected for me). I am using RAD 9.7 and Websphere server that is stood up in IDE is version 8.5.5.

浊酒尽余欢 2025-01-24 10:50:33

要将 Spring Boot 部署到 WebSphere 9,您需要选择 War 打包和 Java 8。 Spring Initializr 中的 zip 文件包含一个 Help.md 文件,其中包含指向有用文档的链接。解压 zip 文件后,使用“文件”->“将现有 Maven 项目导入新工作区。

To deploy spring boot to WebSphere 9 you would want to choose War packaging and Java 8. The zip file from the spring initializr includes a Help.md file with links to helpful documentation. After you extract the zip file, use File -> Import existing maven project into a new workspace.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文