aspose file tools*
The moose likes Struts and the fly likes HTTP Status 404 - /Struts2App/example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTTP Status 404 - /Struts2App/example" Watch "HTTP Status 404 - /Struts2App/example" New topic
Author

HTTP Status 404 - /Struts2App/example

Venkat basa
Greenhorn

Joined: Oct 30, 2012
Posts: 9
hi all,

am not able to get the response page in sturts2,please go through below code i have written.

even am not getting any error/exception on server console

Mar 12, 2013 4:39:56 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.6.0/bin/client;C:/Program Files/Java/jre1.6.0/bin;C:/Program Files/Java/jre1.6.0/lib/i386;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0\bin;;D:\eclipse;
Mar 12, 2013 4:39:56 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Mar 12, 2013 4:39:56 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 893 ms
Mar 12, 2013 4:39:56 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 12, 2013 4:39:56 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Mar 12, 2013 4:39:58 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Mar 12, 2013 4:39:58 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Mar 12, 2013 4:39:58 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Mar 12, 2013 4:39:58 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting default VM locale
Mar 12, 2013 4:39:58 PM com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <clinit>
INFO: Detected GenericsObjectTypeDeterminer, initializing it...
Mar 12, 2013 4:39:58 PM com.opensymphony.xwork2.util.XWorkConverter getInstance
INFO: Detected AnnotationXWorkConverter, initializing it...
Mar 12, 2013 4:39:59 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Mar 12, 2013 4:39:59 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 12, 2013 4:39:59 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78 config=null
Mar 12, 2013 4:39:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3093 ms



Struts.xml
-------------

-----------
web.xml


------------------
package com.example.action;

---
index.jsp


clinet.jsp


Please Help me


Thnks


[Download ee.bmp] Download

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

First off, please Use Code Tags when you post your code. It preserves formatting so your code is easier to read.
Next, uncomment the following line in your Struts config file:

This will give you more information on the error pages.
Next, you declare your action class to be com.example.action.ExampleAction, but I don't see a package declaration in your code.


[How To Ask Questions On JavaRanch]
Venkat basa
Greenhorn

Joined: Oct 30, 2012
Posts: 9
hi,

thanks for your response,

but same thing 404 only,even i added
<code=sturs tag>
<constant name="struts.devMode" value="true" /> also
</code>


Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

A 404 error means the server can't find the resource you requested. Either the application did not deploy, it did not deploy where you think it is, or you are using a bad URL.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 404 - /Struts2App/example