简体   繁体   English

使用 ANT 在 Wildfly 上部署 JavaEE 项目

[英]Deploying JavaEE project on Wildfly using ANT

I have to migrate a JavaEE project from Java 6 + JBoss 5.1 to Java 8 + Wildfly.我必须将 JavaEE 项目从 Java 6 + JBoss 5.1 迁移到 Java 8 + Wildfly。 I'm trying to use Wildfly 20. Do you think an other versionis preferable?我正在尝试使用 Wildfly 20。您认为其他版本更可取吗? I'm totaly new to this topic.我对这个话题完全陌生。 The EAR is deployed with an Ant xml script. EAR 使用 Ant xml 脚本部署。 I have put the ear in the standalone directory, but I have this error:我已将耳朵放在独立目录中,但出现此错误:

javax.naming.NameNotFoundException: AresCommon -- service jboss.naming.context.java.jboss.exported.AresCommon javax.naming.NameNotFoundException: AresCommon -- 服务 jboss.naming.context.java.jboss.export。

I think there are errors in the Ant script because I didn't changed anything in the old JBoss script that build the EAR and maybe it doesn't works with Wildfly and the EJBs are not configured correctly.我认为 Ant 脚本中存在错误,因为我没有更改构建 EAR 的旧 JBoss 脚本中的任何内容,并且它可能不适用于 Wildfly,并且 EJB 配置不正确。 Please let me know if you have some examples.如果你有一些例子,请告诉我。

in Wildfly the JNDI-Lookup changes a little bit.在 Wildfly 中,JNDI-Lookup 发生了一些变化。

Earlier a jndi-name looks like this:之前的 jndi-name 看起来像这样:

"OrderManagerApp/ProductManagerBean/local"

But now it is written like this:但是现在是这样写的:

"java:app/OrderManagerEJB/ProductManagerBean!services.ejb.ProductManager"

You can find detailed information in the Migration Guide at chapter "Update application JNDI namespace names".您可以在迁移指南中的“更新应用程序 JNDI 名称空间名称”一章中找到详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM