Hi,
The exception says that the Tiles Factory can't be found, so I suppose there was a problem during the initialization of it.
If you use latest nightly build of Struts1.1 (recommended), you need to declare the TilesPlugin in the struts-config.xml. You don't need the ActionComponentServlet, which is for struts1.0.x.
If you use struts multi module capability, you need one struts-config.xml file per module, and one Tiles plugin declaration in each. Also, the tiles plugin declaration should specify if you want one tiles factory per module:
<set-property property="moduleAware" value="true" />
If you specify false, this will result in one single factory for all modules, initialized with parameters from the first initialized plugin.
Cedric
Raghavan, Namita wrote:
Hi,
I am using Tiles and Struts and WebLogic 6.1. I have created some tile
definitions in a file called mytiles-defs.xml under DefaultWebApp\WEB-INF.
When I try to access my main page, I get the foll. exception:
================================================================
Factory initialized from file '/WEB-INF/tiles-defs.xml,
/WEB-INF/tiles-tests-defs.xml,/WEB-INF/tiles-tutorial-defs.xml,
/WEB-INF/tiles-examples-defs.xml'.
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.webap
p.tiles.dev1-1.ApplicationResources', returnNull=true
Info - TilesPlugin : factory already exists. No new creation.
<Dec 11, 2002 3:49:14 PM PST> <Notice> <WebLogicServer> <SSLListenThread
listeni
ng on port 7002>
<Dec 11, 2002 3:49:14 PM PST> <Notice> <WebLogicServer> <ListenThread
listening
on port 7001>
<Dec 11, 2002 3:49:15 PM PST> <Notice> <Management> <Starting discovery of
Manag
ed Server... This feature is on by default, you may turn this off by passing
-Dw
eblogic.management.discover=false>
<Dec 11, 2002 3:50:05 PM PST> <Notice> <WebLogicServer> <Started WebLogic
Admin
Server "myserver" for domain "mydomain" running in Development Mode>
[ChangeAwareClassLoader] : Name is :
org/apache/struts/taglib/tiles/UseAttribute
Tei.ser
<Dec 11, 2002 3:52:49 PM PST> <Error> <HTTP>
<[WebAppServletContext(3978603,Defa
ultWebApp,/DefaultWebApp)] Root cause of ServletException
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:503
)
at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:460)
at jsp_servlet.__main._jspService(__main.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:304)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2546)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2260)
====================================================================
Note how the first line does not include my tiles definition file,
mytiles-defs.xml. I have made the necessary changes to web.xml and
struts-config.xml. I saw a similar positing in the news archive, somebody
suggested that I should use ActionComponentServlet instead of ActionServlet.
I tried that as well - same error...
Any ideas?
Thanks,
--
Namita
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

