Error in tablibs ..Any help on this please

hi,
I am getting the following error when i try to run the below code ..
I put all the files in corresponding folders and i am getting the following error when i run Test.jsp
Error: 500
Location: /Test.jsp
Internal Servlet Error:
org.apache.jasper.compiler.CompileException: /usr/tomcat/webapps/test/Test.jsp(6,0) Unable to load class null
     at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:129)
     at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:761)
     at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
     at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:911)
     at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
package examples;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
* Given a URI, uses the servlet context to find out how large the
* "real" file is in bytes.
* @author Simon Brown
public class SizeTag extends javax.servlet.jsp.tagext.TagSupport {
/** the URI of the file */
private String uri;
* Performs the processing of this tag.
public int doStartTag() throws JspException {
StringBuffer html = new StringBuffer();
// ask the container (via the servlet context) for the
// real path of a file pointed to by a URI
String realPath = pageContext.getServletContext().getRealPath(uri);
// we can now find out how large the file is
File f = new File(realPath);
long fileLength = f.length();
// build up the HTML piece by piece ...
html.append(fileLength);
html.append(" bytes");
// ... and write it
try {
pageContext.getOut().write(html.toString());
} catch (IOException ioe) {
throw new JspException(ioe.getMessage());
return EVAL_BODY_INCLUDE;
* Standard JavaBeans style property setter for the URI.
* @param s a String representing the URI
public void setUri(String s) {
this.uri = s;
taglib.tld file:-
<?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.1</jspversion>
<shortname>examples</shortname>
<uri>http://123.123.142.156/test/taglib</uri>
<info>An example tag library</info>
<tag>
<name>size</name>
<tag-class>examples.SizeTag</tag-class>
<info>Works out how large a file, pointed to by a URI, is in bytes</info>
<attribute>
<name>uri</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
web.xml file:
<taglib>
<taglib-uri>
http://123.123.142.156/test/taglib
<taglib-uri>
<taglib-location>
/WEB-INF/taglib.tld
<taglib-location>
</taglib>
Test.jsp File:
<html>
<head>
<%@ taglib uri="http://123.123.142.156/test/taglib" prefix="examples" %>
</head>
<body>
The file is <examples:size uri="index.html"/>.
</body>
</html>
Any help please ...
thanks.

Hi Yark,
Please help me .. Still i am getting first error only ...
Error: 500
Location: /development/Test.jsp
Internal Servlet Error:
org.apache.jasper.compiler.CompileException: /usr/tomcat/webapps/development/Test.jsp(5,12) Unable to load class null
     at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:129)
     at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:761)
Here is my code:
taglib.tld file:-
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>examples</short-name>
<uri>http://123.123.142.156/test/taglib</uri>
<display-name>taglib</display-name>
<description>An example tag library</description>
<tag>
<name>size</name>
<tag-class>examples.SizeTag</tag-class>
<body-content>JSP</body-content>
<description>Works out how large a file, pointed to by a URI, is in bytes</description>
<!-- Forte4J_TLDX: This comment contains code generation information. Do not delete.
<tldx>
<packagename>examples</packagename>
<extendsSupportClass>TRUE</extendsSupportClass>
<supportClass>BodyTagSupport</supportClass>
<implementsTryCatchFinally>FALSE</implementsTryCatchFinally>
<findparent>FALSE</findparent>
</tldx>
-->
<attribute>
<name>uri</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<type>String</type>
<!-- Forte4J_TLDX: This comment contains code generation information. Do not delete.
<tldx>
<IsReferenceID>FALSE</IsReferenceID>
<ReferencesTag>FALSE</ReferencesTag>
<ReferenceScope>Session</ReferenceScope>
<ReferencesTagReferentFirst>TRUE</ReferencesTagReferentFirst>
</tldx>
-->
</attribute>
</tag>
</taglib>
web.xml:
<taglib>
<taglib-uri>"/WEB-INF/taglib.tld"</taglib-uri>
<taglib-location>/WEB-INF/taglib.tld</taglib-location>
</taglib>
Test.jsp:
<html>
<head>
<%@ taglib uri="/WEB-INF/taglib.tld" prefix="examples" %>
</head>
<body>
The file is <examples:size uri="/jsp/index.html"/>.
</body>
</html>
thanks.

Similar Messages

  • HT4208 When I tap the Apple store, youtube and the itunes apps on my iPad they do not open. Any help with this please?

    When I tap the Apple store, YouTube and the iTunes apps, they don' launch. Any help with this?

    1. Double-click the Home button to close all Inactive Apps in Task Bar
    2. Hold the Apps in Task Bar down for a second or two until you see the minus sign
    3. Tap the minus sign to close App
    4. Tap center of screen to return to Home Screen
    5. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo. Ignore the red slider

  • Safari keeps reloading due to Error on page - IOS Version 8.1.3? Any help on this please

    Hi. My 16Gb Ipad which is running 8.1.3 software has started to have a problem when using Safari. It takes longer to load a page and then sometimes the page I am on disappears and a message comes up saying 'Error on page Web Page reloading. Does anyone have an idea what is causing this as it has only started since uploading the latest version of software? Thanks

    Pierre,
         Oddly enough, when cucm was upgraded to 8.0.3 we had uccx running for approx. one month without any of this monitoring / recoding issues. Cucm was upgraded on September end and we started only to have issues on middle november with ccx. We are suprised how ccx monitoring / recording services were working properly for this long and suddenly stopped working. We are on hope that we could find / do any workaround on this issue. However, if we do not have other option unless going for 8.0.2...then we have to go for. Also, IF after this major upgrade 7.0.1 SR5 --> 8.0.2 the issue does not get fixed?
        thanks for your inputs.
      Regards,
    Thiago

  • HT201210 I have an old i phone 3G and do not know the password for it. trying to restore it from itunes but keep getting error code 1015, any help on how to get passed this please?

    I have an old i phone 3G and do not know the password for it. trying to restore it from itunes so my daughter can use it as an ipod but keep getting error code 1015, any help on how to get passed this please?

    Hi ratcat14!
    I have an article that can help you troubleshoot this issue:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past

    I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past few days

    scottxx,
    That was very nice of you to provide your friend with a new phone! I am sorry to say that the device will not be able to activate while in Dubai. For a device to activate it must connect to the VZW network to become active. I apologize for any inconvenience.
    LindseyT_VZW

  • HT4796 After migrating all of my adobe software (Cs4, cs5, etc.) to my new imac, the software won't open due to many errors. Any help on this?

    After migrating all of my adobe software (Cs4, cs5, etc.) to my new imac, the software won't open due to many errors. Any help on this?

    Welcome to the Apple Support Communities
    Adobe software is conflictive when you use Migration Assistant because their applications don't work properly after migration. If you keep the DVDs or the installers of your software, use them to reinstall all your Adobe applications and they should start working correctly

  • ITunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5). I have uninstalled in correct order and reinstalled but still getting same error message. Any help??

    Take a look at iTunes for Windows: "Error 7" message when opening iTunes. Perhaps your .NET Framework needs a repair.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • I just installed Lightroom 5 but can't import photos, there is no import option anywhere. Get pop-up saying error attempting to change modules  ?? Any help with this??

    I just installed Lightroom 5 but can't import photos, there is no import option anywhere. Get pop up saying error attempting to change modules.
    I had this with the trial , then I purchased license and still happens.  Any help with this ??

    <moved from Downloading, Installing, Setting Up to Photoshop Lightroom>

  • (-42110) is the error I get when trying to play films on iTunes - any help on this ?, (-42110) is the error I get when trying to play films on iTunes - any help on this ?

    (-42110) is the error I get when trying to play films on iTunes - any help on this ?, (-42110) is the error I get when trying to play films on iTunes - any help on this ?

    Hello AndyDryva
    If you have the latest version of iTunes and the error code is still happening, then the next thing is to remove the SC Info folder on your computer. Check out the article below on how to do that.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Regards,
    -Norm G.

  • I downloaded a movie and i tried to put it on my ipod touch but it says "itunes cant put this on your ipod and error has occured" any help? thanks!

    i downloaded a movie and i tried to put it on my ipod touch but itunes said " itunes cant put this on your ipod touch and error has occured" any help? thanks!

    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    iTunes: Frequently asked questions about viewing and syncing videos

  • I have problem with my I PHONE 4S  Always its time out then i must restart my I phone please any help about this case ??

    i have problem with my I PHONE 4S  Always its time out then i must restart my I phone please any help about this case ??

    Hello Pllumb,
    It sounds like you are unable to turn on Wi-Fi because the option is grayed out in Settings. Use these steps from the following article named:
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
    Restart your iOS device.
    Make sure that airplane mode is off by tapping Settings > Airplane Mode.
    Reset the network settings by tapping Settings > General > Reset > Reset Network Settings.
    This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    Make sure that your device is using the latest software. To do so, connect your device to your computer and check for updates in iTunes.
    If you still can't turn Wi-Fi on, please contact Apple for support and service options. If you can turn Wi-Fi on but are experiencing other issues with Wi-Fi, please see these steps.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • TS3694 I have not updated my iphone in two years, and error -43 occured. i cannot find any help for this

    I have not updated my iphone in two years, and error -43 occured. i cannot find any help for this on the apple site

    If the phone has been hacked, we can not offer advice on Apple's support site.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • Ok so I use an hdmi connector on my iPhone 4S to watch netflix. But after I updated to iOS 7 it will not work my tv doesn't receive a signal. Does anyone have any insure to this please help .!.!.

    Ok so I use an hdmi connector on my iPhone 4S to watch netflix. But after I updated to iOS 7 it will not work my tv doesn't receive a signal. Does anyone have any insure to this please help .!.!.

    The 8 pin Lightning connector can only output 720p and lacks all iPod Out functionality unlike the full iPod Out functionality and 1080p that the 30 pin connector has and I suspect that they are coding iOS 7 specifically for the new devices which have severely reduced abilities and perhaps skipping adding the code needed for 30 pin devices to use their functionality with HDMI, etc.

  • HT1212 I am unable to get our of a continuous cycle when trying to update or restore my iPad 2. Plug in to iTunes 12.0.1 (latest version). Click update, told can't update, have to restore. Restore fails with error 9. Any help appreciated.

    When I tried to update my iPad I got an error 9. Now, I am unable to access my iPad. It is in a continuous cycle when I try to update or restore the iPad 2. Plug in to iTunes 12.0.1 (latest version). Click update, told can't update, have to restore. Restore fails with error 9. Any help appreciated.
    Here's the cycle:
    I plug in my iPad when “cable to iTunes shows on iPad screen. It says "Your iPad can't be updated, you must restore it to factory settings." That bad enough news, but it gets worse.
    Click Restore
    Extracting software…
    Preparing iPad for restore
    Waiting for iPad…
    Verifying iPad restore with Apple…
    (empty bar under the Apple logo…does not show any activity)
    “The iPad “iPad” could not be restored. An unknown error occurred (9).”
    Notes: I just upgraded to OS X Yosemite 10.10.1 on my iMac (27-inch, Mid 2011) in the last week. It’s the first time I’m tried to backup/update my iPad since the iMac update.
    I swapped out the USB cable to a new cable and get the same results.
    I also unplugged all other USB devices from the iMac and security on my iPad and still get the same results.
    I find it strange that it shows no Serial number for my my iPad 2 when plugged in. It shows “Serial Number: n/a on the screen when it displays: “iPad Recovery Mode To update your iPad without erasing its contents, click Update. To restore your iPad to its factory settings, click Restore iPad.
    I prefer to update my iPad, but it displays “Your iPad can’t be updated, you must restore it to factory settings. If you previously backed up the iPad, click Restore Backup after the restore process completes.”
    It’s a continuous loop. I get the display on my iPad to plug in the iPad to iTunes, plug it in which ends after going through the above procedure saying an error occurred (9).
    So now I cannot use my iPad. When I turn it on I get the display showing me to plug it into iTunes with the cable. Since this is the only option I have I plug it in and the loop begins.
    Any advice would be appreciated.
    Thanks!

    Hello jaybearden,
    Thanks for the question. After reviewing your post, it sounds like you are not able to restore the iOS device since you get an error 9. I would recommend that you read this article, it may be able to help the issue.
    Resolve iOS update and restore errors - Apple Support
    Check your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • When updating my ipod Nano, I get the error message Unknown Error 9006. Any help is appreciated.

    When updating my iPod Nano, I get the error message: Unknown Error 9006.  Any help is appreciated. 

    See this
    http://support.apple.com/kb/TS3694#9006

Maybe you are looking for

  • Java.lang.IllegalArgumentException when trying to create debug setting

    Hello all, I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server.  I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java s

  • I cant get Fourth Elephant (Insider for SQL Developer)

    hi,guys please, help me. I want to user insider for sql developer of fourth elephant. but I cant access http://fourthelephant.com/sqldeveloper/download/ who used it? thanks.

  • Exception report failed_urgent

    Hi all , we got a failure in the exception report process in one of the process chain when we saw the log it says the following error what it means what can i do ?      "Processing terminated due to error. Alert level > 7" can any one help me plz che

  • Uninstalling and Installing the OEM Agent w/o OUI

    Hi DBAs, I have a 10.2.0.4 Oracle version on AIX with 2 node RAC Cluster. The old agent is 10.2.0.3 which I need to replace with new 10.2.0.4 agent. In order to install new agent, I need to remove the old version of Agent. Please guide how can I unin

  • HT4623 my iphone isnt showing any IOS? not sure what to do?

    I have an iphone 4 and cant download anything saying i need this IOS and I cant even download not sure my phone is acting nuts