struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject Re: Blank app fails to build
Date Sun, 20 Nov 2016 15:17:11 GMT

From: Java House <>
Sent: Sunday, November 20, 2016 4:51 AM
Subject: Blank app fails to build


this is my first attempt with Struts.
I am trying to run the Blank App sample application. I tried first by
creating it using the maven archetype and also tried it through the
I am using
JDK 1.8.0_111,
mvn 3.3.9
Struts 2.5.5

when doing mvn clean install
test fails on the getText() method, I am getting null pointer exception
 T E S T S
Running example.ConfigTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.886
sec - in example.ConfigTest
Running example.HelloWorldTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.083
sec <<< FAILURE! - in example.HelloWorldTest
testHelloWorld(example.HelloWorldTest)  Time elapsed: 0.082 sec  <<< ERROR!
    at example.HelloWorldTest.testHelloWorld(

I also tried a few older versions of struts but I am always getting
this error. Does anyone has any idea what am I doing wrong?

I am guessing that the getText method fails because it does not find
the properties files.
In the example the properties is under

I even tried to place the file under the java and rename it the same
as the class

MG>possible maven-jetty-plugin is not copying .properties to expected WEB-INF\classes\example
MG>when operational struts war expects HelloWorld<lang>.properties to be in .\WEB-INF\classes\example

ls -al struts-2.3.4\src\apps\processing-forms\target\processing-forms\WEB-INF\classes\example

07/30/2012  09:02 AM               238
07/30/2012  09:02 AM               197
07/30/2012  09:02 AM               238
07/30/2012  09:02 AM               197

MG>please confirm location of properties files

but it didn't help

thank you for your support

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message