I have tried a lot of times to reinstall the Jira. I could login at first time when I had installed it. Then I closed the browser and opened it again. It always said that the user name and password are wrong.
here's something in logs:
[http-nio-8080-exec-11] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://localhost:8080/rest/gadget/1.0/login, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.