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 Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non" Watch "Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non" New topic
Author

Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
I have the text:
Dynamic Web Application
Development using
XML and Java
David Parsons
ISBN: 9781844805419
well,
I build/compile war files success ...

yesterday, I was able to to the same for struts apps[app=changed name], but today I am getting errors for Struts only, i can NOT run struts completelly, I use TOMCAT, Well???
Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non-struts apps success!

ERRORS
HTTP Status 404 - /strutswebapp/page1.htm

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

type Status report

message /strutswebapp/page1.htm

description The requested resource (/strutswebapp/page1.htm) is not available.

2222222222
HTTP Status 404 - /strutswebapp/home.jsp

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

type Status report

message /strutswebapp/home.jsp

description The requested resource (/strutswebapp/home.jsp) is not available.


eg
Examples15\Examples\Example 15-3 Struts Global Forward App\java
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

When diagnosing Struts issues it's really, really important to include the circumstances under which you get the error (like, what URL are you trying to access) and the configuration of the action in question--otherwise it's completely impossible to help, or often even guess. Setting the log level to DEBUG can also help, as well as including the *relevant* portions of the log file (startup errors, errors that occur during the request processing, etc.)
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
since I use build.xml for this text assignments in Struts etc chapters to build file.war, and in another Struts app non using build.xml tested now success (from another book), use only compilations manually javac, well may the problem be on build.xml? I compile success, but this for sure means success run?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's possible, but there's no way to tell without more information. It's more likely a configuration or deployment issue.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
But, since not found neither file.htm/file.html, is this you refer error?
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
any debug tip?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yes--turn the log level up to DEBUG, check for startup errors, cross-check the URLs you're using against the configuration, check the actual deployment.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
problem solved--->moved app folder to a bath without "+"

C:\Users\User\Documents\TextBooksDataFiles\R+.ex+.Practice works as on\xml-java\Examples15\Examples\Example 15-1 Struts Routing App\strutswebapp

new
C:\Users\User\Documents\TextBooksDataFiles\JAVA\xml-java\Examples15\Examples15\Examples\Example 15-2 Struts Action Routing App\java
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non
 
Similar Threads
tomcat web application folder setting
Problem with getSuccessView
problem with RequestDispatcher
I need help!
HTTP Status 404 error in tomcat