gpt4 book ai didi

java - Websphere 应用程序服务器 [警告] CWWKC0044W 和 [警告] CWWKC0022W :

转载 作者:行者123 更新时间:2023-11-29 05:22:18 35 4
gpt4 key购买 nike

运行 Websphere App 服务器 V8.5 Liberty Profile。我找不到任何可以解决这些警告的帮助。我在 eclipse 。

        **************   Here's my servlet code ************
package com.rocketsoft.zoskmip.kmipuser;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class AddUser
*/
@WebServlet("/user")
public class AddUser extends HttpServlet {
private static final long serialVersionUID = 1L;

public AddUser() {
super();
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter printWriter = response.getWriter();
printWriter.print("Welcome");
String firstName = request.getParameter("fname");
printWriter.print(firstName);
}
}

********警告***************

[WARNING ] CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was {0}.

[WARNING ] CWWKC0022W: [ com.ibm.ws.anno.info.internal.ClassInfoCache@957735840 ] The scan of class [java.lang.Object] caused an exception. The message is: [Class [ java.lang.Object ] from resource [ java/lang/Object.class ] Exception creating reader] caused by [null].

最佳答案

这些警告看起来很像是您尝试在 Java8 下运行 Liberty Profile。

Liberty profile does not (yet) support Java8 ,据我所知,目前唯一支持的选项是返回到 Java7。

关于java - Websphere 应用程序服务器 [警告] CWWKC0044W 和 [警告] CWWKC0022W :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24176382/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com