I am not sure if the build of WSAD matters... but who knows.
Unfortunately I don't have access to that particular version
of WSAD so I can't really say if this is the case..

But - taking a stab at your problem..
Looking at some struts code.. the message: 
"Can't get definitions factory from context" is thrown
as a FactoryNotFoundException by the method :
static public ComponentDefinition getDefinition(String definitionName, ServletRequest 
request, ServletContext servletContext) 
in TilsUtil class.

So - it looks more like a configuration problem. That is,
it can't find the definition files.  But - I am not sure why tiles-documentation.war 
did not work on your setup. 
Unfortunately I don't know where the documentation is
for using tiles for using ActionComponentServlet.
I would guess, that the reason ActionComponentServlet works 
is because your definition files are listed in your web.xml:
<init-param>
      <param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml,/WEB-INF/tiles-tests-defs.xml,/WEB-INF/tiles-tutorial-defs.xml,
                 /WEB-INF/tiles-examples-defs.xml</param-value>
</init-param>

Maybe you've forgot to list them in your struts-config.xml
file?? as 
 <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" />
  </plug-in>


Just a thought.
Not a tiles expert here :)

Ying


[EMAIL PROTECTED] wrote:

>Hi,
>Thanks, for your help.
>But I try what you tell and I still receive the same error:
>"Can't get definitions factory from context".
>
>But if I change the web xml file and comment the actionservlet class and use
>the actioncomponentservlet
><!-- <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>-->
>
><servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class
>>
>
>It's work with a warning.
>"Warning - ActionComponentServlet class: This class is to be used with
>Struts1.0.x only. Please modify web.xml to use regular ActionServlet class
>instead in conjugaison with appropriate plugin declared in
>struts-config.xml."
>
>I will translate this by circle bug. The problem is that I need to use
>ActionServlet.
>
>I heard that there is different version of websphere 5.0 : different build
>version, maybe is the reason of my bug. I use
>WebSphere Studio Application Developer (Windows)
>Version: 5.0.0
>Build id: 20020913_0100
>
>-----Message d'origine-----
>De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Envoy� : 6 f�vrier, 2003 13:32
>� : [EMAIL PROTECTED]
>Objet : Re: Struts Tooling
>
>
>Hi Robert -
>
>A good example of tiles application is tiles-documentation.war that comes
>with the Struts 1.1b3 distribution. The example uses the ActionServlet
>(instead of ActionComponentServlet) and it runs correctly (under WSAD 5.0
>Test environment) with a few modification.. as listed below.
>
>You need to fix struts-doc-config.xml at:
></action-mappings> should be <action-mappings/>
>and
><plug-in className="org.apache.struts.tiles.TilesPlugin" >
>    <set-property property="definitions-config"
>                     value="/WEB-INF/tiles-defs.xml,
>                            /WEB-INF/tiles-doc-defs.xml />
>is missing a end "
>
>
>Not sure where the definition from this file is used - but
>I think it is better to just fix that.
>
>If you use WSAD IDE to import the .war file, it will also flag some errors..
>(*.jsps - tiles.tld not there and etc..) I just ignored it (this is probably
>something that is not too bad to fix).
>
>I think its likely that you are just missing a few configuration information
>in your web.xml (requirements probably changed much from Struts 1.0 to
>Struts 1.1)
>
>Hope this helps.
>
>Ying
>
>>From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>Subject: Struts Tools
>>Date: Thu, 6 Feb 2003 09:27:37 -0500
>>Content-Type: multipart/alternative;
>>   boundary="----_=_NextPart_001_01C2CDEB.E5D7D0D0"
>>
>>
>>Do you use tile plugins ?
>>Do you use struts 1.1.3
>>Your action servet in web.xml is ActionComponentServlet or
>>ActionServlet I ask this question because when I use
>>ActionComponentServlet it's work with a warning But when i use
>>ActionServlet It doesn't work att all
>>
>>Can you show or send me your web.xml and your strut-config.xml files.
>>
>>Thanks you verry much it's been a while that I try to make workink
>>struts 1.1.3 with websphere 5.0
>>
>>
>>-----Message d'origine-----
>>De : Gary Johnston <[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]]
>>Envoy��� : 6 f���vrier, 2003 09:18
>>�� : [EMAIL PROTECTED]
>>Objet : RE : Struts Tools
>>
>>
>>Robert,
>>BTW, the bogus error message(s) you're seeing is a known problem that
>>is fixed in a soon-to-be released fix bundle.  It'll be
>>downloadable/installable into WebSphere Studio 5.0 via the
>>Eclipse "Update Manager".  For now, please just continue to ignore
>>them.  Sorry.
>>- Gary Johnston
>>IBM WebSphere Studio Struts Tools Development Lead
>>IBM Software Group, RTP, NC
>>
>>--- In [EMAIL PROTECTED], Robert Claeson <[EMAIL PROTECTED]> wrote:
>>> [EMAIL PROTECTED] wrote:
>>> > WSAD 5.0 with tiles-definitions and struts 1.1 dont work with
>>exemples of
>>> > configuration give by apache
>>>
>>> I actually haven't tried those examples. I just follow the API
>>guides. I
>>> use Tiles and definitions. It works for me for what I've done with
>>it so
>>> far (developed an e-business application with a quite complex
>>layout
>>> based on tiles, and web services integration with a license
>>management
>>> system located on a different continent), except for the bogus
>>error
>>> message I mentioned.
>>>
>>> /Robert
>>>
>>>
>>> --------------------------------------------------------------------
>>-
>>> 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]
>>
>>
>
>
>__________________________________________________________________
>The NEW Netscape 7.0 browser is now available. Upgrade now!
>http://channels.netscape.com/ns/browsers/download.jsp
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

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

Reply via email to