Hello everyone,
I can't run a Hello World Application, here is the steps that I have followed, what did I miss ?
Versions used:
Tomcat 8.5.24 -
Struts 2.5.14.1 - Eclipse Neon 3 Release 4.6.3
Step 1
Creating a new Dynamic Web Project
Step 2
Adding Struts 2 to
java build path as a user defined library, the external jars included list is:
commons-fileupload
commons-io
commons-lang
commons-lang3
commons-logging
freemarker
javassist
ognl
struts2-core
Step 3
Editing /WEB-INF/web.mxl
Step 4
Adding /HelloWorld.jsp
Step 5
Adding src/com.company.struts2.actions.HelloWorldAction.java
Step 6
Adding /src/struts.xml
Step 7
Testing the project, the internal web browser of eclipse can't find the resource!
HTTP Status 404 - Not Found
Type Status Report
Message /Struts2Starter/helloworld
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.24
The console reports this error:
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
The markers tab show this warning:
Classpath Dependency Validator Message
Description Classpath entry org.eclipse.jdt.USER_LIBRARY/Struts 2 Framework will not be exported or published. Runtime ClassNotFoundExceptions may result.
When I fixed this by adding Struts 2 to be exported in /WEB-INF/lib tomcat failed to start with the error message
Could not launch in profiling mode because no profilers are configured.
That's all, and thank's for help.