简体   繁体   English

从AS 7到WF10的野生迁移

[英]wildfly migration from AS 7 to WF10

I am new to WildFly Server. 我是WildFly Server的新手。 I am upgrading server from AS7 to Wildfly10. 我正在将服务器从AS7升级到Wildfly10。 How to add JARS in WILDFLY10. 如何在WILDFLY10中添加JARS。 In Error Log: i am getting missing Dependencies(Is this because of not reading JARS?). 在错误日志中:我越来越缺少依赖项(这是因为没有阅读JARS吗?)。

you need to add jars like it is given on their wiki. 您需要添加其wiki上给出的jar。

  1. Sometimes you need to add a module (if it is a jar that is not shipped with Wildfly and define it in jboss-deployment-structure.xml). 有时您需要添加一个模块(如果它不是Wildfly附带的jar,并在jboss-deployment-structure.xml中定义它)。
  2. Sometimes, in case it is already shipped (you may have to search inside the modules directory) and add it in jboss-deployment-structure.xml 有时,如果已经发货(您可能必须在modules目录中搜索)并将其添加到jboss-deployment-structure.xml中

Again it depends what is it saying. 再次取决于它在说什么。 which dependency etc? 哪个依赖等? https://docs.jboss.org/author/display/WFLY10/Class+Loading+in+WildFly https://docs.jboss.org/author/display/WFLY10/Class+Loading+in+WildFly

Actually we need to delete the servlet-mappings in web.xml and use annotations to direct to java classes 1. @webservlet for Servlet classes. 实际上,我们需要删除web.xml中的servlet映射,并使用批注将其定向到Java类1. Servlet类的@webservlet。 2. @path for resources. 2. @path获取资源。

Also we need to delete some unneccessary jars, which wildfly have inbuilt. 另外,我们需要删除Wildfly内置的一些不必要的jar。

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

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