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.

Similar Messages

  • Class javax.servlet.jsp.PageContext compilation error

    During Rebuild/compilation of the JSP files inside JDeveloper, I am encountering the compilation error "Error(548,78): method handlepageException (java.lang.Throwable) not found in class javax.servlet.jsp.PageContext. When I developed the same application under IBM WSAD, I included the library com.ibm.servlet.jar and will take care of it. Which Oracle Jdeveloper lib I need to include? Since it is a servlet library error, I tried to include the Oracle "Servlet APIC Classes" but it didn't fix the problem. Thanks in advance!

    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.

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext:

     

              I Have exactly the same error and I would like to have a solution.....
              It happens when weblogic tries to compile a jsp page.
              So the result on the browser is the original jsp page: The jsp tags are not parsed.
              This problem exists on my Weblogic 4.5.1 sp11 (on unix) nut not on my weblogic 4.5.2 NT ?
              Any idea ?
              Thanks.
              Chris Opacki <[email protected]> wrote:
              >Has anyone had this error and found a way to fix it?
              >
              >java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext: method
              ><init>(Ljavax/servlet/jsp/JspFactory;)V not found
              

  • Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo

    Hi All,
    I am getting the following error when i create a jsf jsp page and build it in jdeveloper.
    Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    when i build the application by simply creating jsp not jsf jsp then it works well.
    Could you any tell me how to fix this? i searched in forums but i didn't find relevant solution.
    Thanks,
    Udhaya

    Hi!
    Can you tell us what version of JDeveloper you are using, and what steps you took to create the JSF page? Like, write from scratch or use the JSF page wizard?
    Also, can you check your project properties, and check that the JSF libraries are included, and JSF tag libraries set up?
    Regards,
    Jeroen van Veldhuizen

  • Javax.servlet.jsp.SkipPageException  classes are not  found

    i'm using Sun java system application server plot form edition 8.2 to deploy
    some filename.war..which is developed by Eclipse 3.2 then i have the following error Report in sjsas admin console:
    Application Server > Applications > Web Applications
    ErrorAn error has occurred.
    Deploying application in domain failed; Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details ; requested operation cannot be completed Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details
    in windows temp folder where log file shows the following error Report:
         FAILED TESTS :
         Test Name : tests.web.WebArchiveClassesLoadable
         Test Assertion : All classes in this Web Archive are loadable. Please refer to J2EE 1.4 Specification Section #8.1.2 for further information.
         Test Description : For [ hh.war ]
    classes [ javax.servlet.jsp.SkipPageException ] referenced by [ org.apache.jsp.VotingResponse_jsp] are not found
    classes [ javax.servlet.jsp.SkipPageException ] referenced by [ org.apache.jsp.index_jsp] are not found
    Please either bundle the above mentioned classes in the application or use optional packaging support for them.
    END OF STATIC VERIFICATION RESULTS
    How can i overcome from this exception.

    Perhaps your version of the sun server is too old. SkipPageException exists since JSP 2.0 according to the javadocs.

  • Javax.jws.WebService.portName() class not found

    Hi there,
    I am running OC4J Version 10.1.3.4.0.
    Upon trying to deploy a web service .WAR file (JAX-WS 2.1, JAXB 2.1) got this error:
    "Operation failed with error: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;"
    Is there a way to make OC4J to reference these new versions of web services, rather than utilizing what is loaded at the boot time?
    Thanks in advance,
    ws-girl

    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.

  • Error: method extraHandlePCFinally(javax.servlet.jsp.PageContext, boolean)

    I have the same error, im using jdeveloper 10g(9.05.2)

    I am currently getting the same issue when compiling the project with JSPs. My version of JDeveloper is 10g (9.0.5)

  • Custom Class file errors out on import javax.servlet.http.HttpSession

    I am trying to write a class file to handle events. This is a test class file copied from the UIX Docs. When I put this in JDeveloper 903 ,and build it the compiler gives the error:
    Error(2,27): cannot access class javax.servlet.http.HttpSession; file javax\servlet\http\HttpSession.class not found
    I am not sure what is the problem? Can anyone please help?
    Here is the code:--
    package mypackage1;
    import javax.servlet.http.HttpSession;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.event.EventResult;
    public class MyClass
    /** This is handleStoreNameEvent version 1 */
    public static EventResult handleStoreNameEvent(BajaContext context,
    Page page,
    PageEvent event)
    String userName = event.getParameter("txt1");
    HttpSession session = context.getServletRequest().getSession(true);
    session.putValue("User Name", userName);
    Page nextPage = new Page("NextPage");
    return new EventResult(nextPage);
    }

    Hi, you are missing the servlet.jar file from your classpath.
    In JDeveloper, you can add this by opening up your project -> libraries and adding the servlet runtime library.

  • 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

  • Javax.servlet.jsp.tagext.TagAttributeInfo. init (Ljava/lang/String;ZLjava/l

    In jDeveloper 10.1.3, using the cue card sample - Build a JSP, Struts, and Orcale TopLink application, I get the following error when trying to run the welcome.jsp page.
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I am using the default installation and everything every Java topic on Google about this error has to do with Tom Cat which I am not using.

    Here's the error stack.
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Lj
    ava/lang/String;ZLjava/lang/String;ZZ)V
    at oracle.jsp.parse.XMLUtil.elemToAttr(XMLUtil.java:1664)
    at oracle.jsp.parse.XMLUtil.elemToTagInfo(XMLUtil.java:1449)
    at oracle.jsp.parse.XMLUtil.domDocToTagLib(XMLUtil.java:1256)
    at oracle.jsp.parse.XMLUtil.scanWebFilesTLD(XMLUtil.java:665)
    at oracle.jsp.parse.XMLUtil.getTagLib(XMLUtil.java:927)
    at oracle.jsp.parse.JspDirectiveTaglib.createAndRegisterTagLib(JspDirect
    iveTaglib.java:156)
    at oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTa
    glib.java:335)
    at oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseT
    agDirective.java:171)
    at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1466)
    at oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java
    :383)
    at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:1008)
    at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:243)
    at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:483)
    at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:560)
    at oracle.jdevimpl.webapp.jsp.JspCompiler.translatePage(JspCompiler.java
    :345)
    at oracle.jdevimpl.webapp.jsp.JspCompiler.translate(JspCompiler.java:193
    at oracle.jdevimpl.webapp.jsp.JspTranslator.translate(JspTranslator.java
    :194)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildGrap
    h(UnifiedBuildSystem.java:300)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProj
    ectFiles(UnifiedBuildSystem.java:516)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProj
    ect(UnifiedBuildSystem.java:608)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildAll(
    UnifiedBuildSystem.java:665)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.run(Unifi
    edBuildSystem.java:893)

  • Error 500--Internal Server Error  java.lang.RuntimeException: javax.servlet

    Hi,
    I am following the tutorial which is given in Tutorial for Oracle WebCenter Developers.pdf i am at step 3 , i am using document library service in my page. BUt when i am running the page, the page get opens and it shows the following error:
    Error 500--Internal Server Error java.lang.RuntimeException: javax.servlet.jsp.el.ELException.
    the details of the error are shown below:
    java.lang.RuntimeException: javax.servlet.jsp.el.ELException: Encountered "\u2019", expected one of [<INTEGER_LITERAL>, <FLOATING_POINT_LITERAL>, <STRING_LITERAL>, "true", "false", "null", "(", "-", "not", "!", "empty", <IDENTIFIER>]
         at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluateInternal(OracleExpressionEvaluatorImpl.java:85)
         at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:51)
         at oracle.adfinternal.view.faces.model.FacesExpressionEvaluator._evaluate(FacesExpressionEvaluator.java:115)
         at oracle.adfinternal.view.faces.model.FacesExpressionEvaluator.evaluate(FacesExpressionEvaluator.java:72)
         at oracle.adf.model.binding.DCUtil.elEvaluate(DCUtil.java:788)
         at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1403)
         at oracle.adf.model.binding.DCBindingContainer.evaluateParameter(DCBindingContainer.java:1452)
         at oracle.adf.model.binding.DCParameter.internalEvaluateExpresion(DCParameter.java:183)
         at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:98)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.initializeParams(DCTaskFlowBinding.java:549)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.createRegionViewPortContext(DCTaskFlowBinding.java:320)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getViewPort(DCTaskFlowBinding.java:281)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.doProcessBeginRegion(TaskFlowRegionModel.java:129)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:90)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:116)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3038)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2759)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:80)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:21)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.servlet.jsp.el.ELException: Encountered "\u2019", expected one of [<INTEGER_LITERAL>, <FLOATING_POINT_LITERAL>, <STRING_LITERAL>, "true", "false", "null", "(", "-", "not", "!", "empty", <IDENTIFIER>]
         at org.apache.commons.el.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:320)
         at oracle.jsp.el.OracleExpressionEvaluator.parseExpression(Unknown Source)
         at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluateInternal(OracleExpressionEvaluatorImpl.java:78)
         ... 64 more
    Kindly suggest me.
    Thanks.

    There may be a problem with the encoding of the single quotes in the connectionName and startFolderPath parameters of the task flow binding. I had the same problem when I copied and pasted the values from the pdf version of the tutorial.
    Try this:
    Select the "Bindings" tab of "MyPage.jspx".
    Double click on "taskFlow - doclibdocumentLibrary1"
    Replace the single quotes in the values by re-typing them.
    The tutorial uses these values:
    ${’MyTutorialContent’}
    ${'/Manuals'}

  • Error: Configuration file /model/common/bc4j.xcfg is not found in the classpath???

    Hi Everyone,
    My Jdev version is 11.1.2.3.0.
    I have developed one ADF application and was working very fine.
    But the Jdev got crashed so i re-installed the same version but the application which was running earlier is not working now. I tried by installing different versions of Jdevelopers but none seems worked for me.
    Error is given below:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Configuration file /model/common/bc4j.xcfg is not found in the classpath.
    oracle.jbo.ConfigException: JBO-33001: Configuration file /model/common/bc4j.xcfg is not found in the classpath.
    at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:471)
    at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:600)
    What is this error about?
    How can i solve this error t make my application to run?
    Please give ur valuable suggestions...
    Thanks.

    Configuration file bc4j.xcfg not found in the classpath.

  • Error(400,8): method include(java.lang.String, boolean) not found in class

    I have uploaded my Application which was running fine in other IDE to jdev 10.1.3, when i compile the follwing error error in jsp page.
    Error(400,8): method include(java.lang.String, boolean) not found in class javax.servlet.jsp.PageContext
    My jsp code where error is shown is
    <jsp:include page="querySections/generation.jsp" flush="true">
                                            <jsp:param name="TSN" value="<%=strParamValue[1]%>"/>
                                            <jsp:param name="SectionID" value="<%=String.valueOf(lngSectionID)%>"/>
                                       </jsp:include>
    pl help me in solving this its urgent...
    Thanks & Regards
    Lakshmi

    Hi,
    code snippet looks okay and is identical with what JDeveloper generates.
    Frank

  • Having problems compiling *.java with import javax.servlet.jsp......

    I've been trying to do the tutorials in a book titled Apache Jakarta-Tomcat as part of my introduction to JSP. I'm new to Java but do know the basics. I have on my machine Java 1.3, Java 1.4, Java FrameWorks 2.1 and Jython 2.1 on Win2000 Pro. So enough about my configuration. I have never worked with packages also.
    I downloaded the files from the books site due to the fact I make a lot of typos when hand coding Java (I've become a pretty good debugger of my own code). But everytime I go to compile the *.java I get error messages. So below you will find HelloTag.java and beneath that the error messages that are thrown when I try and compile it. I tested other bits of *.java and have had no problem compiling them. Is there a JSP module I'm missing?
    Am I doing something wrong or am I missing something from my configuration.
    Marijan Madunic
    package chapter2;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class HelloTag extends TagSupport
    public void HelloTag() {
    // Method called when the closing hello tag is encountered
    public int doEndTag() throws JspException {
    try {
    // We use the pageContext to get a Writer
    // We then print the text string Hello
    pageContext.getOut().print("Hello");
    catch (Exception e) {
    throw new JspTagException(e.getMessage());
    // We want to return SKIP_BODY because this Tag does not support
    // a Tag Body
    return SKIP_BODY;
    public void release() {
    // Call the parent's release to release any resources
    // used by the parent tag.
    // This is just good practice for when you start creating
    // hierarchies of tags.
    super.release();
    D:\Java\JDK 1.3\bin>javac HelloTag.java
    HelloTag.java:3: cannot resolve symbol
    symbol : class JspException
    location: package jsp
    import javax.servlet.jsp.JspException;
    ^
    HelloTag.java:4: cannot resolve symbol
    symbol : class JspTagException
    location: package jsp
    import javax.servlet.jsp.JspTagException;
    ^
    HelloTag.java:5: cannot resolve symbol
    symbol : class TagSupport
    location: package tagext
    import javax.servlet.jsp.tagext.TagSupport;
    ^
    HelloTag.java:7: cannot resolve symbol
    symbol : class TagSupport
    location: class chapter2.HelloTag
    public class HelloTag extends TagSupport
    ^
    HelloTag.java:14: cannot resolve symbol
    symbol : class JspException
    location: class chapter2.HelloTag
    public int doEndTag() throws JspException {
    ^
    HelloTag.java:20: cannot resolve symbol
    symbol : variable pageContext
    location: class chapter2.HelloTag
    pageContext.getOut().print("Hello");
    ^
    HelloTag.java:24: cannot resolve symbol
    symbol : class JspTagException
    location: class chapter2.HelloTag
    throw new JspTagException(e.getMessage());
    ^
    HelloTag.java:28: cannot resolve symbol
    symbol : variable SKIP_BODY
    location: class chapter2.HelloTag
    return SKIP_BODY;
    ^
    HelloTag.java:37: cannot resolve symbol
    symbol : variable super
    location: class chapter2.HelloTag
    super.release();
    ^
    9 errors

    Well, it looks like you've not got the servlet development kit JAR on your classpath. I think it'll probably be called servlet.jar on your system. Add that to the classpath if it's not already there.
    Incidentally, you've bumped into one of the areas Java's slightly lenient - declaring a method that looks like a constructor:
    public HelloTag() { }
    public void HelloTag() { }The first is a constructor, the second is a normal method. I'm assuming you intended to have the former instead of the latter.
    Anyway, hope this helps.

  • Missing artifact javax.servlet.jsp:jsp.api:jar:2.1 Eclipse error

    When I try to UPDATE my Maven project ( Chapter 8 - Using JSP with AEM 6.0 ) after I updated my main pom.xml with the javax.servlet.jsp dependancy, I get the following error :Missing artifact javax.servlet.jsp:jsp.api:jar:2.1
    I even tried to compile from command line using mvn compile and get the same error :
    [ERROR] Failed to execute goal on project company-training-project-bundle: Could  not resolve dependencies for project com.adobe.training:company-training-project-bundle:bundle:1.0-SNAPSHOT:
    Could not find artifact javax.servlet.jsp:jsp.api:jar:2.1 in adobe (http://repo.adobe.com/nexus/content/groups/public/) -> [Help 1]
    If I look at my .m2 dir, I can see that it attempted to get the jar, but it wasn't able to grab it :

    Hi Billy,
    Try changing the URL from (http://repo.adobe.com/nexus/content/groups/public/) to (https://repo.adobe.com/nexus/content/groups/public/), i.e. add the https.
    That should do it. Let us know if it doesn't work.

Maybe you are looking for

  • Can we use LabView controls in VC %3F

    Hi, I was wondering if Gauge and Tank controls from LabView can be used in VC++? We have labview installed in our lab and we use the graphic controls as major part of our software. We have one software that is written in VC++. Is it possible to expor

  • ERS field in Purchase Order Line detail (Invoice Tab)

    Hi ... I was trying to figure out the priorities for ERS field in Purchase order ... What i could simulate is ... Case 1 In case Vendor master has ERS = YES but in info record ( for vendor and material) NO ERS is defined. Then ERS field will get appe

  • What's wrong  with the role?

    I create URL iviews and pages, preview , it is OK. Then I create workset, role, and assign to a user. When I login with the account, I can't see the pages. Anybody help?

  • Need access to Java SE 6 for  use in CS4 in OS 10.8.5. (PS won't start without it)

    Where can I reliably access Java SE 6 for  use in CS4 in OS 10.8.5.   Right now PS won't open without it ( I get a warning message saying to install Java SE 6 runtime.  When I hit install, the result is no fle found. Adobe has a dead download for rel

  • Depreciation defaulted to one Cost Centre (OKB9)

    Good day SAP Experts One of our companies' depreciation depreciation was defaulted to post one cost centre (Admin).  This was set on OKB9, specifying company code, cost element (211110) and the cost centre. This worked, but now we had to change that