Variable textArea not found in class javax.swing.JFrame...

Making progress on this issue -- but still stuck. Again trying to get the text from a JTextArea on exit:
        frame.addWindowListener
       (new WindowAdapter() {
         public void windowClosing(WindowEvent e)
            System.out.println("Why me???" + frame.textArea.getText());
        });User MARSIAN helped me understand the scope fo the variables and now that has been fixed. Unfortunately I cannot access my variable textArea in the above code. If get this error:
Error: variable textArea not found in class javax.swing.JFrame
What am I doing wrong?
import  java.net.*;
import  javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import FragImpl.*;
public class Framework extends WindowAdapter {
    public int numWindows = 0;
    private Point lastLocation = null;
    private int maxX = 500;
    private int maxY = 500;
    JFrame frame;
    public Framework() {
        newFrag();
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        maxX = screenSize.width - 50;
        maxY = screenSize.height - 50;
        makeNewWindow();
    public void makeNewWindow() {
        frame = new MyFrame(this);  //*
        numWindows++;
        System.out.println("Number of windows: " + numWindows);
        if (lastLocation != null) {
            //Move the window over and down 40 pixels.
            lastLocation.translate(40, 40);
            if ((lastLocation.x > maxX) || (lastLocation.y > maxY)) {
                lastLocation.setLocation(0, 0);
            frame.setLocation(lastLocation);
        } else {
            lastLocation = frame.getLocation();
        System.out.println("Frame location: " + lastLocation);
        frame.setVisible(true);
        frame.addWindowListener
       (new WindowAdapter() {
         public void windowClosing(WindowEvent e)
            System.out.println("Why me???" + frame.textArea.getText());
    //This method must be evoked from the event-dispatching thread.
    public void quit(JFrame frame) {
        if (quitConfirmed(frame)) {
            System.exit(0);
        System.out.println("Quit operation not confirmed; staying alive.");
    private boolean quitConfirmed(JFrame frame) {
        String s1 = "Quit";
        String s2 = "Cancel";
        Object[] options = {s1, s2};
        int n = JOptionPane.showOptionDialog(frame,
                "Windows are still open.\nDo you really want to quit?",
                "Quit Confirmation",
                JOptionPane.YES_NO_OPTION,
                JOptionPane.QUESTION_MESSAGE,
                null,
                options,
                s1);
        if (n == JOptionPane.YES_OPTION) {
            return true;
        } else {
            return false;
     private void newFrag()
          Frag frag = new FragImpl();
    public static void main(String[] args) {
        Framework framework = new Framework();
class MyFrame extends JFrame {
    protected Dimension defaultSize = new Dimension(200, 200);
    protected Framework framework = null;
    private Color color = Color.yellow;
    private Container c;
    JTextArea textArea;
    public MyFrame(Framework controller) {
        super("New Frame");
        framework = controller;
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        setSize(defaultSize);
        //Create a text area.
        textArea = new JTextArea(
                "This is an editable JTextArea " +
                "that has been initialized with the setText method. " +
                "A text area is a \"plain\" text component, " +
                "which means that although it can display text " +
                "in any font, all of the text is in the same font."
        textArea.setFont(new Font("Serif", Font.ITALIC, 16));
        textArea.setLineWrap(true);
        textArea.setWrapStyleWord(true);
        textArea.setBackground ( Color.yellow );
        JScrollPane areaScrollPane = new JScrollPane(textArea);
        //Create the status area.
        JPanel statusPane = new JPanel(new GridLayout(1, 1));
        ImageIcon icoOpen = null;
        URL url = null;
        try
            icoOpen = new ImageIcon("post_it0a.gif"); //("doc04d.gif");
        catch(Exception ex)
            ex.printStackTrace();
            System.exit(1);
        setIconImage(icoOpen.getImage());
        c = getContentPane();
        c.setBackground ( Color.yellow );
        c.add ( areaScrollPane, BorderLayout.CENTER )  ;
        c.add ( statusPane, BorderLayout.SOUTH );
        c.repaint ();
}

Yeah!!! It works. Turned out to be a combination of DrKlap's and Martisan's suggestions -- had to change var frame's declaration from JFrame to MyFrame:
    MyFrame frame;Next, created the external class -- but again changed JFrame references to MyFrame:
public class ShowOnExit extends WindowAdapter {
//   JFrame aFrame;
   MyFrame aFrame;
   public ShowOnExit(MyFrame f) {
      aFrame = f;
   public void windowClosing(WindowEvent e)
      System.out.println("Why me???" + aFrame.textArea.getText()); // aFrame here not frame !!!
}This worked. So looks like even though the original code added a WindowListener to 'frame', the listener didn't couldn't access frame's methods unless it was explicitly passed in as a parameter. Let me know if that's wrong.
Thanks again, all.

Similar Messages

  • Error(23,19): method getName(java.lang.String) not found in class javax.swi

    Hi , when i try to run my program, i keep getting the error msg:
    Error(23,19): method getName(java.lang.String) not found in class javax.swing.JTextField
    I have checked the java API and it inherits from the awt.Component class and should be accessible via the jtextfield.
    I have tried the following:
    trying to initailise the JTextField at the start.
    Using getName works if i use it within the loop after setting the name.
    Does anybody know what i am doing wrong please?
    public class clsMember extends JPanel implements ActionListener {
        private JButton jbtnLog;
        private String surname;
        private JTextField txtItem;
        public clsMember() {
            super(new SpringLayout());
            makeInterface();
            surname = txtItem.getName("Surname").toString();
    private void makeInterface() {
         //code omitted
               for (int i = 0; i < numpairs; i++) {
                JLabel l = new JLabel(strLabels, JLabel.LEADING);
    this.add(l);
    //if the array item is salutation create a combobox
    if (strLabels[i] == "Salutation") {
    jcomSalutation = new JComboBox(strSalutation);
    jcomSalutation.setSelectedIndex(0);
    this.add(jcomSalutation);
    } else {
    txtItem = new JTextField(10);
    l.setLabelFor(txtItem);
    txtItem.setName(strLabels[i].replaceAll(" ", "")); //this is where the label is set and if i do a system.out it shows fine. getName works here too.
    this.add(txtItem);
    //code omitted

    If i have a loop that creates the jtextfields such as
                    txtItem = new JTextField(10);
                    l.setLabelFor(txtItem);
                    txtItem.setName(strLabels.replaceAll(" ", ""));
    this.add(txtItem);How is it then possible to assign to a string the value of a *specific jtextfield*. Lets say that one of these JTextfields has the name surname.
    How is it possible for me to writeString surname = surnamejtextfield.getText();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error: variable XMLInterface not found in class

    Hi,
    I am creating an XML Publisher Report Output from OAF Page.
    This is my code in CustAM
    public void initSunReportVO()
    SunReportVOImpl vo = getSunReportVO1();
    if(vo == null)
    MessageToken errTokens[] = {
    new MessageToken("OBJECT_NAME", "SunReportVO1")
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else
    vo.executeQuery();
    public void getSunReportDataXML()
    try {
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    OAViewObject vo = (OAViewObject)findViewObject("SunReportVO1");
    ((XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    System.out.println(outputStream.toString());
    catch(Exception e)
    throw new OAException (e.getMessage());
    I am getting the following errors.
    Error(1608,27): variable XMLInterface not found in class XXX.oracle.apps.po.requisition.server.custamImpl
    Could anyone help me how to resolve the above issues.
    Thanks in Advance.
    Sruthi

    Hi,
    WebExpensesAMImpl$ExpenseTypeAmount is an inner class that you cannot access from outside of the class in which it is specified
    Frank

  • Why can i not get the class javax/swing/UImanager from installanywhere??

    I use Installanywhere to pack my program,but when i double-click the short-cut,it says no class found :javax/swing/UImanage.
    anybody can tell what happened?
    thanks.

    who can help me ? none want to help me.

  • Newbie:( error "Variable not found in class" help ppls

    Hello, making a program for school having a problem with my code
    because i am combining and modifying programs to suit my requirements,
    the error is as follows
    Error:(185) variable EXIT_ON_CLOSE not found in class javax.swing.JFrame
    can anyone give me some idea's on how to fix this or where i have gone wrong have i left something vital out?
    thanks

    Hello, making a program for school having a problem
    with my code
    because i am combining and modifying programs to suit
    my requirements, Script kiddie. I see. Bad approach.
    the error is as follows
    Error:(185) variable EXIT_ON_CLOSE not found in class
    javax.swing.JFrame
    can anyone give me some idea's on how to fix this or
    where i have gone wrong have i left something vital
    out?Weird error, since EXIT_ON_CLOSE is defines in JFrame. Are you using an IDE? Save, clean, rebuild. Make sure you imported the class, too.

  • Variable Not Found in Class Error

    I have a project which I organized the source in 4 packages. I have 4 source programs which use an external class which I don't have the source. So I imported the class and brought a copy of the class straight under the classes directory. Via "Project Properties" I modified the "Profiles + Development + Path" with the pass of this added class into the "Additional Classpath:" section. When I compile I'm getting this error: "Error(765,18): variable InfraAPI not found in class com.eds.soc.common.SocSharesEvent". It is not finding the InfraAPI.class that I imported. What am I doing wrong?

    You might want to use the JDeveloper library mechanism for this.
    Create a JAR with the files you need, then in project properties->libraries add this jar.

  • Variable not found in class....?????

    package untitled1;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Applet1 extends Applet
    Button knop1, knop2, knop3;
    TextField tekstvakje;
    Font opmaak1, opmaak2, opmaak3;
    public void init()
    knop1 = new Button("knop 1");
    knop1.addActionListener(new Knop1Handler());
    knop2 = new Button("knop 2");
    knop2.addActionListener(new Knop2Handler());
    knop3 = new Button("knop 3");
    knop3.addActionListener(new Knop3Handler());
    tekstvakje = new TextField("test",10);
    opmaak1 = new Font("Serif", Font.BOLD, 10);
    opmaak2 = new Font("Serif", Font.ITALIC, 15);
    opmaak3 = new Font("Serif", Font.PLAIN, 20);
    add(knop1);
    add(knop2);
    add(knop3);
    add(tekstvakje);
    class Knop1Handler implements ActionListener
    public void actionPerformed(ActionEvent e)
    tekstvakje.setFont(opmaak1);
    class Knop2Handler implements ActionListener
    public void actionPerformed(ActionEvent e)
    tekstvakje.setFont(opmaak2);
    class Knop3Handler implements ActionListener
    public void actionPerformed(ActionEvent e)
    tekstvakje.setFont(opmaak3);
    error message:
    "Applet1.java": Error #: 300 : variable opmaak1 not found in class untitled1.Knop1Handler at line 38, column 28
    "Applet1.java": Error #: 300 : variable tekstvakje not found in class untitled1.Knop1Handler at line 38, column 9
    "Applet1.java": Error #: 300 : variable opmaak2 not found in class untitled1.Knop2Handler at line 45, column 28
    and so on........
    what's the reason he don't fount this variables??? the KnopHandlers are a subclass fromm Applet so I don't understand the subclass can't find the variables....
    sorry for this stupid question, but I just started with making Object Orientated code.

    moi,
    Ten eerste is Knop1Handler geen subclass van Applet maar van Object. Alle classen erfen van object of een subclass van Object.
    Ik neem aan dat Knop1Handler een aparte class is in een apart bestand. Dan kan hij nooit attribute van Applet1 gebruiken. Dat gaat enkel via inner classes.
    Je kan verschillende dingen doen:
    je maakt de Knop1Handler class een inner class wat in dit geval de mooiste oplossing is.
    je verplaatst Font opmaak1 naar class Knop1Handler.
    je maakt Font opmaak1 static en roept in class Knop1Handler Applet1.opmaak1. wat een slechte oplossing is

  • Variable NOT Found in Class. I'm Confused!

    Variable "no" not found in class. I don't understand. Also, this code is really a mess. If a User enters an integer, then another and another, it's suppose to count the number of integers and how many times each was chosen. Example 1.4.4.5.7.7.7.8. It would print out that 1 was entered 1 time, 4 was entered 2 times, 5 once, 7 entered three times, and 8 once, etc.. Anyway, below is the code with the varibale that can't be found.
    public class Arbitrary
      public static void main(String[] args)
        final int NUMNUMERIC = 50;
        String str, another = "y";
        while (another.equals("y"))
          int[]myNumbers = new int[NUMNUMERIC];
        char current;  //the current character being processed
        String line = Console.readString ("Enter an integer from 0-50:");
        for (int no = 0; no <line.length();no++);
          current = line.charAt(no);
        System.out.println("The total of numbers is:" +current);
        another = Console.readString ("Type another number or press 0 to quit:");
    }

    for (int no = 0; no <line.length();no++);                    try removing this ";" ----^

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

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

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

  • Jdeveloper - Could not initialize class javax.swing.KeyStroke

    I am trying to install jdeveloper on a new machine, I have installed latest JDK from sun and downloaded the jdevstudiobase101033.zip file, however once I have followed the instructions to install on linux (Fedora core 11 - 64bit) and try to fire jdev up using jdev/bin/jdev I get the following error message:
    Oracle JDeveloper 10g 10.1.3.3
    Copyright 1997, 2007 Oracle. All Rights Reserved
    java.lang.NoClassDefFoundError: Could not initialize class javax.swing.KeyStroke
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at oracle.ide.IdeCore.class$(IdeCore.java:98)
         at oracle.ide.IdeCore.startupImpl(IdeCore.java:816)
         at oracle.ide.Ide.startup(Ide.java:674)
         at oracle.ideimpl.Main.start(Main.java:49)
         at oracle.ideimpl.Main.main(Main.java:25)
    I have trawled through google and forums at oracle with no joy, could someone kindly give me some pointers as to what I have missed or what may be wrong ?
    Thanks
    Ian

    It is running the 32 bit JDK, the 64 bit threw up errors even earlier in the startup porcedure.
    Ian

  • GetAudioClip() not found in class . Help !

    Dear People,
    I have one error message "getAudioClip() not found in class.
    I investigated in the AppletContext interface for the signature of the
    method. It says that the signature of the "getAudioClip()" method has
    one parameter. That parameter is the url which has the audio clip.
    I did include the address to the audio clip presently on my hard drive
    c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk
    below is the program
    Thank you for your advice
    Norman
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.applet.*;
    import java.awt.event.*;
    public abstract class MyMusicApplet_1 extends JApplet implements ActionListener, AppletContext
         //AppletContext myAppletContext =   new AppletContext();
         //Iterator i =   myAppletContext.getStreamKeys();
         JButton myJButton;
         AudioClip acSound_1 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk");
         AudioClip acSound_2 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_3 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_4 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_5 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_6 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_7 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_8 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_9 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         JButton myJButtonSound1;
         JButton myJButtonSound2;
         JButton myJButtonSound3;
         JButton myJButtonSound4;
         JButton myJButtonSound5;
         JButton myJButtonSound6;
         JButton myJButtonSound7;
         JButton myJButtonSound8;
         JButton myJButtonSound9;
      public void init()
           Container myContentPane = getContentPane();
           myContentPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
            Dimension buttonSize = new Dimension(190,100);
           Font myFont = new Font("Arial", Font.BOLD,14);
           Border myEdge = BorderFactory.createRaisedBevelBorder();
                    //create 1st button's object
                     myJButtonSound1 = new JButton("sound #1");
                    myJButtonSound1.addActionListener(this);
                   //set the button's border and size, font background and foreground
                   myJButtonSound1.setBorder(myEdge);
                   myJButtonSound1.setPreferredSize(buttonSize);
                   myJButtonSound1.setFont(myFont);
                   myJButtonSound1.setBackground(Color.orange);
                   myJButtonSound1.setForeground(Color.black);
                    //create 2nd button's object
                     myJButtonSound2 = new JButton("sound #2");
                    myJButtonSound2.addActionListener(this);
                   //set the button's border and size, font, background and foreground
                   myJButtonSound2.setBorder(myEdge);
                   myJButtonSound2.setPreferredSize(buttonSize);
                   myJButtonSound2.setFont(myFont);
                   myJButtonSound2.setBackground(Color.blue);
                   myJButtonSound2.setForeground(Color.black);
                    //create 3rd button's object
                     myJButtonSound3 = new JButton("sound #3");
                    myJButtonSound1.addActionListener(this);
                   //set the button's border and size, font, background and foreground
                   myJButtonSound3.setBorder(myEdge);
                   myJButtonSound3.setPreferredSize(buttonSize);
                   myJButtonSound3.setFont(myFont);
                   myJButtonSound3.setBackground(Color.cyan);
                   myJButtonSound3.setForeground(Color.black);
                    //create 4th button's object
                     myJButtonSound4 = new JButton("sound #4");
                    myJButtonSound4.addActionListener(this);
                   //set the button's border and size, font background and foreground
                   myJButtonSound4.setBorder(myEdge);
                   myJButtonSound4.setPreferredSize(buttonSize);
                   myJButtonSound4.setFont(myFont);
                   myJButtonSound4.setBackground(Color.pink);
                   myJButtonSound4.setForeground(Color.black);
                   //create 5th button's object
                   myJButtonSound5 = new JButton("sound #5");
                  myJButtonSound5.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound5.setBorder(myEdge);
                 myJButtonSound5.setPreferredSize(buttonSize);
                 myJButtonSound5.setFont(myFont);
                 myJButtonSound5.setBackground(Color.red);
                 myJButtonSound5.setForeground(Color.black);
                  //create 6th button's object
                   myJButtonSound6 = new JButton("sound #6");
                  myJButtonSound6.addActionListener(this);
                 //set the button's border and size, font, background and foreground
                 myJButtonSound6.setBorder(myEdge);
                 myJButtonSound6.setPreferredSize(buttonSize);
                 myJButtonSound6.setFont(myFont);
                 myJButtonSound6.setBackground(Color.pink);
                 myJButtonSound6.setForeground(Color.black);
                  //create 7th button's object
                   myJButtonSound7 = new JButton("Choice #7");
                  myJButtonSound7.addActionListener(this);
                 //set the button's border and size, font, background and foreground
                 myJButtonSound7.setBorder(myEdge);
                 myJButtonSound7.setPreferredSize(buttonSize);
                 myJButtonSound7.setFont(myFont);
                 myJButtonSound7.setBackground(Color.cyan);
                 myJButtonSound7.setForeground(Color.black);
                  //create 8th button's object
                   myJButtonSound8 = new JButton("Choice #8");
                  myJButtonSound8.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound8.setBorder(myEdge);
                 myJButtonSound8.setPreferredSize(buttonSize);
                 myJButtonSound8.setFont(myFont);
                 myJButtonSound8.setBackground(Color.yellow);
                 myJButtonSound8.setForeground(Color.black);
                  //create 9th button's object
                   myJButtonSound9 = new JButton("Choice #9");
                  myJButtonSound9.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound9.setBorder(myEdge);
                 myJButtonSound9.setPreferredSize(buttonSize);
                 myJButtonSound9.setFont(myFont);
                 myJButtonSound9.setBackground(Color.blue);
                 myJButtonSound9.setForeground(Color.black);
                   //add the buttons to the content pane
                   myContentPane.add(myJButtonSound1);
                   myContentPane.add(myJButtonSound2);
                   myContentPane.add(myJButtonSound3);
                   myContentPane.add(myJButtonSound4);
                   myContentPane.add(myJButtonSound5);
                   myContentPane.add(myJButtonSound6);
                   myContentPane.add(myJButtonSound7);
                   myContentPane.add(myJButtonSound8);
                   myContentPane.add(myJButtonSound9);
          public void actionPerformed(ActionEvent e)
             myJButton = (JButton)e.getSource();
            if(myJButton == myJButtonSound1)
              acSound_1.play();
            if(myJButton == myJButtonSound2)
              acSound_2.play();
            if(myJButton == myJButtonSound3)
              acSound_3.play();
            if(myJButton == myJButtonSound4)
              acSound_4.play();
            if(myJButton == myJButtonSound5)
              acSound_5.play();
             if(myJButton == myJButtonSound6)
               acSound_6.play();
                       if(myJButton == myJButtonSound7)
                         acSound_7.play();
                       if(myJButton == myJButtonSound8)
                         acSound_8.play();
                        if(myJButton == myJButtonSound9)
                          acSound_9.play();

    You are passing a String. A String is not an instanceof the URL class. Look at the java.net.URL class. Dear BBrita,
    I looked at the URL class in the Java API and did not find anything that told me how to pass the URL
    "c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"
    which is stored on my hard drive.
    Thank you in advance
    Norman

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?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/dtd/web-app_2_3.dtd">
    <web-app>
         <taglib>
              <taglib-uri>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

  • Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.ora

    Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.oracle.demos......?
    I am currently testing a simple sample application with a java code similar to the one shown at
    the bottom of this post.
    However during deployment/compilation the compiler gives an error:
    Error(26,23): XMLElement not found in class com.oracle.demos.orderbooking.ApproveImpl
    Additionally similar other errors appear:
    Error(23,66): JAXBException not found in class com.oracle.demos.orderbooking.ObjectFactory
    Error(51,58): UnmarshalException not found in class com.oracle.demos.orderbooking.ObjectFactory
    Error(9,92): Element not found in interface com.oracle.demos.orderbooking.Approve
    What's wrong?
    It seems to me that I have to add some (more) *.jar files/libraries to the project?
    Which *.jars and where should I add them in JDeveloper?
    source code:
    package com.oracle.demos.orderbooking;
    public class ApproveImpl extends com.oracle.demos.orderbooking.ApproveTypeImpl implements com.oracle.demos.orderbooking.Approve
    public ApproveImpl(oracle.xml.parser.v2.XMLElement node)
    super(node);
    }

    Hai James this the response I am getting can you please tell what should I write inside ora:getNodeValue() to get the value of node <genReturnText>
    The drag and dropping the variable name is not working, I have to write the path manually but I dont know how.
    <ns1:getRoutingAndFrameJumpersResponse xmlns:ns1="com.NetworkInstallations">
    -<com.GetRoutingAndFrameJumpersOutput>
    <destination>
    SW
    </destination>
    <e2EData>
    busProcOriginator
    </e2EData>
    <genReturnCode>
    40777
    </genReturnCode>
    <genReturnText>
    EMW_Get_Routing_And_FrameJumpers_Succeeded
    </genReturnText>
    <supplCode>
    ISY002
    </supplCode>
    <supplText>
    Transaction successfully completed.
    </supplText>
    <severityCode>
    S
    </severityCode>
    <retriable>
    false
    </retriable>
    </com.GetRoutingAndFrameJumpersOutput>
    </ns1:getRoutingAndFrameJumpersResponse>

  • Error(10,47): EntryFlowPageCO not found  in class oracle.apps.ap.oie.entry.

    Hi All,
    I extended a CO named IndusFinalReviewPageCOXX and I got the following error.
    Error(10,47): EntryFlowPageCO not found in class oracle.apps.ap.oie.entry.summary.webui.FinalReviewPageCO in class indus.oracle.apps.ap.oie.entry.summary.webui.IndusFinalReviewPageCOXX.
    I already drag the class file of EntryFlowPageCO in path myclasses\oracle\apps\ap\oie\entry\summary\webui
    and import the file. but the error remains same..after that I compile the class file of EntryFlowPageCO and found one more CO imports in EntryFlowPageCO. I drag class file of that CO also in appropriate path.. But still get the same error.
    Pls give me the solution ASAP.
    Thanks
    Amit Jaitly

    Amit,
    In the standard CO you can check that controller EntryFlowPageCO is not under myclasses\oracle\apps\ap\oie\entry\summary\webui.
    Its under oracle/apps/ap/oie/entry/webui so put the same under this directory structure.
    Regards,
    Gyan

  • Method addLayout not found in class ...cp.request.ConcurrentRequest

    I am trying to send concurrent request (XML publisher report) through OAF controller.
    But I get next error when compile it:
    Error(46,20): method addLayout(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) not found in class oracle.apps.fnd.cp.request.ConcurrentRequest
    Below the sample of code.
    Please, help me to find a root of cause
    package xxcust.oracle.apps.ap.oie.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.jdbc.OracleCallableStatement;
    import java.util.Vector;
    import oracle.apps.fnd.cp.request.ConcurrentRequest;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    public class xxMyPrintCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    { super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction tx = am.getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    int xxRequestId = 0;
    // concarent parameters
    String xxp_type = null;
    String applnName = "SQLAP";
    String cpName = "XXKVP_KO1";
    String LayName = "XXKVP_KO1";
    String cpDesc = null;
    try
    cr.addLayout("PER",LayName,"ru","RU","PDF");
    catch(Exception e)
    {throw new OAException("addLayout -" + e.getMessage(), (byte)0);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    }

    it was a bug described in doc [ID 1360914.1]
    JBO-29000 java.lang.NoSuchMethodError When Calling oracle.apps.fnd.cp.request.ConcurrentRequest.addLayout [ID 1360914.1]

Maybe you are looking for

  • Dynamic OpenSQL - SELECT FOR ALL ENTRIES ?

    Hi! Is it possible to do a dynamic SELECT FOR ALL ENTRIES IN... command? sg. like: DATA: select_text TYPE string, from_text TYPE string, where_text TYPE string. SELECT FOR ALL ENTRIES IN <gt_table1> (select_text) into corresponding fields of table <g

  • Finding Data of a Particular region

    Hi, How do we find the data present of a particular region say "X" in the datatarget for which data of say 4 regions is loaded. I know only the object I need to find the Data targets also in which the particular region data is present. I need to dele

  • Adding several images to one document

    I am creating some documents in CS2 that will be used on a waiting room monitor to show announcements, pictures, etc. I need to add several images to the same document. What is the best method to take three images and add all three to the same docume

  • Can upadate indesign - please see the log

    09/22/14 11:15:47:151 | [INFO] |  | OOBE | DE |  |  |  | 596 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* 09/22/14 11:15:47:151 | [INFO] |  | OOBE | DE |  |  |  | 596 | Visit http://www.adobe.com/go/loganaly

  • Replacing Lion with Snow Leopard

    Four months ago I downloaded the OS X Lion through the App Store. I have nothing but problems with Safari ever since. I have to reconnect to my wi-fi network every time I start the computer. For some reason it won't remember my preferences. Here is m