user3655096
user3655096

Reputation: 57

Websphere App server [WARNING ] CWWKC0044W and [WARNING ] CWWKC0022W:

Running Websphere App server V8.5 Liberty Profile. I've failed to find any help that can resolve these warnings. I'm on 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);
}
}

********WARNINGS*************

[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].

Upvotes: 1

Views: 6208

Answers (1)

Joachim Isaksson
Joachim Isaksson

Reputation: 180887

The warnings look very much like you're trying to run Liberty Profile under Java8.

Liberty profile does not (yet) support Java8, so as far as I know your only current supported option is to go back to Java7.

Upvotes: 3

Related Questions