JSP unable to load javascript

I have a JSP page that is using a tag library from DotJ software. With the tag library there is an accompanying javascript library that handles the client side of the form. The screen runs okay on my laptop from within JDeveloper and from JDeveloper on the server that we are to deploy to.
The problem occurs when I try to run the page from 10g application server.
Generally, when I test the page its usually as an address of the form:-
xxx.xxx.xxx.xxx/UPDORA/Screen.jsp
When the page loads everything is there (logos, buttons, grid data etc.) but an error is displayed stating that the javascript file couldn't be loaded. The alert displays the URL that it is trying to load the javascript from - this seems to be different to the URL that I run the page from:
http://<machine name here>:81/UPDORA/dotj/dotj_2_0.js
I'm guessing that the inclusion of the port number is causing the problem ? The dotj directory is in the same place as Screen.jsp so I would assume if it can find one it can find another - but it isn't. I'm not sure if the problem is with the application server or the tag library that is trying to load the javascript file - but the screen runs okay from JDeveloper.
Does anyone have any idea what the problem may be ?

Hi,
I do not know what is the cause of your problem. However, it should be easy to identity the root cause. Here are some basic suggestions:
1. Since you can access http://something/here/Screen.jsp, try accessing http://samething/here/dotj/dotj_2_0.js from your browser directly just to make sure it is there.
2. check page source received by your browser to see the address of your javascript.
3. check .java file generated out of your jsp file by jdeveloper, which should be inside the directory for your jdeveloper project. Also check the .java file generated by your application server, which is in j2ee/home/application-deployments/yourApp/yourWebApp/persistence/_page. Find what is the difference that causes, I assume, different urls for your javascript.

Similar Messages

  • JSP Unable to load class

    I am using the core servlets book and Tomcat 3.2.4 to learn JSP. The first example will not work because of the follwing exception:
    org.apache.jasper.compiler.CompileException: E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\jsp\SimpleExample.jsp(14,7) Unable to load class E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes\tags.ExampleTag
    I have the following files in the following paths:
    ExampleTag.java is in the path E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes\tags.ExampleTag and the code is as follows:
    package tags;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    /** Very simple JSP tag that just inserts a string
    * ("Custom tag example...") into the output.
    * The actual name of the tag is not defined here;
    * that is given by the Tag Library Descriptor (TLD)
    * file that is referenced by the taglib directive
    * in the JSP file.
    * <P>
    * Taken from Core Servlets and JavaServer Pages
    * from Prentice Hall and Sun Microsystems Press,
    * http://www.coreservlets.com/.
    * &copy; 2000 Marty Hall; may be freely used or adapted.
    public class ExampleTag extends TagSupport {
    public int doStartTag() {
    try {
    JspWriter out = pageContext.getOut();
    out.print("Custom tag example " +
    "(tags.ExampleTag)");
    } catch(IOException ioe) {
    System.out.println("Error in ExampleTag: " + ioe);
    return(SKIP_BODY);
    This is an excert from the Tag Library Descriptor file named csajsp-taglib.tld (the entire file is too long to include). This is in path :E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\jsp
    <?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">
    <!-- a tag library descriptor -->
    <taglib>
    <!-- after this the default space is
    "http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
    -->
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>csajsp</shortname>
    <!-- ** CHANGED FROM "urn" TO "uri" IN TOMCAT 3.1 ** -->
    <uri></uri>
    <info>
    A tag library from Core Servlets and JavaServer Pages,
    http://www.coreservlets.com/.
    </info>
    <!--
    <tag>
    The name (after prefix) tag will have in JSP code
    <name>example</name>
    The actual class implementing tag. In
    Tomcat 3.1 beta, it MUST be in a package.
    <tagclass>tags.ExampleTag</tagclass>
    Descriptive information about tag.
    <info>Simplest example: inserts one line of output</info>
    One of three values describing what goes between
    start and end tag.
    empty: no body
    JSP: body that is evaluated by container normally,
    then possibly processed by tag
    tagdependent: body is only processed by tag;
    JSP in body is not evaluated.
    ** NOTE: TOMCAT 3.1 FINAL DOES NOT SUPPORT BODYCONTENT **
    ** THE BETA SUPPORTED IT, AND IT IS PART OF SPEC, BUT... **
    <bodycontent>empty</bodycontent>
    </tag>
    -->
    <tag>
    <name>example</name>
    <tagclass>E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes\tags.ExampleTag</tagclass>
    <info>Simplest example: inserts one line of output</info>
    <!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT
    <bodycontent>empty</bodycontent> -->
    </tag>
    and the .jsp file is SimpleExample.jsp and is located in the path E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\jsp\SimpleExample.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!--
    Illustration of very simple JSP custom tag.
    Taken from Core Servlets and JavaServer Pages
    from Prentice Hall and Sun Microsystems Press,
    http://www.coreservlets.com/.
    &copy; 2000 Marty Hall; may be freely used or adapted.
    -->
    <HTML>
    <HEAD>
    <%@ taglib uri="csajsp-taglib.tld" prefix="csajsp" %>
    <TITLE><csajsp:example /></TITLE>
    <LINK REL=STYLESHEET
    HREF="JSP-Styles.css"
    TYPE="text/css">
    </HEAD>
    <BODY>
    <H1><csajsp:example /></H1>
    <csajsp:example />
    </BODY>
    </HTML>
    I have tried putting the ExampleTag.java file and the folder that it is in, 'tags', in about every path I can think of and I get the same error. I also tried removing the entire path from the .tld file and just calling for tags.ExampleTag. Still no luck.
    I am using win98.
    Any assistance will be greatly appreciated.
    Thanks,
    Scott

    I compiled the .java and put the .class file in the following path:
    E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes\tags
    I am getting the error: org.apache.jasper.compiler.CompileException: E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\jsp\SimpleExample.jsp(14,7)
    Unable to load class E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes\tags.ExampleTag
    Here is another look at the .java file that I compiled:
    package tags;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    /** Very simple JSP tag that just inserts a string
    * ("Custom tag example...") into the output.
    * The actual name of the tag is not defined here;
    * that is given by the Tag Library Descriptor (TLD)
    * file that is referenced by the taglib directive
    * in the JSP file.
    * <P>
    * Taken from Core Servlets and JavaServer Pages
    * from Prentice Hall and Sun Microsystems Press,
    * http://www.coreservlets.com/.
    * � 2000 Marty Hall; may be freely used or adapted.
    public class ExampleTag extends TagSupport {
    public int doStartTag() {
    try {
    JspWriter out = pageContext.getOut();
    out.print("Custom tag example " +
    "(tags.ExampleTag)");
    } catch(IOException ioe) {
    System.out.println("Error in ExampleTag: " + ioe);
    return(SKIP_BODY);
    Any idea why I am still getting an error?

  • JSP unable to load applet

    I'm trying to load an applet from my JSP (under WL 6.1 SP2 on Win2K) with
              the following code:
              <OBJECT ...>
              <PARAM NAME = "CODE" VALUE = "com.foo.bar.MyApplet" >
              <PARAM NAME = "CODEBASE" VALUE = "/classes/[email protected]/" >
              </OBJECT>
              Before you say "try the <jsp:plugin> tag..." - I did and got nothing except
              the display from the <jsp:fallback> tag. At least with the <OBJECT> method I
              can see the errors... once I get it working with <OBJECT>, I'll switch over
              to <jsp:plugin>!
              Anyway, my applet is located in a JAR, which is located in an EAR. I'm sure
              that my problem is not having the correct CODEBASE, but just what should
              that CODEBASE be? According to the docs, /classes/ear@war/ should work...
              but using that I get a FileNotFound exception from the Java PlugIn. Am I
              missing something in a deployment descriptor? Ideally, I would like to have
              my JAR loaded from the root of the EAR, not the WAR... is this possible
              using /classes/my.ear@/ as the CODEBASE?
              Any help would be greatly appreciated!
              Thanks!
              Steve
              

    1 - Place your applet class in the CLASSPATH. Not in the web application
              that your jsp is in.
              2 - In your jsp do something like this:
              <html>
              <body>
              <P>Applet below</p>
              <APPLET CODE="com.applet.TestMyApplet.class" CODEBASE="/classes/" WIDTH=600
              HEIGHT=100></APPLET>
              </body>
              </html>
              Regards,
              Joseph Nguyen
              BEA Support
              "Steve Soloski" <[email protected]> wrote in message
              news:[email protected]...
              > I'm trying to load an applet from my JSP (under WL 6.1 SP2 on Win2K) with
              > the following code:
              >
              > <OBJECT ...>
              > ...
              > <PARAM NAME = "CODE" VALUE = "com.foo.bar.MyApplet" >
              > <PARAM NAME = "CODEBASE" VALUE = "/classes/[email protected]/" >
              > ...
              > </OBJECT>
              >
              > Before you say "try the <jsp:plugin> tag..." - I did and got nothing
              except
              > the display from the <jsp:fallback> tag. At least with the <OBJECT> method
              I
              > can see the errors... once I get it working with <OBJECT>, I'll switch
              over
              > to <jsp:plugin>!
              >
              > Anyway, my applet is located in a JAR, which is located in an EAR. I'm
              sure
              > that my problem is not having the correct CODEBASE, but just what should
              > that CODEBASE be? According to the docs, /classes/ear@war/ should work...
              > but using that I get a FileNotFound exception from the Java PlugIn. Am I
              > missing something in a deployment descriptor? Ideally, I would like to
              have
              > my JAR loaded from the root of the EAR, not the WAR... is this possible
              > using /classes/my.ear@/ as the CODEBASE?
              >
              > Any help would be greatly appreciated!
              >
              > Thanks!
              >
              > Steve
              >
              >
              >
              

  • JSP Unable to Load Class (posted in Java Programming for 5 Dukes)

    I hope this isn't a violation of forum etiquette, but I posted my question in Java Programming at http://forum.java.sun.com/thread.jsp?forum=31&thread=203255
    I realize now that it may have been wiser to post it here, but I have some replies already and it makes more sense just to inlcude the link.
    Can anyone assist with the question at http://forum.java.sun.com/thread.jsp?forum=31&thread=203255
    It's worth 5 dukes.

    Try changing <tagclass>E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes\tags.ExampleTag</tagclass> to <tagclass>tags.ExampleTag</tagclass>
    because <tagclass> tag is for the class name and not the location of class file
    And make sure your ExampleTag.class file is in
    \WEB-INF\classes\tag\ExampleTag.class
    B!

  • JSP, JavaBeans and iPlanet 4.1-  Unable to load JavaBean

    I get the following error when trying to access a JavaBean from a JSP page. I have tried just about everything including using the <@page import /> in the JSP page.
    I can get it to run perfectly in Tomcat 3.2 but it must run in iPlanet 4.1. I think the solution should be fairly simple I just can't find it.
    Any help would be greatly appreciated.
    Thanks.
    The exception is as follows (thrown on running the generatePage.jsp linked from index.jsp).
    [29/Nov/2001:16:50:23] info ( 1364): Internal Info: loading servlet /TechCom/generatePage.jsp
    [29/Nov/2001:16:50:23] info ( 1364): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to load class JspPageLoader
         at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:183)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:97)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:728)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:190)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:159)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:141)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:214)
         at com.netscape.server.http.servlet.NSServletEntity.(NSServletEntity.java:104)
         at com.netscape.server.http.servlet.NSServletRunner.loadServlet(NSServletRunner.java:607)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:357)
    [29/Nov/2001:16:50:23] warning ( 1364): Unable to locate class: D:\Netscape\Server4\docs\TechCom (java.lang.ClassNotFoundException: D:\Netscape\Server4\docs\TechCom)
    [29/Nov/2001:16:50:23] warning ( 1364): Internal error: Failed to load servlet (servlet=/TechCom/generatePage.jsp)

    To solve this problem you have to:
    include <@page import /> tags importing the JavaBean to be used.
    In the classpath of iPlanet include the directory in which your JavaBeans are placed.
    Also in the classpath of iPlanet include the root directory of you web site containing the JSP's. this should then solve the problem.

  • Unable to load file ..jsp

    Hi
    When Iam forwarding a jsp page to other jsp page after
    some condition meets using jsp forward than some times
    when i access it it gives
    "Unable to load as it is not a top level class"
    for file while is forwarded
    for example:--
    <jsp:forward page="Login.jsp">
    <jsp:param name="user" value="<%=user%>"/>
    </jsp:forward>
    it gives login.jsp not a top level class
    unable to load
    note :---- all files in one directory
    suggestion required

    actually it depends on your JSP engine. I'm not sure but I've a doubt that once you have flushed some response , you may get an error in forwarding ( in some of the jsp engines, but I think in tomcat it's fine).
    you could try by using "buffer" property in such a way that no response is flushed before you forward the JSP page.

  • Jsp on iplanet 6.0 sp7 error: unable to load jsp class

    I am having trouble to install astraweb on iplanet with following error
    [06/Apr/2005:08:46:38] info (21397): WebApp service: uri = /astraweb/ contextPath = /astraweb servletPath = /index.jsp pathInfo = null servletName = jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:JspEngine --> /index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: ServletPath: /index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: PathInfo: null
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: RealPath: /opt/iplanet60sp7/docs/astraweb/index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: RequestURI: /astraweb/
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: QueryString: null
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:Classpath according to the Servlet Engine is: /opt/iplanet60sp7/docs/astraweb/WEB-INF/classes:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/Basej4.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/commons-fileupload-1.0.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/hsi.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/net.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/oreilly.jar:
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:unable to load jsp class: jsps.index_jsp
    [06/Apr/2005:08:46:38] failure (21397): Internal error: exception thrown from the servlet service function (uri=/astraweb/): java.lang.NullPointerException, Stack: java.lang.NullPointerException
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.isJspFileModified(JspServlet.java:231)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:199)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:171)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:596)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
    at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1058)
    at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
    Any idea? Thanks

    In the course of your troubleshooting to date, have you worked through the following document, Jeff?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

  • Unable to load pages after update to 3.6.8

    unable to load pages with any browser after update to 3.6.8
    windows update only online function that works

    try this
    download and run norton removal tool. this woked for me
    http://www.symantec.com/norton/support/kb/web_view.jsp?wv_type=public_web&docurl=20080710133834EN&ln=en_US

  • Unable to load taghandler

    Hi All,
    I am deploying my application from JDeveloper remotely in Oracle 10g AS.in my application I have generated a couple of reports using Oracle Report Writer.basically i generated report JSPs.when I run my application report is not getting generated, it raises following error-
    unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    Error: Unable to load taghandler class: /WEB-INF/lib/reports_tld.jar

    You might want to post this on the Reports discussion forum.
    http://forums.oracle.com/forums/index.jsp?cat=19
    Did you move to an older version 904->902? I'm not sure this is supported.

  • Unable to load class from JSTL

    Hello. I am using JSTL 1.06 from Jakarta with Tomcat 4.1 on a MacOS X 10.3.9 server. I have a jsp that contains the following:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <jsp:useBean id="validate" class="mypackage.ValidationBean" scope="request">
            <jsp:setProperty name="validate" property="*" />
    </jsp:useBean>
    <c:if test="${validate.valid == false}">
    The input is not valid.
    </c:if>In case it matters, my web.xml file starts out like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">I have placed jstl.jar and standard.jar in my webapp's WEB-INF/lib directory. However, when I try to load the page, I get this error message:
    org.apache.jasper.JasperException: /myjsp.jsp(60,0) Unable to load class if
    I know that many people have asked similar questions, but in each case, the response was to put jstl.jar and standard.jar in WEB-INF/lib and make sure that you're using the proper URI for the taglib, and I think I have done those things correctly. Any help would be greatly appreciated!

    Thanks for your response! In answer to your questions:
    The JRE is 1.4.2_09. I can't use 1.5 (5.0) without upgrading the OS.
    I haven't tried it on a PC. I might be able to, but it would take me some time to set everything up.
    What follows is taken from Tomcat/logs/localhost_log.2006-10-24.txt. If there is another log file I should be looking in, please let me know. Here is the full stack trace from the log:
    2006-10-24 16:58:40 Could not load TagLibraryValidator class org.apache.taglibs.standard.tlv.JstlCoreTLV: EXCEPTION: org.apache.taglibs.standard.tlv.JstlCoreTLV
    2006-10-24 16:58:40 Could not load TagExtraInfo class org.apache.taglibs.standard.tei.ImportTEI: org.apache.taglibs.standard.tei.ImportTEI
    2006-10-24 16:58:40 Could not load TagExtraInfo class org.apache.taglibs.standard.tei.ForEachTEI: org.apache.taglibs.standard.tei.ForEachTEI
    2006-10-24 16:58:40 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /myjsp.jsp(59,0) Unable to load class if
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219)
    at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:712)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    at java.lang.Thread.run(Thread.java:552)

  • Unable to load my sql driver

    So frustrated to see my servlet cant connect to mysql database, anyone pls help me?
    i put mysql-connector-java-2.0.14-bin.jar in
    C:\Apache\Tomcat 4.0\common\lib
    C:\Apache\Tomcat 4.0\webapps\ROOT\WEB-INF\lib
    D:\j2sdk1.4.0_03\jre\lib\ext
    here the exception:
    javax.servlet.ServletException: Unable to load driver
         at FormHandlerServlet.init(FormHandlerServlet.java:27)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    here is my servlet:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import java.sql.Date;
    public class FormHandlerServlet extends HttpServlet{
    private static final String driver="com.mysql.jdbc.driver";
    private static final String dbURL= "jdbc:mysql://localhost/aos";
    private static final String login= "aos";
    private static final String password= "aos";
    private ServletContext context;
    private Connection conn= null;
    private Statement stmt= null;
    public void init(ServletConfig config) throws ServletException{
         super.init(config);
         context= config.getServletContext();
         try{
         Class.forName(driver);
         conn= DriverManager.getConnection(dbURL, login, password);
         stmt= conn.createStatement();
         catch(ClassNotFoundException e){
         System.err.println("Unable to load driver");
         throw new ServletException("Unable to load driver");
         catch(SQLException e){
         System.err.println("Unable to connect to database");
         throw new ServletException("Unable to connect to database");
    public void service(HttpServletRequest req,
              HttpServletResponse res)
         throws ServletException, IOException{
         Vector errors= new Vector();
         Calendar startCalendarDate = Calendar.getInstance(TimeZone.getDefault());
         java.util.Date startUtilDate = new java.util.Date();
         long startLongDate = startCalendarDate.getTime().getTime();
         java.sql.Date startSqlDate = new java.sql.Date(startLongDate);
         String userID= req.getParameter("userID");
         String password1= req.getParameter("password1");
         String password2= req.getParameter("password2");
         String name= req.getParameter("name");
         String ic= req.getParameter("ic");
         String status= req.getParameter("status");
         String gender= req.getParameter("gender");
         String department= req.getParameter("department");
         String email= req.getParameter("email");
         String phone=req.getParameter("phone");
         if(!isRequiredData(userID, password1, password2, status))
         errors.add("Sila isikan semua data yang diperlukan dimana *.");
         else{
         try{
         if(isExistedUser(userID))
    errors.add("No Matriks/Pekerja anda sudah wujud, Sila cuba lagi.");
         catch(SQLException e){}
         if(!isSamePassword(password1,password2))
         errors.add("Sila isikan password1 dan password2 yang sama.");
         if(!isValidPassword(password1,password2))
         errors.add("Sila isikan password anda dalam 8-12 perkataan.");
         if(!isValidEmail(email))
         errors.add("Sila pastikan " +"@"+" dalam e-mel anda.");
         if(!isValidPhone(phone))
         errors.add("Sila pastikan "+ "-"+" tidak dalam nombor telefon anda.");
         if(!isValidUserID(userID))
         errors.add("Nombor Matriks/Pekerja anda tidak mengandungi 6 perkataan.");
         String next;
         String password= password1;
         String insert= "insert into user values('"+userID+"', '"+password+"','"+
         name+"', '"+ic+"', '"+status+"', '"+gender+"','"+
         department+"', '"+email+"', '"+phone+"', '"+startSqlDate+"')";
         if (errors.size() ==0){
         //data is ok, insert data to database, dispatch to wherever
         try{
              int x= stmt.executeUpdate(insert);
         catch(SQLException e){}
         next= "/aos/thanks.jsp";
         else{
         //data has errors, try again
         String[] errorArray= (String[])errors.toArray(new String[0]);
         req.setAttribute("errors", errorArray);
         next= "/aos/RegisterForm.jsp";
         RequestDispatcher rd;
         rd= context.getRequestDispatcher(next);
         rd.forward(req, res);
    public boolean isSamePassword(String password1,String password2){
         //check for both password is same
         return(password1.equals(password2));
    public boolean isValidPassword(String password1,String password2){
         //check for both password is under 8-12 char
         return(password1.length()>=8 && password1.length()<=12 &&
         password2.length()>=8 && password2.length()<=12);
    public boolean isValidPhone(String phone){
         //check for no dashes
         return(phone.indexOf("-")==-1);
    public boolean isValidEmail(String email){
         //check an "@" somewhere after 1st char
         return(email.indexOf("@")>0);
    public boolean isValidUserID(String userID){
         //check for userID is 6 char
         return(userID.length()==6);
    public boolean isRequiredData(String userID,
    String password1, String password2, String status){
    //check for required data is filled
         return(userID.length()!=0 && password1.length()!=0 &&
         password2.length()!=0 && status.length()!=0);
    public boolean isExistedUser(String userID) throws SQLException{
    String sql= "select * from user where id= '"+userID+"'";
    ResultSet rs= stmt.executeQuery(sql);
         if(rs.next())
    return true;
         else
         return false;
         

    is the driver name correct?
    private static final String driver="com.mysql.jdbc.driver";
    I usually have another string, but I might use a different mysql driver. Try opening your mysql driver with winzip and see if the class is there and at the defined directory place

  • "Unable to load data" error after Windows update

    Hi all,
    I've been maintaining a LightSwitch desktop app for a couple of years now.  The app runs on a server and several client machines access it.  Sometime in the last few months, any client that has Windows Update enabled has failed to load data.  Instead
    it shows red crosses where the data should be and the tooltip, "Unable to load data. Please check your connection and try loading again."
    Other clients that don't have updates enabled are fine.  Has anyone else run into this issue?  Does anyone know how to resolve it?
    Thanks,
    Liam

    Hi Angie,
    Thanks for your reply.  I've enabled diagnostics as described.  Here's what I find.
    When I load my LightSwitch screen, I get the following entry highlighted red in Fiddler:
    GET http://127.0.0.1:6853/callback.json?_=1377245349573
    502 Fiddler - Connection Failed (text/html)
    GET http://127.0.0.1:6853/callback.json?_=1377245349573 HTTP/1.1
    Host: 127.0.0.1:6853
    Proxy-Connection: keep-alive
    Accept: application/json, text/javascript, */*; q=0.01
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-GB,en;q=0.8
    HTTP/1.1 502 Fiddler - Connection Failed
    Date: Fri, 23 Aug 2013 08:09:10 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: close
    Timestamp: 09:09:10.584
    [Fiddler] The socket connection to 127.0.0.1 failed. <br />ErrorCode: 10061. <br />No connection could be made because the target machine actively refused it 127.0.0.1:6853
    After that, I see a long list of each of the queries LightSwitch is calling for all the elements on the screen.  Each one contains the following error:
    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Pragma: no-cache
    Content-Length: 747
    Content-Type: application/msbin1
    Expires: -1
    Server: Microsoft-IIS/7.5
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Fri, 23 Aug 2013 08:10:38 GMT
    @Fault5http://schemas.microsoft.com/ws/2005/05/envelope/none@Code@Value�Sender@Reason@Textxmllang�en-GB��<?xml version="1.0" encoding="utf-16"?><ExceptionInfo><Message>User does not have access to the invoked operation. Your session may have timed out. Please restart the application. Operation name: 'HSEComments_All'.</Message></ExceptionInfo>@Detail@DomainServiceFaultDomainServices i)http://www.w3.org/2001/XMLSchema-instance@ ErrorCode�@ErrorMessage��<?xml version="1.0" encoding="utf-16"?><ExceptionInfo><Message>User does not have access to the invoked operation. Your session may have timed out. Please restart the application. Operation name: 'HSEComments_All'.</Message></ExceptionInfo>@IsDomainException�
    Can you help in interpreting these?
    Thanks,
    Liam

  • Unable to load taghandler on 10g(10.1.2.)

    Hello forum,
    I have one jstl tag to generate input fields, I have it in web-inf/tags and tld in web-inf/tld.
    On my develper machine I use tomcat 5.0.28 all working fine. I moved it to ora server, and i will get this error
    Unable to load taghandler class: http://cz.envinet/jsp/validAbleInput
    for sure that tld file is in claaspath I copy it to web-inf/lib.
    I use jakarta-taglibs-standard-1.0.6 standrat.jar and jstl.jar.
    My tld file
    <?xml version="1.0" encoding="UTF-8" ?>
    <taglib 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-jsptaglibrary_2_0.xsd"
    version="2.0">
    <description>valid able input</description>
    <display-name>validAbleInpu</display-name>
    <tlib-version>1.1</tlib-version>
    <short-name>validAbleInput</short-name>
    <uri>http://cz.envinet/jsp/validAbleInput</uri>
    <tag-file>
    <name>validAbleInput</name>
    <path>/WEB-INF/tags/validAbleInput.tag</path>
    </tag-file>
    Im new in jstl so I tried find some good information about it, but still dont get a lot of info to solve why it doesnt work on ora server.
    Anyone can help?
    Petr, CZ
    Im reading JSP documet for 10.1.2 server I did some changes in tld file and add taglib to web.xml
    <taglib>
    <taglib-uri>/validAbleInput</taglib-uri>
    <taglib-location>/WEB-INF/tags/validAbleInput.tag</taglib-location>
    </taglib>
    I cannot find that how to use tag file, all use class file,
    anyon eknow if 10.1.2 server can use tag jsp file?
    and maybe is solution that I cannot use tag in validAbleInput.tag writing in jsp but I need use java class file tag.
    Edited by: ppo on 9.4.2010 8:46
    Edited by: ppo on 9.4.2010 8:54

    I rewrite it to class tag I succesfuly loaded and show to the page, but I canot assignr parametrs to the tag i can use only
    example tag atibute name
    this work
    ... name="Jan".... ----? it will show -----> jan
    ...name="${bean.getName()}" ----> show ----> ${bean.getName()}
    ...name="<%=bean.getName()%>" ----> show ----> <%=bean.getName()%>
    anybody can help to understand
    My tld
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <!-- a tab library descriptor -->
    <taglib xmlns="http://java.sun.com/JSP/TagLibraryDescriptor">
    <description>valid able input</description>
    <display-name>validAbleInpu</display-name>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>example</short-name>
    <short-name>validAbleInput</short-name>
    <uri>/validAbleInput</uri>
    <tag>
    <name>validAbleInput</name>
    <tag-class>cz.envinet.jsp.tags.ValidAbleInputTag</tag-class>
    <attribute>
    <name>name</name>
    <required>true</required>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>value</name>
    <required>true</required>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>isError</name>
    <required>true</required>
    <type>java.lang.Boolean</type>
    </attribute>
    <attribute>
    <name>errorMsg</name>
    <required>true</required>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>isDateInput</name>
    <required>false</required>
    <type>java.lang.Boolean</type>
    </attribute>
    <attribute>
    <name>reqValue</name>
    <required>true</required>
    <type>java.lang.String</type>
    </attribute>
    </tag>
    </taglib>
    web.xml definition
    <taglib>
    <taglib-uri>/validAbleInput</taglib-uri>
    <taglib-location>/WEB-INF/tlds/validAbleInput.tld</taglib-location>
    </taglib>
    Petr, CZ
    Edited by: ppo on 9.4.2010 11:16

  • Office App Devlopment: Unable to load one or more of the requested types.

    I'm receiving the following error with the default C# Office App for Word, Excel, Powerpoint, Project Task Pane
    Error Code
    Description
    File
    Line
    Col
    Project
     1
    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets
    438
    5
    AppName
    I'm using
    Microsoft Visual Studio Community 2013
    Version 12.0.31101.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51641
    Installed Version: Professional
    LightSwitch for Visual Studio 2013   06177-004-0444002-02129
    Microsoft LightSwitch for Visual Studio 2013
    Team Explorer for Visual Studio 2013   06177-004-0444002-02129
    Microsoft Team Explorer for Visual Studio 2013
    Visual Basic 2013   06177-004-0444002-02129
    Microsoft Visual Basic 2013
    Visual C# 2013   06177-004-0444002-02129
    Microsoft Visual C# 2013
    Visual C++ 2013   06177-004-0444002-02129
    Microsoft Visual C++ 2013
    Visual F# 2013   06177-004-0444002-02129
    Microsoft Visual F# 2013
    Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02129
    Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
    Windows Phone SDK 8.0 - ENU   06177-004-0444002-02129
    Windows Phone SDK 8.0 - ENU
    Application Insights Tools for Visual Studio Package   1.0
    Application Insights Tools for Visual Studio
    ASP.NET and Web Tools   12.4.51016.0
    Microsoft Web Developer Tools contains the following components:
    Support for creating and opening ASP.NET web projects
    Browser Link: A communication channel between Visual Studio and browsers
    Editor extensions for HTML, CSS, and JavaScript
    Page Inspector: Inspection tool for ASP.NET web projects
    Scaffolding: A framework for building and running code generators
    Server Explorer extensions for Microsoft Azure Websites
    Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure
    ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
    ASP.NET Web Frameworks and Tools 2013   5.2.21010.0
    For additional information, visit http://www.asp.net/
    Common Azure Tools   1.3
    Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
    Microsoft Azure Mobile Services Tools   1.3
    Microsoft Azure Mobile Services Tools
    NuGet Package Manager   2.8.50926.663
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
    Office Developer Tools for Visual Studio 2013 ENU   12.0.31105
    Microsoft Office Developer Tools for Visual Studio 2013 ENU
    PowerShell Tools   1.3
    Provides file classification services using PowerShell
    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
    SQL Server Data Tools   12.0.41012.0
    Microsoft SQL Server Data Tools
    Windows Phone 8.1 SDK Integration   1.0
    This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.
    From looking at the build it looks like the web part is building correctly but the application isn't passing validation, I have no idea why since it is the default app, I've made Office Apps on previous machines without a problem.
    Any help would be much appreciated and also let me know if I can give more info!

    Hi mngfinney,
    >> From looking at the build it looks like the web part is building correctly but the application isn't passing validation, I have no idea why since it is the default app, I've made Office Apps on previous machines without a problem.
    I’m trying to reproduce your issue but failed.
    Here is my steps:
    #1 Install Microsoft Visual Studio Community 2013
    #2 Install Microsoft Office Developer Tools for Visual Studio 2013
    #3 Create a new Apps for Office project and rebuild
    According your error message, the failed step is ValidatePackage, I suspect it is an environment issue, but I cannot identify the root cause basing on the information you post.
    Have you tried to re-install the Visual Studio and Microsoft Office Developer Tools for Visual Studio 2013 or test it on another machine with Microsoft Visual Studio Community 2013?
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • BSI ConnectToDataSet...failed

    Hi We have a problem with the BSI, we had been getting a dump "RFC_ERROR_SYSTEM_FAILURE", I followed the SAP Note 1068271 for the debug, and the result is: =Thu Jan 22 11:53:37 2009 =SAP AG, Walldorf - Business API for BSI TaxFactory 8.0 =RfcAccept c

  • My MacBook will not connect to the Internet, but all of my other devices connect perfectly.

    I have a MacBook and it will not connect to the Internet. It connects to wifi, but then when I open Safari, the page does not load. I have tried forgetting the wifi network, deleting keychain passwords, and restarting the computer, but nothing has wo

  • Can't install Digital Editions

    Downloaded Digital Editions 2.0 and clicked Run, I agreed to EULA, accecpted the default install option, it appeared to install OK and Digital Editions started but did not ask me to activate.  I clicked on Help and a message appeared "Adobe Digital E

  • Planning system value mapping does not work (planingsys)

    Hello, When sending a Material from R3 to SBO one of the materials fails with this error: DI Error -1004 : (-1004) '' is not a valid value for field 'PlaningSys'. The valid values are: 'M' - 'MRP', 'N' - 'None' =| (End of appended Exceptions) I immed

  • How can i format my hard drive

    how do i format the hard drive