facebook

Unresolved URI in Tomcat

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #216757 Reply

    wouterroux
    Member

    Hi,

    I am trying to complete the Struts Development Demo tutorial.
    When I try to run the app I get the following error

    org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/struts/tags-bean) cannot be resolved in either web.xml or the jar files deployed with this application

    I know this issue has been adressed elsewhere in the forums and followed the steps to solve the problem. I tried to map the taglibs in my web.xml as follows


    <jsp-config>
    <taglib>
    <taglib-uri>http://jakarta.apache.org/struts/tags-bean</taglib-uri&gt;
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>http://jakarta.apache.org/struts/tags-html</taglib-uri&gt;
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    </jsp-config>

    the <taglib-uri> is the same as the <uri> in struts-bean.tld and struts-html.tld.
    Also checked the struts.jar file in the \webapps\StrutsDemo\WEB-INF\lib directory and the <uri> is also the same there.

    But it still does not solve the problem. What else am I doing wrong?

    Eclipse 3.0.1 + Tomcat 4.1.30 + MyEclipse Enterprise WorkBench 3.8.2

    Thnx
    Wouter

    #216798 Reply

    Riyad Kalla
    Member

    Wouter,
    You did all the exactly right steps to try and run this down. A few other things we can try, open up the struts.jar file, and double check the URI in the META-INF/tld directories .TLD files… lets make sure that you didn’t inadvertantly update to Struts 1.2.x in which case the URI has changed.

    Do you accidentally have the Struts JARs deployed in your common/lib directory of your Tomcat install?

    #216851 Reply

    wouterroux
    Member

    Hi,

    Thanks for advice,

    I checked the \Tomcat 4.1\common\lib didn’t accidentally include the struts.jar file there

    Also double checked the struts.jar uri value :

    <uri>http://jakarta.apache.org/struts/tags-bean</uri&gt;

    which looks like struts 1.1 according to me.

    I found something that might be a problem when I go to About Eclipse Platform Plug-ins menu in Eclipse 3.0.1. I note there are 2 versions of Struts Support, namely 3.8.2 and 3.8.1. Is this a problem?

    Looks like this is the case with all the Genuitec provided plugins. Most of them have 2 versions (probably because of my recent upgrade to 3.8.2).

    Thanx

    Tomcat 4.1.30 + Eclipse 3.0.1 + MyEclipse Workbench 3.8.2 jsdk1.4.2_04 + Win2000 Sp3

    #216867 Reply

    Riyad Kalla
    Member

    That is odd, but the exception you are getting is from Tomcat, not MyEclipse, correct?

    You might want to double check your Help > Software Updates > Manage Config screen and make sure you don’t have two extensions for MyEclipse installed, if you do, just disable the older one.

    Also, if this exception IS From Tomcat, try this (to make sure its not your Tomcat install):
    1) Download Tomcat 5.0.28 from Jakarta’s site (download the zip, it easier)
    2) Unzip it to C:\temp\tomcat
    3) Load up ME, change the Tomcat 5 home to c:\temp\tomcat
    4) REdeploy your app
    5) Run Tomcat… try your site… did it work?

    If it still didn’t work, try and export your project to a zip file and email it to support@genuitec.com and reference this thread, I’ll get the project and see whats going on.

    #218756 Reply

    wouterroux
    Member

    Hi,

    I have installed Tomcat 5.0.28 and deployed the app. Now I am getting the following exception

    exception

    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:283)

    I will email the app to you.

    thanx

    wouter

    #218757 Reply

    Riyad Kalla
    Member

    Be sure to reference this thread so we know why we are getting it.

    #218788 Reply

    chigbl
    Member

    I had the same error as specified in the first email. I was using Tomcat 4.1 and redeploying to Tomcat 5.0.28 fix the problem for me.

    #219246 Reply

    wouterroux
    Member

    Hi,

    I have succesfully deployed the struts demo on Tomcat/5.0.28. Why cant I deploy it on Tomcat/4.1.3?

    Exception :

    org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/struts/tags-bean) cannot be resolved in either web.xml or the jar files deployed with this application

    Also (and this is probably the wrong place to ask but what the heck) does anybody know where I can get usefull information on best practices using tomcat on iseries.

    thnx
    wouter

    #219251 Reply

    Riyad Kalla
    Member

    wouter,

    org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/struts/tags-bean) cannot be resolved in either web.xml or the jar files deployed with this application

    There is always the possibility that Tomcat has a bug when trying to load/resolve tag libraries… I know that Tomcat 4.1.31 came out pretty fast after 4.1.30, maybe that was something they fixed?

    Also I don’t have any answer for the second question.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Unresolved URI in Tomcat

You must be logged in to post in the forum log in