struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2897) org.apache.struts2.tiles.StrutsTilesListener do not work
Date Mon, 01 Dec 2008 09:26:36 GMT

    [ https://issues.apache.org/struts/browse/WW-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45061#action_45061
] 

Dave Newton commented on WW-2897:
---------------------------------

@careprad: You can get the source by downloading the source or checking it out from the source
repository:

http://struts.apache.org/dev/builds.html

@lichunlei: Did you also retrotranslate all the relevant library files?

> org.apache.struts2.tiles.StrutsTilesListener do not work
> --------------------------------------------------------
>
>                 Key: WW-2897
>                 URL: https://issues.apache.org/struts/browse/WW-2897
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.11.2
>         Environment: websphere6.0 (jdk1.42),all the referenced jar is in the struts-2.0.11.2-all.zip
downloaded from the official site. 
>            Reporter: careprad
>            Priority: Blocker
>
> first of all,the reason is the exception on ServletDispatcherResult.doExecute:
> 		setLocation(location);
> 		javax.servlet.ServletContext servletContext = ServletActionContext.getServletContext();
> 		TilesContainer container = TilesAccess.getContainer(servletContext);              
//here get null container
> 		javax.servlet.http.HttpServletRequest request = ServletActionContext.getRequest();
> 		javax.servlet.http.HttpServletResponse response = ServletActionContext.getResponse();
> 		container.render(location, new Object[] {request, response});                     
       //here will throw the null pointer exception
> I traced the exception in the StrutsTilesListener ,it do not work at all,I suppose it
 is the static initialize method work in error:
> 		INIT.put(
> 			"org.apache.tiles.factory.TilesContainerFactory",
> 			(class$org$apache$struts2$tiles$StrutsTilesContainerFactory == null
> 				&& (class$org$apache$struts2$tiles$StrutsTilesContainerFactory =
> 					(new StrutsTilesContainerFactory[0]).getClass().getComponentType())
> 					== null
> 					? class$org$apache$struts2$tiles$StrutsTilesContainerFactory
> 					: class$org$apache$struts2$tiles$StrutsTilesContainerFactory)
> 				.getName());
> this code is what I can't understand!and How can I get the source code of the pluggin?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message