Я хотел создать образец сервлета как Jira-плагин в соответствии с a tutorial.Как установить плагин в Jira?
Я построил код как есть, и я использовал следующий код pom.xml
для создания кода.
Когда я запускаю URL-адрес сервлета, у меня возникает следующая проблема с классом.
[INFO] [talledLocalContainer] ERROR - 13:41:52,368 - com.atlassian.plugin.servlet.DefaultServletModuleManager - [http-bio-5990-exec-4] - Unable to create new reference LazyLoadedServletReference{d escriptor=com.atlassian.plugins.tutorial.refapp.adminUI:test (null), s[email protected]2829d93e} [INFO] [talledLocalContainer] com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.ClassCastException: com.atlassian.plugins.tutorial.refapp.MyPluginServlet cannot be cast to javax.servlet.http.HttpServlet [INFO] [talledLocalContainer] at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)