Standard.jar and jstl.jar directory

First off I probably should apologize in advance because my problem might be an eclipse config issue.
I created a simple servlet and I tried to include a jstl library import javax.servlet.jsp.jstl.sql.Result;. It compiled cleanly but, when I ran the application (through a browser accessing tomcat through eclipse) I was getting this error...
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
I eventually found out what was wrong but I don't understand why it was wrong and that's my question. Originally I had jstl.jar and standard.jar in the projectHome/lib directory. When I moved those 2 files to the projectHome]/WEB-INF/lib directory, however, things ran correctly. Is this a setting somewhere within my tomcat config on eclipse perhaps? Or can someone point me in the right direction about this issue in general?
Thanks in advance!

Tomcat and Eclipse have different ideas of classpath.
In Eclipse you set the classpath as part of the project properties: Java Build Path.
Tomcat uses:
- web-inf/classes directory
- jar files in web-inf/lib
- jar files in /shared/lib
- jar files in /common/lib
So in order to run on Tomcat, they need to be in the web-inf/lib directory.
Cheers,
evnafets

Similar Messages

  • Where do I put the Jakarta files standard.jar and jstl.jar when developing with JSF 2.0 in OEPE using web logic server

    hi everybody, I am wondering what should i do with the standard.jar and jstl.jar files when using we logic. I tried putting both files into
    the directory c:\oracle\middleware\oracle_home\user_projects\domains\base_domain\bin.  I don't know if this is correct.  Thanks in
    in advance for the help.

    Anyways I found this link on www.oracle.com website by the same author of the book I am reading Deepak Vohra - Templating with JSF 2.0 Facelets.
    although here he is using Weblogic 11g although I don't think it makes a difference.  have a look at the Setting up the Environment section
    where he says to download the jstl.jar and standard.jar files.
    http://www.oracle.com/technetwork/articles/java/facelets-454361.html

  • Jstl.jar and standard.jar

    I have an application in 9.2, it is deployed as an exploded directory. For some reason, I have to explicitly add jstl.jar and standard.jar to the weblogic system classpath. I have the jars in the /WEB-INF/lib directory. Weblogic is able to find the classes that are in my other jars that are also in that directory. I have a Spring servlet, and on startup, the application context is able to load and all of my classes and the Spring classes are correctly found.
    However, when I try to hit one of the pages, I get this error:
    java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/rt/core/ForEachTag
    I get the feeling that weblogic is correctly parsing through the standard.jar file and correctly finding the tld inside the META-INF directory in the jar. Otherwise, how would it know that it needs to load the "ForEachTag" class? I checked and I made sure that I don't have any .tld files anywhere on the server. I also double checked to make sure that I have the "1.1" version of both of those jars. I also checked and I made sure that my web.xml is the correct version: Here is the top of my web.xml file.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4"
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
    I also did a test where I explicitly added standard.jar and jstl.jar to the classpath (keeping them in the WEB-INF/lib directory, just adding that path to the CLASSPATH) and everything worked.
    Any help would be greatly appreciated. I really don't want to have to modify the startup script of my production servers to include those jars on the classpath.
    Thanks, Chris

    Yes, I tried that. No luck. But, unless I am misunderstanding something, that setting only works if weblogic finds more than one version of a class throughout the classpath. I thought that that setting would just tell weblogic to use the version that it finds in my WEB-INF/lib directory. If this setting were to apply, wouldn't that imply that weblogic is finding some version of this class and I wanted to indicate which one to use. From the error message that I get, weblogic can't find this class anywhere.

  • Jstl.jar and standard.jar in NetBeans

    how can i put jstl.jar, standard.jar in library folder and how can i run that in same ide???

    Which version of NetBeans are you using?
    In general though, you should be able to expand the NetBeans project, select the Libraries folder, right-click on it, select 'Add Jar/File...' option and add any jar to the library list for the project.
    Another method is to define a library by 'Tools | Library Manager | New Library | Name the library and click OK | add the jars you want to be part of the named library'. Once a library is defined, then select 'Add Library...' on the right-click menu of the Libraries folder of a project and add the named library from the library manager. This should add all the jars that are part of the named library to the project.
    In NetBeans 5.5, JSTL 1.1 is a pre-defined library. You should be able to select that from the library manager and add to any project.

  • Different errors using standard.jar

    I've been trying to use the standard.jar (JSTL1.0) but I keep getting different errors. I presume, it's JSP1.2 and Servlet2.3 compliant.
    Here is the problem description:
    I've a web-module. I kept this jar under WEB-INF/lib. When I use the taglib usiing
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    I get "Unable to open taglibrary http://java.sun.com/jstl/fmt : Could not locate TLD http://java.sun.com/jstl/fmt".
    And when I use the taglib using a local fmt.tld, as in,
    <%@ taglib prefix="fmt" uri="/tld/fmt.tld" %>
    I get, "com.sun.portal.providers.jsp.jasper3.jasper.compiler.CompileException: ......./HarnessPortletContent.jsp(47,65) Unable to load class null".
    Tried both Tomcat3.0 and Sun App Server 7.0

    I know that the JSTL 1.0 jars work in AppServer 7.1. The TLD scanning mechanism is included in 7.1 where you only need to place the jar files that include your TLD's in the web application's WEB-INF/lib directory.
    You can either upgrade to AppServer 7.1 or do the mappings yourself manually as follows:
    1) unjar the JSTL implementation jar file
    2) copy the TLD's to your WEB-INF directory
    3) rejar the JSTL implementation jar file and place it in your WEB-INF/lib directory
    4) modify your web.xml file to point to the JSTL TLD's like:
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
    </taglib>
    I'd recommend upgrading since the above steps are tedious and you can avoid them by using a container like AppServer 7.1 or Tomcat 4.x that implements TLD scanning.
    Thanks,
    Justyna

  • Problem in standard.jar

    Hi All,
    I face an exception when try to get response of my application through browser.
    Exception I got on browser:
    org.apache.jasper.JasperException: /index2.jsp(0,0) This absolute uri (http://java.sun.com/jstl/fmt) cannot be resolved in either web.xml or the jar files deployed with this application
    I am developing a springframe mvc application.In which we've to create jsp page start with
    <%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
    I also include standard.jar jar file in by jar folder.
    pl guide any If know about solution of this problem.
    Regards
    -S.Singh
    My jsp code is:
    <%@ page session="false"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    Kindly look whatever in tomcat window:
    ParserUtils: warning org.xml.sax.SAXParseException: Valid documents must have a
    <!DOCTYPE declaration.
    Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/lib
    /standard.jar: (line 3, col -1): Element type "taglib" is not declared.

    Hi,
    Just check have u included this uri & handler class mapping in web.xml.

  • Link between Tomcat 5 and JSTL 1.1

    Could someone help me to point to the right URI, please. Here is my code and error.
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <body>
    You sent the following request headers:
    <table border="1">
    <tr>
    <th>
    Header
    </th>
    <th>
    Value
    </th>
    </tr>
    <c:forEach var="entry" items="${header}">
    <tr>
    <td>
    ${entry.key}
    </td>
    <td>
    ${entry.value}
    </td>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:365)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:151)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:448)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:506)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1547)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:166)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:269)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:155)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:142)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:245)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:434)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:571)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:288)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:294)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2625)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1020)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:196)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:625)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:430)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:567)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:623)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/5.0

    It's in the c.tld file inside the standard.jar.
    You should have that in your WEB-INF/lib directory.
    %

  • Error in tomcat4.1 and JSTL

    sir
    now i am using tomcat 4.1 and jstl 1.0.6 and i have write on file in which i included ...
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    but when i compile it , it gives error that ,,,
    org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    please tell me that what changes should i made . i have put down jstl.jar and standard.jar in tomcat4.1 / common / lib
    thanks
    gaurav

    Spammer! Couldn't you keep your problems to one post?
    http://forum.java.sun.com/thread.jspa?threadID=621677
    http://forum.java.sun.com/thread.jspa?threadID=621337

  • Using Struts and JSTL together

    I have
    <html:form action="xy.do">
    <c:set var="name" value="shalik"/>
    <html:text property="name" value="<c:out value="${name}"/>"/>
    </html:form>
    How could I put data stored in ${name} to show in the text
    Also, is there a shorter way to access java variables using jstl core
    I would not want to do
    <input type="text" name="name" value="<c:out value="${name}"/>"/>
    which works, because I have to use struts

    No you can't include tags as attributes to other tags.
    Yes, you can definitely use the Struts and JSTL together.
    If you want to use EL expressions with the struts tags, it depends on your server.
    If you have a JSP2.0 container (eg Tomcat 5) its no problem at all. You can use the EL expressions directly with the standard struts tags.
    For a JSP1.2 container, there are specifically written struts-el tags. They let you use EL expressions instead of <%= %> expressions
    <c:set var="name" value="shalik"/>
    <html:text property="name" value="${name}"/>The struts-el tags only have a subset of the struts tags. It is intended for use with the JSTL. For instance the c:if tag easily replaces a lot of the logic conditional ones (equal, lessThan, etc etc)
    The tags are available as part of the standard struts download in the contrib directory.
    However for what you seem to be wanting to do, wouldn't it be more struts-like to have an action that specifically populates the action form, and just have
    <html:text property="name"/>
    The value would then be automagically populated from the form bean.
    Hope this helps,
    evnafets

  • New MVC with Standard Tags and DB sample

    I have posted initial build of a new learning application on
              SourceForge "basicPortal" under CVS
              http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal
              It is using Struts with Standard Tags and X: Transform from DB, Realm
              base security, CURD, etc. etc. I have big plans for this, to be 20% of
              code that gets used 80% of time and "faces" and expression language
              compliant.
              (Err.. this build is not for newbies, but I will update it .... a lot
              and often.)
              To keep up on this and related topics, there is a mail list
              http://www.netbean.net/mailman/listinfo/mvc-programmers
              that also gets you password to other baseBeans.com features.
              and a newsgroups readers news.baseBeans.com.
              Hope you like,
              Vic C.
              

    Looking at the XFILES.5.xml file and Install.vbs files of the XFILES installer, it appears that the XDBPM_SUPPORT and XFILES_DBA_TASKS actions will only be run if you enter a SYSDBA user in the "DBA User" field of the installer. However, for some reason, Oracle seems to have commented out the command that checks to ensure that the DBA user you entered is a SYSDBA user, and the "DBA User" field defaults to SYSTEM, which is not a SYSDBA user. Since I got things working I haven't tried rerunning the installer with a SYSDBA user, but maybe it will work better. The installation documentation and/or the installation scripts need to be updated to reflect the need for a SYSDBA user.
    Regarding the APEX version of XFILES, this has not installation instructions whatsoever, and there are prerequisite steps to get this to install correctly as well. I tried importing the f102.sql file into APEX and it failed on the prereq validation because an "XFILES/Apex" folder wasn't found in XML DB. I went looking for anything that creates this directory and I found that there is another XFILES_DBA_TASKS.sql script specifically for the APEX version. It is included in the f102.sql file. So I cut and paste the contents into SQL*Plus and ran it as SYS. I was then able to install the f102 application.

  • Server 2012 Standard license and VM license for windows instances

    Hi,
    A question about VM instances on standard server 2012 license exists here 
    I  cannot link it here as my account is not verified. The topic is titled "Windows Server 2012 Standard License and VMs"
    My question is tad different...
    If I understand this correctly, 1 windows server standard license provides support for 1 Physical Operating System Environment (The VM Host /  POSE) and permission to run 2 Virtual Operating System Environment(VOSE).
    Does this imply that I can install 2 additional instances of Windows Server 2012 Standard Edition on the permitted 2 VM instances on the server? Or... should I purchase additional licenses for each VOSE that runs windows?
    Does the standard license provide rights to run  2 Virtual instances AND offer install and activation rights for 2 MS windows (virtual) environments AND install and activation rights for the windows host?
    If license is require for each instance of server 2012 running on the VM ... can I avoid purchasing additional licenses for operating systems, say, if I run 2 Centos operating system instances in 2 VOSE?
    Please help!
    Thanks.

    Licensing questions should be asked of a trained Microsoft licensing specialist.  I haven't seen one of those lurking in this forum.  www.microsoft.com/licensing.
    That said, licenses are assigned to the physical host, not to VMs.  The License you assign to the host grants you the "right to run" addition virtual operating system environments running Windows Server.  It does not grant you additional licenses. 
    Licensing for Microsoft Windows Server operating system is controlled by Microsoft.  Licensing for any other operating system is not covered by the virtualization rights of the Windows Server operating system.  Therefore, if the CentOS virtual machines
    are properly licensed by whoever licenses them, you can run however many instances that license allows.
    A single Standard Edition license can be installed on the physical host granting you the right to run up to two virtual instances of Standard Edition.  However, if you run additional services, such as file services or Active Directory or IIS, etc.,
    on the physical instance, that means you can only run one additional virtual instance of Windows Server.
    Free advice is worth every cent.
    .:|:.:|:. tim

  • Standard Iviews and Pages Header Translations

    Hi All,
    We have a requirement to change the translation of headers for standard iview and pages.
    I am maintaining the translations through Portal Content Translation.
    Methods tried -
    1. Added the copied iviews and pages to the translation worklist and changed the translation - No impact
    2. Cleared the cache - No impact
    3. Restarted the portal - no impact
    4. Added the standard iviews and pages to the translation worklist and changed the translation - No impact
    Let me know any pointers for the same.
    Regards,
    Indu Garg

    Hi Indu Garg ,
    SAP Enterprise Portal provides a process for translating the  Texts of portal objects (iViews, pages, worksets, roles, systems, etc.)
    Multilingual object metadata for portal objects that is stored in the database of the Portal Content Directory (PCD). If a property of a portal object has type text attribute, it is marked as a text and can be translated (e.g. name, description).
    The translation process is supported by two tools that can be called from the content administration role. Choose Content Administration -->Portal Content Translation --> Translation Worklist Coordination or Worklist Translation. These tools are used to coordinate and to translate translation worklists.
    [Translation Worklist Coordination|http://help.sap.com/saphelp_nw70/helpdata/EN/25/08174082fe1961e10000000a155106/content.htm]
    [Worklist Translation|http://help.sap.com/saphelp_nw70/helpdata/EN/d4/be1640033ae569e10000000a155106/content.htm]
    Regards,
    srikanth

  • JHeadstart and JSTL - From the AMIS JHeadstart Cookbook

    Using JSTL in JHeadstart Applications - The Java Standard Tag Library (JSTL) provides a set of libraries of standard “custom tags” for inclusion in JSP-pages. They are standardized and an integral part of JSP 2.0 and the J2EE 1.3 specification, but can already be used with JSP 1.1 in J2EE 1.2 application servers such as Tomcat 4 and OC4J 9.0.3. Before too long, application servers will all provide support for the JSTL tags, without even having to include the associated libraries with the application. Besides, JSTL tags are more flexible and versatile as well as richer than the comparable Struts tags. It seems like a fine idea to embrace JSTL as soon as possible.
    You can find a description on how to include JSTL in your JHeadstart applications at: http://www.amis.nl/technology/Cookbook/Recipe%20for%20JSTL.htm.
    The Dutch Oracle partner AMIS has a 10-person JHeadstart team, currently involved in 4 JHeadstart-projects in The Netherlands. Their experiences and ideas are compiled in the AMIS JHeadstart Cookbook that is published on the internetsite (http://www.amis.nl) for other JHeadstart developers to share.
    I hope the recipes are of use to you.
    best regards,
    Lucas Jellems

    As a result of reorganizing (and re-providing) our website, some of the URLs stopped working. I apologize for any inconvencience.
    The JHeadstart Cookbook can now be found at: http://www.amis.nl/files/technology/Cookbook/AMISJHeadstartCookbook.htm and the Recipe on using JSTL is located http://www.amis.nl/files/technology/Cookbook/RecipeforJSTL.htm.
    Note that support for JSTL has been included in the JHeadstart 9.0.5.1 Release (so you do not need this recipe if you are using that release); basically, the JHeadstart team applied the recipe to the core JHeadstart set!
    Also note that the AMIS Demo Application (AMIS Library System) created along with our Cookbook is now shipped as part of JHeadstart 9.0.5.1 to demonstrate the use of Oracle Toplink. This will make it easier for you all to apply our recipes - since you have the ALS application already available when using JHeadstart 9.0.5.1.
    best regards,
    Lucas Jellema, AMIS JHeadstart team

  • Oracle Single Sign on and Oracle Internet Directory

    Hello Gurus,
    What is the relationship between Oracle Single Sign on and Oracle Internet Directory.
    To my understanding, OID is required to install SSO.
    If OID already exist, can we just install SSO and go on integrating it to existing OID.
    Great Thanks,
    vimal jain.
    [email protected]

    Hi Tim,
    I've been working on this and could reproduce the issue with anonymous binds. A fix will be ready in 4.2.1.
    So what I really need is the password used for login to pass to the is_member call.The P101_PASSWORD item does not save state. However, you can access the value during submit processing of the login page, for example in the post authentication function of your authentication scheme. People sometimes put code in there to query the user's groups (e.g. with apex_ldap.member_of2) and save them in an application. This item value can then be used in the authorization schemes.
    Regards,
    Christian

  • Brand new MBP and the user directory is corrupt?

    hi, i just installd my new MBP and did a sync of my G5 settings (all except bookmarks) added a few things to my desktop and when i rebooted the desktop was cleared and the home directory was missing "Movies" "Music" "Pictures" in the left most column. all that is left is "Applications" and my user home symbol.
    i tried to create a new user and when i did so was given a message that the "home" folder could not be located. weird.
    anyway. i also installed a canon IP4300 driver. can anyone tell me what may be going on? do i need to erase the drive and do a fresh install?
    UPDATE: i see what happened! the User directory somehow got into the Applications folder! no idea how. but i can't seem to get it out. can anyone help me out?
    thx
    Message was edited by: Frank Jacob

    Open the Applications folder and drag the Users folder inside to the top level of the hard disk; you may need to press the Command key when dragging the item and/or provide an administrator username and password. When done, log out and back in. If only the home folder is present in the Applications folder, move it to the Users folder. Rename existing items as needed.
    (25013)

Maybe you are looking for