- This topic has 8 replies, 3 voices, and was last updated 20 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
wouterrouxMemberHi,
I am trying to complete the Struts Development Demo tutorial.
When I try to run the app I get the following errororg.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>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib><taglib>
<taglib-uri>http://jakarta.apache.org/struts/tags-html</taglib-uri>
<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
Riyad KallaMemberWouter,
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?
wouterrouxMemberHi,
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>
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
Riyad KallaMemberThat 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.
wouterrouxMemberHi,
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
Riyad KallaMemberBe sure to reference this thread so we know why we are getting it.
chigblMemberI 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.
wouterrouxMemberHi,
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
Riyad KallaMemberwouter,
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.
-
AuthorPosts