Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Struts help with Tomcat

Thread view: 
ozonshak@yahoo.com - 24 Dec 2007 15:46 GMT
Hello.  I'm having a Struts issue I'm hoping someone can help me
with.  I have a Java, JSP, and Struts 1.1 (with Tiles) web application
running in an Eclipse based environment.  I deploy it to a locally
installed Tomcat 4.1 running against Java 1.4.2_06.  In this
configuration, it runs just fine.  My index.jsp page uses a
<logic:forward> tag to hit a global forward in my struts-config.xml
file.  Now, when I deploy this to a Tomcat 5.0.27 installation running
against Java 1.5.0_11, it no longer works.  The code has not changed
at all.  I am getting the following error:
"javax.servlet.ServletException: Cannot find global ActionForward for
name begin".  The "begin" forward is inside my index.jsp page and is
the only line in that file (other than the include for the tag
library).  I also see in the logs:
"javax.servlet.UnavailableException: Parsing error processing resource
path".  I don't think the version of Java has anything to do with
this.  Could this have something to do with the classloader in Tomcat
5?  Or perhaps something that comes bundled with Tomcat that is
interfering?  Everything this application needs is inside the WAR
file, including Struts.  Can anyone help me?  Thanks!
Lew - 24 Dec 2007 17:31 GMT
> Hello.  I'm having a Struts issue I'm hoping someone can help me
> with.  I have a Java, JSP, and Struts 1.1 (with Tiles) web application
[quoted text clipped - 15 lines]
> interfering?  Everything this application needs is inside the WAR
> file, including Struts.  Can anyone help me?  Thanks!

This looks on the face of it like an error in the struts-config in the second
environment.  There's nothing in what you've told us to suggest a class loader
issue or a problem with Tomcat.

The "resource path" error suggests that something in a deployment descriptor
references a non-existent path to a resource.

This is almost certainly application-specific, indeed, deployment-specific,
and not a Tomcat issue.

Signature

Lew

ozonshak@yahoo.com - 25 Dec 2007 00:23 GMT
> ozons...@yahoo.com wrote:
> > Hello.  I'm having a Struts issue I'm hoping someone can help me
[quoted text clipped - 31 lines]
>
> - Show quoted text -

Thank you for the feedback.  However, if this was a path issue, would
I not have run into this same issue in the Tomcat 4.1 envionment?  All
of the paths I reference in my configuration files are relative to the
WAR file itself.  Nothing is referenced outside of the WAR file for
Struts.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.