Servlet-jsp.jar file

Hi
iam new to use jstl.i wrote on tag handler (java) class when i am compiling it is not identifying any of javax.jspexception ,java.jsp.tagext.
please help me what are all the jar files i have to have in class path or at any place and from where can i download them. i searched for servlet-jsp.jar,servlet-api.jar but i could not find anywhere in java.sun.com.any help is greatly appreciated
thanks

hi thanks for the reply. iam using tomcat 5.0
server. from where can i down load those jar files
please let me know
what jar files are needed if iam using tomcat 5.0 Like I said, Tomcat 5 uses Tomcat 5: servlet-api.jar jsp-api.jar. They will be in the server's classpath someplace. Look around were you installed TC. I am away from my machine at the moment so I can't say for sure, but it might be common/lib or shared/lib, something like that...
and
if weblogic 8.0Dunno. Look around the file structure.
Thanks for the help

Similar Messages

  • Servlets in Jar files  in WLS 6.1 ?

    Trying to port a WLS 5.1 servlet into 6.1 (an entirely different
              animal it appears)
              I have added an application to my config.xml file as below as well as
              trying to start it
              PasswordPolicy="wl_default_password_policy"
              Realm="wl_default_realm"/>
              <Application Deployed="true" Name="DefaultWebApp_cb2java"
              Path=".\config\PM\applications">
              <WebAppComponent Name="DefaultWebApp_cb2java"
              Targets="PCPNEARN"
              URI="DefaultWebApp_cb2java" WebServers="PCPNEARN"/>
              </Application>
              <StartupClass Arguments="servlet=ProMan"
              ClassName="weblogic.servlet.utils.ServletStartup"
              FailureIsFatal="true" Name="StartPMServlet1"
              Targets="PCPNEARN"/>
              Now my servlet is packaged in a JAR file under the lib directory of so
              when I assume that WLS will automatically pick this up from
              C:\Weblogic6.1\wlserver6.1\config\PM\applications\DefaultWebApp_cb2java\WEB-INF\lib
              directory ? ( as the lib directory is where the doc says it picks up
              jar files from )
              Now when I start WLS it cant find the servlet? Is that because I cant
              package it in a JAR as of WLS 6.1 and have to move the class files to
              the Classes directory instead ?
              Furthermore the Servlet itself references JavaBeans deployed in a
              totally different application. Can I also assume that if I have my
              Classpath correct these will get picked up ?
              

    I would look here
    http://e-docs.bea.com/wls/docs61/webapp/security.html#100365 for methods on
    protecting web app resources.
    "zhen Ni" <[email protected]> wrote in message
    news:3c86d70c$[email protected]..
    Hello:
    I have some derectories and files on my web site,and only appointed usersstored in my database can access their special directories.how can i do?
    thank u!

  • How to run servlet inside jar file

    Hi
    I have a problem on running a servlet class which resides in a jar file.
    At first, it runs if it is located in the root directory of jar file, but if I put in inside a sub directory, I wasn't able to run it. It seems that the servlet class was not found.
    Here's the contents of my jar file:(eg. application.jar)
    META-INF/
    META-INF/MANIFEST.MF
    Business/
    Business/Business.class
    TransferManager/
    TransferManager/Default.class
    TransferManager/Application.class
    DAL/
    DAL/XMLDocument.class
    DAL/ParameterCollection.class
    DAL/ConnectionReaper.class
    DAL/JDCConnectionPool.class
    DAL/JDCConnection.class
    DAL/JDCConnectionDriver.class
    DAL/DataAccess.class
    Presentation/
    Presentation/IPresentation.class
    Presentation/XslTransform.class
    When I deploy this jar in tomcat4.0 and try to run the Default.class
    in the TransferManager package, the server can not locate the class.
    But if I put it in the root directory of the jar it works.
    Is there any additional setting in tomcat for this? Anyone can give
    me an idea for this?
    Thanks in advance...

    If you want to put the compiled servlet into Business/Business.class, you need for it to be in the Business package. I.e. the first line of code should be "package Business;" It looks like your jar file is in the right place, since Tomcat is finding something in it. So put your servlets in the appropriate packages and they should run. Also, you would have to change the configuration to refer to "Business.Business.class" and so on.

  • Servlets in JAR File

              Hi all!
              How can I declare and execute a servlet from a JAR-file? I tried
              severel times with different parameters in the properties file
              and in the browser, but always was getting error 500. Standalone
              servlet class, properly declared, is executed without problems.
              Thanks in advance
              Boyko Trendafilov
              Smalltalk developer
              

    If it isn't a Web application, but a stand alone servlet, what do you do?
              We added the jar file to the classpath used to start the server and this
              worked, but we wondered if there was a better way.
              "Mark Spotswood" <[email protected]> wrote in message
              news:[email protected]..
              > For web applications, jar files should go in the WEB-INF/lib directory.
              > --
              > mark
              >
              > Boyko Trendafilov wrote:
              >
              > > Hi all!
              > > How can I declare and execute a servlet from a JAR-file? I tried
              > > severel times with different parameters in the properties file
              > > and in the browser, but always was getting error 500. Standalone
              > > servlet class, properly declared, is executed without problems.
              > > Thanks in advance
              > >
              > > Boyko Trendafilov
              > > Smalltalk developer
              >
              

  • Hot Deploy Servlet in JAR file problem

    I've been playing with hot deploying servlets in WLS 5.1. I have SP2
              installed. I have things working fine with individual servlet class files. I
              decided to try hot deploying with jar files.
              I created a servlet, added it to a jar file, and then added the jar file to
              the 'weblogic.http.servlet.classpath'. I then restarted the server. I
              started the console and was able to hot deploy the servlet. So far so good.
              My next test is what failed. I modified the servlet, and rebuilt the jar
              file. I went back to the console, selected the servlet and hit the redeploy
              button. I went back to the browser and hit refresh - nothing, still the old
              servlet.
              It appears that WLS isn't reloading the jar file and the updated servlet.
              Everything works with individual class files.
              Does anyone know how I can cause the reload of updated servlets embedded
              within a jar file?
              Weblogic group - If there is no way now, will support be added soon?
              Thanks,
              Rick
              

    Hi,
              If I use weblogic.servlet.ServletServlet to try just the servlet , It
              works correctly.But When I develop it in a web application , there is a lot
              of hypelink to this servlet,thus I can't use the relative path reference to
              that servlet.I try to set the name of weblogic.servlet.ServletServlet same
              as the webapp,It doesn't work,how do I solve this problem?
              Thank you
              Pan
              Subject: Re: Hot deploy Servlet in webapp
              > http://www.weblogic.com/docs51/classdocs/API_servlet.html#134798
              >
              > It even explains why you shouldn't use it in production environment.
              >
              > Dimitri
              

  • Error in compiling: file javax\servlet\jsp\PageContext.class not found

    Hi,
    i'm getting an error when I'm trying to compile an java file. The error is as follows:
    cannot access javax.servlet.jsp.PageContext
    file javax\servlet\jsp\PageContext.class not found
    Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
    I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
    Any help is very welcome!
    Thankx,
    Nuno.

    hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
    package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
    my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
    hope this helps.

  • Which jar file for the classpath ?

    At my office on my machine i have weblogic 8.1 and tomcat installed.
    weblogic have 2.3 version of servlet and
    tomcat have 2.4 version of servlet
    weblogic is for production purpose (development of servlet, jsp and ejb)
    and tomcat is for my own practice. (just for servlet and jsp)
    i have weblogic.jar as well as servlet-api.jar in my class path.
    now when i compile my servlets which jar file the compiler will use to create the classes.
    if the compiler chooses servlet-api.jar will my servlet run in weblogic
    else
    if the compiler chooses weblogic.jar will my servlet run in tomcat

    i have weblogic.jar as well as servlet-api.jar in my class path.What does this mean? Do you have a system CLASSPATH environment variable?
    Bad idea.
    now when i compile my servlets which jar file the
    compiler will use to create the classes.You should set CLASSPATH using the -classpath option on javac.exe.
    The compiler won't "choose" anything, because it has no idea how you'll deploy. It'll use the one that you tell it to. If you have just a system CLASSPATH it'll always use the first JAR that it finds with the packages it needs.
    You need to specify exactly what you want the compiler to use.
    In the case of servlet.jar it might not matter, because that's pretty standard. JSPs and EJBs are another story, however. If you change deployment, it's best to recompile and repackage the Web app.
    Learn Ant. It'll help you automate this.
    %

  • Javax.servlet.jsp does not exist

    Hi,
    I'm having difficulty compiling a simple java class. The eror message is on an import javax.servlet.jsp statement. The specific error message is:
    package javax.servlet.jsp.tagext does not existThis is just a simple tutorial class from a J2EE book. I am confused if the servlet-api.jar file is what it needs and it isn't finding it, or if I need another file, perhaps the servlet.jar? (What is the difference between the two?)
    My OS is Windows/XP
    My java version is 1.4.2_06
    Servlet-ap.jar exists in C:\jakarta-tomcat-5.0.28\common\libMy CLASSPATH is C:\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;C:\j2sdk1.4.2_06;My JAVA_HOME variable is C:\j2sdk1.4.2_06My Path is %JAVA_HOME%;%JAVA_HOME%\bin;Thank you in advance.

    I sometimes use a bash shell under "cygwin" on Windows XP for development, compiling, etc. The following example file would allow you to compile in a bash shell environment:
    #!/bin/sh
    TOMCAT_PATH="C:/Program Files/MapGuideOpenSource/WebServerExtensions/Tomcat/common/lib"
    SERVLET_API="servlet-api.jar"
    NAMING_RESOURCES="naming-resources.jar"
    NAMING_FACTORY_DBCP="naming-factory-dbcp.jar"
    NAMING_FACTORY="naming-factory.jar"
    JSP_API="jsp-api.jar"
    JASPER_RUNTIME="jasper-runtime.jar"
    JASPER_COMPILER_JDT="jasper-compiler-jdt.jar"
    JASPER_COMPILER="jasper-compiler.jar"
    COMMONS_EL="commons-el.jar"
    export CLASSPATH=$TOMCAT_PATH/$SERVLET_API
    echo "CLASSPATH="$CLASSPATH
    # compile the first arg on the command line
    javac $1

  • How to include a JSP page contained in a JAR file ?

    Hello,
    I have a Servlet in which I would like to include, in the Response, the content of a JSP page contained in an external JAR file included in my lib directory ?
    Could someone help me please ?
    Thanks in advance.
    bgOnline

    I don't think thats possible with the standard j2ee server.
    There are probably ways around it, but it would involve a large component of custom coding.

  • WAR or JSP to serve HTML in JAR file?

    Hi,
    I want to keep a few hundred static help files in a JAR when I install my appliation on the server to ease installation and management. But what is the best way to serve them up? What litle I know about WARs seems to imply I can have HTML files in one and, with the server set up correctly, redirect a URI to find HTML files in there. Is that so? Is there an exmple out there?!
    cheers,
    Chuck

    Hi,
    Thanks, but to be clear, I want to ONLY have HTML files in this WAR. The rest of the appliation's servlets will not be part of this.
    I am simply looking for an easy way to access the HTML files if I JAR them up. Using a WAR, there is no servlet/jsp required to redirect a URL request to an HTML file in the archive, right? What would the web.xml look like, or is it even needed, when there is no JSP associated with the WAR?
    thanks,
    Chuck

  • Moving a functional jsp and jar file to new directory breaks import?

    Simply put - how can I "move" or "copy" a functional JSP directory from the root of my site to a subdirectory
    of the same site and have it continue to work?
    here are the details:
    I have a site where the functional JSP content resides like so ...
    c:\site\itworkshere\thetestfile.jsp
    c:\site\itworkshere\WEB-INF\web.xml
    c:\site\itworkshere\lib\thejarfile.jar
    c:\site\itworkshere\classes\props.properties
    but when I copy the"itworkshere" directory to c:\site\newdirectory\itworkshere
    and try to load thetestfile.jsp page in my browser, I get ...
    thetestfile$jsp.java:6: Package com.corporatename.module.io not found in import.
    I know that the module.io classes are in thejarfile.jar, but for some reason, now that I've put the files
    in a new directory, the import is failing (simple import directive in thetestfile.jsp) And - yes - the .jar
    file is there in the new subdirectory.
    I am a newbie with jsp and just need to copy the files to new location and have them continue to work.
    Do I have to recompile the .jar with some sort of adjustments? I poked around and I don't see any assumptions about the directory structure in the build. The behavior leads me to believe that the build is assuming something
    about its location in the directory tree.
    Hope this question is clear and I appreciate any direction you can provide to steer me where to look/modify
    the necessary changes so I can move the .jsp's and .jar and not break them.

    Thanks for the suggestions and insights. I have made some progress.
    a context path of "/newdirectory/itworkshere" and a docBase of "./newdirectory/itworkshere" has resolved
    the .jsp include problem.
    However this seems a bit counter-intuitive to me considering that the default root context which is "" stands
    at the appBase which in my case is C:\Site. Since the default does not explicitly refer to the "itworkshere" directory,
    I'd expect that the newly added Context element would not have to either ---- BUT --- it does require that I include "itworkshere" in the context path and docBase (where I would expect ./newdirectory would have been sufficient since the default works that way) ... am I missing something?
    Now I havethe next odd behavior - the Servlet which resides in "itworkshere\WEB-INF\lib" is not loading when I put the appropriate URL in --> /newdirectory/itworkshere/DataCrunchingServlet
    I checked the web.xml file and it has the appropriate servlet-name and url-pattern (relative references)
    Furthermore I did a test where I simply rename the original working instance directory and again --- the URL is failing to find the servlet!!! (and yes I stopped/started Tomcat) It is as if the servlet can only be found in the originally installed scenario.
    I am extremely puzzled that the behaviors seem to indicate an assumption about the path structure, but the web.xml file is set up correctly.
    Help help!!! and Thank you.l

  • JSP include from jar file

    I have a service that is packaged in a jar file that contains a jsp file that I want to use inside a <jsp:include>
    in my webapplication. Is this possible?
    <jsp: include .. jspFileInJarInWEB-INFLIB.jsp/>

    The JSP fragment page in question is actually a HTML form page. It is a form to be used specifically by a particular servlet. That is why they are "bundled" together in the same project, in the same package structure.
    I have multiple web applications that I want to include that form/servlet, so it gets added to these projects in the /WEB-INF/lib folder as a JAR library. But I don't want to recreate the form over and over again for each application. It would be nice if I could write a JSP page that wraps the fragment using an include directive to bring that fragment into the new page.
    So to do that with any other fragment I would write:
    <%@ include file="/WEB-INF/jsp/SOME_FORM.jsp" %>
    which works great if my fragment page is in the /WEB-INF/jsp subfolder. But if I want to access the JSP fragment as it is bundled in a JAR file, this:
    <%@ include file="/WEB-INF/lib/FORM.jar/SOME_FORM.jsp" %>
    doesn't work so good. It's just all wrong.
    I was wondering how I could just write one include statement to get what I need. There are work-arounds galore, but I thought if I could get this working it would be the simplest solution overall.

  • Dreamweaver cs4 or mx2004 may built .war or .jar files for deployment in a jsp server (Tomcat) ? If no, and use Dreamweaver  how do these files ?

    Dreamweaver cs4 or mx2004 may built .war or .jar files for deployment in a jsp server (Tomcat) ? If no, and use Dreamweaver  how do these files ?

    if I use Eclipse IDE for compilation[make *.war & *.jar files from *.java like claimBeans.java], I must use also Eclipse for upload/deploy ? Or for upload ONLY I may use and dreamweaver ? The jsp section of dreamweaver, is for app not require compilation, like from Code from:JSP STANDARD TAG LIBRARY , only ?
    Basically whatever I may do with "JavaBeans", "Servlets" etc (*.java files) needed to get compiled, I may also do it with JSP STANDARD TAG LIBRARY etc NOT NEEDED Compilation, so if I do not understand how to compile&deploy *.war & *.jar files , I may use instead the latter way ?

  • Include directive to include a JSP file from a JAR file

    I have an Eclipse project in which I have placed a JSP file in the package structure with the rest of my code. This is in fact only a code snippet page, not a full blown JSP file.
    I have a second project that is a Dynamic Web Project in Eclipse that incorporates the first project as a JAR in the /WEB-INF/lib directory.
    In this project I have a JSP file and I want to include the JSP file embedded in that JAR file.
    How do I do that?
    I'm thinking the only real solution is to rewrite the snippet portion as a custom tag.

    The JSP fragment page in question is actually a HTML form page. It is a form to be used specifically by a particular servlet. That is why they are "bundled" together in the same project, in the same package structure.
    I have multiple web applications that I want to include that form/servlet, so it gets added to these projects in the /WEB-INF/lib folder as a JAR library. But I don't want to recreate the form over and over again for each application. It would be nice if I could write a JSP page that wraps the fragment using an include directive to bring that fragment into the new page.
    So to do that with any other fragment I would write:
    <%@ include file="/WEB-INF/jsp/SOME_FORM.jsp" %>
    which works great if my fragment page is in the /WEB-INF/jsp subfolder. But if I want to access the JSP fragment as it is bundled in a JAR file, this:
    <%@ include file="/WEB-INF/lib/FORM.jar/SOME_FORM.jsp" %>
    doesn't work so good. It's just all wrong.
    I was wondering how I could just write one include statement to get what I need. There are work-arounds galore, but I thought if I could get this working it would be the simplest solution overall.

  • How Do I Specify uri in JSP taglib Directive to Point to the Jar File

    I put the trail-taglib-0.2.jar file in the MyApplication/WEB-INF/lib directory.
    Because the .tld is included in the trail-taglib-0.2.jar, I added the following In the MyApplication/WEB-INF/web.xml file:
    < filter >
      < filter-name > trailFilter < /filter-name >
      < filter-class > org.osjava.taglib.trail.OriginalRequestFilter < /filter-class >
    < /filter >
    < filter-mapping >
      < filter-name > trailFilter < /filter-name >
      < url-pattern > *.do < url-pattern >
    < filter-mapping > How do I specify the uri in my JSP @taglib to point to the jar file? I think I did not get the path right:
    < %@ taglib prefix="trail" uri="trail-taglib-0.2" % >

    Your advices have been very good. Problems get solved one at a time.
    1. Now, the taglib.tld in the WEB-INF directory can be found; however, another problem occurred: XML parsing error on file /WEB-INF/taglib.tld: (line 11, col 17): Element type "display-name" must be declared.
    2. no matter where I insert the filter and its mapping in the web.xml file,
      <filter>
       <filter-name>trailFilter</filter-name>
       <filter-class>org.osjava.taglib.trail.OriginalRequestFilter</filter-class>
      </filter>
      <filter-mapping>
       <filter-name>trailFilter</filter-name>
       <url-pattern>*.do</url-pattern>
      </filter-mapping>The server cannot find the Struts tag libraries. If I remove the filter tag and its mapping, the server does not complain anymore. I checked the DTD, the filter tag and its mapping tag should be before the servlet tag and servlet mapping tag. But, it does not work.
    Here is the taglib.tld:
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>2.0</jspversion>
      <shortname>trail</shortname>
      <uri>http://www.osjava.org/taglibs/trail-1.0</uri>
      <info>Breadcrumbs in a taglib. </info>
      <display-name>Trail Taglib</display-name>
      <description>The Trail taglib maintains a dynamic trail of pages that the user has hit and allows a normalized version of that trail to be shown as a breadcrumbs list. </description>
      <tag>
        <name>list</name>
        <tagclass>org.osjava.taglib.trail.ListTag</tagclass>
        <bodycontent>JSP</bodycontent>
        <display-name>Trail List</display-name>
        <description>ListTag is used to display the trail, either the whole trail or more likely the normalized version. </description>
      <attribute>
          <name>var</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>Store the trail text in a variable. This will probably change to store the actual trail list and not the text. </description>
        </attribute>
        <attribute>
          <name>delimiter</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>The delimiter to use between trail items. It defaults to -> and at some point an image will be useable instead. </description>
        </attribute>
        <attribute>
          <name>type</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>The type of list to show. The default is 'normalized', while any other type specified will result in 'full'. </description>
        </attribute>
      </tag>
      <tag>
        <name>push</name>
        <tagclass>org.osjava.taglib.trail.PushTag</tagclass>
        <bodycontent>JSP</bodycontent>
        <display-name>Trail Formation</display-name>
        <description>Place a page on the trail. </description>
        <attribute>
          <name>label</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <description>The text to use when placing the page on the trail. This is what will be displayed to the user in the List tag. </description>
        </attribute>
        <attribute>
          <name>url</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>Usually the url in question will be figured out by the taglib, however you may override it with this attribute. </description>
        </attribute>
      </tag>
    </taglib>

Maybe you are looking for

  • What is the significance of this setting..?

    Dear All, Can you please tell me what is the significance of the following settings in the Availability check configuration. IMG - SD - Basic Functions - Availability check & TOR - Availability check - Availability check with ATP Logic or Against pla

  • Problem Encountered in JMS adapter using SEEBURGER module

    While testing the receiver JMS adapter for XML to EDI conversion using Seeburger module, I am facing errors. <b>1. The error encountered is</b> : Error while processing message '4720bc32-2dfc-03d8-0000-00000a2050d3';  detailed error description: java

  • Full scratch disk

    I am trying to reinstall adobe photoshop 7.0 on a replacement desktop computer. HP with Windows 7 64bit and 750GB ha rd drive. Also have a Seagate 2TB external d rive. When I try to launch Adobe I get a message that Adobe ca nnot launch because the s

  • Do i need to keep the os 9 apps folder

    I just got a new macbook pro running TIger. I don't use any os9 applications. can I delete the os 9 apps folder. (i'm trying to clear HS space.) Thanks

  • I want to access my Bookmark Toolbar with the Apple Key

    Is there a way to have Firefox access the bookmarks in my bookmarks toolbar using the Apple Key + a number key? For example, hitting Apple+1 would go to the first bookmark on my toolbar, Apple+2 would go to the second, etc. Thanks