This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Error in using tag library: incompatible version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Error in using tag library: incompatible version" Watch "Error in using tag library: incompatible version" New topic
Author

Error in using tag library: incompatible version

Supriya Gupta
Greenhorn

Joined: Jul 06, 2008
Posts: 9
My JSP is running successfully in Tomcat 5.0 I tried to run the same in weblogic. But I get the error message.

Parsing of JSP File '/MyTag.jsp' failed:
--------------------------------------------------------------------------------
/MyTag.jsp(1): Error in using tag library uri='myUri' prefix='abcd': incompatible version: taglib requires version '2.0', this implementation is version '1.2.0'
probably occurred due to an error in /MyTag.jsp line 1:
<%@ taglib prefix="abcd" uri="myUri" %>



My weblogic is 8.1 . JDK is 1.5
Please suggest me what to do such that my program runs successfully.

Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Looks as if your Weblogic instance doesn't support JSP 2.0.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
That's right. WebLogic Server 8.1 does not support JSP 2.0.

Last I checked, it also does not support JDK 1.5. Check the JDK compatibility for your service pack and operating system in BEA's (I mean Oracle's) documentation, WebLogic Platform 8.1 Supported Configurations
Supriya Gupta
Greenhorn

Joined: Jul 06, 2008
Posts: 9
Please suggest me what to do now. How to run my program?

Thank You.
Supriya Gupta
Greenhorn

Joined: Jul 06, 2008
Posts: 9
Sir, my other jsp pages are running successfully. I have problem with only JSTL. Please suggest me.

Thank you
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

Make the following changes in your tld file for this tag library uri='myUri' prefix='abcd',

<jsp-version>1.2</jsp-version>

Hope this helps.


- Marimuthu Madasamy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Originally posted by Supriya Gupta:
I have problem with only JSTL.
Your post says nothing about the JSTL. How does the JSTL factor into this?
Supriya Gupta
Greenhorn

Joined: Jul 06, 2008
Posts: 9
I have change the JSP version in the tld. But now I am getting another error.
Parsing of JSP File '/MyTag.jsp' failed:
--------------------------------------------------------------------------------
/MyTag.jsp(1): Error in using tag library uri='myUri' prefix='abcd': cannot find tag class: 'MyTags.MyTag'
probably occurred due to an error in /MyTag.jsp line 1:
<%@ taglib prefix="abcd" uri="myUri" %>


My tag class MyTag is in WEB-INF\classes\MyTag

This program is running in Tomcat. But I have this problem in Weblogic8.1
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

The package names must be identical.
Supriya Gupta
Greenhorn

Joined: Jul 06, 2008
Posts: 9
Sir, I have corrected the package name. But still same problem. What changes should needed to run my program in weblogic. This program is running in tomcat.
Thank You
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

You can do the following things,
1) Ensure that package names are identical both in TLD and in class.
2) Redeploy the application
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error in using tag library: incompatible version
 
Similar Threads
jsp compilation failed
the value of <%@taglib uri="" %>?
Jsp custom tags in weblogic
problem with tld using struts 1.2.7 in weblogic 8.1 - jsp 1.1
Problem with struts 1.2.7 and later versions on Weblogic 8.1