You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "SanJ.SANJAY" <gi...@gmail.com> on 2009/01/28 16:09:06 UTC
Struts-tag ?
org.apache.jasper.JasperException: File "/struts-tags" not found
In struts 2 distribution, I do not see struts-tags or its .tld . Am I
missing it or why do I get this error?
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21707578.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by Musachy Barroso <mu...@gmail.com>.
As Wes suggested get the blank application from the demo zip:
http://struts.apache.org/download.cgi#struts216
also, the instructions on what needs to be done to get the samples of
Struts 2 in Action running are in the README.txt file inside the
download.
musachy
On Fri, Jan 30, 2009 at 12:05 PM, SanJ.SANJAY <gi...@gmail.com> wrote:
>
> Sapmle application that is available for download for struts 2 in action, is
> really painful to install. There is no proper instruction in the book on how
> to install it and there are many issues when we try to do it ourself.
> Sometimes I feel so frustrated about buying this book...
>
>
>
>
> SanJ.SANJAY wrote:
>>
>> Ok,
>>
>> I downloaded a sample application for Sruts 2 from manning .com for
>> StrutsInAction. I still get the same error on the web server. When open
>> "http://localhost:8080/SampleApplication/Menu.action"
>> for a moment the page says ...One moment please.. and then dumps the
>> error.
>>
>>
>> HTTP Status 500 -
>>
>> --------------------------------------------------------------------------------
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> javax.servlet.ServletException: File "/struts-tags" not found
>>
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>>
>> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:422)
>> org.apache.struts2.plexus.PlexusFilter.doFilter(PlexusFilter.java:96)
>>
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
>>
>>
>> root cause
>>
>> org.apache.jasper.JasperException: File "/struts-tags" not found
>>
>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
>>
>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>>
>>
>>
>>
>>
>>
>>
>> Wes Wannemacher wrote:
>>>
>>> On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote:
>>>> I can extract the struts-core jar with an error.
>>>
>>> Was that a mistake?
>>>
>>>> Also I placed them under
>>>> WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml
>>>> file.
>>>> Could this be the issue? I thought since I wil not be using any action
>>>> for
>>>> this case, I did not need it? What do you say?
>>>>
>>>
>>> I don't think that it is a problem, but it could be. Which brings me to
>>> my
>>> next point... How do you expect Struts 2 to work if you aren't going to
>>> create
>>> actions? The majority of tags will not work, if the page has not been
>>> processed by the Filter.
>>>
>>> Anyhow, can you try to deploy one of the sample apps in your app server?
>>> Try
>>> struts2-blank. If it works, we'll know it's not an app server problem.
>>> I'm
>>> guessing that your setup is hosed. My suggestion would be to take a look
>>> at
>>> the getting started guides and try to build a simple application, before
>>> dumping all the jars into WEB-INF/lib and trying out the tags.
>>>
>>> -Wes
>>>
>>> --
>>>
>>> Wes Wannemacher
>>> Author - Struts 2 In Practice
>>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>> http://www.manning.com/wannemacher
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21751301.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
Sapmle application that is available for download for struts 2 in action, is
really painful to install. There is no proper instruction in the book on how
to install it and there are many issues when we try to do it ourself.
Sometimes I feel so frustrated about buying this book...
SanJ.SANJAY wrote:
>
> Ok,
>
> I downloaded a sample application for Sruts 2 from manning .com for
> StrutsInAction. I still get the same error on the web server. When open
> "http://localhost:8080/SampleApplication/Menu.action"
> for a moment the page says ...One moment please.. and then dumps the
> error.
>
>
> HTTP Status 500 -
>
> --------------------------------------------------------------------------------
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: File "/struts-tags" not found
>
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:422)
> org.apache.struts2.plexus.PlexusFilter.doFilter(PlexusFilter.java:96)
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
>
>
> root cause
>
> org.apache.jasper.JasperException: File "/struts-tags" not found
>
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
>
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>
>
>
>
>
>
>
> Wes Wannemacher wrote:
>>
>> On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote:
>>> I can extract the struts-core jar with an error.
>>
>> Was that a mistake?
>>
>>> Also I placed them under
>>> WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml
>>> file.
>>> Could this be the issue? I thought since I wil not be using any action
>>> for
>>> this case, I did not need it? What do you say?
>>>
>>
>> I don't think that it is a problem, but it could be. Which brings me to
>> my
>> next point... How do you expect Struts 2 to work if you aren't going to
>> create
>> actions? The majority of tags will not work, if the page has not been
>> processed by the Filter.
>>
>> Anyhow, can you try to deploy one of the sample apps in your app server?
>> Try
>> struts2-blank. If it works, we'll know it's not an app server problem.
>> I'm
>> guessing that your setup is hosed. My suggestion would be to take a look
>> at
>> the getting started guides and try to build a simple application, before
>> dumping all the jars into WEB-INF/lib and trying out the tags.
>>
>> -Wes
>>
>> --
>>
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21751301.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
Ok,
I downloaded a sample application for Sruts 2 from manning .com for
StrutsInAction. I still get the same error on the web server. When open
"http://localhost:8080/SampleApplication/Menu.action"
for a moment the page says ...One moment please.. and then dumps the error.
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: File "/struts-tags" not found
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:422)
org.apache.struts2.plexus.PlexusFilter.doFilter(PlexusFilter.java:96)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
org.apache.jasper.JasperException: File "/struts-tags" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
Wes Wannemacher wrote:
>
> On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote:
>> I can extract the struts-core jar with an error.
>
> Was that a mistake?
>
>> Also I placed them under
>> WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file.
>> Could this be the issue? I thought since I wil not be using any action
>> for
>> this case, I did not need it? What do you say?
>>
>
> I don't think that it is a problem, but it could be. Which brings me to my
> next point... How do you expect Struts 2 to work if you aren't going to
> create
> actions? The majority of tags will not work, if the page has not been
> processed by the Filter.
>
> Anyhow, can you try to deploy one of the sample apps in your app server?
> Try
> struts2-blank. If it works, we'll know it's not an app server problem. I'm
> guessing that your setup is hosed. My suggestion would be to take a look
> at
> the getting started guides and try to build a simple application, before
> dumping all the jars into WEB-INF/lib and trying out the tags.
>
> -Wes
>
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21751019.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by Wes Wannemacher <we...@wantii.com>.
On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote:
> I can extract the struts-core jar with an error.
Was that a mistake?
> Also I placed them under
> WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file.
> Could this be the issue? I thought since I wil not be using any action for
> this case, I did not need it? What do you say?
>
I don't think that it is a problem, but it could be. Which brings me to my
next point... How do you expect Struts 2 to work if you aren't going to create
actions? The majority of tags will not work, if the page has not been
processed by the Filter.
Anyhow, can you try to deploy one of the sample apps in your app server? Try
struts2-blank. If it works, we'll know it's not an app server problem. I'm
guessing that your setup is hosed. My suggestion would be to take a look at
the getting started guides and try to build a simple application, before
dumping all the jars into WEB-INF/lib and trying out the tags.
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
sorry I mean I can extract struts-core jar without any error.
SanJ.SANJAY wrote:
>
> I can extract the struts-core jar with an error. Also I placed them under
> WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file.
> Could this be the issue? I thought since I wil not be using any action for
> this case, I did not need it? What do you say?
>
>
>
>
>
>
> Wes Wannemacher wrote:
>>
>> On Wednesday 28 January 2009 10:44:02 SanJ.SANJAY wrote:
>>> I dropped all the jars from the /lib folder of distribution which is
>>> 2.0.14.
>>>
>>
>> And you dropped them in WEB-INF/lib of your application and redeployed?
>>
>> I assume you also setup a struts.xml file as well as updated your web.xml
>> to
>> include the filter dispatcher.
>>
>> If all of that was done, and you are getting a message that the TLD can't
>> be
>> found, it is possible your download or one of your jars is corrupted. Can
>> you
>> unzip the struts-core jar file w/o error?
>>
>> -Wes
>>
>> --
>>
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21708700.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
I can extract the struts-core jar with an error. Also I placed them under
WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file.
Could this be the issue? I thought since I wil not be using any action for
this case, I did not need it? What do you say?
Wes Wannemacher wrote:
>
> On Wednesday 28 January 2009 10:44:02 SanJ.SANJAY wrote:
>> I dropped all the jars from the /lib folder of distribution which is
>> 2.0.14.
>>
>
> And you dropped them in WEB-INF/lib of your application and redeployed?
>
> I assume you also setup a struts.xml file as well as updated your web.xml
> to
> include the filter dispatcher.
>
> If all of that was done, and you are getting a message that the TLD can't
> be
> found, it is possible your download or one of your jars is corrupted. Can
> you
> unzip the struts-core jar file w/o error?
>
> -Wes
>
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21708576.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by Wes Wannemacher <we...@wantii.com>.
On Wednesday 28 January 2009 10:44:02 SanJ.SANJAY wrote:
> I dropped all the jars from the /lib folder of distribution which is
> 2.0.14.
>
And you dropped them in WEB-INF/lib of your application and redeployed?
I assume you also setup a struts.xml file as well as updated your web.xml to
include the filter dispatcher.
If all of that was done, and you are getting a message that the TLD can't be
found, it is possible your download or one of your jars is corrupted. Can you
unzip the struts-core jar file w/o error?
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
I dropped all the jars from the /lib folder of distribution which is 2.0.14.
Wes Wannemacher wrote:
>
> On Wednesday 28 January 2009 10:28:13 SanJ.SANJAY wrote:
>> I am using Jboss 4.0.2. I was running my application on struts 1 and now
>> decided to go with struts 2 in parallel with struts 1. So after putting
>> all
>> the struts 2 jar in lib and shared lib folders, I updated web.xml for
>> filter dispatcher for struts 2. So now I was trying to test some struts 2
>> JSP tags in my JSP, but broke
>> when I use "<%@ taglib prefix="s" uri="/struts-tags" %>" in jsp says
>> "org.apache.jasper.JasperException: File "/struts-tags" not found"
>>
>>
>
> I'm not a JBoss user, but I don't think you want to put the jars in the
> shared
> lib folders. There are a lot of static members on many of the classes.
> Each
> app server has its own classloader differences.
>
> Which jars did you drop in where? Which version of Struts 2 did you grab
> (i.e
> 2.0.14 / 2.1.6). The TLD file is located in struts-core-2.whatever.jar,
> and
> since JBoss uses Tomcat 5.5 which is JSP Spec 2.0, so it should have no
> problem finding the tld file in the jar.
>
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21708266.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by Wes Wannemacher <we...@wantii.com>.
On Wednesday 28 January 2009 10:28:13 SanJ.SANJAY wrote:
> I am using Jboss 4.0.2. I was running my application on struts 1 and now
> decided to go with struts 2 in parallel with struts 1. So after putting all
> the struts 2 jar in lib and shared lib folders, I updated web.xml for
> filter dispatcher for struts 2. So now I was trying to test some struts 2
> JSP tags in my JSP, but broke
> when I use "<%@ taglib prefix="s" uri="/struts-tags" %>" in jsp says
> "org.apache.jasper.JasperException: File "/struts-tags" not found"
>
>
I'm not a JBoss user, but I don't think you want to put the jars in the shared
lib folders. There are a lot of static members on many of the classes. Each
app server has its own classloader differences.
Which jars did you drop in where? Which version of Struts 2 did you grab (i.e
2.0.14 / 2.1.6). The TLD file is located in struts-core-2.whatever.jar, and
since JBoss uses Tomcat 5.5 which is JSP Spec 2.0, so it should have no
problem finding the tld file in the jar.
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
I am using Jboss 4.0.2. I was running my application on struts 1 and now
decided to go with struts 2 in parallel with struts 1. So after putting all
the struts 2 jar in lib and shared lib folders, I updated web.xml for filter
dispatcher for struts 2. So now I was trying to test some struts 2 JSP tags
in my JSP, but broke
when I use "<%@ taglib prefix="s" uri="/struts-tags" %>" in jsp says
"org.apache.jasper.JasperException: File "/struts-tags" not found"
Thanks
Wes Wannemacher wrote:
>
> On Wednesday 28 January 2009 10:09:06 SanJ.SANJAY wrote:
>> org.apache.jasper.JasperException: File "/struts-tags" not found
>>
>> In struts 2 distribution, I do not see struts-tags or its .tld . Am I
>> missing it or why do I get this error?
>
> What version of Tomcat are you using? The TLD is in the JAR file.
>
> -Wes
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21707972.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts-tag ?
Posted by Wes Wannemacher <we...@wantii.com>.
On Wednesday 28 January 2009 10:09:06 SanJ.SANJAY wrote:
> org.apache.jasper.JasperException: File "/struts-tags" not found
>
> In struts 2 distribution, I do not see struts-tags or its .tld . Am I
> missing it or why do I get this error?
What version of Tomcat are you using? The TLD is in the JAR file.
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org