Getting problem in tag libraries,please help!!!
hello.
i am writing simple tag for accessing database.
i am getting follwing error
=======================================================================
weblogic.servlet.jsp.JspException: (line 26): Could not parse deployment descrip
tor: java.io.IOException: cannot resolve '/WEB-INF/DemoTags.tld' into a valid ta
g library
at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:863)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:47
14)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4538)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4385)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2223)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2006)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1888)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1107)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:89)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:193)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:341)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:201)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:370)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:240)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:321)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
========================================================================
i am using weblogic 6.1
i have put my tld file in /WEB-INF/DemoTags.tld
i don;t know why i getting this error.
my tld file is as follow.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.2</jspversion>
<shortname>DemoTags</shortname>
<uri>http://www.stardeveloper.com</uri>
<info>Demo Tags Library</info>
<tag>
<name>displaydata</name>
<tagclass>Tags.DataAccessTag</tagclass>
<teiclass>Tags.DataAccessTagTEI</teiclass>
<bodycontent>JSP</bodycontent>
<info>Data Access Tag.</info>
</tag>
</taglib>
and my class file is in /WEB-INF/classes/Tags/DataAccessTags.java
and /WEB-INF/classes/Tags/DataAccessTagsTEI.java
package Tags;
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.tagext.BodyTag;
import javax.servlet.jsp.tagext.Tag;
public class DataAccessTag implements BodyTag
private PageContext pc=null;
private BodyContent body=null;
private StringBuffer sb=new StringBuffer();
private Connection conn=null;
private Statement stmt=null;
private ResultSet rs=null;
public void setPageContext(PageContext p)
pc=p;
public void setParent(Tag t)
public Tag getParent()
return null;
public int doStartTag() throws JspException
String path="jdbc:odbc:Names";
String sql="select ID,first_name,last_name from Names";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection(path);
stmt=conn.createStatement();
rs=stmt.executeQuery(sql);
setVariables();
}catch(SQLException e)
throw new JspTagException("An SQLException occured");
}catch(ClassNotFoundException e)
throw new JspTagException("Jdbc driver not found");
return EVAL_BODY_TAG;
public void setBodyContent(BodyContent b)
body=b;
public void doInitBody() throws JspException{}
private boolean setVariables() throws JspTagException
try
if(rs.next())
pc.setAttribute("id",rs.getObject(1).toString());
pc.setAttribute("first_name",rs.getObject(2).toString());
pc.setAttribute("last_name",rs.getObject(3).toString());
return true;
}else
return false;
}catch(SQLException e){
throw new JspTagException("SQLException occured");
public int doAfterBody() throws JspException
try{
sb.append(body.getString());
body.clear();
}catch(IOException e){
throw new JspTagException("Fatal IOException");
if(setVariables())
return EVAL_BODY_TAG;
try{
body.getEnclosingWriter().write(sb.toString());
}catch(IOException e){
throw new JspTagException("fatal IOException");
return SKIP_BODY;
public int doEndTag() throws JspException
try{
if(rs!=null)
rs.close();
rs=null;
if(stmt!=null)
stmt.close();
stmt=null;
if(conn!=null)
conn.close();
conn=null;
}catch(SQLException e){
return EVAL_PAGE;
public void release()
pc=null;
body=null;
sb=null;
and DataAccessTagTEI.java
package Tags;
import javax.servlet.jsp.tagext.*;
public class DataAccessTagTEI extends TagExtraInfo
public VariableInfo[] getVariableInfo(TagData data)
return new VariableInfo[]{
new VariableInfo("id","java.lang.String",true,VariableInfo.NESTED),
new VariableInfo("first_name","java.lang.String",true,VariableInfo.NESTED),
new VariableInfo("last_name","java.lang.String",true,VariableInfo.NESTED)
please help me...
package your class(es) as a jar file and put in the lib directory of your web application.
Similar Messages
-
iTunes wont open for me. it keeps saying "the Disc "untitled playlist" cannot be read. An unknown error occurred (-69)." don't know how to get it to work. Please help
It is likely a hardware failure
http://support.apple.com/kb/TS3694?viewlocale=en_US#error1 -
When trying to verify the email address, I get the following message. Please help. This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID.
Me too. I try to verify and i get the same message.
I've created 3 alternate e-mail addresses and tried creating new accounts.
Same Result!
This is bullsh!t. How the **** can all 4 of my attempts result in the same freakin error??? -
I downloaded about 100 cds to my library and I can no longer view the downloaded artwork it's shows a black picture or blank. How can I get the artwork back? Please help! Thank you.
Hi- apparently I also had a similar moment of madness and thought that 'freeride games' would be fun. Well, so much for that! It added a ton of things to my tool bar, I would like to uninstall it, any suggestions for this one?
thanks :) -
Hi, i have a A1186 Mac Pro 2008 Tower. Im running windows 7 64Bit on it. Im not sure about what version of bootcamp should i use to get the drivers. Someone please help me.
Boot Camp support:
http://www.apple.com/support/bootcamp/
Boot Camp FAQ:
http://support.apple.com/kb/HT5639?viewlocale=en_US -
I have iTunes 11.1.3 and when I click on iTunes Store in the top right corner I just get a blank screen. Please help me! I want to buy music!
Hi, iTunes Store Help 12.
Thank you for visiting Apple Support Communities.
Here is an article I would recommend going through when experiencing issues with the iTunes Store.
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/ts3297
Cheers,
Jason H. -
I have tried everything but I can't connect my iphone to my laptop. It says that apple mobile device failed to be installed. I have read everything on the internet and did everything but still am facing the same problem. Can you please help me.
Again without stating the trouble shooting steps you have taken, its hard to direct you with any information.
Try a different port on the computer.
Does the iphone beep when u plug it up. ?
Plug iphone into computer and give it 3 to 4 minutes to see if it connects and is running slow.,
Delete the apple mobile device from your computer.
Upgrade itunes to newest version.
Is you USB cord defective ?
Any USB 3.0 on your system ? .
Delete or Disable any antivirus program on your computer ?
I will tell u the problem is your computer not the phone.
We could do this for hours. -
Security question keep saying they are wrong and I know they are right. I can't change them cuz when I try it tells me to answer the questions. I have tried everything changing my account and all and still can't get it can some one please help me out.
Go here and select "Reset your password." You will receive an email message with a link that bypasses the questions. You will then be able to select and answer the questions again.
-
To open “Java Preferences,” you need to install a Java runtime, but you are not connected to the Internet. I have tried links that people have put on other discussions but all i get is a black screen please help!!
Try this link, warning, it's straight to download mode:
http://support.apple.com/downloads/DL1421/en_US/JavaForMacOSX10.7.dmg -
I have 2 users on my Mac I want to merge the photo libraries please help!
I have 2 users on my Mac I want to merge the photo libraries please help!
What version of iPhoto? Do yuo hae Aperature 3.3? With iPhoto 9.3 and Aperature 3.3 you can merge iPhoto libraries - you also can do it with the paid version of iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -
LN -
I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website
Here's two popup test sites.
http://www.kephyr.com/popupkillertest/test/index.html
http://www.popuptest.com/ -
Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help ?
You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(104569) -
Developer 6 Timer Problem... Please help
Hi all,
I have installed Developer 6(Oracle Product) on my system. I am facing a strange problem whenever I try to use Create_Timer built in. The cursor moves to starting of the Item being modified as soon as the space bar is pressed (timed for timer expiration). If I remove the Built-in the problem is resolved.
Please help urgently.
Regards
AnandUpgrade to the latest patch and the problem shoudl go away - this issue was fixed I think in 6.0.8.13+
You can also try setting Keey Cursor position to Yes on the item. -
I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??
http://tinyurl.com/nyj36v
-
HT1926 i've tried so many times but the problem still exists! please help!!
i've tried so many times but the problem still exists! please help!!
Could you describe what your problem is, please?
Maybe you are looking for
-
Hi All, Can anybody give me a clear concept of line items used in Infocube. I want to know what is the concept behind using the line items. How does it effect the performance of a Infocube. Regards, Kshitij
-
Very simple question but nothing on google! How do you run dbca? I logged in as the oracle user and went into /uo1/app/product/11.2.0/dbhome_1/bin/ I tried ./dbca and cursor blinks for a few seconds before going to next line!
-
Combine multiple oracle 10g db as one 11g database with different schemas
We have 3 10g databases on a solaris machine We are planning to migrate them and upgrade to 11g rel2 on linux machine and finally merge those into one database as different schemas has anyone got good ideas of the best strategy to do that thanks
-
Can I have more than one website?
Hi I produced a site for a charity I am involved in and have been asked to produce another.. Can I do this and maintain the existing one, sorry of this a dumb question!?
-
Help Infinity blade Download error 8008
Okay I've tryed to download Infinity blade 2 for my Itunes and Iphone but I keep getting error 8008 and I have tryed to go to the download folder and delete the temp fiels didnt help the least. I've also tryed to download it on my Iphone 4S and it do