Results 1 to 5 of 5
  1. #1
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default Error tag.getAsString:component context is not defined

    When I run my application in Tomcat 5.0 I obtain this error:
    Java Code:
    2007-06-25 15:34:54 StandardWrapperValve[jsp]: Servlet.service()
    javax.servlet.jsp.JspException: Error - tag.getAsString :
     component context is not defined. Check tag syntax
    at org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java:157)
    at org.apache.jsp.Layouts.myLayout_jsp._jspx_meth_til es_getAsString_0
    (myLayout_jsp.java:146)
    at org.apache.jsp.Layouts.myLayout_jsp._jspService(my Layout_jsp.java:74)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.jasper.servlet.JspServletWrapper.servic 
    e(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter
    (ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter
    (ApplicationFilterChain.java:157)
    at glucoweb.LoginFilter.doFilter(LoginFilter.java:106 )
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter
    (ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter
    (ApplicationFilterChain.java:157)
    at org.securityfilter.filter.SecurityFilter.doFilter
    ( SecurityFilter.java:188)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter
    (ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter
    (ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invo ke
    (StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext
    (StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke
    (StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal
    (StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke
    (StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext
    (StandardValveContext.java:104)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke
    (AuthenticatorBase.java:540)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
    (ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)
    can you help me?

  2. #2
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default

    Can you paste the code?
    maybe it's a syntax problem

  3. #3
    hueoogle is offline Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    Default

    I Get the Exact Same problem. Everything was working fine, and it is possible I may have made a change that affected the way Tiles process, but I don't think so. No additions (no new jars). BTW, I am using a Spring Controllers not Struts Actions.

    Like I said, everything seemed to be working, then I had to move some stuff around as my 'c:' drive was too full so I moved my eclipse, my sandbox, and apache tomcat 6 to another drive and rebuilt everything. That is when I started getting this error.

    IT IS DRIVING ME NUTS!!!!!! PLEASE HELP ANYONE.

  4. #4
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    5

    Red face

    What are the exact steps you take before encountering this error? Do you click on any link? Or this comes out while deployment on Tomcat? Or something else?

    Post some code, that might give us a chance to look at things.

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Replies: 0
    Last Post: 04-04-2008, 02:48 PM
  2. Replies: 1
    Last Post: 08-07-2007, 05:05 AM
  3. Replies: 1
    Last Post: 08-01-2007, 09:25 PM
  4. Replies: 0
    Last Post: 07-16-2007, 08:45 PM
  5. Application Context
    By bbq in forum Java Servlet
    Replies: 1
    Last Post: 07-05-2007, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •