aspose file tools*
The moose likes Struts and the fly likes Struts tree Directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts tree Directory" Watch "Struts tree Directory" New topic
Author

Struts tree Directory

AnilPrakash Raju
Ranch Hand

Joined: Jul 26, 2004
Posts: 137
Hi,

I am not sure if it is a Struts issue or a tomcat issue.

I tried to create a small Struts application( for learning purpose) using Eclipse 3.1 ans exadel studio 3.6.

The tree structure is: Apache Software Foundation\Tomcat 5.5\webapps

Then my project is under there:
Apache Software Foundation\Tomcat 5.5\webapps\StrutsHello

Then webContent i.e:
..\StrutsHello\WebContent\
Then I got 3 folders under WebContent : Web-inf, Meta-inf, pages( which has my jsp pages)

When I run tomcat and go to: http://localhost:8080/StrutsHello/
i get the Status 404 error

HTTP Status 404 - /StrutsHello/

--------------------------------------------------------------------------------

type Status report

message /StrutsHello/

description The requested resource (/StrutsHello/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.9

Any ideas?

Do you think it could be a problem with my setup of the tree structure or something else?

Thanks

Anil
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It won't work to have your eclipse workspace be inside Tomcat's webapps directory. The directory structure for an eclipse workspace is different than what Tomcat is expecting for a web application.

The best practice for developing web applications is to develop them in a workspace that is not associated with any application server, and then deploy them to the application server. I'm not familiar with Exadel Studio, but I'm sure it has tools specifically designed to package and deploy your application. Look in the documentation for a heading like "running your web application on a server" or "packaging your application".


Merrill
Consultant, Sima Solutions
AnilPrakash Raju
Ranch Hand

Joined: Jul 26, 2004
Posts: 137
Thanks a lot.
I got it working once i changed the tree structure.




Anil
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts tree Directory