THanks for your reply. Here is my plug-in part from struts-config.xml. I
don't have a Controller part.


        <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
                <set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
        </plug-in>
        <plug-in
className="org.acaosa.registration.web.plugin.RegistrationPlugIn">
        </plug-in>
        <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" />
            <set-property property="definitions-parser-validate"
value="true" />
        </plug-in>


here is web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app id="WebApp">
        <display-name>AcaosaRegistrationWeb</display-name>
        <filter>
            <filter-name>ResponseOverrideFilter</filter-name> 
        
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class> 
        </filter>
        <filter-mapping>
            <filter-name>ResponseOverrideFilter</filter-name> 
            <url-pattern>*.do</url-pattern>
        </filter-mapping>
        <filter-mapping> 
            <filter-name>ResponseOverrideFilter</filter-name> 
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <!--<listener>
        
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
        </listener>-->
        
        <servlet>
                <servlet-name>action</servlet-name>
        
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
                <init-param>
                        <param-name>application</param-name>
        
<param-value>org.acaosa.registration.resources.ApplicationResources</param-v
alue>
                </init-param>

                <init-param>
                        <param-name>config</param-name>
        
<param-value>/WEB-INF/struts-config.xml</param-value>
                </init-param>
                <init-param>
                        <param-name>debug</param-name>
                        <param-value>2</param-value>
                </init-param>
                <init-param>
                        <param-name>detail</param-name>
                        <param-value>2</param-value>
                </init-param>
                <init-param>
                        <param-name>validate</param-name>
                        <param-value>true</param-value>
                </init-param>
                <init-param>
                        <param-name>definitions-config</param-name>
                        <param-value>/WEB-INF/tiles-defs.xml</param-value>
                </init-param>
                <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet>
                <servlet-name>Log4jInit</servlet-name>
        
<servlet-class>org.acaosa.registration.web.plugin.Log4jInit</servlet-class>
                <init-param>
                        <param-name>log4j-init-file</param-name>
                        <param-value>log4j.properties</param-value>
                </init-param>
                <init-param>
                        <param-name>commons-logging</param-name>
        
<param-value>commons-logging.properties</param-value>
                </init-param>
                <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
                <servlet-name>action</servlet-name>
                <url-pattern>*.do</url-pattern>
        </servlet-mapping>
        
        <welcome-file-list>
                <welcome-file>index2.jsp</welcome-file>
                <welcome-file>default.html</welcome-file>
                <welcome-file>default.htm</welcome-file>
                <welcome-file>default.jsp</welcome-file>
        </welcome-file-list>
                                
        <taglib>
                <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
                <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
        </taglib>
        <taglib>
                <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
                <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
        </taglib>
        <taglib>
                <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
                <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
        </taglib>
        <taglib>
                <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
        
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
        </taglib>
        <taglib>
                <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
        
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
        </taglib>
        <taglib>
                <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
                <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
        </taglib>
        <taglib>
        
<taglib-uri>http://www.ibm.com/websphere/wdo/core</taglib-uri>
                <taglib-location>/WEB-INF/lib/wdo_web.jar</taglib-location>
        </taglib>
        <resource-ref id="ResourceRef_1079985423714">
                <res-ref-name>jdbc/RegistrationDB</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>CONTAINER</res-auth>
                <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <env-entry>
                <description>The RegistrationDAO Implementation
Class</description>
        
<env-entry-name>dao/registration/RegistrationDAOClass</env-entry-name>
        
<env-entry-value>org.acaosa.registration.dao.RegistrationDAO</env-entry-valu
e>
                <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
        <env-entry>
                <description>The SignOnDAO Implementation
Class</description>
                <env-entry-name>dao/signon/SignOnDAOClass</env-entry-name>
        
<env-entry-value>org.acaosa.registration.signon.dao.SignOnDAO</env-entry-val
ue>
                <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
        <env-entry>
                <description>The SignOnDAO datasource name</description>
                <env-entry-name>signon/SignOnDataSource</env-entry-name>
        
<env-entry-value>java:comp/env/jdbc/RegistrationDB</env-entry-value>
                <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
        <env-entry>
                <description>The RegistrationDAO datasource
name</description>
        
<env-entry-name>registration/RegistrationDataSource</env-entry-name>
        
<env-entry-value>java:comp/env/jdbc/RegistrationDB</env-entry-value>
                <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
        <env-entry>
                <description>The KeyGeneratorDAO Implementation
Class</description>
        
<env-entry-name>dao/registration/KeyGeneratorDAOClass</env-entry-name>
        
<env-entry-value>org.acaosa.registration.keygenerator.KeyGeneratorDAO</env-e
ntry-value>
                <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
        <env-entry>
                <description>The KeyGeneratorDAO datasource
name</description>
        
<env-entry-name>registration/KeyGeneratorDataSource</env-entry-name>
        
<env-entry-value>java:comp/env/jdbc/RegistrationDB</env-entry-value>
                <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
</web-app>


I also have an xml file in {catalina.home}\common\lib directory which has
the following:

<Context path="/acaosareg"
  docBase="${catalina.home}/webapps/acaosareg"  debug="0">
  <ResourceLink name="jdbc/RegistrationDB" />
</Context>


and in my server.xml I have the JNDI resource config again under Context
tags.

Let me know if you need my server.xml too..

Thanks for your help

G


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:42 PM
To: 'Struts Users Mailing List'
Subject: RE: Deploying on Tomcat - Urgent


Post your 

web.xml file... (you can omit mime defs from it)
and the controller and plugin part of your struts config file

rgds
aleiprecht


-----Original Message-----
From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 04, 2005 6:41 PM
To: 'user@struts.apache.org'
Subject: Deploying on Tomcat - Urgent


Hello,
I am trying to deploy my Struts application on Tomcat 5.0.28 on Win2k. I get
the following error on my browser when I try to start up. My application has
tiles in them and I believe I configured everything properly. I was able to
successfully deploy and run the application in Websphere App Server 5.1
through WSAD. But it just doesn't run on Tomcat. I created a WAR file and
dropped it in webapps folder in Tomcat home and tried starting up the
server. I have my server.xml configured too.

Please help.

Thanks
Gnan

exception 
javax.servlet.ServletException: Can't get definitions factory from context.
        at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
        at org.apache.jsp.index2_jsp._jspService(index2_jsp.java:72)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
        at
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter
.java:114)
root cause 
javax.servlet.jsp.JspException: Can't get definitions factory from context.
        at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.jav
a:616)
        at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:515
)
        at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:477)
        at
org.apache.jsp.index2_jsp._jspx_meth_tiles_insert_0(index2_jsp.java:88)
        at org.apache.jsp.index2_jsp._jspService(index2_jsp.java:62)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
        at
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter
.java:114)


======================================================================== 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED] 
Toys "R" Us, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

======================================================================== 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED] 
Toys "R" Us, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to