File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes stupid 404 in setuping struts 2 project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "stupid 404 in setuping struts 2 project" Watch "stupid 404 in setuping struts 2 project" New topic
Author

stupid 404 in setuping struts 2 project

Etienne Gosset
Greenhorn

Joined: Dec 29, 2012
Posts: 8
Hi all,

I'm currently trying to set up a new struts 2 project.

I'm on tomcat 7.0.32, with a jdk 1.7.0 .

Here's the web.xml in my WEB-INF :


The WEB-INF/lib contains following jars :
ant-contrib-1.0b3
antlr-2.7.7
asm-3.3
asm-commons-3.3
asm-tree-3.3
commons-fileupload-1.2.2
commons-io-2.0.1
commons-lang3-3.1
dom4j-1.6.1
freemarker-2.3.19
hibernate-commons-annotations-4.0.1.Final
hibernate-core-4.1.8.Final
hibernate-jpa-2.0-api-1.0.1.Final
javassist-3.11.0.GA
jboss-logging-3.1.0.GA
jboss-transaction-api_1.1_spec-1.0.0.Final
log4j-1.2.15
mysql-connector-java-5.1.22-bin
ognl-3.0.5
struts2-core-2.3.4.1
xwork-core-2.3.4.1

in WEB/classes , I have my log4j.xml struts.properties and struts.xml (also hibernate.cfg.xml but we dont care here)

log4.xml :


struts.properties :


struts.xml :


And the attached action :


According to the namespace of the package and the aaction name defined in struts.xml, I thought that I could reach http://localhost:8080/AGL/dbAccess.com .

But I have a 404...
By the way I tried to put a breakpoint in my action, but I heaven don't enter in it.
I surely miss some point, but I'm trying lot of things for hours, and it's realy not improving..

Please help me, I'm driving crazy for such a basic thing!!
vivek kumar jaiswal
Greenhorn

Joined: Jul 31, 2008
Posts: 24

Dear Etienne Gosset,

remove namespace="/AGL" from struts.xml file then try


regards,
VIVEK JAISWAL
www.vivekjaiswal.co.in
Etienne Gosset
Greenhorn

Joined: Dec 29, 2012
Posts: 8
Indeed I wanted this namespace, but wathever, I remove it but it still dont work : I can't reach http://localhost:8080/dbAccess.com or http://localhost:8080/AGL/dbAccess.com

Any other idea someone??

Thanks in advance!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: stupid 404 in setuping struts 2 project
 
Similar Threads
struts2 properties file reload
interceptor problem in struts2
Struts2 parameters is coming null in action class
Error while trying to run struts2-blank-2.1.8.1 sample application in Eclipse and Tomcat 6
Jsp is not getting displayed in struts2 using eclipse.