Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in using tag library: incompatible version

 
Supriya Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks as if your Weblogic instance doesn't support JSP 2.0.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please suggest me what to do now. How to run my program?

Thank You.
 
Supriya Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir, my other jsp pages are running successfully. I have problem with only JSTL. Please suggest me.

Thank you
 
Marimuthu Madasamy
Ranch Hand
Posts: 72
Java Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The package names must be identical.
 
Supriya Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
Java Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do the following things,
1) Ensure that package names are identical both in TLD and in class.
2) Redeploy the application
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic