The problem about drawing using netbean GUI?

I am new to netbean gui,
I creat the JFrame through netbent gui, but I do want to draw something in it, so I creat the WaveformPanel class, which extend the JPanel class,in which
I will do some drawing, using paint method.
so then I drag the button from the platte, and want to click the button, then the drawing will appear, in the actionperformed method, my code is
JPanel wavepanel = new  WaveformPanel();
     super.setContentPane( wavepanel);
     super.setVisible(true);but in this way, the drawing will cover all the Frame, that is not what I want , how to draw it just in the right buttom, how to do it?
I know for this code I have not drag the JPanel from the platte, I just do not know how to connect the JPanel from the platte and my created JPanel, any idea�H

Andre_Uhres wrote:
Do not use setContentPane. Try like this:
getContentPane().setLayout(new BorderLayout());
wavepanel.setPreferredSize(new Dimension(150, 0));
getContentPane().add(wavepanel, BorderLayout.EAST);
You may also want to read about [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html] .
As has already been explained to Danielwang in his cross-post here: [http://forum.java.sun.com/thread.jspa?threadID=5296704|http://forum.java.sun.com/thread.jspa?threadID=5296704]
Danielwang: when you cross-post like this, you waste both Andre's by having him answer questions already answered and you waste my time by making me feel like I spent time creating an answer that you never read and never responded to. If you keep doing this, you will likely be put on our lists of people not to help. Not a good way to start here.

Similar Messages

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • Creating Web Services using Netbeans GUI only

    Hi all,
    Creating, deploying & testing simple web-services through Netbeans point-n-click interface is quite simple (demo at: http://download.java.net/javaee5/screencasts/hello-simple-glassfish/). The demo shows a very simple service creation scenario, accepting and returning String types only. The service can easily be tested using the GUI option 'Test Web Service', which simply test the service through a simple web page at http://localhost:8080/MyWebApplication/MyWebService?Tester
    In a similar manner, I am trying to implement a web service (a little complex one, accepting and returning custom types) using Netbeans GUI only. Versioning information I am using are as follows:
    NetBeans IDE 6.1
    Sun Java System Application Server 9.1_02 (build b04-fcs)
    JAX-WS 2.1.3.1
    Roughly speaking, the service's method signature I am using is shown below:
    public abstract myclass.X MyService.serviceMethod( myclass.X )
    Since it uses a custom type in parameter and return-types, the web-based test doesn't work any more. I wrote a separate client class to invoke the service using client-side stub classes (suppose to be generated by JAX-WS generated classes). The client code looks like as follows:
    public class ServiceClient {
         public static void main(String[] args) {
              MyService srv = new MyService ().getMyServicePort();
              X xin= new X();
              X xout= srv.serviceMethod( xin );
              System.out.println( "Result: "+ xout.toString());
    Netbeans shows a compiler error on "MyService srv = new MyService ().getMyServicePort();
    Is it possible to get it resolved without making use of ant scripts for generating client-side artifacts (stubs etc.)?
    Thanks,
    irfan

    Hello Sandy,
    Have you installed the Sun Java System App Server or JWSDP? If so, please make sure that one of the libraries in your Netbeans project contains the jaxrpc-api and jaxrpc-impl jars (which seem to be necessary to run wscompile).
    Netbeans ("standalone") doesn't seem to install the jaxrpx libraries and other jars required to compile and run webservices.
    Regards,
    Jonatan

  • I've got the problem about sharing the screen

    Hi, i bought iMac 21.5 (Late 2013), i'v upgraded it to the Mavericks. I've got the problem about sharing the display, i have thunderbolt to hdmi adapter and while i plug it to my TV, it doesn't work, it has no signal on TV, can someone help me ?? Thank Yo

    Hello Gukakila
    Start your troubleshooting with the article below. Try out the cable on a different tv or monitor to see if it shows up there. You may also need to reset the SMC and Parameter Ram.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • 1. The procedure called by CUSTOM.pll causes the problem when we use f60gen

    When CUSTOM.pll contains a call to a package that in turn calls a remote package, the CUSTOM.pll compile hangs forever.
    1. The procedure called by CUSTOM.pll causes the problem when we use f60gen. Though same procedure compiles successfully using "alter procedure compile" command.
    2. We have observed the problem happens due to synonym present on the remote database(db link).
    It doesn’t work if you are calling SYNONYM on remote database. It works, for calls to tables or procedures or packages in remote database if that object is OWNED DIRECTLY by the account to which dblink is connecting to.
    select object_name, object_type from user_objects@NH_SCM_ICE.DB.ATT.COM ;
    OBJECT_NAME OBJECT_TYPE
    FA_LOCATIONS SYNONYM
    FND_FLEX_VALUES SYNONYM

    The database link is created under the APPS user in the local database but connects to a different user (SWCS_ICE_SUPCHAIN) in the remote database.
    The user in the remote database does not own any objects. It only has synonyms to objects owned by apps and others.
    Incidentally, the hang also happens when trying to describe the remote package from the application tier (8.0.6.3 sqlplus) but the describe works fine from the DB tier (10gR2 sqlplus).

  • I would like to completley delet firefox and reinstall but i canot thers alwase somthing left which continues the problem i have used firefox before with no problems

    i would like to completley delet firefox and reinstall but i canot thers alwase somthing left which continues the problem i have used firefox before with no problems edit

    You can remove the Firefox program folder if there are still files left in it after uninstalling.
    * http://kb.mozillazine.org/Uninstalling_Firefox

  • The Problem about Monitoring Motion using PCI-7358 on LabVIEW Real Time Module

    Hello everyone,
    I have a problem about monitoring the position of an axis. First let me give some details about the motion controller system I’m using.
    I’m using PCI-7358 as controller and MID-7654 as servo driver, and I’m controlling a Maxon DC Brushed motor. I want to check the dynamic performance of the actuator system in a real time environment so I created a LabVIEW function and implemented it on LabVIEW Real Time module.
    My function loads a target position (Load Target Position.vi) and starts the motion. (Start.vi) then in a timed loop I read the instantaneous position using Read Position.vi. When I graphed the data taken from the Read Position.vi, I saw that same values are taken for 5 sequential loops. I checked the total time required by Read Position.vi to complete its task and it’s 0.1ms. I arranged the loop that acquires the data as to complete its one run in 1ms. But the data shows that 5 sequential loops read the same data?

    Read Position.flx can execute much faster than 5 ms but as it reads a register that is updated every 5 ms on the board, it reads the same value multiple times.
    To get around this problem there are two methods:
    Buffered High-Speed-Capturing (HSC)
    With buffered HSC the board stores a position value in it's onboard buffer each time a trigger occurrs on the axis' trigger input. HSC allows a trigger rate of about 2 kHz. That means, you can store a position value every 500 µs. Please refer to the HSC examples. You may have to look into the buffered breakpoint examples to learn how to use a buffer, as there doesn't seem to be a buffered HSC example available. Please note that you need an external trigger-signal (e. g. from a counter of a DAQ board). Please note that the amount of position data that you can acquire in a single shot is limited to about 16.000 values.
    Buffered position measurement with additional plugin-board
    If you don't have a device that allows you to generate a repetitive trigger signal as required in method 1.), you will have to use an additional board, e. g. a PCI-6601. This board provides four counter/timers. You could either use this board to generate the trigger signal or you could use it to do the position capturing itself. A PCI-6601 (or an M-Series board) provides can run a buffered position acquisition with a rate of several hundred kHz and with virtually no limitation to the amount of data to be stored. You could even route the encoder signals from your 7350 to the PCI-6601 by using an internal RTSI cable (no external wiring required).
    I hope this helps,
    Jochen Klier
    National Instruments

  • The Problem about clearing the system cache

    Hi, there!
    I'm trying to draw a lot of image in iPhone programming.
    I used [UIImage imageNamed].
    but it doesn't clear immediately the system cache.
    At last it occurs the out of memory.
    So I thought using imageWithContentsOfFile, but it works very slowly.
    Does anybody know how to clear the system cache?

    Read Position.flx can execute much faster than 5 ms but as it reads a register that is updated every 5 ms on the board, it reads the same value multiple times.
    To get around this problem there are two methods:
    Buffered High-Speed-Capturing (HSC)
    With buffered HSC the board stores a position value in it's onboard buffer each time a trigger occurrs on the axis' trigger input. HSC allows a trigger rate of about 2 kHz. That means, you can store a position value every 500 µs. Please refer to the HSC examples. You may have to look into the buffered breakpoint examples to learn how to use a buffer, as there doesn't seem to be a buffered HSC example available. Please note that you need an external trigger-signal (e. g. from a counter of a DAQ board). Please note that the amount of position data that you can acquire in a single shot is limited to about 16.000 values.
    Buffered position measurement with additional plugin-board
    If you don't have a device that allows you to generate a repetitive trigger signal as required in method 1.), you will have to use an additional board, e. g. a PCI-6601. This board provides four counter/timers. You could either use this board to generate the trigger signal or you could use it to do the position capturing itself. A PCI-6601 (or an M-Series board) provides can run a buffered position acquisition with a rate of several hundred kHz and with virtually no limitation to the amount of data to be stored. You could even route the encoder signals from your 7350 to the PCI-6601 by using an internal RTSI cable (no external wiring required).
    I hope this helps,
    Jochen Klier
    National Instruments

  • What is the best way to use Swing GUIs in an MVC design?

    I have a question on how to build an application using swing frames for the UI, but using an MVC architecture. I've checked the rest of the forum, but not found an answer to my question that meets my needs.
    My application at this stage presents a login screen to get the userid and password, or to allow the user to choose a new locale. If an Enter action is performed, the userid and password are checked against the DB. If not accepted, the screen is repainted with a "try-again" message. If the Cancel action is performed, the process stops. If a locale action is performed, the screen is repainted with different langauge labels. Once the login process is passed, a front screen (another swing frame) is presented.
    Implementation: I am using a session object (Session, represents the user logging in) that calls the Login screen (LoginGUI, a Swing JFrame object with various components). Session uses setters in LoginGUI to set the labels, initial field entries etc, before enabling the screen. From this point, the user will do something with the LoginGUI screen - could be closing the window, entering a mix of userid and password, or maybe specifying a locale. Once the user has taken the action, if required, the session object can use getters to retrieve the userid and password values entered in the fields.
    The crux of the problem is 1) how will Session know that an action has been taken on the LoginGUI, and 2) how to tell what action has been taken.
    This could be solved by getting LoginGUI to call back to Session, however, I am trying to buid the application with a good separation of business, logic and presentation (i.e MVC, but not using any specific model). Therefore, I do not want LoginGUI to contain any program flow logic - that should all be contained in Session.
    I am aware of two possible ways to do this:
    1. Make LoginGUI synchronised, so that Session waits for LoginGUI to send a NotifyAll(). LoginGUI could hold a variable indicating what has happened which Session could interrogate.
    2. Implement Window Listener on Session so that it gets informed of the Window Close action. For the other two actions I could use a PropertyChangeListener in Session, that is notified when some variable in LoginGUI is changed. This variable could contain the action performed.
    Has anyone got any comments on the merits of these methods, or perhaps a better method? This technique seems fundamental to any application that interfaces with end-users, so I would like to find the best way.
    Thanks in advance.

    Hi,
    I tried to avoid putting in specific code as my question was more on design, and I wanted to save people having to trawl through specific code. And if I had any school assignments outstanding they would be about 20 years too late :-). I'm not sure computers more sophisticated than an abacus were around then...
    Rather than putting the actual code (which is long and refers to other objects not relevant to the discussion), I have put together two demo classes to illustrate my query. Comments in the code indicate where I have left out non-relevant code.
    Sessiondemo has the main class. When run, it creates an instance of LoginGUIdemo, containing a userid field, password field, a ComboBox (which would normally have a list of available locales), an Enter and a Cancel box.
    When the Locale combo box is clicked, the LoginGUIdemo.userAction button is changed (using an ActionListener) and a property change is fired to Session (which could then perform some work). The same technique is used to detect Enter events (pressing return in password and userid, or clicking on Enter), and to detect Cancel events (clicking on the cancel button). Instead of putting in business code I have just put in System.out.printlns to print the userAction value.
    With this structure, LoginGUIdemo has no business logic, but just alerts Sessiondemo (the class with the business logic).
    Do you know any more elegant way to achieve this function? In my original post, I mentioned that I have also achieved this using thread synchronisation (Sessiondemo waits on LoginGUI to issue a NotifyAll() before it can retrieve the LoginGUI values). I can put together demo code if you would like. Can you post any other demo code to demonstrate a better technique?
    Cheers,
    Alan
    Here's Sessiondemo.class
    import java.io.*;
    import java.awt.event.*;
    import java.util.*;
    import java.beans.*;
    public class Sessiondemo implements PropertyChangeListener {
        private LoginGUIdemo lgui;   // Login screen
        private int localeIndex; // index referring to an array of available Locales
        public Sessiondemo () {
            lgui = new LoginGUIdemo();
            lgui.addPropertyChangeListener(this);
            lgui.show();
        public static void main(String[] args) {
            Sessiondemo sess = new Sessiondemo();
        public void propertyChange(java.beans.PropertyChangeEvent pce) {
            // Get the userAction value from LoginGUI
            String userAction = pce.getNewValue().toString();
            if (userAction == "Cancelled") {
                System.out.println(userAction);
                // close the screen down
                lgui.dispose();
                System.exit(0);
            } else if (userAction == "LocaleChange") {
                System.out.println(userAction);
                // Get the new locale setting from the LoginGUI
                // ...modify LoginGUI labels with new labels from ResourceBundle
    lgui.show();
    } else if (userAction == "Submitted") {
    System.out.println(userAction);
    // ...Get the userid and password values from LoginGUIdemo
                // run some business logic to decide whether to show the login screen again
                // or accept the login and present the application frontscreen
    }And here's LoginGUIdemo.class
    * LoginGUIdemox.java
    * Created on 29 November 2002, 18:59
    * @author  administrator
    import java.beans.*;
    public class LoginGUIdemo extends javax.swing.JFrame {
        private String userAction;
        private PropertyChangeSupport pcs;
        /** Creates new form LoginGUIdemox */
        // Note that in the full code there are setters and getters to allow access to the
        // components in the screen. For clarity they are not included here
        public LoginGUIdemo() {
            pcs = new PropertyChangeSupport(this);
            userAction = "";
            initComponents();
        public void setUserAction(String s) {
            userAction = s;
            pcs.firePropertyChange("userAction",null,userAction);
        public void addPropertyChangeListener(PropertyChangeListener l) {
            pcs.addPropertyChangeListener(l);
        public void removePropertyChangeListener(PropertyChangeListener l) {
            pcs.removePropertyChangeListener(l);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            jTextField1 = new javax.swing.JTextField();
            jTextField2 = new javax.swing.JTextField();
            jComboBox1 = new javax.swing.JComboBox();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            getContentPane().setLayout(new java.awt.FlowLayout());
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            jTextField1.setText("userid");
            jTextField1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    EnterActionPerformed(evt);
            getContentPane().add(jTextField1);
            jTextField2.setText("password");
            jTextField2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    EnterActionPerformed(evt);
            getContentPane().add(jTextField2);
            jComboBox1.setToolTipText("Select Locale");
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    LocaleActionPerformed(evt);
            getContentPane().add(jComboBox1);
            jButton1.setText("Enter");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    EnterActionPerformed(evt);
            getContentPane().add(jButton1);
            jButton2.setText("Cancel");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    CancelActionPerformed(evt);
            getContentPane().add(jButton2);
            pack();
        private void LocaleActionPerformed(java.awt.event.ActionEvent evt) {
            setUserAction("LocaleChange");
        private void CancelActionPerformed(java.awt.event.ActionEvent evt) {
            setUserAction("Cancelled");
        private void EnterActionPerformed(java.awt.event.ActionEvent evt) {
            setUserAction("Submitted");
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {
            System.exit(0);
         * @param args the command line arguments
        public static void main(String args[]) {
            new LoginGUIdemo().show();
        // Variables declaration - do not modify
        private javax.swing.JTextField jTextField2;
        private javax.swing.JTextField jTextField1;
        private javax.swing.JComboBox jComboBox1;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton1;
        // End of variables declaration

  • The problem about vrrp

    Dear all,I have a problem about vrrp,my core switch is cisco 3750x and huawei S5700-28C-EI, after I configured vrrp between them,the switch log got the error problem as follow:
    *Jan 11 00:01:43.111: %VRRP-6-STATECHANGE: g1/0 Grp 3 state Backup -> Master
    *Jan 11 00:01:43.111: VRRP: tbridge_smf_update failed
    *Jan 11 00:01:44.187: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:46.539: VRRP: Advertisement from 10.252.200.36 has an incorrect group 10 id for interface g1/0                
    *Jan 11 00:01:50.323: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:51.707: VRRP: Advertisement from 10.252.200.36 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:52.079: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:53.079: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    If cisco and huawei cannot interconnect with each other?

    Can you post the interface config from the huawei and cisco device?
    HTH,
    John
    *** Please rate all useful posts ***

  • The problem about changing the SID

    Hello,
    Due to some reasones ,we shoud chang the R3 sid from PR3(instance number is 00) to QR3 on one IBM iseries host .As we read some relatives doc about system copy ,we decide use method of exoprt/import to do this.But there are paramter that really confuse me now.In the step of SAP system instance indentification,I hesitate the instance number should be set.Should I choose a new number or keep the value that PR3 used(instance number is 00).BTW,is there two instance or just one instance in the host after I change the system sid
    Thanks in advance.
    Message was edited by:
            Rong

    I understnad this problem now.But still one got me.
    I want to use SMIGR_CREATE_DDL to generating ddl statements for migration,but when I finished this ABAP I cann't find any script has been generated.
    The installation Directory is '/tmp'.
    Our platform of R/3 is OS/400.
    Thanks.
    Message was edited by:
            Rong

  • Problem about duplicate use

    Hi,All
    I have used je with
    dbConfig.setSortedDuplicates(true);
    Then I stored my data just using
    db.put(key, value);
    The problem is that data bloated seriously.My key of every record is int,and the value is about 100 bytes.I have put about 3,000,000 records,but the data size is about *3GB*.
    I have read the doc and found that:
    If a key value has duplicate data values,then the BIN references a duplicate internal node (DIN), which is the root of a tree that stores all the duplicate data
    items. Duplicate trees are structured like database trees, with INs replaced by DINs and BINs replaced with DBINs. Thus, a database is potentially a tree of
    trees.
    As BIN stores key and LSN of its childs nodes ,the DBIN stores values and LSN of ite dup nodes.
    In one word,Je stores values at DBIN,which means the size of our data is doubled(Maybe more).It is a nightmare.
    How could I do when faced this?
    Thanks
    yun

    Hi Yun,
    We are aware that the per-record overhead for duplicates can be high and we are intending to improve this in a future release. In the meantime, I may be able to help you work around the problem.
    First, post your EnvironmentConfig settings (and je.properties, if any). If your cache size is too small, this could also be causing a high per-record overhead.
    Second, post your schema -- the types of records, relationships between records, key sizes, data sizes, etc. How many records per key (on average) are you inserting in a duplicates database? With a small number of records per key, the per-record overhead in a duplicates database is quite high.
    It may be that you can meet your needs without using duplicates. For example, in your duplicates database, if the data size is fairly small, then rather than using a duplicates database you can use a non-duplicates with a two-part key and empty data. The first part of the new key is the key you are using now, and the second part is the data you are using now. This approach has proven to be very effective. I can explain further if this approach turns out to be something that would work for your application.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • The problem about x-fi elite pro's I/O conso

    When i bought the x-fi elite pro,i used it on the AMD athlon64 3500+ ?ASUS ax800xt and GigaByte K8NSNXP-939 motherboard in windowsxp sp2 32bit.
    After i installed it just as the quick start said,everything is fine and i like it very much.
    I do think that creative had done a great job and it is the best reason to change the sb audigy2 ZS platinum pro.
    But the problem comes when i change the hardware to amd AMD Athlon64 X2 4400+?Leadtek 7800GTX(single,not SLI)and ASUS A8N32-SLI motherboard.
    After i changed the three things, i shut up to the older winxp pro sp2 32bit,it found a lot of newhardware,most of them are related to the nforce4 sli chipset,when it found x-fi,the system bring up blue screen and restart automaticly.
    After the restart,i can startup in the system and change the settings of the x-fi(the hardware id has changed) ,and thus everything seems fine(the S750 works well),but the I/O console has no response, the blue led of the I/O console is dark.
    Since then,i am in a nightmare.
    I have tried a lot of ways in order to solve the problem, but it didn't work.first, i check the AD_Link carefully and everything is tight and fine,then i change the power splliter cable to another,i also plug the x-fi card into another slot and reinstall the operating system.
    And now, i don't know how to solve the problem, Someone please help me.
    plus,i use the newest motherboard bios 009,nforce4-sli chipset driver and 7800GTX drivers.
    Eagerly for your advice.Message Edited by bravo on 0-5-2006 03:5 PM

    The problem is actually about the power connector to the card (which powers the external box).
    But of course is not since I forgotten to attach it
    It is because the power connector is very tight, so when my friend helping me pulled out the connector, the connector?s plastic jack is also pulled out a half.
    I don't notice it when I attach the power connector to it in my new computer, So the power connector can't really provide the power to the external box.
    I hope someone can get some help from this thing.

  • The problem about settuping up the development Enviroment for OA

    Hi, All
         I just began to learn the development of OA Framework, I met the problem of setting up the dev environment by using jdevelop 9i OA
    extension.
         The following is steps of setting up the env by referrring to the "Oracle Application Framework Developer's guide".
         1, set the environment variable JDEV_USER_HOME to <jdeveloper dir>\jdevhome\jdev
         2. copy the DBC file from <EBS install dir>\visappl\fnd\11.5.0.\secure in EBS server to the local machine.
         3. create a tester user and assign it the responsibility "OA Framework ToolBox Turtorial" and "OA Framework ToolBox Turtorial
    Labs" in EBS
         4. create a database connection. set the connection type as Oracle(JDBC), username and password as "Apps" and "Apps" , Set the
    hostname and SID the same values as those specified in the DBC file. And the connection is created successfully.
         5. Then open the toolbox.jws (The sample code in the jdeveloper9i)
              i) select the tutorial.jpr , select Project > Project Setting -> Runtime Connectiong. setting the "DBC File Name" to the
    DBC file path in local machine. setting the "user name" and password to EBS user I just created in step 3. Set the Application Short Name
    to "AK" and Responsibility Key as "FWK_TBX_TUTORIAL".
              ii) right click tutorial.jpr. select "Edit Business Components Poject..." -> Connection . choose the Connection created in step 4.
         6. setting the same configuration for LabSolutions.jpr.
         7. After all these setting , then rebuild the toolbox.jws and run the project. It took a long time to display the test_fwktutorial.jsp and when I click the link in it. I wil get an error page. The Detail Info is the following:
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.adf.mds.exception.MDSRuntimeException; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1960) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209) at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199) at OA.jspService(OA.jsp:45) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
    I'm not sure whether my configuration is set correctly. can anyboy help to figure it out, thansk in advance

    r u able to connect to schema from sqlplus ??
    I suspect check that first ,also see if you are able to TNS ping to the SID you have mentioned and if the port and hostname is correctly specified in ur dbc file .
    here is my dbc file .. if it helps
    #DB Settings
    #Mon Mar 20 07:58:34 CST 2006
    FND_JDBC_USABLE_CHECK=false
    APPS_JDBC_DRIVER_TYPE=THIN
    APPL_SERVER_ID=1EDB3E51DEE569E3E0440003BA68147136073878907234418604230042147702
    TWO_TASK=IG10B
    FND_JDBC_STMT_CACHE_SIZE=200
    FND_JDBC_CONTEXT_CHECK=true
    FND_JDBC_BUFFER_DECAY_SIZE=5
    FND_JDBC_BUFFER_DECAY_INTERVAL=300
    FND_JDBC_BUFFER_MAX=5
    GUEST_USER_PWD=GUEST/ORACLE
    FND_JDBC_STMT_CACHE_FREE_MEM=TRUE
    FND_JDBC_BUFFER_MIN=1
    DB_HOST=<host Name>
    FND_JDBC_PLSQL_RESET=false
    FNDNAM=APPS
    FND_MAX_JDBC_CONNECTIONS=500
    GWYUID=APPLSYSPUB/PUB
    APPS_JDBC_URL=jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=maxcold)(PORT=1525)))(CONNECT_DATA=(SID=IG10B)))
    DB_PORT=1525

  • Problem about SSO using logon ticket  with user mapping

    Hi everyone ,
    I had done SSO with Portal , BW and R/3 system.
    I use logon ticket with user mapping .
    When user name is same in Portal as in R/3 system, or user name is same in Portal as in BW , user can access R/3 transactions and BW report without logon.
    There are some Portal users name which are different with R/3 user and  BW user. And I done the user mapping for these  user.
    But some user mapping works fine,but most of them can't work,means that most of them need to enter mapped user ID and password.
    What's the reason?
    When SSO using logon ticket with user mapping, the Portal user which is different with R/3 user and BW user,  can they access R/3 transaction iview and BW report iview without logon?

    Hi Chen,
    What you have done is correct. But the problem lies here.
    Since you are using the same system object for accessing the iview, where the ticket method is set to SAPLOGONTICKET in the user Management property of the system object.
    To avoid this create another system object like the previous one but set the logon method to UIDPW and select admin, user from the drop down box. Also create a system alias for this system.
    Now create another iview like the previous one but link this iview to the new system. Now do the user mapping for the users which are different in portal compared with R/3. Now you should be able to login without any problems.
    Another important point is login to portal with Fully qualified domain name. In the ITS property of the system object also give the FQDN.
    Hope this helps
    Regards
    Arun

Maybe you are looking for

  • Trying install os 9.2 on my ibook g3

    I bought this white ibook G3 on ebay. I know not too smart. It came without an operating system. I now have os 9.2 to install. I insert my os 9.2 and it seems to boot up, but it only comes to a screen with CD in the back ground and many disc pictures

  • Help in ABAP function module coding.

    Hi, i am having trouble coding the program where i have to select a number from the table and add one to it to create a new record back to the table.  example, i've select 1 from the table, i need the program to be able to return 2 and create a new r

  • WebLogic admin server not starting.

    Hi all, I have a problem with my WebLogic Admin server not starting. Following a VM reboot last week our admin servers are no longer starting. On this particular server we have 3 admin servers serving 3 separate environments. Theserver seems to be ge

  • Purchase info record price simulation

    Hi all, I need to emulate the process used by transaction me1l in order to make a price simulation to obtain the net price and the effective price from the purchase info record related to a PO item. I have to calculate them from the standard info rec

  • BW Mass activity BWOP / transaction FPOP 2.

    Hi Experts, How will be changed Date identification in FPSCHEDULER when I will plan FPOP in FPSCHEDULER as a job? It's possible to plan it with FKJOXTR(because FPSCHEDULER is signed as obsolete ) ? If yes how? What is the best way run FPOP on periodi