tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Campisano <>
Subject Re: File does not exist error - public_html/
Date Sun, 14 Feb 2010 19:29:13 GMT
Here is what I have for a server.xml component ..... I'm have also 
requested addition information concerning the

application context.xml or additional configuration information

NOTE: XXXXX = my site name

<Host name="" appBase="/home/XXXXX/public_html">
           <Context path="" reloadable="true" docBase="/home/XXXXX/public_html" debug="1"/>
           <Context path="/manager" debug="0" privileged="true"


My web.xml is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="" xmlns:xsi=""


My struts-config.xml is as follows:

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts-config PUBLIC
           "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"

         <form-bean name="AddArticleForm" type="com.XXXXX.action.forms.AddArticleForm"/>



         <forward name="welcome"  path="/"/>

         <action name="AddArticleForm" path="/addArticle" scope="request" type="com.XXXXX.actions.AddArticleAction"
             <forward name="success" path="/WEB-INF/successAddArticle.jsp"/>
             <forward name="failure" path="/newArticle.jsp"/>
         <action path="/Welcome" forward="/welcomeStruts.jsp"/>

     <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

     <message-resources parameter="com/myapp/struts/ApplicationResource"/>

     <!-- ========================= Tiles plugin ===============================-->
     This plugin initialize Tiles definition factory. This later can takes some
     parameters explained here after. The plugin first read parameters from
     web.xml, thenoverload them with parameters defined here. All parameters
     are optional.
     The plugin should be declared in each struts-config file.
     - definitions-config: (optional)
     Specify configuration file names. There can be several comma
     separated file names (default: ?? )
     - moduleAware: (optional - struts1.1)
     Specify if the Tiles definition factory is module aware. If true
     (default), there will be one factory for each Struts module.
     If false, there will be one common factory for all module. In this
     later case, it is still needed to declare one plugin per module.
     The factory will be initialized with parameters found in the first
     initialized plugin (generally the one associated with the default
     true : One factory per module. (default)
     false : one single shared factory for all modules
     - definitions-parser-validate: (optional)
     Specify if xml parser should validate the Tiles configuration file.
     true : validate. DTD should be specified in file header (default)
     false : no validation

     Paths found in Tiles definitions are relative to the main context.
     <plug-in className="org.apache.struts.tiles.TilesPlugin">
         <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
         <set-property property="moduleAware" value="true" />

     <!-- ========================= Validator plugin =================================
     <plug-in className="org.apache.struts.validator.ValidatorPlugIn">



I am currently placing my components within the directory structure of public_html/TestStruts1.

The components within this structure are as follows:



The classes folder contains my servlets and struts actions.

The lib folder contains the .jar files.

Again, I have this working in my testing environment.  It is only an issue after deployment
to my web site.

Also note that is will work if I access the application in the following manner:

TestStrust1 is the folder I copied all of components to.

The above method will render the initial JSP with a form to enter data.  After entering the
data on the form and hitting submit the success page does return completed with the input
data provided on the form.  This is what I expect to occur in my test.

So this does work ....

It will not work however when I attempt to run it with

After I press the submit button I continue to get page with the following:


The support staf is indicating they are finding this in the log:

[Sat Feb 13 08:19:10 2010] [error] [client] File does not exist: /home/XXXXX/public_html/TestStruts1/

On 2/14/2010 10:48 AM, Caldarale, Charles R wrote:
>> From: Steve Campisano []
>> Subject: Re: File does not exist error - public_html/
>> I spoke to soon ..... I'm still getting the same error .....
> So respond to Pid's suggestion:
> "Without seeing the server.xml, any application context.xml or additional config, we're
going to struggle to help you."
> You've sent three follow-up messages, none of which provide the requested (and required)
>   - Chuck
is thus for use only by the intended recipient. If you received this in error, please contact
the sender and delete the e-mail and its attachments from all computers.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message