Having problem in learning JDeveloper base on the tutorial

Hi,
I would say I'm new to J2EE and JDeveloper is the first IDE tool that I'm intend to use. I like the tutorial (http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html) very much as it is easy to understand. I follow the tutorial steps by steps(Note: I create my own schema and tables instead of installing the schema as in the tutorial) and I found that my JDeveloper interfaces are different with the sample in the tutorial. The version that I downloaded is exacly JDeveloper 11g (Preview 2). Is the version different?
When I trying to run HRFacadeClient I encounter errors.
I wish that I can attach document as I have done screenshot of the interfaces. Pls advise how should I further explain my problem? I really need help in order for me to conitnue my learning.
Wen Xi

Hi,
First, really thanks, now I can follow the tutorial with the exact sample interface.
Before I paste my error, first I wish to say that instead of using thr HR Schema that as stated in the tutortial, I use my own schema (wenxi) with two new tables, there are Employee & Department.
After that I just follow the tutorial steps by steps, I have no problem in compiling the classes. I encounter problem when run the HRFacadeClient. Below is my error message. For tracing, I did try to
comment out the for loop corresponding to the queryEmployeeFindAll() method, FAILED. After that I tried to comment out the for loop corresponding to the hRFacade.queryEmployeesFindByName() method and so on. But all FAILED. Below is the message that display after I have commented out hRFacade.queryEmployeesFindByName() & queryEmployeeFindAll() methods.
[EclipseLink/JPA Client] Adding Java options: -javaagent:D:\JDeveloper\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar
D:\JDeveloper\Middleware\jdk160_05\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\HR_EJB_JPA_App\.adf;C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes;D:\JDeveloper\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink.jar;D:\JDeveloper\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\antlr.jar;D:\JDeveloper\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;D:\JDeveloper\Middleware\modules\javax.persistence_1.0.0.0_1-0.jar;D:\JDeveloper\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar;D:\JDeveloper\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar;D:\JDeveloper\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar;D:\JDeveloper\Middleware\modules\javax.jsf_1.2.0.0.jar;D:\JDeveloper\Middleware\modules\javax.ejb_3.0.1.jar;D:\JDeveloper\Middleware\modules\javax.enterprise.deploy_1.2.jar;D:\JDeveloper\Middleware\modules\javax.interceptor_1.0.jar;D:\JDeveloper\Middleware\modules\javax.jms_1.1.1.jar;D:\JDeveloper\Middleware\modules\javax.jsp_1.1.0.0_2-1.jar;D:\JDeveloper\Middleware\modules\javax.jws_2.0.jar;D:\JDeveloper\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;D:\JDeveloper\Middleware\modules\javax.mail_1.1.0.0_1-1.jar;D:\JDeveloper\Middleware\modules\javax.xml.soap_1.3.1.0.jar;D:\JDeveloper\Middleware\modules\javax.xml.rpc_1.2.1.jar;D:\JDeveloper\Middleware\modules\javax.xml.ws_2.1.1.jar;D:\JDeveloper\Middleware\modules\javax.management.j2ee_1.0.jar;D:\JDeveloper\Middleware\modules\javax.resource_1.5.1.jar;D:\JDeveloper\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;D:\JDeveloper\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;D:\JDeveloper\Middleware\modules\javax.xml.stream_1.1.1.0.jar;D:\JDeveloper\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;D:\JDeveloper\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;D:\JDeveloper\Middleware\wlserver_10.3\server\lib\weblogic.jar -javaagent:D:\JDeveloper\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar oracle.HRFacadeClient
javax.ejb.EJBException: EJB Exception: ; nested exception is:
     java.lang.IllegalArgumentException: NamedQuery of name: Department.findAll not found.
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:105)
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:87)
     at $Proxy8.queryDepartmentFindAll(Unknown Source)
     at oracle.HRFacadeClient.main(HRFacadeClient.java:25)
Caused by: java.lang.IllegalArgumentException: NamedQuery of name: Department.findAll not found.
     at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getDatabaseQuery(EJBQueryImpl.java:454)
     at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setAsSQLReadQuery(EJBQueryImpl.java:117)
     at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:503)
     at oracle.HRFacadeBean.queryDepartmentFindAll(HRFacadeBean.java:43)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15)
     at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
     at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
     at $Proxy76.queryDepartmentFindAll(Unknown Source)
     at oracle.HRFacade_mg5i94_HRFacadeImpl.queryDepartmentFindAll(HRFacade_mg5i94_HRFacadeImpl.java:143)
     at oracle.HRFacade_mg5i94_HRFacadeImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
     at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Process exited with exit code 0.
Please advise.
Wen Xi

Similar Messages

  • I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them

    Can any one please help me I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them. I have tried all restoring options but no use. please help me

    The mic on my iPhone4 has just quit also. Similar symptoms to yours in that people I'm talking to hear only static or my voice very faintly. The voice/memo recorder also only really records static.
    It happened suddenly and seemed to get better after a day or two but then went completely after another day.
    I'm returning it to Vodafone New Zealand shortly but will have to wait 5-10 days for a replacement. There are NO Apple accredited means to speed this procedure up in NZ.
    We don't even have a single physical Apple Store where you could walk in and talk to a Genius.

  • I have been having problems with my speaker. After the recent update I am unable to listen to movies or music using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears.

    I have been having problems with my speaker. After the recent update I am unable to listen to movies, music or apps using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears and then disappears after the headset is removed. This is quite annoying. My child's Apps that he likes to play will not even make a sound. HELP!!!

    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.

  • I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    Do you have Parallels installed by any chance?  There is a known problem that causes symptoms similar to this.  You do not need to actually be running Parallels at the time and nothing in ActivityMonitor would point to Parallels.  An update corrects the problem:
    http://kb.parallels.com/111541

  • Is anyone else having problems with there phone freezing after the 8.0 update?

    iis anyone else having problems with there phone freezing after the 8.0 update??

    Hello Chefboyharley,
    Thanks for the question. After reviewing your post, it sounds like the phone is unresponsive. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Not responding or does not turn on
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I am having problems using Firefox with Ebay in the last 10 days. The advanced search link is dropping off the page and there is no way to access it now.

    I have been using Firefox and Ebay for at least 12 years with no problems whatsoever. But in the last 10 days I have been having trouble with the Advanced Search link disappearing from the page on Ebay. If I do a search from the Ebay home page it will show the results, but the Advanced Search link (in blue letters) which always used to appear to the right of the Search button is gone. If I click Search again at this point I can see the Advanced Search link appear for a millisecond, but then disappear just as quickly. Also, if I refresh the page the same thing happens. I tried to duplicate this problem with Internment Explorer and it didn't occur, so it appears to be Firefox that is causing this issue. Of course when I contacted Ebay they told me my problem was that I wasn't using Internment Explorer! I love Firefox and do not want to switch!

    You can try to clear the cache and cookies to see if that makes a difference:
    <h3>Clearing Cache</h3>
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    <h3>Clearing Cookies</h3>
    #Go to Firefox > Tools > Privacy > Remove Individual Cookies
    #Find the site (ebay.com) that's having problems and clear all cookies.
    #Restart Firefox
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

  • Having problems using my printers when using the OS Lion

    Hi, can anyone assist me as I am having problems with the Lion OS, somehow I can't print on my Epson nor in my office on the Canon printer. I have updated the system with the latest printer drivers as well.
    Cheers

    Have you tried deleting and re-adding the printers?
    What happens when you try to print? How are the printers connected? Please provide more information about the problems you're having with each driver.

  • HT1338 i having problem to safari its doent show the shearch

    hello m having problem with safari

    Search Bar / Toolbar missing?
    Click the "View" menu in the Safari menu bar.
    From the dropdown select "Show Toolbar".

  • Having problems with OSX and mail with the servers?

    Having problems with OSX and the mail servers?  Seems to be happening more and more?

    Hello,
    Who is your eMail provider, the part after the @ sign?
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the message?
    Then click the Show Details button & Check again.
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over.
    You may have multiple entries.
    Open Keychain Access in Utilities, enter the part after the @ sign in the search bar, hit enter
    The Password rejection can confuse people since it's a catch all meaning...
    This Password, Username, Authentication method... is not recognized on this Port to this Server, more than one entry in Keychain for each in/out entry, or a server end problem.
    If using a browser to login via WebMail works it's not Name or Password, but one of the other ones.
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995
    Outgoing ports are...
    SMTP and SMTP-SSL is on ports 25, 587 and 465. Port 587 has to be SSL, and port 465 is enforced TLS-wrapped and is generally used by Outlook users.

  • Catch 22: Learning JDeveloper without a db (tutorial requires connection)

    I'm trying to build a database model, to use with XE, to create a web-based application with Apex.
    I'm on a Mac. I do not have a windows partition so I cannot run XE. I've ordered a windows based laptop but won't have it for several weeks.
    Since I don't have a database on my computer to connect to, I cannot use SQL*Developer.
    So, someone suggested I use JDeveloper, to create my tables and database model - on my mac. Fine. After several days, I figured out how to get it running, and I'm trying to go thru the Tutorials.
    Particularly, the one titled: Database Development with JDeveloper seemed appropriate.
    However, the tutorial requires that I've installed the Oracle Fusion schema, FOD Fusion Order Demo Schema. And, of course, the FOD schema requires - you guessed it - access to an Oracle database!!!
    Is there a tutorial around for learning JDeveloper that does NOT required being connected to a database????
    Thank you
    Marion

    Hi,
    1 way would be to use a placeholder data control. You can create a placeholder data control, with the same structure of your original table, feed in the data, and use it temporarily. However, this has certain limitation (not many data types, manual data entry etc).
    -Arun

  • Having problems with one computer not "seeing" the Airport base station.

    Aloha:
    I have an Airport router hooked up to the internet via Cable. I have a laptop and G4 desktop talking to the the Airport Base Station via their respective Airport cards. This allows me to get to the internet with both of my computers. This system has worked just fine for several years, but recently my desktop computer has started to be unable to connect to my Airport Base Station. At first it was intermittent, but now it has stopped completely. The laptop continues to be able to get to the internet via my Airport base station.
    The desktop is running OS 10.3.9 and the airport card in the desktop passes the hardware test that came with the laptop. But it can no longer see the signal from the ABS.
    What might my problem be?
    Dan

    Hi Clinton:
    I have tried that to no avail. I don't see any
    signal, so I see no networks "in the box below" to
    choose. My airport card does not see a signal, but
    the airport card checks out ok in the hardware test.
    Thanks for replying, Clinton, much appreciated.
    Dan
    Have you tried choosing "other..." and then entering the name of your network?

  • Anyone having problems with 4s after upgrading to the 5.0.1 Software

    My iphone 4s was working perfectly fine before i upgraded to the 5.0.1 software. Now i cant make calls or receive. Everytime i try to make a call its say " Call fails" and then its searches to connect to the network. I have tried restoring it 3 time to the factory settings in itunes but it still has the same problems. It has to be something with the 5.0.1 software as my phone worked perfectly fine before.  Is there anyway to go back to the 5.0.1 software?

    I found this workaround and it worked for me. 
    "According to Hontz, the issue seems to be affecting only iPhone 4S users. Hontz has provided the following workaround to fix the issue:
    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number. 2) When the system answer press 1 for “Program or activate your phone” 3) Wait for the call to disconnect. You should get a prompt stating something like, “Settings updated.” 4) Open the Task Manager (double click the home button) and kill the Phone, Message, and Contacts Applications 5) Wait a few minutes (I waited 3 just to be extra safe) 6) Open the Message App to verify the fix.
    If you are still broken, kill the Message App again, then reboot your phone.
    Did iOS 5.0.1 also mess up your iPhone Contacts? Let us know if the workaround helped."
    via: TSF

  • Having problem with "artwork size & resolution exceeds the max that can be rasterized"

    Hi all,
    Ok, I created a 162.7" x 90.6" document (artboard) for an exhibition display I'm designing. The document was created using all the defaults - i think this is where i went wrong. Illustrator is now telling me that "the combination of artwork size and resolution exceeds the maximum that can be rasterized" after i open the document and when i try to add a drop shadow to anything.
    Other than some vector graphics i created in illustrator, I only have 3 180ppi and 4 300ppi photos tranfered right off the photograpers camera.
    I selected :
    1. "Print Document" from the initial splash window.
    2. I entered the artboard size, bleed and left the "Raster Effects" setting to "High (300ppi)"
    I think leaving the Raster Effects setting at 300ppi is where the problem is.
    Do i have to create a new document or can i fix the existing one?

    nados you are a little confused that's all I think things are ll right and you are probably set to go with out going to Photoshop.
    1. Your file is probably fine as is
    2. Make certain you images are linked and not embedded
    3. Your Images are probably ok as far as they are for the the specs required do not lower the resolution just make certain they are linked.
    You may have to reimport them and in the place dialog make certain link is checked.
    4. The Raster Image Effects setting is fine leave it as is.
    5. The jpegs are fine lee your images as is if that was what was supplied to you and they look clean.
    6. When saving the file save as .AI format and in the AI save as option dialog uncheck include linked files
    (you will send them the jpegs as well as the AI file.)
    7. Send the images in what ever format they are now since that is jpeg leave it be just make certain the dimensions are the same as is being used in the document at 100%.
    8 Make Certain you select the text and got Type> Create Outlines before saving the file.
    9 Do not export the file to any other format.
    10 Send the printer production house the AI file and the Jpegs you will be fine.
    You should not have a problem with this file.

Maybe you are looking for

  • Problem in sending SMS via using java communication API

    I need to send SMS via my sony ericsson Z530i. It is connected to the com5 port of my system. I got the following code. import java.io.*; import java.util.BitSet; import javax.comm.*; import java.lang.*; public class SerialToGsm {     InputStream in;

  • Deletion of accounts in BCS

    Dear experts, I would like to delete about 100 accounts in BCS (we don't use them anymore). I know how to do it account by account (T code ucwb > context menu : delete), but this process is very long for 100 accounts. Maybe does anyone know a hint to

  • How do get back to 7.2 from 7.3.1

    Hi all,First time post. I as well hate the new 7.3.1 they way the albums are listed is horrible. I want to go back to the world of 7.2. I wish I had read the posts before i updated. I tried to convert. I went to my H.D. Library/and moved I tunes to t

  • Navigating back from a screen

    Hi all, we have creaed a hiring action in HR. i have to check whether a user came to a particular screen by navigating backwards from the next screen in the hiring action. i have to write some code if the user navigates backwards from a screen. can a

  • Validation not triggered

    Hi All, the Validation on the line item level Condition : Tcode=f-58 and line item = 001 and posting key= 50 document type ZF and under id = "Victor" Check profit center <> '29292' messgae : payment requires profit center Does not trigger NEW GL is a