Can't run DukesAgeResource examples (Your First Cup)

Hello, I believe I have found a possible issue in the "Your First Cup: An Introduction to the JavaTM EE Platform", and wonder if it relates to the fact that I cannot manage to run the example. At page 21, step 12, is states "In the REST Resources Configuration dialog, uncheck Add Jersey Library and click OK.". However, after clicking Finish (Step 11) no such a dialog is displayed, instead, NetBeans shows the DukesAgeResource.java file right away. Once I have completed entering the example and try to run it, I get this error message on the browser
HTTP Status 404 -
type Status report
message
descriptionThe requested resource () is not available.
GlassFish Server Open Source Edition 3.1.2.2
I deleted my project and files and tried again half a dozen times, with the same result.
I am starting out with Java EE, any clue about what I may be doing wrong? May be the issue is related to the discrepancy on the "Your First Cup" tutorial?
Note that the ready-made example that comes packaged with NetBeans runs fine.
Edited by: 966753 on Oct 21, 2012 6:25 AM

Fanta wrote:
Still, I believe I had followed all steps in the tutorial carefully.That's the sh1t with tutorials - they don't teach you anything, they just show you how to do stuff. So they can also show you how to do stuff badly and you'd assume it to be truth.
Get a good book and begin by understanding it all, not by learning "what code to write".

Similar Messages

  • How/where can i find "user" entity from first cup tutorial in the database

    within the first cup java ee tutorial a user entity is crated:
    @Entity
    public class FirstcupUser implements Serializable { ...in some other code the user is created and inserted?:
    @PersistenceContext
        private EntityManager em;
    FirstcupUser user = new FirstcupUser(date);
            em.persist(user);the question is how or where in the database(i don't know the database name, the table name should be user?) i can find the inserted users? within net beans in "services" i can see a db server with a "sample" database - this seems to be a preinstalled example db. but where can i find the db created by the web app i wrote?
    thx in advance

    Press Option key and select Go > Library in the menu bar. To show that folder, open Terminal and copy:
    chflags nohidden ~/Library

  • I can't run this example in flashbuilder4

    hello. i'm newbie so i read some  example flex, but i'm usually meet error. for example this:
    http://share.megaplus.vn/dl.php/2062988. i know it is flex3 file,but in flashbuilder 4 have support trasition automatic flex3 to flashbuilder4
    i can't run it in flashbuilder4 and if i want it run , how do i make?
    please help me. Thanks

    Hi Phuong,
    Have you tried the horizontal scrollbar at the bottom of the sample. If you slide that back and forth, the carousel will spin around. You can also click on any thumbnail in the carousel to spin it to make that the active selection.
    Cheers,
    Maile

  • How can i run the example programme without hardware

    Hi,
         We are using NI-9233 for our Project. We would like to run the example programme, the NI-9233 getting started(host).vi ... I would like to ask that how can i run the Programme without Hardware.& How shall i get the input signal (simulating signal)?because we would like to test it while we are waiting for the hardware to be delivered . 
    thanks
    Best regards

    As Mike indicated , " you can use MAX to simulate some (not all) DAQmx devices. There's a NI-USB-9233 device that you can probably use. Open MAX, then expand "My System", the expand "Devices and Interfaces", then right-click on "NI-DAQmx Devices" and select "Create New NI-DAQmx Device -> NI-DAQmx Simulated Device". Select the device from the list. See the online help for MAX for further help.
    If you don't see "NI-DAQmx Devices" in MAX you need to install NI-DAQmx. You can download it from NI here. "
    hi,
         the link you gave me to download is "NI-DAQmx Devices" ... There is no software to download for Labview 8.2.1. So should i use 8.1 or 8.3 instead of 8.2.1 ? If not, can you tell me the CD no. that includes the "NI-DAQmx Devices" folder of Labview 8.2.1 version? Because we can get the cd from our school's component store. Thank you so much.
    Best Regards,
    Su

  • How can I run the examples?

    I need make any test about WebLogic, I have WebLogic Server in Solaris 2.6.
    Thanks in advancing.

    Well,
    I do not know about Solaris, but for the Windows you have a pritty good explanation
    HTML-files for each example.
    So if you want to run for example the WebServices-example, you will look for the
    HTML-File under C:\bea\samples\examples\webservices\rpc Folder.
    I guess it is very the same on Solaris
    good luck
    naz

  • Can't Run Bluetooth Examples (Error 1)

    I am trying to set up Labview to control an Arduino via Bluetooth. I'm just starting out by attempting to connect my smartphone using the Advanced  Bluetooth Server/Advanced Bluetooth Client example vis. I plugged in my Bluetooth dongle and the dongle appears to be working using Windows drivers.  However, when I run Advanced Bluetooth Server, I get the following error:
    Error 1 occurred at Bluetooth Create Listener in Advanced Bluetooth Server.vi
    Possible reason(s):
    LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488: Command requires GPIB Controller to be Controller-In-Charge.
    I literally opened the VI and pressed run, so I have no idea what I could've done to change an input parameter.  Any suggestions on what the issue could be?

    can you attach a screen shot so that we can look at the input parameters. Both the server and client. Thanks
    Applications/Systems/Test
    National Instruments | AWR Group

  • JSP ERROR! Can't run "DATE"example

    Hello All,
    I am gettin a pretty simple error. I am trying to build and deploy the jwstutorial13\examples\web\date example. What happens is the it builds perfectly but when i install it says it is installed but when i go into the directory manager and try and run in..it is a stopped state!!! and says that it cannot find the context path!! does anyone know how to fix this problem!! Any help would be much appreciated.
    Thanks In advance
    mark

    its stoped because the buil.properties file classpath is wrong

  • Can't Run Simple Example

    Just installed jDev 3.2 on Win2K. When I try to run any java class I get the error "Cannot Determine Runnable Node". for a simple example I copied the "Clock" example to "MyProjects" folder, opened it in jDev, made/compiled the class (checked that clock.class was in MyClasses folder), but then run button does not work. I've checked the IDE default path settings and think they are OK.
    Could not find anything in the documentation about this error message. What don't I have set up right?

    Don... thanks. It does run when executed from the html. I was thinking applets could be run directly from within the IDE even without a main.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don:
    make sure yu are highlighting and running a program with a "main" in it.
    if it's an applet,then execute it's related html.<HR></BLOCKQUOTE>
    null

  • Can I run a server off my residentia​l Internet?

    Hi I was wondering if it is okay to run a Minecraft (it's a PC game) server off my 25 mb/s upload plan. I've heard that plans have been canceled for doing this. (Server is non-profit)
    Thanks
    Solved!
    Go to Solution.

    I have never seen anyone get in trouble for that, but it does say in the TOS that you can't run servers on your residential account.   I don't think they police that, but that could change in the future.  I have had fios for quite a few years, and then DSL with Verizon before that, and have never heard an instance where someone was cancelled for doing it.  So I guess do it at your own risk, or YMMV?       I would think they would give you a warning first before action anyway, I know for a fact they give you a couple warnings even on copy right infringements, so I could imagine that they would give you warnings here to. 

  • Can I run two applications at once from two different computers?

    Good Evening,
    I would like to use the cloud service. I have read over the FAQs and they were quite clear, however I did not seem to find something to the effect of what I need answered.
    If I were to download the apps on a backup computer and my personal computer, can I run for example a photoshop application on one computer, while running an encore application on the other computer at the same time?
    The FAQs state that I can pick and choose which apps I want on a computer. Will I be able to download a portion of the apps on my personal computer and the remaining on a backup computer, while being able to use a portion on computer and another portion on another computer at the same time?

    You could be working in two different applications on two different computers, going back and forth between them.
    You can install any of the applications that you wanted to use on either of the computers but still only on two computers overall.
    Hope that helps,
    -Dave

  • SetDpmServer.exe (4.1.3465.0) on Windows Server 2012R2 (Azure VM) This app can't run on your PC: Access denied

    Hi,
    I've installed on a Windows Server 2012 R2 (Azure VM) the DPM agent 4.1.3465.0. This VM is not a domain member of my DPM 2012 SP1. So I ran the command
    SetDpmServer.exe -dpmServerName dpm.domain.com -isNonDomainServer -userName dpm -productionServerDnsSuffix
    domain.com
    Although I'm running the command prompt as Administrator I receive:
    This app can't run on your PC
    And in the command prompt I see: Access denied
    How can I tackle this?
    Thanks,
    John
    John

    Hi John,
    Here are 2 things I would like to confirm.
    1. Please confirm if Protection Agents is installed on target computer before running the command line. 
    In following article it provides the command line which you are using now. However it mentioned to install Protection Agents manually on target server first:
    Installing Protection Agents on Computers in a Workgroup or Untrusted Domain
    http://technet.microsoft.com/en-us/library/ff399479.aspx
    And please noticed the 2 community additions:
    1.  make double-click on DPMAgentInstaller_x64.exe without specify DPM server name
    2. follow the examples in this article:
    http://technet.microsoft.com/en-us/library/ff634193.aspx
    1). Enable NETBIOS over TCP/IP on BOTH DPM Server and proposed managed machine's WINS tab of NIC card properties sheet Local area connection status -----> Properties -----> Internet Protocol Version 4 -------> Properties ----> Advanced ----->
    WINS tab. Also assumes disable Windows Firewall OR create needed port openings.
    2). When using SetDpmServer.exe command also CRITICAL to use ONLY NETBIOS name of DPM Server and do NOT include [-productionServerDnsSuffix <DnsSuffix>] end command at username.
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • HT5312 I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? th

    I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? then I was unable to enter until 8 hours then called Apple Japan 4 times each time threy asked me would you like to speak with an English speaker,I said yes then they told me sorry today is Sunday no English speakers ,but they refused to speak Japanese, then I called 5th time and a kind guy could speak English we were on 1and 1/2 hours he got me to log in but the reset key chain could not be completed still pending.
    He said do not mess with that ! then I got a text from somewhere to reset 4 pins suddenly it was very strange I said to him that I got this pin this morning but it said you can use maximum 3 hours it had a UK number and I told him I do not like this and will not enter the code he said do not do it if it is from the UK and then I said to him ok you did a lot to help but we can not go any further ! and we cut of I went back to my computer to re do the ID but I found everything a mess so I call and a stupid sounding Japanese women with a squeaky voice came on I was calm at first and they want your phone number your IMEI number your iPhone serial number date of birth Address email address it takes 10 munutes to check then they ask what are you caling about so I try to explain my keychain is broken or problems with language security questions and can not change my pasword because the security question have failed me so it is ONE BIG HEADACHE AND I START I GET STRESSED she says Do want an ENGLISH speaker ,I say yes ,that guy i talked to earlier but I never got his name and first time I ever talked to him but they said he is not here so I said ok and then she said today is sunday so call back in the morning ,I said ,well ok in Japanese but they make you feel stupid because they do not want to speak Jap@anese with none natives and they are to busy,And they feel that I should not bother them ,then I say that Apple Japan is trying to refuse Apple foreign customers and then she wants to hang up and ask me to visit the shop ,but they are the same I have a very bad time with Apple Japan since they do not discuss software problems or security with customer meaning if you have a problem they ask you to come on a time 20 minutes max so they do hardware test and say you phone is fine then I say no I can not reset my ID they say you must call call centre so I am going around in circles ,When I call English it is usually Australia so if my problem is in Japan surely if do not want me to talk to them in Japanese and they ask me to call Australia but every time my call charge is expensive after asking them is this free because I have Apple care they say yes but when the call goes to Australia 0120 277 535 it might change to paid call so I call then I have to ask is this charging they say we can not give you that information ! so what can I do I have have been at the computer and phone all day on my day off work and in tre week I am so busy and can not use my phone I can not work without it ,this new technology for you ,they can not cope with the fact that the customer have problems yet they do not want to deal with us because they can not solve it and so it shows them to be useless they like to walk around in their cool tee shirts and retro shop but when it comes to functionality we are unwelcome they got the money so do not return because apple is perfect that nothing should go wrong .
    But it does somehow my English security answers do not work on a Japanese Question especialy if I did not choose that question I set  up the multiple choice In English and wrote the answers in English or Roman and set them langauge preferences in English, do you really think you can correctly write english name or word in Japanese they write a police patrol car  pato caa パトカア they do not have r and l .So it is my choice to make my security easy for me and as difficult for others to hack.But they also have patororoo choo meaning ' now patrolling ' so why they have pato caa patrol car and patoro patrol and have thousands of Chinese words kanji they can find patrol.
    I am getting off the topic but I am at a loss to fix this problem when they hold the keys and i have all the info to verify my ID.

    You have to enter the Apple ID and password. You are running into the Activation Lock
    iCloud: Find My iPhone Activation Lock in iOS 7
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • Can't run the cluster example

              I would appreciate if someone can explanation my long list of questions regarding
              the deployment of EJB in cluster environment.
              I can't run the cluster EJB example( Teller/Account) in a cluster(contains two
              server2). I always get
              java.rmi.RemoteException: Unable to
              resolve examples.cluster.ejb.Account
              Home. Resolved: 'examples.cluster.ejb'
              Unresolved:'AccountHome'
              Following is my setup:
              Machine A: exampleServer:7001 (admin server)
              Machine A: testServer1:8001 (Managed server)
              Machine B: testServer1_B:8001(Managed server)
              MyCluster : testServer1, testServer1_B
              Test Client:
              java examples.cluster.ejb.Client "t3://Machine A:8001"
              ======================
              Q1: Should I use 8001 or 7001 as cluster port number?
              Q2: What will happen when we click "apply" after select/unselect the server in
              the "target", "server" tab?
              Q3: And what will happen if we click deploy/undeploy check box in "configuration"
              tab of EJB item?
              Q4: I check the JNDI tree from all above three servers can't find out JNDI tree
              doesn't reflect the change I did in Q2 or Q3.
              Q5: What is the right way to deploy EJB components, should we select both cluster
              and server in the "target" tab?
              Q6: I got this message from one of the server when I try to undeploy/deploy ejb
              object.
              "examples.cluster.ejb.TellerHome_EO in the jndi tree is non clusterable
              and you have tried to bind more
              once? How could I make it clusterable?
              Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI name in use"
              from the server.
              How could I fix it.
              Thanks
              

    First I can tell you that the ports have to be the same, be on the the
              same network , i.e. Telnet into the other m/c. Next which you probably
              have done is the properties files. Per-cluster ...
              >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
              On 6/7/01, 6:59:48 AM, "James Hsu" <[email protected]> wrote regarding
              Can't run the cluster example:
              > I would appreciate if someone can explanation my long list of
              questions regarding
              > the deployment of EJB in cluster environment.
              > I can't run the cluster EJB example( Teller/Account) in a
              cluster(contains two
              > server2). I always get
              > java.rmi.RemoteException: Unable to
              > resolve examples.cluster.ejb.Account
              > Home. Resolved: 'examples.cluster.ejb'
              > Unresolved:'AccountHome'
              > Following is my setup:
              > Machine A: exampleServer:7001 (admin server)
              > Machine A: testServer1:8001 (Managed server)
              > Machine B: testServer1_B:8001(Managed server)
              > MyCluster : testServer1, testServer1_B
              > Test Client:
              > java examples.cluster.ejb.Client "t3://Machine A:8001"
              > ======================
              > Q1: Should I use 8001 or 7001 as cluster port number?
              > Q2: What will happen when we click "apply" after select/unselect the
              server in
              > the "target", "server" tab?
              > Q3: And what will happen if we click deploy/undeploy check box in
              "configuration"
              > tab of EJB item?
              > Q4: I check the JNDI tree from all above three servers can't find out
              JNDI tree
              > doesn't reflect the change I did in Q2 or Q3.
              > Q5: What is the right way to deploy EJB components, should we select
              both cluster
              > and server in the "target" tab?
              > Q6: I got this message from one of the server when I try to
              undeploy/deploy ejb
              > object.
              > "examples.cluster.ejb.TellerHome_EO in the jndi tree is non
              clusterable
              > and you have tried to bind more
              > once? How could I make it clusterable?
              > Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI
              name in use"
              > from the server.
              > How could I fix it.
              > Thanks
              [att1.html]
              

  • Can it be easier when running  simple examples in jmstutor

    Hi, I'm a new user of java. when I tried to use Simple examples in jms_tutorials, such as SimpleQueueSender.java, I found I had to type a long command:
    java -Djms.properites=%J2EE_HOME%\config\jms_client.properties SimpleQueueSender MyQueue 3
    It seems a little inconvienent.
    Can I first set the properties, then run the programe?
    How?
    Thanks a lot!

    You could put the command in a script and run it that way. But you do need to pass that -D option to the java command at J2EE 1.3.1.
    You could move to J2EE 1.4 Beta and use the J2EE Tutorial Addendum, which simplifies running the examples by providing Ant build scripts.
    Kim Haase
    Technical Writer
    Sun Microsystems, Inc.

  • Helpme, I can run the example of statefulSession ejb Client that bring by weblogic5.1

    hello
    i have setup a weblogic5.1 on linux redhat 6.2
    jdk1.3
    the jsp
    and servlt
    can run well
    but the ejb example statefulSession and statelessSession
    client can't run
    i have deploy the ejb in file weblogic.properitys
    that i remove the "#" from some rows that deployed the examples ejb
    and i can see the ejb is loaded well on the weblogic console
    the error messages:
    Exception in thread "main"
    java.lang.NoClassDefFoundError:javax/ejb/EJBObject
    I rn the client like follow:
    java -Djava.naming.factory.initial=weblogic.jndi.TengahInitialContextFactory
    -Djava.naming.provider.url=t3://localhost:7001 (or port 80,null)
    examples.ejb.basic.statelessSession.Client
    or
    java examples.ejb.basic.statefulSession.Client "t3://localhost:7001(or
    80,null)" scott tiger
    can you contact me
    [email protected]
    i 'll than you very much

    At least for WebLogic Server, there's no internal classification of an EJB as being of a specific "version".
    You'll need to work from the descriptors and your view of the application to work through it.
    -steve-

Maybe you are looking for