Re: Struts Tiles Problem

2010-11-08 Thread Dave Newton
Subclass the TilesRequestProcessor instead of the normal one.

Dave

On Mon, Nov 8, 2010 at 1:08 PM, Andy T  wrote:
> Hi Lukasz,
>
> Your identification of the exact cause of the error has helped me to
> solve this problem.  The problem is here:
>
> 
>     value="EricEnhancement.util.CustomRequestProcessor"/>
> 
>
> For whatever reason the CustomRequestProcessor I was using is not
> compatible with the TilesRequestProcessor.  When I remove the above
> from struts-config.xml everything SEEMS to work as expected.  I need
> to do a little more work to prove this definitively however.  However,
> this creates another issue.  I was using the CustomRequestProcessor to
> redirect to the login page under certain circumstances.  Can you
> recommend another approach that will accomplish the same thing?
>
> Thanks so much for your help,
>
> Andy
>
>
>
> On Mon, Nov 8, 2010 at 10:56 AM, Lukasz Lenart
>  wrote:
>> 2010/11/8 Andy T :
>>> Hi Lukasz,
>>>
>>> I have struts-tiles-1.3.8.jar loaded . . . is this what you mean?
>>
>> Yes, it should be sufficient, could you post your struts config? Below
>> is extract from the log you sent me.
>>
>> FATAL main org.apache.struts.tiles.TilesPlugin - TilesPlugin :
>> Specified RequestProcessor not compatible with TilesRequestProcessor
>> ERROR main org.apache.struts.action.ActionServlet - Unable to
>> initialize Struts ActionServlet due to an unexpected exception or
>> error thrown, so marking the servlet as unavailable.  Most likely,
>> this is due to an incorrect or missing library dependency.
>> javax.servlet.ServletException: TilesPlugin : Specified
>> RequestProcessor not compatible with TilesRequestProcessor
>>        at 
>> org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:382)
>>        at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
>>        at 
>> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)
>>        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
>>        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
>>        at 
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>>        at 
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>>        at 
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>>        at 
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
>>        at 
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>        at 
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>        at 
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>        at 
>> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>>        at 
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:599)
>>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>>
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Kapituła Javarsovia 2010 http://javarsovia.pl
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts Tiles Problem

2010-11-08 Thread Andy T
Hi Lukasz,

Your identification of the exact cause of the error has helped me to
solve this problem.  The problem is here:





For whatever reason the CustomRequestProcessor I was using is not
compatible with the TilesRequestProcessor.  When I remove the above
from struts-config.xml everything SEEMS to work as expected.  I need
to do a little more work to prove this definitively however.  However,
this creates another issue.  I was using the CustomRequestProcessor to
redirect to the login page under certain circumstances.  Can you
recommend another approach that will accomplish the same thing?

Thanks so much for your help,

Andy



On Mon, Nov 8, 2010 at 10:56 AM, Lukasz Lenart
 wrote:
> 2010/11/8 Andy T :
>> Hi Lukasz,
>>
>> I have struts-tiles-1.3.8.jar loaded . . . is this what you mean?
>
> Yes, it should be sufficient, could you post your struts config? Below
> is extract from the log you sent me.
>
> FATAL main org.apache.struts.tiles.TilesPlugin - TilesPlugin :
> Specified RequestProcessor not compatible with TilesRequestProcessor
> ERROR main org.apache.struts.action.ActionServlet - Unable to
> initialize Struts ActionServlet due to an unexpected exception or
> error thrown, so marking the servlet as unavailable.  Most likely,
> this is due to an incorrect or missing library dependency.
> javax.servlet.ServletException: TilesPlugin : Specified
> RequestProcessor not compatible with TilesRequestProcessor
>        at 
> org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:382)
>        at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
>        at 
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)
>        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
>        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
>        at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>        at 
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>        at 
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>        at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
>        at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>        at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at 
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>        at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:599)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Kapituła Javarsovia 2010 http://javarsovia.pl
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts Tiles Problem

2010-11-08 Thread Lukasz Lenart
2010/11/8 Andy T :
> Hi Lukasz,
>
> I have struts-tiles-1.3.8.jar loaded . . . is this what you mean?

Yes, it should be sufficient, could you post your struts config? Below
is extract from the log you sent me.

FATAL main org.apache.struts.tiles.TilesPlugin - TilesPlugin :
Specified RequestProcessor not compatible with TilesRequestProcessor
ERROR main org.apache.struts.action.ActionServlet - Unable to
initialize Struts ActionServlet due to an unexpected exception or
error thrown, so marking the servlet as unavailable.  Most likely,
this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: TilesPlugin : Specified
RequestProcessor not compatible with TilesRequestProcessor
at 
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:382)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)



Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts Tiles Problem

2010-11-08 Thread Paul Benedict
I don't know if this is your problem, per se, but you can't redirect
to a tile. A Tile is just an alias/synonym for a jsp rendering. You
can only forward to one.

Paul

On Mon, Nov 8, 2010 at 8:58 AM, Andy T  wrote:
> Thanks to all who have responded thus far . . .
>
> I think I forgot to add the Tiles Plugin to my struts-config.xml file.
>  However when I do this I get  "HTTP Status 404 - Servlet action is
> not available" . . .
>
>
>
>
>
>
>
> On Sat, Nov 6, 2010 at 2:47 AM, Lukasz Lenart
>  wrote:
>> 2010/11/5 Rafael Medeiros :
>>> How to use plugin-tiles in struts 1.3.8:
>>
>> Check the documentation
>> http://struts.apache.org/1.x/struts-tiles/installation.html
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Kapituła Javarsovia 2010 http://javarsovia.pl
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts Tiles Problem

2010-11-08 Thread Andy T
Thanks to all who have responded thus far . . .

I think I forgot to add the Tiles Plugin to my struts-config.xml file.
 However when I do this I get  "HTTP Status 404 - Servlet action is
not available" . . .







On Sat, Nov 6, 2010 at 2:47 AM, Lukasz Lenart
 wrote:
> 2010/11/5 Rafael Medeiros :
>> How to use plugin-tiles in struts 1.3.8:
>
> Check the documentation
> http://struts.apache.org/1.x/struts-tiles/installation.html
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Kapituła Javarsovia 2010 http://javarsovia.pl
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts Tiles Problem

2010-11-05 Thread Lukasz Lenart
2010/11/5 Rafael Medeiros :
> How to use plugin-tiles in struts 1.3.8:

Check the documentation
http://struts.apache.org/1.x/struts-tiles/installation.html


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts Tiles Problem

2010-11-05 Thread Rafael Medeiros
How to use plugin-tiles in struts 1.3.8:









*web.xml*

action

org.apache.struts.action.ActionServlet

config
/WEB-INF/config/struts-config.xml,
/WEB-INF/config/struts-config-manter-usuario.xml



convertNull
true


chainConfig

org/apache/struts/tiles/chain-config.xml

2


*tiles.xml*











*action*




*template:*
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>














good luck!

Atenciosamente,

Rafael Nunes
I'm free - Linux
http://www.linkedin.com/in/mederafael


On Fri, Nov 5, 2010 at 4:15 PM, Dave Newton  wrote:

> Is the Tiles plugin not required for S1.3? It's been several years since
> I've used Struts 1 (I hope you're not using it for a new project?)
>
> Dave
> On Nov 5, 2010 1:05 PM, "Andy T"  wrote:
> > Hi All,
> >
> > I'm having a bit of trouble trying to get my tiles to work with Struts
> > and wondered if anyone could help.
> >
> > The relevant files are shown below:
> >
> >  Web.xml 
> >
> > [code]
> > 
> >  > xmlns="http://java.sun.com/xml/ns/j2ee";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> > MiniHR
> > 
> > action
> > 
> > org.apache.struts.action.ActionServlet
> > 
> > config
> > /WEB-INF/struts-config.xml
> > 
> > 
> > chainConfig
> > org/apache/struts/tiles/chain-config.xml
> > 
> > 
> > debug
> > 2
> > 
> > 
> > detail
> > 2
> > 
> > 
> > validate
> > true
> > 
> > 2
> > 
> >
> >
> > 
> > tiles
> > org.apache.tiles.web.startup.TilesServlet
> > 
> > 
> > org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> > 
> > 
> > /WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml
> > 
> > 
> > 1
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> > 
> > action
> > *.do
> > 
> > 
> > index.html
> > index.htm
> > index.jsp
> > default.html
> > default.htm
> > default.jsp
> > 
> >
> > 
> > [/code]
> >
> >
> >  tiles-defs.xml 
> >
> > [code]
> > 
> >
> >  > "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
> > "http://struts.apache.org/dtds/tiles-config_1_3.dtd";>
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > 
> > 
> > 
> > 
> >
> >
> > 
> > [/code]
> >
> >
> >  struts-config.xml 
> >
> > [code]
> > 
> >  > Struts Configuration 1.3//EN"
> > "http://struts.apache.org/dtds/struts-config_1_3.dtd";>
> > 
> >
> > 
> >
> > (Form Beans Here)
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> > 
> > 
> >
> > 
> >
> >
> >  > parameter="method"
> > type="EricEnhancement.struts.EnhancementAction"
> > cancellable="true"
> > validate="false">
> > 
> > 
> > 
> >
> >
> >  > input="/login.jsp"
> > type="EricEnhancement.struts.LoginAction"
> > name = "LoginForm"
> > cancellable="true"
> > validate="true">
> > 
> > 
> > 
> >
> >
> > 
> >
> > 
> >  > value="gov.ohio.odjfs.EricEnhancement.util.CustomRequestProcessor"/>
> > 
> >
> >  >
>
> parameter="ericenhancements.resources.MessageResources">
> >
> > 
> > 
> > 
> >
> > 
> > 
> >  > value="/org/apache/struts/validator/validator-rules.xml,
> > /WEB-INF/validation.xml"/>
> > 
> >
> >
> >
> > 
> > [/code]
> >
> >
> >
> > I'm using struts-tiles-1.3.8.jar and when I run the above I get:
> > "java.lang.IllegalArgumentException: Path Home does not start with a
> > "/" character"
> >
> > Can anyone help me with this?
> >
> > Thanks,
> >
> > Rob
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
>


Re: Struts Tiles Problem

2010-11-05 Thread Dave Newton
Is the Tiles plugin not required for S1.3? It's been several years since
I've used Struts 1 (I hope you're not using it for a new project?)

Dave
On Nov 5, 2010 1:05 PM, "Andy T"  wrote:
> Hi All,
>
> I'm having a bit of trouble trying to get my tiles to work with Struts
> and wondered if anyone could help.
>
> The relevant files are shown below:
>
>  Web.xml 
>
> [code]
> 
>  xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> MiniHR
> 
> action
> 
> org.apache.struts.action.ActionServlet
> 
> config
> /WEB-INF/struts-config.xml
> 
> 
> chainConfig
> org/apache/struts/tiles/chain-config.xml
> 
> 
> debug
> 2
> 
> 
> detail
> 2
> 
> 
> validate
> true
> 
> 2
> 
>
>
> 
> tiles
> org.apache.tiles.web.startup.TilesServlet
> 
> 
> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> 
> 
> /WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml
> 
> 
> 1
>
>
>
> 
>
>
>
>
>
> 
> action
> *.do
> 
> 
> index.html
> index.htm
> index.jsp
> default.html
> default.htm
> default.jsp
> 
>
> 
> [/code]
>
>
>  tiles-defs.xml 
>
> [code]
> 
>
>  "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
> "http://struts.apache.org/dtds/tiles-config_1_3.dtd";>
>
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> 
> 
> 
> 
>
>
> 
> [/code]
>
>
>  struts-config.xml 
>
> [code]
> 
>  Struts Configuration 1.3//EN"
> "http://struts.apache.org/dtds/struts-config_1_3.dtd";>
> 
>
> 
>
> (Form Beans Here)
>
> 
>
> 
>
> 
>
> 
> 
> 
>
> 
>
>
>  parameter="method"
> type="EricEnhancement.struts.EnhancementAction"
> cancellable="true"
> validate="false">
> 
> 
> 
>
>
>  input="/login.jsp"
> type="EricEnhancement.struts.LoginAction"
> name = "LoginForm"
> cancellable="true"
> validate="true">
> 
> 
> 
>
>
> 
>
> 
>  value="gov.ohio.odjfs.EricEnhancement.util.CustomRequestProcessor"/>
> 
>
> 
parameter="ericenhancements.resources.MessageResources">
>
> 
> 
> 
>
> 
> 
>  value="/org/apache/struts/validator/validator-rules.xml,
> /WEB-INF/validation.xml"/>
> 
>
>
>
> 
> [/code]
>
>
>
> I'm using struts-tiles-1.3.8.jar and when I run the above I get:
> "java.lang.IllegalArgumentException: Path Home does not start with a
> "/" character"
>
> Can anyone help me with this?
>
> Thanks,
>
> Rob
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>


Struts Tiles Problem

2010-11-05 Thread Andy T
Hi All,

I'm having a bit of trouble trying to get my tiles to work with Struts
and wondered if anyone could help.

The relevant files are shown below:

 Web.xml 

[code]

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
MiniHR

action

org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml


chainConfig

org/apache/struts/tiles/chain-config.xml


debug
2


detail
2


validate
true

2
  



tiles
org.apache.tiles.web.startup.TilesServlet


  org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG


  /WEB-INF/tiles-defs.xml,/org/apache/tiles/classpath-defs.xml


1










action
*.do


index.html
index.htm
index.jsp
default.html
default.htm
default.jsp



[/code]


 tiles-defs.xml 

[code]


http://struts.apache.org/dtds/tiles-config_1_3.dtd";>




















[/code]


 struts-config.xml 

[code]

http://struts.apache.org/dtds/struts-config_1_3.dtd";>




  (Form Beans Here)














  


  


  


  






















[/code]



I'm using struts-tiles-1.3.8.jar and when I run the above I get:
"java.lang.IllegalArgumentException: Path Home does not start with a
"/" character"

Can anyone help me with this?

Thanks,

Rob

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts tiles problem

2008-09-10 Thread Bipin Sadhwani
Any help would be appreciated. Tks!



- Original Message 
From: Bipin Sadhwani <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Tuesday, September 9, 2008 1:07:12 PM
Subject: struts tiles problem

Hi everyone,
I have this wierd issue with tiles. Probably its a bug. 
My environment is:  Windows XP Professional, MyEclipse 6.0.1, Struts 2.0.6, 
Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2
I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so 
this is my config (simplified): 
  
tiles.xml 
- 
  
 
  
  
  
 
  
 
  
  
 
 
  
 
 
  
layout.jsp 
--- 
  
 
 
  
  
  

  
  
  
 
 

Now following are the things I try on my searchEmployee.jsp 
  
searchEmployee.jsp - This works 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 

searchEmployee.jsp - This also works 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 
  
 

searchEmployee.jsp - This does work (only if I use tiles:insertDefinition below 
s:form) 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 
 

 

searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above 
or within s:form things don't work) 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 
  


I get a long exception stack trace which basically says nullptrexception. I'll 
send it in the next mail as there's size limit.

I've done the same thing using tiles1.x and it has always worked. 

Tks
Bipin


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

struts tiles problem - stack trace

2008-09-09 Thread Bipin Sadhwani
Here's the stack trace for the problem in my previous mail:

15:50:29,006 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.struts2.components.Form.populateComponentHtmlId(Form.java:232)
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:738)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
at 
org.apache.jsp.searchEmployee_jsp._jspx_meth_s_005fform_005f0(searchEmployee_jsp.java:114)
at org.apache.jsp.searchEmployee_jsp._jspService(searchEmployee_jsp.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at 
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:638)
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:632)
at 
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:80)
at 
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:73)
at 
org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestContextWrapper.java:72)
at 
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:606)
at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:280)
at 
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
at 
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
at 
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:154)
at 
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at 
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
at 
org.apache.jsp.layouts.layout_jsp._jspx_meth_tiles_005finsertAttribute_005f1(layout_jsp.java:540)
at org.apache.jsp.layouts.layout_jsp._jspService(layout_jsp.java:257)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at 
org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
at 
org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:179)
at 
org.apache.tiles.context.TilesRequestCo

struts tiles problem

2008-09-09 Thread Bipin Sadhwani
Hi everyone,
I have this wierd issue with tiles. Probably its a bug. 
My environment is:  Windows XP Professional, MyEclipse 6.0.1, Struts 2.0.6, 
Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2
I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so 
this is my config (simplified): 
  
tiles.xml 
- 
  
 
  
  
  
 
  
 
  
  
 
 
  
 
 
  
layout.jsp 
--- 
  
 
 
  
  
  

  
  
  
 
 

Now following are the things I try on my searchEmployee.jsp 
  
searchEmployee.jsp - This works 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 

searchEmployee.jsp - This also works 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 
  
 

searchEmployee.jsp - This does work (only if I use tiles:insertDefinition below 
s:form) 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 
 

 

searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above 
or within s:form things don't work) 

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles";%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
  
 
  


I get a long exception stack trace which basically says nullptrexception. I'll 
send it in the next mail as there's size limit.

I've done the same thing using tiles1.x and it has always worked. 

Tks
Bipin


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



Re: AW: Struts / Tiles Problem with RAD

2006-04-18 Thread Adam Hardy
Maybe your stack trace will give a clue. I'm not familiar with the 
intricacies of Websphere.



Hans-Peter Petek on 18/04/06 10:02, wrote:

Hi,

I created an EAR File ... tiles-file also exists ... and is readable. We
tried this on two different WAS 5.1 servers, same problem.
Does the error indicates, that the file has been found, but is not readable?
Or could is also be, that the file was not found?

IO Error while parsing file 'WEB-INF/tiles-definitions.xml'. 


The application is working fine inside RAD 6.0 (Testclient), but not on WAS
5.1 ... any help would be great !!!

thanks


-Ursprüngliche Nachricht-
Von: Adam Hardy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 18. April 2006 10:24

An: Struts Users Mailing List
Betreff: Re: Struts / Tiles Problem with RAD

The IO error indicates that it found the file but just doesn't like it. 
Are you sure that it is text and hasn't been corrupted? Or is zero length?


Hans-Peter Petek on 18/04/06 07:19, wrote:

Hallo all,

following problem - i developed an app on RAD 6.0 (but weblevel 2.3 - 
so compliant to was 5.1), Servlet Spez 2.3 and JSP 1.2


When i run the app through the testclient (v5.1) on RAD 6 all is 
working fine and i get no errors or warnings ...


But when i want to deploy the app to the WAS 5.1 (we are using was 5.1 
not 6, i get an error:

TRAS0014I: The following exception was logged javax.servlet.Servl
etException: IO Error while parsing file 'WEB-INF/tiles-definitions.xml'.
struts.apache.org
at


org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:

233)
...


The files exists and i do not know what the problem ist ... is there 
maybe some other config to do?


The struts-config looks like this:





I also tried path '/WEB-INF/tiles-definitions.xml'

There must be a path-problem, but i cant find it, also because the app 
is running well through the testclient v5.1 on RAD 6 but not on WAS 
5.1 ... so its difficult to find.


Does anyone had a problem like this ... ?!?!
Help or any suggestions (hints) would be great.

thanks



-
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]




-
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]



AW: Struts / Tiles Problem with RAD

2006-04-18 Thread Hans-Peter Petek
Hi,

I created an EAR File ... tiles-file also exists ... and is readable. We
tried this on two different WAS 5.1 servers, same problem.
Does the error indicates, that the file has been found, but is not readable?
Or could is also be, that the file was not found?

IO Error while parsing file 'WEB-INF/tiles-definitions.xml'. 

The application is working fine inside RAD 6.0 (Testclient), but not on WAS
5.1 ... any help would be great !!!

thanks


-Ursprüngliche Nachricht-
Von: Adam Hardy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 18. April 2006 10:24
An: Struts Users Mailing List
Betreff: Re: Struts / Tiles Problem with RAD

The IO error indicates that it found the file but just doesn't like it. 
Are you sure that it is text and hasn't been corrupted? Or is zero length?

Hans-Peter Petek on 18/04/06 07:19, wrote:
> Hallo all,
> 
> following problem - i developed an app on RAD 6.0 (but weblevel 2.3 - 
> so compliant to was 5.1), Servlet Spez 2.3 and JSP 1.2
> 
> When i run the app through the testclient (v5.1) on RAD 6 all is 
> working fine and i get no errors or warnings ...
> 
> But when i want to deploy the app to the WAS 5.1 (we are using was 5.1 
> not 6, i get an error:
> TRAS0014I: The following exception was logged javax.servlet.Servl
> etException: IO Error while parsing file 'WEB-INF/tiles-definitions.xml'.
> struts.apache.org
> at
>
org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:
> 233)
> ...
> 
> 
> The files exists and i do not know what the problem ist ... is there 
> maybe some other config to do?
> 
> The struts-config looks like this:
> 
> 
> 
> 
> 
> I also tried path '/WEB-INF/tiles-definitions.xml'
> 
> There must be a path-problem, but i cant find it, also because the app 
> is running well through the testclient v5.1 on RAD 6 but not on WAS 
> 5.1 ... so its difficult to find.
> 
> Does anyone had a problem like this ... ?!?!
> Help or any suggestions (hints) would be great.
> 
> thanks
> 
> 
> 
> -
> 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]




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



Re: Struts / Tiles Problem with RAD

2006-04-18 Thread Adam Hardy
The IO error indicates that it found the file but just doesn't like it. 
Are you sure that it is text and hasn't been corrupted? Or is zero length?


Hans-Peter Petek on 18/04/06 07:19, wrote:

Hallo all,

following problem - i developed an app on RAD 6.0 (but weblevel 2.3 - so
compliant to was 5.1), Servlet Spez 2.3 and JSP 1.2

When i run the app through the testclient (v5.1) on RAD 6 all is working
fine and i get no errors or warnings ...

But when i want to deploy the app to the WAS 5.1 (we are using was 5.1 not
6, i get an error:
TRAS0014I: The following exception was logged javax.servlet.Servl
etException: IO Error while parsing file 'WEB-INF/tiles-definitions.xml'.
struts.apache.org
at
org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:
233)
...


The files exists and i do not know what the problem ist ... is there maybe
some other config to do?

The struts-config looks like this:





I also tried path '/WEB-INF/tiles-definitions.xml'

There must be a path-problem, but i cant find it, also because the app is
running well through the testclient v5.1 on RAD 6 but not on WAS 5.1 ... so
its difficult to find.

Does anyone had a problem like this ... ?!?!
Help or any suggestions (hints) would be great.

thanks



-
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]



Struts / Tiles Problem with RAD

2006-04-17 Thread Hans-Peter Petek
Hallo all,

following problem - i developed an app on RAD 6.0 (but weblevel 2.3 - so
compliant to was 5.1), Servlet Spez 2.3 and JSP 1.2

When i run the app through the testclient (v5.1) on RAD 6 all is working
fine and i get no errors or warnings ...

But when i want to deploy the app to the WAS 5.1 (we are using was 5.1 not
6, i get an error:
TRAS0014I: The following exception was logged javax.servlet.Servl
etException: IO Error while parsing file 'WEB-INF/tiles-definitions.xml'.
struts.apache.org
at
org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:
233)
...


The files exists and i do not know what the problem ist ... is there maybe
some other config to do?

The struts-config looks like this:





I also tried path '/WEB-INF/tiles-definitions.xml'

There must be a path-problem, but i cant find it, also because the app is
running well through the testclient v5.1 on RAD 6 but not on WAS 5.1 ... so
its difficult to find.

Does anyone had a problem like this ... ?!?!
Help or any suggestions (hints) would be great.

thanks



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



RE: crazy struts tiles problem

2005-03-01 Thread Jonathan M Z
Allen,
thanks!  I figured out the cause of my problem, it was
actually tricky(or trivial).  I forgot to put <%@
taglib uri="/WEB-INF/tiles..."%> on top of the page
and when I use , struts didn't complain, it
just treat them as regular html tags so they don't
show up on the page.  I wonder why the jsp or struts
engine does not validate these tags... no error was
produced.  anyway...



--- "Fogleson, Allen" <[EMAIL PROTECTED]>
wrote:

> I usually don't use the tiles taglib other than in
> my layout files...
> here is how I would accomplish the same thing you
> want to do..
> 
> 1) Modify your layout.jsp
> 
> 
> 
> 
> 
> 
> note body wasn't there before. 
> 
> 2) Modify the tiles-def.xml
> 
> 
>path="../layout/defaultLayout.jsp" >
> 
> 
> 
> 
>   
>extends="common.default">
> 
>   
> 
> 
> then just forward to assessment.calc in your
> actionForward. Here is a
> snip from the struts config for an example:
> 
>  type="com.myactions.AssessmentCalcAction">
>redirect="false"/>
> 
> 
> HTH,
> Al
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

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



RE: crazy struts tiles problem

2005-03-01 Thread Fogleson, Allen
I usually don't use the tiles taglib other than in my layout files...
here is how I would accomplish the same thing you want to do..

1) Modify your layout.jsp






note body wasn't there before. 

2) Modify the tiles-def.xml


  




  
  

  


then just forward to assessment.calc in your actionForward. Here is a
snip from the struts config for an example:


  


HTH,
Al


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



crazy struts tiles problem

2005-03-01 Thread Jonathan M Z
I am using struts tiles
here is my struts-config:










Here is my tiles-defs.xml











Here is the essence in my layout file:




Here is the jsp that uses the tiles
<%@ taglib uri="/WEB-INF/struts-tiles.tld"
prefix="tiles" %>




 
However when i go to that jsp, nothing shows up, no
exception is thrown, all files paths specified for the
tiles are correct.  What's going on?? please help!!
thanks!




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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