Having problem in getting JaveEE tutorial example source

I have tried to follow the link below to get example source, unfortunately it doesnt work, can someone show me how to get or send it to my email.
http://docs.oracle.com/javaee/6/tutorial/doc/gexaj.html#giqtt
Thanks~

Please provide your platform OS and version, jdk version and the version of any tools you are using (netbeans, glassfish, etc).
Also, what happens when you follow the instructions titled' To Obtain the Tutorial Component Using the Update Tool' at the link you provided?
Java EE 6 Tutorial Component
The tutorial example source is contained in the tutorial component. To obtain the tutorial component, use the Update Tool.
To Obtain the Tutorial Component Using the Update Tool
1.Start the Update Tool.
From the command line, type the command updatetool.
On a Windows system, from the Start menu, choose All Programs, then chooseJava EE 6 SDK, then choose Start Update Tool.
2.Expand the GlassFish Server Open Source Edition node.
3.Select the Available Add-ons node.
4.From the list, select the Java EE 6 Tutorial check box.
5.Click Install.
6.Accept the license agreement.
After installation, the Java EE 6 Tutorial appears in the list of installed components. The tool is installed in the as-install/docs/javaee-tutorial directory. This directory contains two subdirectories: docs and examples. The examples directory contains subdirectories for each of the technologies discussed in the tutorial.

Similar Messages

  • How Can I get personal java example source?

    i want to know how to program with p-java.
    How Can I get personal java example source?
    and where can i get them?

    pjava is pretty much the same as regular java 1.1.x, so you could just look at any java examples. www.javasoft.com has a learning center with tutorials if that's what you're looking for

  • Vosonic VP2160 wont run on Firmware Driver Version 1.13, having problems in getting Firmware downgrade Version 1.07, has anybody out there had a similar problem with this Portable Storage Device?

    I am having problems in Finding/Downloading Firmware for a Portable Storage Device (Vosonic VP2160). It has been suggested that I download Firmware Version 1.18, but that wont work.
    I have noted some where else that there is a Downgrade Firmware Version 1.07 but I am having great difficulty in sourcing it from Vosonic.
    Any suggestions out there?
    Thanks in anticipation,
                                       Rob

    luca wrote:
    Hi krazyshane,
    try to add this directive in Section "Device":
    Option "DRI" "true"
    This got it!  Thanks! 
    Shane

  • Arrgh! Is anybody else having problems with the Adobe Acrobat open source approach to handling PDF files? I am getting as many as three crashes and full reboot per day and the delays are terribly frustrating.

    Do I have a registry problem?
    Every time I open a PDF file my local Adobe Acrobat (6.0) installation opens AND the file displays in Firefox (v. 4.0.1). When I close the PDF file it tells me other PDF files are open and asks if I'm sure I want to close Acrobat.
    The process is messy and somewhere, before too long there is a memory error that causes the whole system to crash.
    Is anybody else having this problem? Does anybody have any idea how to fix the conflict?

    Do I have a registry problem?
    Every time I open a PDF file my local Adobe Acrobat (6.0) installation opens AND the file displays in Firefox (v. 4.0.1). When I close the PDF file it tells me other PDF files are open and asks if I'm sure I want to close Acrobat.
    The process is messy and somewhere, before too long there is a memory error that causes the whole system to crash.
    Is anybody else having this problem? Does anybody have any idea how to fix the conflict?

  • Having problem to run JMS tutorial

    Hi,
    I have successfully compiled and add MyQueue to the queue. But when I try to run the sample program from the JMS tutorial my system would produced the exact error that I have posted bellow:
    =========================================
    F:\ttech\jeti\classes>java -Djms.properties=F:\j2sdkee1.3.1\config\jms_client.pr
    operties SimpleQueueSender MyQueue 3
    Queue name is MyQueue
    JNDI lookup failed: javax.naming.NoInitialContextException: Need to specify clas
    s name in environment or system property, or as an applet parameter, or in an ap
    plication resource file: java.naming.factory.initial
    ====================================
    If some body could please tell me what I am doing wrong here. I have installed all the jar files (like jms.jar, jndi.jar) and j2sdkee1.3.1 and jsdk1.3.1_01 and set up all the classpath accordingly.
    Thank you so much.
    Amir.

    This script should get rid of your troubles:
    Just to lay it all out, here is how to "run" the code.. the compiling is a breeze. So, this is only how to generically get things to run. Specific of *nix, but I'm sure windows users can pick-out the important parts.
    #!/bin/sh
    J2EE_HOME=/usr/local/j2sdkee1.4
    # this assumes your PATH already points to the following:
    # (the j2ee goodies listed below)
    # $J2EE_HOME/lib/j2ee.jar
    # $J2EE_HOME/lib/system/jmsra.jar
    # and of course... the standard java libs.
    #below the ~/code/w3track/jms1.0.2b/src/
    # is the directory where I manually compiled #The jms libraries in...
    # this could instead point to the jms.jar file in the lib directory.
    p=$PATH:$J2EE_HOME/lib/j2ee.jar:$J2EE_HOME/lib/system/jmsra.jar:~/code/w3track/jms1.0.2b/src/:.
    [ "$1" != "" ] && java -server -Djava.endorsed.dirs=$J2EE_HOME/lib/endorsed -classpath $p $1
    # first setup the queue,
    #I'll assume you have started a jms queue by
    #first starting #the j2ee -startRegistry and
    # j2eeadmin -addJmsDestination q1des queue
    #example of running:
    # ./<this_script> "SendToQueue q1des 5"
    #this will send 5 messages into the queue.
    #hope this helps some people out
    #there who are having issues getting the compiled
    #code to run. Good Luck!
    # Chris Danielson

  • Having problems connecting getting results from MySQL

    Hi,
    I'm trying to learn some aspects of J2EE but i'm a bit
    stuck with EJB and i'm not sure what is going wrong so that's why i'm here :)
    What I want to do is very simple.
    I have a working MySQL database "musiccatalog" and I want to query it using any sort of client so to do that
    I create an Entreprise Application using netBeans 4.1
    Then I create a new CMP Bean called Album.
    I need something simple to test on so I have only one CMP Bean.
    My Album CMP Beans contains following CMP fields albumId, artistId, name, releaseDate, insertionTime.
    I also have a bunch of methods for LocalInterface: getters, setters, finders, and create() method.
    I don't need to add anything or write in the code cause it is generated by the IDE (netBeans 4.1)
    So my Album CMP Bean is written and I deploy project to see if all works fine. It works. My EJB-Module and Web-Module are deployed on the server (Sun Application Server 8).
    Next I create a new SessionBean called AlbumFacade that will access my CMP bean.
    I will have to add a lookupAlbumBean() method that will return a LocalHome interface, I also add a private variable of Type AlbumLocalHome. This variable is intialized in ejbCreate() method using the lookAlbumBean() method.
    Now it's time to add a business method to my SessionBean.
    I create a new buisness method public String getAlbumInfo()
    public String getAlbumInfo(int idAlbum) throws javax.ejb.FinderException {
    ejb.AlbumLocal albumL = albumLH.findByPrimaryKey(new Integer(idAlbum));
    return albumL.getAlbumName();
    so in this method i will get a reference to albumL interface and i will ask it to return the albumName of an album.
    So at this moment i'm done with Beans :)
    I redeply the app and it is redeplyed successfully.
    Now to test my beans i write a client. It'll be a servlet.
    What I need to do next is to create a ServiceLocator in my WebModule. This ServiceLocator will be used in the Servlet to lookup the remote interface of the AlbumFacade SessionBean.
    MyServlet will output a form with a textfield and a submit button where the user (me) types a number.
    If the servlet receives albumId parameter it'll look up the remote AlbumFacadeRemote interface and then i'll call the buisness logic of the SessionBean ( getAlbumInfo())
    and at this moment I should reach what I wanted but....
    The Application deploys and after I enter a number I got a vert nice StackTrace like this
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
         org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:207)
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:651)
         javax.rmi.CORBA.Util.wrapException(Util.java:279)
         com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:177)
         com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         ejb._AlbumFacadeRemote_DynamicStub.getAlbumInfo(_AlbumFacadeRemote_DynamicStub.java)
         web.AlbumServlet.processRequest(AlbumServlet.java:55)
         web.AlbumServlet.doPost(AlbumServlet.java:81)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         java.security.AccessController.doPrivileged(Native Method)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    and it happens when the application queries the database.
    And unfortunately I don't see what may be wrong. If I do the same with a pointbasde sample database everything works fine.
    I tried to connect to MySQL via JConnector and also via jdbc:odbc bridge but i got still the same error.
    It drives me really mad 'coz I don't know what I do wrong.
    I can connect to database. But then something goes wrong.
    Can somebody give me an idea of what maybe wrong?
    Thanks :)

    Hail!!
    In fact, the problem IS in your PHP script.
    $senderEmail = $_POST['eMail'];
    $senderEmail = stripslashes($eMail);
    The last one should be:
    $senderEmail = stripslashes($senderEmail);
    PS:
    Next time, put your code inside formating tags...
    It will be easy for people to read your question and will improve the chances that someone answer it.

  • Having problem to get the value from radio button

    i am doing my double module project for my degree course and i am also a newbie in JSP. Hope there is someone can help me to solve this problem. Now, i set the value of a radio button to "don't smoke", "smoke lightly", and "smoke heavily". Then i use request.getParameter ("smoking behavior") to get the value selected by the user, but the result is only "don't" or "smoke", which the character after spacing will be not be retrieved. I dun know how to solve it, so can any expert here help me to solve this problem? Thanks for helping.

    Why do you have to use whitespace. If your radio button group is name smokingBehavior - no whitespace, wouldn't it just make sence to have values of don't, lightly and heavily. This would solve the problem easily. If your teacher is being a pain in the a&!, and requires you to use whitespace for your naming variables I guess you could insert %20 between the two words and unescape the value on the server side. This seems like a lot of unnecessary work and a silly solution - good luck!

  • Having problems with getting sound when I get MSG on my iPad.

    Having trouble w receiving sound when I get a MSG on my iPad. Can't figure out why

    1. Double-click the Home button and swipe Task Bar to the right
    2. Check the volume and mute settings
    http://i1224.photobucket.com/albums/ee374/Diavonex/6d3191ba.jpg

  • HT204053 I created a different Apple ID for Icloud on my new IPhone and having problems with getting Itunes,etc.  How do I change my Icloud Apple ID to be the same ID and password?

    I created a different Apple ID for my Icloud on my new IPhone (said a free email was available or something similar) rather than the other choice offered of using my same existing Apple ID.  Now I keep having issues accessing my account and my password isn't working to access Icloud to download Itunes.  Can I undo this new account I created and just use my one existing Apple ID?  This is my first IPhone and confused with this part of the setup!  Thanks.

    If you know the answers to your security questions, you should be able to change your password without using email authentication (see http://support.apple.com/kb/HE36).  If you don't, you may be out of luck.

  • Problems with getting my Ipod Touch to work on my Sony Bravia or any TV

    I am having problems with getting videos or movies to play on my Sony Bravia HDTV or any TV. I have a first generation Ipod Touch and I have the Apple AV Composite Cables and all I get is sound for both TV's that I tried. I read one post where some guy had a faulty Ipod that wouldn't work. Does anyone know how of something hidden or special that needs to be done or how did they fix the problem if they had the same one? Thank, ejcarlson

    Check connection, if you have a case on your Ipod the connection may not be good enough.

  • Windows live mail having problum after joining in domain examples incoming is good but sent or outgoing is not there and also send mails are not exporting at the time of live mail exporting time?

    windows live mail having problem after joining in domain examples incoming is good but sent or outgoing is not there and also send mails are not exporting at the time of live mail exporting time?

    This is not usually related to AD issues, but it may be more of a DNS issue. I posted a request in your other thread to post an unedited ipconfig /all of the DC and of the client.
    This may help use diagnose this issue and your other thread's printer issues.
    Thank you,
    Ace Fekay
    MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

  • I have a 2009 MacBook Pro. Does anyone else have issues with their laptop having problems starting when shut off or restarting when asleep since installing Yosemite?

    I have a 2009 MacBook Pro which I have upgraded a few things on. I have updated to Yosemite and am having problems with getting my laptop to come out of sleep mode, and to start when shut off. Any ideas of what this might be or how to correct it? Is this more probably a hardware issue or software?

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Download and install the 10.10.1 update.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Just purchased Wndows Vista and having problems with the port for Palm 125

    I just purchased a Windows Vista computer and having problems with getting my Palm 125 to sync with the desktop.  I get an error message saying:  "Com1 not available"  What do I do?
    Thanks,
    Frustrated
    Post relates to: Palm m125
    This question was solved.
    View Solution.

    Sorry, that didn't work.  I get no drop down menu from the Hot Sync Manager for the Serial Port.  What comes up often is:  "The selected port, COM1, is not available at this time.  Hot Sync Manager will open the port when it becomes available." 
    Could it be the Norton Antivirus Firewall that is preventing the Hot Sync Manager to open the Serial Port?  Just a thought.  Thanks for your help.
    Post relates to: Palm m125

  • I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. Starting on a new computer now. I can get my music from old computer?

    I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. As of now i realize this was a mistake. Starting on a new computer now. I cant get my music to transfer from the itunes folder on the old computer? I keep getting error "Can't Read from the source file or disk." Whenever I got to folder properties its always checked read only. But when i play the song it works just fine. Im sure this is just because I added music into itunes folder but is there anyway to fix it?

    WMA files are 'window media audio' files, which is a Microsoft format. If you want to add them to your iTunes library on your Mac then you will need to convert them into a compatible format first. If you still have your windows machine then iTunes for Windows can convert them from WMA to MP3 format : https://discussions.apple.com/message/24158701#24158701
    Or try a search for, for example, 'convert wma to mp3' to find programs to convert them.

  • Just moved my email from entourage to Mail. Having real problems with getting my signatures to work properly. When adding in a small company logo, windows computers only receive signature as an attachment. Am sending email as Rich Text. Any ideas on a fix

    Just moved my email from Entourage to Mail. Having real problems with getting my signatures to work properly despite sending email as Rich Text.
    When adding in a small company logo to the signature, PC's / windows computers only receive signature and logo as attachments.
    I've tried all possible fixes I can find including getting a PC user to format the logo but no joy. Has anyone experienced this and any ideas on a fix gratefully received.

    Send it as html so the signature is an image source URL

Maybe you are looking for