• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Example Error with taglib tag

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying run one simple JSP Example project in RAD 7.0 deployed on to websphere 6.1 server. My project is not building, publishing due to some taglib, tag related compilation errors in one '.tld' file say (xyz.tld) as in screenshot. I kept jstl as well as standrd jars both in 'lib' directory within in web-inf directory. How can i resolve this issue. Any suggestions, ideas, resources, links, sample code highly appreciated. Thanks in advance
taglib2.JPG
[Thumbnail for taglib2.JPG]
Compilation Error in tld file
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For those of you who would find it tedious to have to download a picture and wait for your picture display program to open up, here's the very small amount of text in question:

The <taglib> line is flagged with an error but we aren't told anything about the error beyond that. (Hint to gudim gudi: the error message contains useful information.)
 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I was able to resolve the issue by commenting following lines of code in the tld file


<!--

<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

-->


I am not sure how it worked. When i commnet this line of code everything worked perfect. Please advise how it worked when i comment above line of code.
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's an XML document, right? So the reference to the DTD tells the parser to use that DTD to validate the document. And as you know, those characters you inserted change that DTD reference into a comment. So you should be able to figure out for yourself what they did.

By the way your real problem is probably that RAD can't find that DTD. Most likely you are running it in an environment where you have to go through a proxy server to get to the internet and you haven't configured RAD to tell it where that proxy server is. (Of course that's a guess, you still haven't said what the error message is, but I think it's likely.)
 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can you please tell me how and where to configure RAD7.0 for proxy server to get the internet.

>>>Most likely you are running it in an environment where you have to go through a proxy server to get to the internet and you haven't configured RAD to tell it where that proxy server is.

Please advise
 
The knights of nee want a shrubbery. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic