OC4J: error compiling intro.java

I've got Oracle9i db (9.2.0.1) & OC4J 9.0.3 installed on Windows 2000 for development. OC4J is installed in E:\oracle\ora90\oc4j, J2EE_HOME is identified as E:\oracle\ora90\oc4j\j2ee\home. I've installed JDK 1.3.1.
I've got a file 'intro.java' that I've got located in E:\oracle\ora90\oc4j\j2ee\home\default-web-app\WEB-INF\classes. It's only intended as an example file, like HelloWorld:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Intro extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
     throws IOException, ServletException {
     response.setContentType("text/html");
     PrintWriter out = response.getWriter();
          out.println("<html>");
          out.println("<head>");
          out.println("<title>Oi!</title>");
          out.println("</head>");
          out.println("<body>");
          out.println("Oi!");
          out.println("</body>");
          out.println("</html>");
If I open a command line, cd to E:\oracle\ora90\oc4j\j2ee\home\default-web-app\WEB-INF\classes & input 'javac intro.java' I get the following errors:
intro.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
intro.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
etc.
I get the impression it's not OC4J - if I go to http://oracle:8888/servlet/HelloWorldServlet, I get the intended output. I would be grateful for further info on this issue..

Okay, thank you.
I've not included it yet - I wonder if there's an overall, inclusive CLASSPATH I ought to have in Environment Variables for what I've got installed (Oracle9i 9.2.0.1, OC4J 9.0.3 on Windows 2000), or is it optimal to include this in the command line by itself only when I'd like to compile instead?
Only info I've found on this is in the OC4J User's Guide, which implies it is okay to identify no classpath. Obviously, I guess this would be incorrect in my case..

Similar Messages

  • Error Compiling With java.mail.Session class

    Hi,
    The Java compiler issues an error message (below) during compilation of the following line:
    Session session = Session.getDefaultInstance( fMailServerConfig, null );
    The error message is:
    bad class file: c:\j2ee_sdk\lib\j2ee.jar(javax/mail/Session.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    javax.mail.Session session = javax.mail.Session.getDefaultInstance( fMailServerConfig, null );
    I have tried switching between JDKs by changing the JAVA_HOME environment variable between JDKs 1.3.x to 1.4.x to 1.5.x and also to the JDK installed with the 2005 Q1 J2EE installation that I am using.
    Any ideas on how to resolve this problem? And help would be GREATLY appreciated.
    Thanks!!!
    Stuart Hoffman

    in Session session = Session.getDefaultInstance( fMailServerConfig, null ); pass the object of properties class instead of mailServerconfig
    now your problem are solved

  • Error compiling jasperreport

    I'm developing an application in JDeveloper, and everything works fine when i run it in JDeveloper, but when i build it and try to run the .jar on it's own i run into a jasperreports compile error.
    c:JDeveloperjdevmyworkCECTestViewdeploy>java -jar cec.jar
    net.sf.jasperreports.engine.JRException: Error compiling report java source file
    s : c:JDeveloperjdevmyworkCECTestViewdeployclassic_1174059230720_737595.j
    ava
    at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJ
    avacCompiler.java:93)
    at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUni
    ts(JRAbstractClassCompiler.java:67)
    at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(J
    RAbstractCompiler.java:190)
    at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
    DefaultCompiler.java:105)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
    CompileManager.java:211)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
    CompileManager.java:197)
    at CEC.view.DataHandler.createReport(DataHandler.java:795)
    at CEC.view.Report.but_Save_actionPerformed(Report.java:345)
    at CEC.view.Report$9.actionPerformed(Report.java:81)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.io.IOException: Cannot run program "javac": CreateProcess error=
    2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJ
    avacCompiler.java:62)
    ... 33 more
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
    e file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 37 more
    here is my code that compiles and builds my pdfs
    public void createReport(String key, String path, File[] file, String query) throws Exception{
    // Load all the reports
    JasperReport[] report = new JasperReport[file.length];
    JasperDesign[] design = new JasperDesign[file.length];
    Map parameters = new HashMap();
    design[0] = JRXmlLoader.load(getClass().getResource(file[0].toString()).openStream());
    for (int i=1; i < file.length; i++){
    design[i] = JRXmlLoader.load(getClass().getResource(file.toString()).openStream());
    report[i] = JasperCompileManager.compileReport(design[i]);
    System.out.println(file[i].toString()+": Compiled OK"«»);
    // Set the custom query for the report if need be
    if (!query.equalsIgnoreCase(""«»)){
    JRDesignQuery designQuery = new JRDesignQuery();
    designQuery.setText(query);
    design[0].setQuery(designQuery);
    // Compile the report and export it to the path that the user selected
    report[0] = JasperCompileManager.compileReport(design[0]);
    System.out.println(file[0].toString()+": Compiled OK"«»);
    parameters.put(key, "PDF JasperReport"«»);
    JasperPrint print = JasperFillManager.fillReport(report[0], parameters, conn);
    OutputStream output = new FileOutputStream(new File(path));
    JasperExportManager.exportReportToPdfStream(print, output);
    output.close();

    i was able to fix this by putting the java bin directory in the PATH variable

  • 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

  • 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

  • Workshop error during compilation of Java class

    Hi,
    I am starting to use Workshop for development. I am getting the following error when I start the debugger.
    I am trying to compile a Java class and don't know how to proceed. Any help is appreciated.
    build:
    Deleting directory C:\DOCUME~1\name\LOCALS~1\Temp\wlw-temp-23835\wlw_compile55184
    Created dir: C:\DOCUME~1\name\LOCALS~1\Temp\wlw-temp-23835\wlw_compile55184
    C:\bea\user_projects\applications\CVXMLBeansApplication\CVXMLBeansClient\
    ERROR: XMLBeansClient.java:12: The package of this type does not match its location on the source path: .
    ERROR: 1 error(s), 0 warning(s).
    BUILD FAILED
    ERROR: Errors found.

    I found the answer nested in the documentation. I had to create folders that mirror the package structure and then place the source file in its appropriate folder.

  • Error compiling Java Program

    I am new to java programming.
    I recently took a java class. In the lab we created a simple program.
    The program was split up in two separate files.
    //Vehicle.java
    public class Vehicle {
         private double load;
         private double maxLoad;
              public Vehicle(double max_Load) {
                   load = 0.0;     
                   maxLoad = max_Load;
              public double getLoad(){
                   return load;
              public double getMaxLoad(){
                   return maxLoad;
              boolean addBox(double weight) {
                   if ((weight + load) > maxLoad)
                        return false;
                   else
                        load=weight+load;     
                        return true;
    }//end of class Vehicle
    on a complete separate file
    public class TestVehicle {
    public static void main(String[] args) {
    // Create a vehicle that can handle 10,000 kilograms weight
    System.out.println("Creating a vehicle with a 10,000kg maximum load.");
    Vehicle vehicle = new Vehicle(10000.0);
    // Add a few boxes
    System.out.println("Add box #1 (500kg) : " + vehicle.addBox(500.0));
    System.out.println("Add box #2 (250kg) : " + vehicle.addBox(250.0));
    System.out.println("Add box #3 (5000kg) : " + vehicle.addBox(5000.0));
    System.out.println("Add box #4 (4000kg) : " + vehicle.addBox(4000.0));
    System.out.println("Add box #5 (300kg) : " + vehicle.addBox(300.0));
    // Print out the final vehicle load
    System.out.println("Vehicle load is " + vehicle.getLoad() + " kg");
    when we complied the program we ONLY compiled TestVechile.java
    ( javac TestVechile.java) and BOTH the class compiled successfully. When I tried to compile the TestVehicle class at home I got an error at line 6 in TestVehicle.java.
    Please any help would be greatly appreciated.
    - Alex

    To compile TestVehicle.java, you need either Vehicle.java or Vehicle.class -- with neither of them, the compiler doesn't know whether "new Vehicle(10000.0)" is legal or not.

  • Error when compiling SearchBean.jav

    IN the scheduler portlet installation steps using the latest JPDK 3.0.9.1, when compiling SearchBean.java i get the following error :
    D:\OiAS\Apache\Apache\htdocs\schedulerportlet>javac ConnectionParams.java
    D:\OiAS\Apache\Apache\htdocs\schedulerportlet>javac SearchBean.java
    SearchBean.java:607: Undefined variable or class name: ConnectionParams
    "(DESCRIPTION=(ADDRESS=(HOST="+ConnectionParams.s_hostName+")"+
    ^
    SearchBean.java:608: Undefined variable or class name: ConnectionParams
    "(PROTOCOL=tcp)(PORT="+ConnectionParams.s_portNumber+"))"+
    ^
    SearchBean.java:609: Undefined variable or class name: ConnectionParams
    "(CONNECT_DATA=(SID="+ConnectionParams.s_databaseSID+")))";
    ^
    3 errors
    D:\OiAS\Apache\Apache\htdocs\schedulerportlet>
    Can any one tell me the reason of these 3 errors ?
    please I need help
    null

    I've got exactly the same problem.
    Some advices would be nice.
    Thanks.

  • 6 errors trying to compile TalkClientApplet.java

    Hello:
    Trying to compile TalkClientApplet.java at:
    http://java.sun.com/docs/books/tutorial/deployment/applet/ex5/TalkClientApplet.java
    on the jdk1.5.0_06, Windows XP, and I received the following errors:
    TalkClientApplet.java:94:incomparable types:boolean and <nulltype>
    if(receivedThread ==null){
    TalkClientApplet.java:99:incompatible types
    found:java.lang.Thread
    required:boolean
    receiveThread=new Thread(this);
    TalkClientApplet.java:100:boolean cannot be dereferenced
    receiveThread.start();
    TalkClientApplet.java:150:incompatible types
    found :<nulltype>
    required:boolean
    receiveThread=null;
    TalkClientApplet.java:186:incomparable types:boolean and <nulltype>
    if(receiveThread==null){
    TalkClientApplet.java:258:incomparable types:java.lang.Thread and
    boolean while (Thread.currentThread()==receiveThread){
    Thanks in advance for your help.

    Hello:
    I am following the code from:
    http://java.sun.com/docs/books/tutorial/deployment/applet/ex5/TalkClientApplet.java
    which was pointed to from:
    http://java.sun.com/docs/books/tutorial/deployment/applet/workaround.html
    This is the section:
    private void start(boolean onEDT) {       
    if (DEBUG) {
    System.out.println("In start() method.");
    if (receiveThread == null) {
    trysted = false;
    os = null;
    is = null;
    socket = null;
    receiveThread = new Thread(this);
    receiveThread.start();
    if (DEBUG) {
    System.out.println(" Just set everything to null and started thread.");
    enableGUI(onEDT);
    Thanks

  • Error IFS 20010 while compiling the java files

    Hello Friends,
    The error "IFS 20010 - Failed to get PropertyResorceBundler".....
    This error is generating while compiling the java files which will connect to the iFS with the username, password and the servicename. this error points to the servicename not found.
    I will be very greatfull for any hits or help.....

    Samir,
    You must include $ORACLE_HOME/ifs1.1/settings in you classpath.
    Thank You
    Brian Ball
    null

  • Error while compiling AMImpl.java at server side

    Hi,
    When I'm trying to compile the .java files at server side I'm getting the following errors, Can some one help me what is the issue?
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/webui/XxafpEepRebateCreateCO.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/server/PricelistrebateAMImpl.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    javac: invalid flag: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/picklist/server/DivisionPicklistVOImpl.JAVA
    Thanks,
    Mahesh

    Hi Mahesh
    check if it helps out..
    http://www.rgagnon.com/javadetails/java-0521.html
    AJ

  • Error compiling a controller in java

    hi
    i am woking on an Oracle Configurator Extension. And i am trying to reuse a code made by someone. The code is supposed to be the controler of a page which is a LOV.
    i can't compile the .java because it fails. here you can see the error message.
    GeneralLovPageCO.java:115: cannot resolve symbol
    symbol : class HttpSession
    location: class oracle.apps.cz.cx.tso.webui.GeneralLovPageCO
    HttpSession httpSession = (HttpSession)OAFwkUIHelper.getSession(pageContext);
    ^
    GeneralLovPageCO.java:115: cannot resolve symbol
    symbol : class HttpSession
    location: class oracle.apps.cz.cx.tso.webui.GeneralLovPageCO
    HttpSession httpSession = (HttpSession)OAFwkUIHelper.getSession(pageContext);
    ^
    GeneralLovPageCO.java:352: cannot resolve symbol
    symbol : class HttpSession
    location: class oracle.apps.cz.cx.tso.webui.GeneralLovPageCO
    HttpSession httpSession = OAFwkUIHelper.getSession(pageContext);
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/ApplicationModuleHelper.java:22: cannot resolve symbol
    symbol : class ValueSetSqlHelper
    location: package tso
    import oracle.apps.cz.cx.tso.ValueSetSqlHelper;
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/OAFwkUIHelper.java:30: cannot resolve symbol
    symbol : class HttpSession
    location: class oracle.apps.cz.cx.tso.util.OAFwkUIHelper
    HttpSession httpSession = (HttpSession)sessionData.selectValue(pageContext.getRenderingContext(), "HttpSession");
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/OAFwkUIHelper.java:30: cannot resolve symbol
    symbol : class HttpSession
    location: class oracle.apps.cz.cx.tso.util.OAFwkUIHelper
    HttpSession httpSession = (HttpSession)sessionData.selectValue(pageContext.getRenderingContext(), "HttpSession");
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/OAFwkUIHelper.java:77: warning: createWebBean(oracle.apps.fnd.framework.webui.OAPageContext,java.lang.String) in oracle.apps.fnd.framework.webui.OAControllerImpl has been deprecated
    OARawTextBean oarawtextbean = (OARawTextBean)ctr.createWebBean(oapagecontext, "RAW_TEXT");
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/ApplicationModuleHelper.java:81: cannot resolve symbol
    symbol : class ValueSetSqlHelper
    location: class oracle.apps.cz.cx.tso.util.ApplicationModuleHelper
    ValueSetSqlHelper helperob = new ValueSetSqlHelper();
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/ApplicationModuleHelper.java:81: cannot resolve symbol
    symbol : class ValueSetSqlHelper
    location: class oracle.apps.cz.cx.tso.util.ApplicationModuleHelper
    ValueSetSqlHelper helperob = new ValueSetSqlHelper();
    ^
    /oa/form/appDB/comn/java/oracle/apps/cz/cx/tso/util/ApplicationModuleHelper.java:114: cannot resolve symbol
    symbol : variable ValueSetSqlHelper
    location: class oracle.apps.cz.cx.tso.util.ApplicationModuleHelper
    String ret = ValueSetSqlHelper.assembleSql(select.toString(),
    ^
    12 errors
    1 warning
    thx
    Dan
    Message was edited by:
    user535835

    Im surprised that you've got the error only in the usage and not at the import. You must check if your jre and classpath contains the jsdk, servlet dev kit configured properly.

  • Error while compiling PricingUserExits.Java on IPC Server

    Hi,
    While compiling PricingUserExits.Java on IPC Server, I am getting "cannot resolve symbol" error for class object.
    Can anyone reply back procedure of how to complie this Java Program and neccessary steps....
    Thank you for support.
    Regards,
    Sameer

    Dear Andrew,
    Thanks for reply.
    As per our understanding, after compilation of java file we get class file.
    While compilation we are getting following error:
    On DOS Prompt:
    E:\usr\sap\ipc\lib\userexits>javac PricingUserExits.java
    PricingUserExits.java:172: cannot resolve symbol
    symbol  : class FormulaNotImplementedException
    location: class userexits.PricingUserExits
                                    throw new FormulaNotImplementedException(prItem,
    "group key formula", keyFormNo);
                                              ^
    PricingUserExits.java:195: cannot resolve symbol
    symbol  : class FormulaNotImplementedException
    location: class userexits.PricingUserExits
                                    throw new FormulaNotImplementedException(prItem,
    "copy formula", copyFormulaNo);
                                              ^
    Please reply back which IPC Java libraries are required and what is the path.
    If you have any documentation related to it then please email it to [email protected]
    Regards,
    Sameer

  • Error while compiling VO  java files

    I am getting following error while compiling VO java class in my instance
    Exception in thread "main" java.lang.ClassFormatError: com.sun.tools.javac.main.Main (erroneous method access flags)
    at JvClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.read_methods() (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.parse() (/usr/lib/libgcj.so.5.0.0)
    at JvDefineClass(java.lang.Class, byte[], int, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.defineClass(java.lang.ClassLoader, java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) (/usr/lib/libgcj.so.5.0.0)
    at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
    at JvFindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at JvBytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
    at JvVerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __libc_start_main (/lib/tls/libc-2.3.4.so)
    Please advise me to get rid of this one.
    -- Manoj
    Edited by: 856261 on May 4, 2011 12:55 AM

    I created custom VO and files in my local JDev and it is working properly.
    I wanna migrate it to actual instance.So my question is is it mandatory to compile custom java file in application server or i can use same which i used in my local machine(windows)?
    -- Manoj

  • Error when compiling the Java file

    Hi I have created a jsp program that uses the java files. i have jboss installed. when i compile the java file it gives compilation error saying that javax.servlet.jsp.tagext.TagSupport not found.
    Although when i installed the Tomcat seperately i did not get any compilation error. can anyone tell me how to get out of this problem when Tomcat is not installed seperately.
    Thanks,
    Rakesh

    Hi
    I think these errors are due to incorrect classpath settings.While compiling HelloHome ..Helloremote must be in classpath.Also if u have packaged them u must be in the package root during compilation ie if uor remote & home interface is in a package called "ejbserver"
    then while compiling u must be in the folder above ejbserver & compile command is
    javac .\ejbserver\*.java
    If uor home & remote interface is in different folder check wheather u have imported the remote interface inside home interface file.

Maybe you are looking for

  • Can you manually advance a Captivate slide presentation with a remote control and a projector.

    I have published a large volument of PowerPoint presentations with Captivate 5.0 and intend to distribute the presentations to live instructors as a means to control content delivered live by instructors to the students.  The files are aggregrated in

  • HT1338 how do you copy all deleted emails to external hard drive

    i am running out of space on my macbook pro...  what is the easiest way to put them on a external drive?

  • Mountain Lion and Network Server

    I am new to the Mac world and now have a super iMac working with Mountian Lion, Paralles 8 & Windows. I have a synology NAS and, with NetDrive everything works pretty well. I want the principal folders of the NAS to appear on my Desktop when I boot o

  • Create Folder with a category definition?

    Hi, Is there any way to attach a CATEGORY_DEFINITION to a folder in a worskpace?. I have only seen CATEGORY_CONFIGURATION attached. What I am trying to say, is there is any way to assign category attribute information to subfolder in a worksapce. Tha

  • I'm installing Netweaver2004s ,I have problem

    I got errors below while installing Sap NetWeaver2004s. How can I solve the problem? Thanks. ERROR 2007-04-03 11:58:43 CJS-00030 Assertion failed: lsnrctl: Parameter dbHome has to be a valid ORACLE_HOME. ERROR 2007-04-03 11:58:43 MUT-03025 Caught ESA