Error compiling CitiesSql.jsp /SessionBean/

http://otn.oracle.com/sample_code/tech/java/jsp/htdocs/jspdemo/jspdemohome.html
jsp Samples - SessionBean.jws/CitiesSql.jsp
Error:(40)cannot access class oracle.jsp.jml.JmlFPNumber;
file oracle\jsp\jml\JmlFPNumber.class not found.
Error: (40) cannot access class oracle.jsp.jml.JmlNumber;
file oracle\jsp\jml\JmlNumber.class not found.
Error: (40) cannot access class oracle.jsp.jml.JmlBoolean;
file oracle\jsp\jml\JmlBoolean.class not found.
Any idea ? missing *.jar ? which one ?
Thanks Nasko

Hi,
I think [SAP NetWeaver AS, Java |SAP NetWeaver Application Server; will be more suitable.
I suggest to get more detailed traces at J2EE logs. because the statement : Error compiling ... , doesn't help much.
Probably, you could start with some basic checks on environment variable JAVA_HOME, profile parameter 'jstartup/vm/home', go through standard notes like below to check the recommended JVM settings,...
  #723909 - Java VM settings for J2EE 6.40/7.0
  #716604 - Access to Sun J2SE and recommended J2SE options
Regards,
Vincent

Similar Messages

  • Error on deploying JSP web module

    Hi,
    I've created a JSP web module that consumes a web service. I'm following this tutorial
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true]
    But when I deploy my ear project, I had this error
    Application error occurred during the request procession.
    Details:   com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
    Error compiling [/sample.jsp] of alias [LocalDevelopmentdc_webmodulesap.com] of J2EE application [sap.com/dc_webmoduleear].
    Exception id: [001CC43ABAC00086000056FB00006CEA0004A5A7E1A64FD3]
    Here's the java code in the JSP:
    InitialContext ctx = new InitialContext();
    WS_Preview obj = (WS_Preview).ctx.lookup("java:comp/env/newproxy");
    WS_PreviewViDocument port = (WS_PreviewViDocument)obj.getLogicalPort("Config1Port_Document",WS_PreviewViDocument.class);
    GetElementXHTMLValueResponse result = new GetElementXHTMLValueResponse();
    result = port.GetElementXHTMLValue("A","A","A");
    out.print(result);
    Does anyone know how to solve this error? Thanks

    Because you do not have an infrastructure database, you will not be able to deploy your web service from OEM as one of its steps is to register the service in the UDDI registy - the Web service deployment and UDDI registration are tied tightly together in OEM right now.
    All is not lost, however. You have two routes to deploy the Web Service on Oracle9iAS:
    1. Use DCM, which is the command line interface to deploy applications/webservices/wars/ears on Oracle9iAS. It does not have the dependency on UDDI.
    To deploy a Web service using DCM, say your Web service ear file were named test.ear your deployment command would look something like:
    c:\oracle\ora903\dcm\bin\dcmctl deployApplication -file test.ear
    See the doc for much more detail to let you tailor DCM to do all the stuff that is available through EM or specific to your application:
    http://download-west.oracle.com/docs/cd/A97329_03/core.902/a92171/dcm.htm#643834
    2. In JDeveloper 9.0.3, there is a DCM Servlet that lets you do remote deployment to Oracle9iAS:
    http://otn.oracle.com/products/jdev/htdocs/readme_9031.html#viadcm
    I suspect your deployment problem from Oracle9i JDeveloper may be (this may be an incorrect assumption) due to trying to use a connection that is setup as if Oracle9iAS is a standalone OC4J.
    Mike.

  • Strange error in compiling a jsp in jdev

    I tried to compile a jsp using a custom jsp tag. All the requried java libraries are set in project's library path and additional path. But I got a class name used by the tag as the compiling error. No any message regarding to it. I think this may be related to the jsp compiler checking the custom tag's attribute type and tld file, but don't know how to fix it in jdev environment. Any help will be appreciated.

    This is what I set in web.xml:
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/j2ee/jsp/tld/ordim/intermedia-taglib.tld</taglib-uri>
    <taglib-location>/WEB-INF/intermedia-taglib.tld</taglib-location>
    </taglib>
    I set the path to the tag library jar file ordjsptag.jar in the additional path of the project. I think the compiler can find the jar file.
    This tag library also uses another component of Oracle: ordim.jar and it is also in the library path of the project. I can import the class in ordim.jar from the project's jsp page. But when I compile the jsp that contains my custom tag, I got error message: "oracle.ord.im.OrdImage" which is a class name in ordim.jar.

  • Error compiling [/jsps/explorer/enterwsdl_main.jsp] of alias [wsnavigator]

    hello
    I am getting the above error when I try to start the Web Services Navigator in my J2EE engine of Solution Manager 4.0 system.
    I am on NW 7.0 Java Components SP10.
    The full error message is:
    500 Internal Server Error
    com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
      Error compiling [/jsps/explorer/enterwsdl_main.jsp] of alias [wsnavigator] of J2EE application
    Can anyone help me out please? Or is it a case of just applying the latest SP?
    Many Thanks
    Steve

    I have had a suggestion that I need to make sure that tools.jar is in the classpath for Tomcat. How can you get the value of variables Tomcat is using such as its CLASSPATH or JAVA_HOME ? Where are these set ? I assume that there must be a config file someplace...
    Thanks in advance for any suggestions,
    -James

  • Jdeveloper toolbox -  links fail with "Errors compiling:C:\jdevhome\jdev\myclasses\.jsps\\_OA.java"

    Hi,
    I'm running 12.1.3 in virtualbox and the OAF toolbox tutorials work after logging onto EBS.
    After installing jdeveloper (on windows 8) and doing the documented setup, even the "Hello World" test fails when run in jdeveloper.
    I've double checked the setup and that the jdeveloper patch version is right (p9879989_R12_GENERIC)
    and have the "Default Local IP address" checkbox selected as well.
    I guess some windows install/config is incorrect,but don't know what.  Any ideas?
    Thanks.
    The exact browser error is -
    500 Internal Server Error
    JSP Error:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    OracleJSP:oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\jdevhome\jdev\myclasses\.jsps\\_OA.java
    and the full stack is  -
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    C:\jdevbin\jdk\bin\javaw.exe -hotspot -classpath C:\jdevbin\j2ee\home\oc4j.jar;C:\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -XX:MaxPermSize=256M -Doracle.j2ee.dont.use.memory.archive=false -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    26/12/2013 11:09:23 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    26/12/2013 11:09:23 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source C:\jdevbin\jdev\appslibrt\xml.jar (from <library> in /C:/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source C:\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /C:/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in C:\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source C:\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /C:/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /C:/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in C:\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib\uix2.jar (from WEB-INF/lib/ directory in C:\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib) has the same filename but is not identical to /C:/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /C:/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 10061 ms.
    Target URL -- http://192.168.56.1:8988/OA_HTML/test_fwktutorial.jsp
    13/12/26 11:09:29 Oracle Containers for J2EE 10g (10.1.3.3.0)  initialized
    26/12/2013 11:09:44 oracle.jsp.logger.JspMessages infoCannotDispatchJspPage
    INFO: Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\jdevhome\jdev\myclasses\.jsps\\_OA.java</H3><pre></pre>
        at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java:304)
        at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:731)
        at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:456)
        at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:413)
        at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:705)
        at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:694)
        at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
        at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
        at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
        at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
        at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
        at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
        at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
        at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
        at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
        at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
        at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
        at java.lang.Thread.run(Thread.java:595)

    Hi,
    i think you missed JDEV_HOME environment variable.
    below blog may help,
    Oracle Apps By Kishore: Steps to make JDeveloper Environment

  • OLite compile JSF JSP error

    I'm using Olite 10g. I created a JSF JSP in JDeveloper and compiled and tested in. I packaged the web application into a WAR file and expaned it into the OLite webtogo root. When I use the package wizard to publish the web application, the JSF JSP fails to compile with this message:
    oracle.jsp.parse.JspParseException: Line # 4, <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    The JSP lines look like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    Does anyone have any thoughts as to how to resolve this issue?
    Thank-you.

    Here is a bit more with respect to the package wizard output message:
    C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\_pages
    Created Directory _pages : false
    These are the jspc arguments: -appRoot C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\ -d C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\_pages -packageName maintab -srcdir C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\pages -verbose -addclasspath C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\classes;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-beanutils.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-collections.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-digester.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-logging-api.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\commons-logging.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\jsf-api.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\jsf-impl.jar;C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\WEB-INF\lib\jstl.jar C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\login.jsp C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\maintab.jsp C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\index.jsp
    Translating file: C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\login.jsp
    Translating file: C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\login.jsp
    Parse error in login.jsp:
    oracle.jsp.parse.JspParseException: Line # 4, <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    Error: java.io.FileNotFoundException: C:\oacle\Olite10g\Mobile\Sdk\wtgsdk\root\maintab\http:\java.sun.com\jsf\html (The filename, directory name, or volume label syntax is incorrect)
    ...

  • Error Compiling JSP

    I am running a custum OA page and forward it to a jsp page. I got all the jtf class and jsp files in my directory, Also added jtf/jar to my additional classpath project settings ,but gives me the following error:
    Errors compiling:C:\JdevIDE\jdevhome\jdev\myclasses\.jsps\\_jtfacerr.java
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    method getExceptionStackTrace(java.lang.Throwable) not found in class oracle.apps.jtf.admin.adminconsole.HtmlWriter
    Where as this method is sitting in the right directory. Do I need to setup OJSPCOMPILE utility and/or apply Patch 2886919 "Precompiler for JSP Pages"
    any suggestions please.Thanks

    I did as you suggested. but same error pops up.
    On my OAF page , I have submit button, which calls a CO and there I am forwarding the control to a jsp page which has some includes:
    example-
    <%@include file="jtfincl.jsp" %>
    "hello jsp"
    If I remove the include , I get hello jsp printed on the page.
    I went through 'Launching a JTT Page from an OA Framework Application'
    but did not get any clue how to implement it in my custom application.
    would JTF files go under jdev/myhtml/OA_HTML ?
    I have put all the classes under oracle/apps/jtf
    Any reference to how to set the classpath for jtf files, in OA would be a great help.
    Thanks

  • Getting compilation errors in seeded jsps in R12

    Hi,
    We already had iStore 11i implemented since 8 years.
    Now we are implementing iStore R12.
    We have a custom jsp 'xxibeCCkpExpCheckout.jsp' in 11i, which we are migrating to R12.
    However in R12 we are getting following compilation errors in this jsp:
    ibeCCkpBHdrShipIncl.jsp:
    Error(841,1): PrintWriter not found
    Error(841,1): Writer not found
    ibeCCkpValBillPay.jsp
    Error(40,2): field optNewCreditCard not found
    Error(48,2): field optNewCreditCard not found
    Error(54,2): identifier errMap not found
    Error(64,2): identifier errMap not found
    Error(73,2): field errMap not found
    Please note that above seeded jsps are included in the custom jsp.
    Since the errors are coming through seeded jsps, we are not sure how to fix them.
    Any prompt help/suggestion in this regard is appreciated.
    Thanks

    Hello,
    Please review your custom jsp and note that the following are obsoleted packages for Release 12 -
    ibeCCkpCHdrShipIncl.jsp, ibeCCkpHdrShip.jsp, ibeCCkpHdrBillPay.jsp
    Confirm the ibeCCkpBHdrShipIncl.jsp is Release 12.1 version (ie version 120.6).
    Also, there are changes in ibeCCkpValBillPay.jsp for Release 12 as compared to 11i. Confirm your ibeCCkpValBillPay.jsp is Release 12.1 version (ie version 120.1.12010000.2 or higher).
    Confirm no errors for manual compile of the seeded jsp's and Confirm datestamp is current for class files in $COMMON_TOP/_pages
    References:
    Where Are The iStore Cached Java Classes In R12 ? (Doc ID:1149243.1)
    How to Enable Automatic Compilation of JSP pages in R12 Environment (Doc ID:458338.1)
    Please advise on any additional questions or issues.
    Thank You,
    Deborah Bourgeois, Oracle Customer Support

  • Errors compiling jsp

    I am new to developing jsp pages. I have created a jsp that pulls data from an HTML form and inputs that data into an ACCESS database. I am storing the variables representing the columns of the table in a Bean. I am successful in compiling the bean, but when I try to compile the jsp page I am getting all kinds of errors that make me think the servlet cannot properly instantiate the bean.
    <%@ page language="java" %>
    <!--Importing the Packages-->
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.io.*" %>
    <%@ page import="treesubmittal" %>
    <HTML>
    <HEAD>
    <TITLE>OakMapper Tree Submittal</TITLE>
    </HEAD>
    <BODY BGCOLOR="BBE4C6" TEXT="0E351A">
    I left out a bunch to save room-I did not think it was causing the errors.
    </FORM>
    </TD></TR></TABLE>
    <%
    //Creating Database Instanse
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:http://hilda.espm.berkeley.edu/website/OakMapperResearch/plotsubmittal/SuddenOak.mdb","","");
    //Creating the Connection Statement
    Statement stmt = con.createStatement();
    ResultSet recset = stmt.executeQuery("Select * From Treesubmittals where SubmissionID>0");
    %>
    <!.. Instantiate the treesubmittal bean with an id of "treesubmittal" ..>
    <jsp:useBean id="treesubmittal" scope="session" class="treesubmittal" />
    <!.. Set the values of the treesubmittal bean to the request values ..>
    <jsp:setProperty name="treesubmittal" property="*" />
    <%
    if (strEmail !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.EMAIL" + strEmail);
    recset.GEOCODED="Pending";
    recset.DATE_ENTER=Date;
    if (strSpecies !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.SPECIES" + strSpecies);
    if (strOther_Tree !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.OTHER_TREE" + strOther_Tree);
    if (strBackground !="") ;{
    statement.executeUpdate("INSERT INTO Treesubmittal.BACKGROUND" + strBackground);
    if (strBackgr !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.BACKGR" + strBackgr);
    if (strSetting !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.SETTING" + strSetting);
    if (strSettingoth !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.SETTINGOTH" + strSettingoth);
    if (strDead_Leave !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.DEAD_LEAVE Yes");
    if (strCrown_Disc !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.CROWN_DISC Yes");
    if (strBark_Disco !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BARK_DISCO Yes");
    if (strBore_Holes !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BORE_HOLES Yes");
    if (strShoot_Dieb !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.SHOOT_DIEB Yes");
    if (strBleeding !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BLEEDING Yes");
    if (strHypoxylon !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.HYPOXYLON Yes");
    if (strFrass !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.FRASS Yes");
    if (strAddress !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ADDRESS" + strAddress);
    if (strCity !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.CITY" + strCity);
    if (strZipcode !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ZIPCODE" + strZipcode);
    if (strCounty !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.COUNTY" + strCounty);
    if (strZone !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ZONE" + strZone);
    if (strY !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.Y" + strY);
    if (strX !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.X" + strX);
    if (strDead_Leave !="") {
    strDead_Leave1="Yes";
    else{
    strDead_Leave1="No";
    if (strCrown_Disc !="") {
    strCrown_Disc1="Yes";
    else{
    strCrown_Disc1="No";
    if (strBark_Disco !="") {
    strBark_Disco1="Yes";
    else{
    strBark_Disco1="No";
    if (strBore_Holes !="") {
    strBore_Holes1="Yes";
    else{
    strBore_Holes1="No";
    if (strShoot_Dieb !="") {
    strShoot_Dieb1="Yes";
    else{
    strShoot_Dieb1="No";
    if (strBleeding !="") {
    strBleeding1="Yes";
    else{
    strBleeding1="No";
    if (strHypoxylon !="") {
    strHypoxylon1="Yes";
    else{
    strHypoxylon1="No";
    if (strFrass !="") {
    strFrass1="Yes";
    else{
    strFrass1="No";
    %>

    I am working in the Sun Studio 4 update 1 IDE and aside from the first error which makes me think the bean is not instantiated they are all the same error: cannot resolve symbol. Any help is most appreciated.
    test$jsp.java [5:1] '.' expected
    import treesubmittal;
    ^
    test$jsp.java [403:1] illegal start of expression
    public class treesubmittal {
    ^
    test$jsp.java [403:1] ';' expected
    public class treesubmittal {
    ^
    test$jsp.java [797:1] cannot resolve symbol
    symbol : variable strEmail
    location: class org.apache.jsp.test$jsp
    if (strEmail !="") {
    ^
    test$jsp.java [799:1] cannot resolve symbol
    symbol : variable strEmail
    location: class org.apache.jsp.test$jsp
    statement.executeUpdate("INSERT INTO Treesubmittal.EMAIL" + strEmail);
    ^
    test$jsp.java [799:1] cannot resolve symbol
    symbol : variable statement
    location: class org.apache.jsp.test$jsp
    statement.executeUpdate("INSERT INTO Treesubmittal.EMAIL" + strEmail);
    ^
    test$jsp.java [801:1] cannot resolve symbol
    symbol : variable GEOCODED
    location: interface java.sql.ResultSet
    recset.GEOCODED="Pending";
    ^
    test$jsp.java [802:1] cannot resolve symbol
    symbol : variable DATE_ENTER
    location: interface java.sql.ResultSet
    recset.DATE_ENTER=Date;
    ^
    test$jsp.java [802:1] cannot resolve symbol
    symbol : variable Date
    location: class org.apache.jsp.test$jsp
    recset.DATE_ENTER=Date;
    ^
    test$jsp.java [804:1] cannot resolve symbol
    symbol : variable strSpecies
    location: class org.apache.jsp.test$jsp
    if (strSpecies !="") {
    ^
    test$jsp.java [806:1] cannot resolve symbol
    symbol : variable strSpecies
    location: class org.apache.jsp.test$jsp
    statement.executeUpdate("INSERT INTO Treesubmittal.SPECIES" + strSpecies);
    ^
    test$jsp.java [806:1] cannot resolve symbol
    symbol : variable statement
    location: class org.apache.jsp.test$jsp
    statement.executeUpdate("INSERT INTO Treesubmittal.SPECIES" + strSpecies);
    ^
    test$jsp.java [810:1] cannot resolve symbol
    symbol : variable strOther_Tree
    location: class org.apache.jsp.test$jsp
    if (strOther_Tree !=""); {
    ^
    test$jsp.java [812:1] cannot resolve symbol
    symbol : variable strOther_Tree
    location: class org.apache.jsp.test$jsp
    statement.executeUpdate("INSERT INTO Treesubmittal.OTHER_TREE" + strOther_Tree);
    ^
    test$jsp.java [812:1] cannot resolve symbol
    symbol : variable statement
    location: class org.apache.jsp.test$jsp
    statement.executeUpdate("INSERT INTO Treesubmittal.OTHER_TREE" + strOther_Tree);
    ^

  • Compilation error for a .jsp file

    I am working with JSP on WebLogic. I have a file called login.jsp, which takes values thru a form and uses a bean to set and get those values. I am getting the following error, can someone help me to figure out why i am getting this error.
    Compilation of 'D:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__login.java' failed:
    D:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__login.java:87: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 7:
    <jsp:useBean id="logBean" scope="request" class="LoginBean" />

    Hey
    Check out the classpath for the application. The server is not able to find the class for that Bean. Also, try using a package name in that Bean Class. It has been a disadvantage with the JSP that it cannot detect the classes in the default package.
    Good luck

  • OC4J JSP Error compiling

    Using: OC4J Standalone, JDK 1.4
    Servelets work OK but JSPs fail to compile. Is this a problem using JDK1.4 (and if so is it possible to tell OC4J to use a lower version)
    Thanks
    The error (running the OC4J Date sample http://localhost:8888/examples/jsp/dates/date.jsp):
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\persistence\_pages\_examples\_jsp\_dates\_date.java
    error: Invalid class file format in c:\j2sdk1.4.0_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\oc4j_extended\j2ee\home\application-deployments\default\defaultWebApp\persistence\_pages\_examples\_jsp\_dates\_date.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package examples.jsp._dates;
    ^
    2 errors

    Ahhh after experimenting I realized what happened:
    1.) The search does not look for words in the Title (only looks in the Body)
    2.) The search does not look for occurances of words if they appear anywhere in the doc but rather only for exact phrase.
    So for the doc you gave me (http://forums.oracle.com/forums/message.jsp?id=767439) here is a test:
    [Search phrase] [did the doc come up?] [comment]
    [oc4j doesn't compile JSPs with JDK 1.4?] [no] [the doc title]
    [JSPs shipped with oc4j] [yes] [exact phrase in body]
    [JSPs shipped oc4j] [no] [words in body but not exact phrase]
    OK I have way to much time on my hands I see -- he he ... but I'm just putting this info out (respectfully of course) just so the forum owner will have the info so maybe he/she might want to change way search is done (add title, etc).
    Best regards
    Matt

  • Error compiling JSP packages

    Please help.
    I have downloaded the J2EE package - Server, Tutorial, etc. I am trying to get a BASIC jsp page with a single class to compile, but haven't had any luck.
    Server error message is:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         etc, etc, etc.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Server log shows:
    [#|2004-04-20T15:13:27.286-0500|SEVERE|j2ee-appserver1.4|org.apache.jasper.compiler.Compiler|_ThreadID=12;|Env: Compile: javaFileName=/C:/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/default-web-module-server//org/apache/jsp/ch06\ch06_jsp.java
    classpath=C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\default-web-module-server;/C:/Sun/AppServer/lib/install/applications/__xa/
    cp=C:\Sun\AppServer\lib\commons-launcher.jar;C:\Sun\AppServer\jdk\lib\tools.jar;C:\Sun\AppServer\lib\admin-cli.jar;C:\Sun\AppServer\lib\appserv-admin.jar;C:\Sun\AppServer\lib\appserv-upgrade.jar;C:\Sun\AppServer\lib\appserv-ext.jar;C:\Sun\AppServer\lib\j2ee.jar;C:\Sun\AppServer\lib\appserv-cmp.jar;C:\Sun\AppServer\lib\appserv-jstl.jar;C:\Sun\AppServer\lib\j2ee-svc.jar;C:\Sun\AppServer\lib\commons-logging.jar;C:\Sun\AppServer\lib\activation.jar;C:\Sun\AppServer\lib\mail.jar;C:\Sun\AppServer\lib\jaxr-api.jar;C:\Sun\AppServer\lib\jaxr-impl.jar;C:\Sun\AppServer\lib\jax-qname.jar;C:\Sun\AppServer\lib\jaxrpc-api.jar;C:\Sun\AppServer\lib\jaxrpc-impl.jar;C:\Sun\AppServer\lib\relaxngDatatype.jar;C:\Sun\AppServer\lib\xsdlib.jar;C:\Sun\AppServer\lib\saaj-api.jar;C:\Sun\AppServer\lib\saaj-impl.jar;C:\Sun\AppServer\lib\appserv-rt.jar;C:\Sun\AppServer\lib\tools.jar;C:\Sun\AppServer\jdk/lib/tools.jar;C:\Sun\AppServer/lib/install/applications/jmsra/imqjmsra.jar;C:\Sun\AppServer\imq\lib/imq.jar;C:\Sun\AppServer\imq\lib/jaxm-api.jar;C:\Sun\AppServer\imq\lib/imqadmin.jar;C:\Sun\AppServer\imq\lib/imqutil.jar;C:\Sun\AppServer\imq\lib/fscontext.jar;C:\Sun\AppServer\imq\lib/providerutil.jar;C:\Sun\AppServer/lib/ant/lib/ant.jar;C:\Sun\AppServer/pointbase/lib/pbclient.jar;C:\Sun\AppServer/pointbase/lib/pbembedded.jar
    cp=C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\default-web-module-server
    cp=C:\Sun\AppServer\lib\install\applications\__xa
    extension dir=C:\Sun\AppServer\jdk/jre/lib/ext;C:\Sun\AppServer\domains\domain1/lib/ext
    work dir=C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\default-web-module-server
    srcDir=C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\default-web-module-server
    include=org/apache/jsp/ch06/ch06_jsp.java
    |#]
    [#|2004-04-20T15:13:27.286-0500|SEVERE|j2ee-appserver1.4|org.apache.jasper.compiler.Compiler|_ThreadID=12;|Error compiling file: /C:/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/default-web-module-server//org/apache/jsp/ch06\ch06_jsp.java     [javac] Compiling 1 source file
    [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\default-web-module-server\org\apache\jsp\ch06\ch06_jsp.java:6: package ch06a does not exist
    [javac] import ch06a.ch06class; I have also tried "import ch06a.*" with the same results.
    [javac] ^
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Autoexec.bat reads:
    SET PATH=C:\Sun\AppServer\bin;C:\Sun\AppServer\jdk\bin;c:\Sun\AppServer\share\bin;c:\Sun\AppServer\jdk\jre\bin;
    SET JAVA_HOME=c:\Sun\AppServer\jdk;
    SET J2EE_HOME=C:\Sun\AppServer;
    SET CLASSPATH=C:\Sun\AppServer\lib\j2ee.jar;c:\Sun\AppServer\jdk\lib\tools.jar;c:\Sun\AppServer\domains\domain1\lib\classes;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I am developing the jsp in c:\Sun\AppServer\domains\domain1\docroot\ch06 (I know that I shouldn't, but I am trying anything at this point).
    ch06 structure is
    |-WEB-INF
    |-classes
    | |-ch06a
    | |-ch06class.class
    |-lib
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ch06.jsp:
    <%@ page import="ch06a.*" %>
    <HTML>
         </HEAD>
              <TITLE>Using a JavaBean</TITLE>
         <HEAD>
         <BODY>
              <H3>Using a JavaBean</H3>
              <% ch06class messager = new ch06class(); %>
              The message is: <%= messager.msg() %>
         </BODY>
    </HTML>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ch06class.java:
    package ch06a;
    public class ch06class{
         public ch06class(){
         public String msg(){
              return "Hello from JSP!";
    Please let me know if I can supply anymore information.
    Thanks

    Make sure have the latest version of the application server. The previous release had a bug as described in this thread:
    http://forum.java.sun.com/thread.jsp?forum=136&thread=473280
    Here is a reply from that thread from one of the Web container engineers:
    The error message about the missing Java compiler is misleading, and is being caused by a bug in the way compilation error messages are being propagated.
    This problem has been fixed in the latest Appserver 8.0 PE release.
    I think your JSP fails to compile because of an error in your JSP. Your appserver log should contain the real compilation error. Can you check?
    BTW, the date example describe in this chapter does contain a class file:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro2.html#wp84418

  • Error while running JSP's on tomcat 4.1.18- org.apache.jasper.JasperExcepti

    I am getting the following error when I compile the JSP page. I have set my CLASSPATH correctly, still I am getting the error.Where should I place my class file???
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:41: cannot resolve symbol
    symbol : class UserData
    location: class org.apache.jsp.JspSession_NextPage_jsp
    UserData user = null;
    ^
    An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp
    Generated servlet error:
    D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:43: cannot resolve symbol
    symbol : class UserData
    location: class org.apache.jsp.JspSession_NextPage_jsp
    user = (UserData) pageContext.getAttribute("user", PageContext.SESSION_SCOPE);
    ^
    An error occurred at line: 0 in the jsp file: /JspSession_NextPage.jsp
    Generated servlet error:
    D:\Program Files\jakarta-tomcat-4.1.18-LE-jdk14\work\Standalone\localhost\_\JspSession_NextPage_jsp.java:46: cannot resolve symbol
    symbol : class UserData
    location: class org.apache.jsp.JspSession_NextPage_jsp
    user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData");
    ^
    3 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         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:260)
         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.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:2415)
         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:170)
         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:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.18-LE-jdk14

    Have you placed the UserData class in the same directory?

  • Error in precompiling JSPs using OJSPC

    Hi,
    I am precompiling JSPs in war file using ojspc as specified below.
         ojspc -output myapp.war app.war
    However I am getting following error:
    Detected archive, now processing contents of app.war...
    Setting up temp area...
    Expanding archive in temp area...
    WARNING: IGNORED file: /WEB-INF/lib/jsf-impl.jar
    WARNING: IGNORED file: /WEB-INF/lib/jsf-ri.jar
    Parse error in AddNewAttachment.jsp:
    oracle.jsp.parse.JspParseException: /AddNewAttachment.jsp: Line # 48,
    actionListener="#{addAttachmentBackingBean.cancel}"/>
    Error: A String literal value, "#{addAttachmentBackingBean.cancel}", has been pr
    ovided for attribute actionListener which has an associated deferred method with
    void signature
    Removing temp area...
    Can anbody help me to solve this problem?
    Thanks.
    Regards,
    Umesh

    Hi,
    If I create a method via the binding editor in JDev it creates a managed bean method with a void return type as default.
    eg.
        public void cmdlink_actionListener(ActionEvent actionEvent) {
            // Add event code here...
        }could it have anything to do with the two OJSPC warnings? jsf-impl.jar should be included in your war file. I haven't seen this warning when OJSPC is compiling.
    Brenden

  • 9.0.3 Preview - Class not found error after including jsp:useBean

    Hi,
    I got a Java.lang.NoClassDefFoundError while compiling a JSP Page, after including a simple web bean as follows:
    <jsp:useBean id="catviews" scope="request" class="CategoryView" />
    <jsp:setProperty name="catviews" property="*" />
    somewhere within the HTML page...
    <%= catviews.getCategory() %>
    The JSP page without the bean compiles fine and the Javabean itself compiles without error. The bean class is where JDev automatically puts it (i.e in a sub-directory of the classes directory within the project) and JDev does not raise any error on that JSP Page before compiling.
    The error seems to point to the first line of the page, to the directive of the JSP page:
    <%@ contentType="text/html" ... %> which is apparently harmless. What can be wrong ?
    Thanks for your reply.

    'Class not found' means 'Class not found' , the class you are referencing is not in your project's classpath. You should make sure your project's classpath point to the location where this class is deployed to. This could be a directory or a .jar file. You should also include the package name as part fo the class.

Maybe you are looking for

  • Vendor report for ABC indicator field

    Hi All, My client uses field ABC indicator in the purchasing data view of the vendor master. They want to have reports based on this field. Are there any standard reports in SAP which can give total purchased value and quantity for a vendor with spec

  • JSM - Creating Job Documentation from Job Request itself

    Hi all, I am still exploring JSM, and I know its possible to create Job Request (Job Req) from Job Documentation (Job Doc). But is it possible to create the reverse (Job Doc from Job Req) ? This will be great, if the user is creating Job Req from "De

  • Problem opening reports with a user in the Oracle Directory.

    I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory. I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to

  • Po requisition workflow at distribution level

    Hi All, I am having issue with customization standard po requistion workflow. In this i have to get the approvals to be done at distribution level w.r.t project ,task,award.There are list of approvers described within a approval matrix to whom the ap

  • SAP PI Backup: Cannot find InitSID profile backup

    Dear Expert, Im Finish install SAP PI 7.4 with database oracle 11g at windows server. but, I will backup database (ABAP) with DB13 error: I find profile backup at /oracle/SID/11203/dbs doest exist. backup use profile initSID.sap. please the advice..