• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

stupid 404 in setuping struts 2 project

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Greenhorn
Posts: 24
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Etienne Gosset,

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


regards,
VIVEK JAISWAL
www.vivekjaiswal.co.in
 
Etienne Gosset
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!