• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Error in using tag library: incompatible version

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks as if your Weblogic instance doesn't support JSP 2.0.
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sir, my other jsp pages are running successfully. I have problem with only JSTL. Please suggest me.

Thank you
 
Ranch Hand
Posts: 72
Scala Monad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The package names must be identical.
 
Supriya Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Scala Monad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic