Ниже приведены мои конфигурации:
pom.xml
Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
in.my.site
struts2-starter
1.0-SNAPSHOT
war
struts2-starter
http://maven.apache.org
UTF-8
17
17
jakarta.enterprise
jakarta.enterprise.cdi-api
4.1.0
jakarta.enterprise
jakarta.enterprise.cdi-el-api
4.1.0
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
2.10.1
junit
junit
3.8.1
test
< /code>
[b]struts.xmlКод: Выделить всё
/success.jsp
/error.jsp
< /code>
TutorialActionКод: Выделить всё
package in.my.site.struts2.actions;
public class TutorialAction {
public String execute() {
System.out.println("In execute method");
return "success";
}
}
< /code>
I am new to Struts and I have spent a lot of time trying to spot the error. Anything else that I should be configuring?
[b]EDIT:[/b]
Although artifact is getting deployed (and the index.jspERROR CdiObjectFactory [findBeanManager]: Could not find BeanManager instance for any given JNDI key, giving up
ERROR CdiObjectFactory Struts2 CDI integration could not be initialized.
[2025-01-26 09:50:51,996] Artifact struts2-starter:war exploded: Artifact is deployed successfully
[2025-01-26 09:50:51,996] Artifact struts2-starter:war exploded: Deploy took 3,704 milliseconds
< /code>
Can above error be an issue? (I followed the answert at https://stackoverflow.com/a/19003725/4233030, but didn't work)
Подробнее здесь: https://stackoverflow.com/questions/793 ... ng-java-17
Мобильная версия