Applet Example in the Tutorial

Why does the Appletviewer lock up my computer when
I try the applet example in the tutorial? Even the
example applet in the DEMO\ANIMATOR folder locks
up when I type APPLETVIEWER example1.html. Actually,
I did see something whirling around once, when I typed
APPLETVIEWER example1.html, but now every applet
example in the DEMO folder locks up my computer. I'm
running Windows ME and I've got the following two
instructions in AUTOEXEC.BAT.
SET PATH=C:\jdk1.4\bin
SET CLASSPATH=.;C:\jdk1.4\lib\tools.jar

I don't see much of a difference between your path and mine. I tried your suggestion, but my computer still locks up. In fact my second computer also locks up with Appletviewer, I wouldn't be surpised if Appletviewer locks up my third computer. I'm going to try this program under Windows 98 instead of Windows ME. Thanks for your suggestion.

Similar Messages

  • Using JSP examples in the tutorial of JSP Tomcat

    I have installed Tomcat 4.0.4 and j2sdk1.4.0.
    I have set the folowwing environment variables :
    JAVA_HOME = c:\j2sdk1.4.0
    CLASSPATH = c:\j2sdk1.4.0
    When I try to run the examples from the tutorial, I have the following errors :
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: sun/tools/javac/Main
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    What is wrong ?

    Add this into your
    CLASSPATH
    <Drive you install Tomcat In>:\Apache Tomcat 4.0\common\lib\servlet.jar
    (This enables Tomcat to find the servlet class files)
    CATALINA_HOME
    <Drive you install Tomcat In>:\Apache Tomcat 4.0
    You should also read the documentation that comes with your Tomcat
    Hope this helps!

  • HT2905 My itunes looks nothing like the examples in this tutorial.  I do not have "display exact duplicates" or "date added".  Can someone please help me remove duplicate songs?  Also, I downloaded two audio books and they are showing up in my song list.

    My itunes looks nothing like the examples in this tutorial.  I do not have "display exact duplicates" or "date added".  Can someone please help me remove duplicate songs?  Also, I downloaded two audio books and they are showing up in my song list. Why???

    'Show duplicates' is now under the 'View' menu. To see the 'Date added' column go to 'View options' from the 'View' menu and check it in the section under 'Stats'.
    Click an audiobook once to select it and hit command-i (Mac) or control-i (Windows). Go to the 'Options' tab and set 'Media Kind' to 'Audiobook'.

  • Could not run the bookstore1 example from the Java Web Services Tutorial

    The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
    After deploying the application the Tomcat Web Application Manager shows the entry:
    /bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
    when entering the command: http://localhost:8080/manager/list.
    After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
    FAIL - Application at context path /bookstore1 could not
    It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Unable to compile examples given in the Tutorial

    Dear Gurus,
    when running "ant converter" or "ant all" I get the following error for the converter bean (also for the checker bean).
    All variables are set according to the Tutorial and the current directory is D:\downloaded\java\J2EETutorial\examples>
    What did I miss? This is a new world for me...
    TIA
    Ivo
    [javac] D:\downloaded\java\J2EETutorial\examples\src\ejb\converter\Converter
    Client.java:15: '.' expected
    [javac] import Converter;
    [javac] ^
    [javac] D:\downloaded\java\J2EETutorial\examples\src\ejb\converter\Converter
    Client.java:16: '.' expected
    [javac] import ConverterHome;

    The Converter and ConverterHome classes do not have to be imported because they are in the same package as ConverterClient. Also I think it is wrong syntax to import without a package prefix.
    Comment out the 2 imports, it will compile.
    Lakshmi.

  • With the left panel, trying to use the Presets, in the tutorial to the left of the commands there are square icons, for example "Lightroom B

    With the left panel, trying to use the Presets, in the tutorial to the left of the commands there are square icons, for example “Lightroom B & W Presets”. On my program they are arrowheads pointing to the right. When I click on any Preset, it does not work.
    Also, Right Panel, Color, White Balance, “As Shot” only has 2 options (auto & custom) vs. tutorial that has 9 options.

    You are not supposed to connect a pair of speakers(as in left and right in a stereo pair)to two separate out jacks on the sound card.the place on the card where headphones/speakers with the mini jack goes is the right place.

  • Problems with Running the Examples in J2ee tutorial-asant utility

    Hello,
    I am just working on the examples given in the J2EE tutorials given by SUN.
    When trying to build the examples using the asant utility,I encounter an error message saying
    "BUILD FAILED"
    and it says some error with the build.xml file (C:\lib not found)
    I think i have all my CLASSPATH settings and PATH setting right.Can anyone suggets me a solution to this problem,so that i can go ahead with the details.
    Thanks
    Sandeep

    did you set the build.properties settings properly ?

  • Java Applet HelloWorld "Getting Started With Applets" example not working

    Hi there,
    It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
    Every time I try and run the example from the following code:
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    import javax.swing.JLabel;
    public class HelloWorld extends JApplet
      // called when the user enters the html page:
      public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
        try{
          SwingUtilities.invokeAndWait(new Runnable()
            public void run()
           JLabel myLabel = new JLabel("Hello World");
           add(myLabel);
            } // end running the application
          }); //end of swing invokeand wait
        } catch (Exception error){ // end user running the app in page
           // System.err.println("GUI didn't work on initial run");
    }It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
    Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
    Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
    Thanks and I look forward to any replies,
    Jeremy.

    in the Getting Started with Java DB tutorial they
    tell u how to set ur "DERBY_HOME" (what is that?).
    once i press enter after typing this command:
    set DERBY_HOME=D:\Java\Java
    Phonebook\javadb in my command prompt do i get
    any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
    they also tell u how to set ur "JAVA_HOME" (what is
    that?). The Java installation you want to use
    in their example they give u this: set
    JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
    but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
    also once ive done this: set
    DERBY_HOME=D:\Java\Java Phonebook\javadb this
    set JAVA_HOME=D:\Program
    Files\Java\jre1.6.0 and this set
    PATH=%DERBY_HOME%\bin;%PATH% and then type
    sysinfo to verify that the variables were set
    correctly i get these errors: 'D:\Java\Java' is
    not recognized as an internal or external command,
    operable program or batch file and '""'
    is not recognized as an internal or external command,
    operable program or batch file any help would
    really be appreciated because this is really killing
    me!you need to set your path variable - so something like:
    set PATH=C:\Program Files\Java\j2se1.4.2_05\bin

  • Applet from Sun's tutorial - can't get it to work

    Hi all - I'm new to Java
    Here's what I did so far:
    I installed the Sun ONE Studio CE.
    I downloaded the example .java files - ClickMe and Spot from the tutorial found at http://java.sun.com/docs/books/tutorial/java/concepts/practical.html
    Using Sun ONE Studio I compiled the two java files into class files.
    I created a html file called ClickMe.html and inserted the code from the tutorial page.
    Now when I open the page (using localhost or the filepath) the applet displays ok and no errors occure. However no red spots apear when I click somewhere in the applet.
    By searcing a little around I was led to beleive that it might have to do with setting the classpath so that the ClickMe.class which is called from the html file can find the Spot.class.
    In command promt I ran C:>set and found that CLASSPATH="\QTJava.zip"
    I then ran the command C:>set CLASSPATH=C:\sun-one-ide\sampledir\spot (which is the folder where the .java, .class and the .html file is on my computer).
    This a) did not help and b) when I restarted my computer was back to CLASSPATH="\QTJava.zip"
    I am running Windows XP professional.
    Am I doing something wrong? Or do I need to install something more like the JRE (I kind of thought that everything needed was installed with the studio)?

    Thank you for your reply. I tried everything you suggested. I checked "Show Java Console", and this is the error message that came when I tried to click inside the applet.
    java.lang.NoClassDefFoundError: Spot
         at ClickMe.mousePressed(ClickMe.java:28)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)Seems like even though the spot.class file lies within the same folder, the ClickMe.class (which is the one that runs as an applet in the html file) can't find it. It again makes me wonder if the CLASSPATH have something to do with this (though I'm just guessing).
    If anyone got more suggestions I'd be very happy.

  • Why hasn't the tutorial been updated to reflect 4.7's lack of a Design View?

    This series uses version 4.5 which is no longer available. It frequently mentions the DESIGN VIEW and how easy it is to use, yet there is NO design view (nor is there a Components tab on the lower left box) in current version 4.7. Not only that, but the code used in several of the first day examples is not valid in Flash Builder 4.7 / Flash Player 11 and the browser refuses to show those examples (btw: most of the examples  still work in 4.7). There are now ActionScript related errors in the examples that demonstrated Design View. You've had 2 years to fix this...
    It seems that you  might be shooting yourself in the foot here by:
    1. Not giving new users who want to learn how to work in this environment current information (or at least linbking to new information). This is NOT a way to encourage new customers!
    2. Not showing any work around options - such as linking to Dreamweaver, Illustrator or Flash Pro in some way? or updating the tutorial and showing how to create the components in the code view?
    3. Marketing? Standards? groups within the company need to anticipate and develop fixes BEFORE making such drastic changes - this has NOT been done and it reflects poorly on the product (which is actually pretty cool)!
    What is the alternative?
    Aren't there other tools in CC that can be integrated in some already well defined way? i.e. I can edit a menu in Encore by selecting "edit in Photoshop". Why can't something like this be available?
    I realize that this is one of Adobe's evolutionary mashup products (ie. Flash uses the timeline that originated in Director, Premiere & AfterEffects use tools acquired from CultEffects and AutoMasker, etc.) so there are many behind the scenes licensing issues that have determined the product evolution (and the products occasionally evolve in unexpected ways) - but it seems a bit contrarian to remove useful features without providing workarounds that users will think are BETTER than the old way!

    Why complicate yourself? Adobe has almost pulled itself off from enterprise level flex delevopment to create new HTML5 tooling.
    They will not pay to upgrade a training that is on the verge of getting unsupported. Just satisfy your training needs with other resources, such as lynda.com, pluralsight, etc.
    Always remember, we are talking about capitalist companies here, if its not done for profit, then its not possible.

  • Plug-In very slow to load (first) applet - is IPv6 the problem?

    G'day,
    I've previously reported a similar [problem on Windows 2000|http://forums.sun.com/thread.jspa] which is also affecting Vista (though not as extreme).
    Each time the Plug-In is launched there is a long delay before the applet is started - during this period I simply see the animated Java logo, no change to its (empty) progress bar and no chatter on the Java Console (trace-level 5).
    There is no delay starting the applet when reloading the page or when subsequently visiting other web-pages hosting applets. With the "next generation" Plug-In the JPI is sometimes shutdown and then later relaunched. The delay occurs each time the Plug-In is relaunched.
    For example, when I visit [http://www.java.com/en/download/help/testvm.xml] the delay is 90 seconds on Vista (JRE6.0_12, IE7 & FF3) versus only 20 seconds on Linux (JRE6.0_12, FF3).
    When I dump the running threads in the Console during the delay I noticed an IPv6 method call (stack trace shown at end) is always running - could it be the culprit?
    I'll also try jstack as suggested in the other thread and report back.
    Thanks,
    Chris.
    "thread applet-testvmDynamicJavaComPopUp819.class-1" prio=4 tid=0x043b8800 nid=0x1460 runnable [0x0587e000..0x0587fa68]
       java.lang.Thread.State: RUNNABLE
         at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.SocketPermission.getIP(Unknown Source)
         at java.net.SocketPermission.getCanonName(Unknown Source)
         at java.net.SocketPermission.impliesIgnoreMask(Unknown Source)
         at java.net.SocketPermission.implies(Unknown Source)
         at java.security.CodeSource.matchLocation(Unknown Source)
         at java.security.CodeSource.implies(Unknown Source)
         at sun.security.provider.PolicyFile$8.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.security.provider.PolicyFile.addPermissions(Unknown Source)
         at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
         at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
         at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         - locked <0x2428f658> (a java.util.HashMap)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         - locked <0x2427b178> (a sun.plugin2.applet.Applet2ClassLoader)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Thanks SoCalGuy...I've been going nutzoid over this problem with the new Firefox 5 and later. Searched the internet and no credible solutions available. I've installed Firefox 6 beta 2 and same problem. Every time I shut down my computer and reboot, Firefox 5 (and higher) takes an eternity to start. No such issue with IE9 or Chrome. Been a long time fan of F/F but this has really tested my patience - no apparent fix and what has been suggested on the internet is a load of goobledygook. Hate to say it but unless F/F addresses this issue I might have to head north. Sob...

  • The call to New-AzureKeyVault in the tutorial fails

    I'm following this tutorial:
    http://azure.microsoft.com/en-us/documentation/articles/key-vault-get-started/
    When running the following statement:
    New-AzureKeyVault -VaultName 'MyTestKeyVault2' -ResourceGroupName 'MyTestResourceGroup2' -Location 'North Europe' 
    I get the following output (I've redacted our subscription/email/resource groups/vault name details):
    The user account that is used for this operation is: [email protected]
    The subscription that is used for this operation is: MySubscription
    Resource Group MyTestResourceGroup2 is created/selected
    VERBOSE: 17:25:23 - Resource group "MyTestResourceGroup2" is found.
    VERBOSE: 17:25:23 - Creating resource "MyTestKeyVault2" started.
    VERBOSE: 17:25:26 - Creating resource "MyTestKeyVault2" complete.
    The user account that is used for this operation is: [email protected]
    The subscription that is used for this operation is: MySubscription
    The user account that is used for this operation is: [email protected]
    No object ID is selected. The current user's object ID will be used by default
    Get-AzureADUser : {"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient pri
    vileges to complete the operation."}}}
    At C:\Dev\Azure Key Vault Powershell scripts\KeyVaultManager\Common.ps1:144 char:22
    + $userByUpn = Get-AzureADUser | where {$_.Mail -eq $UserPrincipalName}
    + ~~~~~~~~~~~~~~~
    + CategoryInfo : CloseError: (:) [Get-AzureADUser], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.GetAzureADUserCommand
    No object ID for the input principal was not found
    At C:\Dev\Azure Key Vault Powershell scripts\KeyVaultManager\Common.ps1:129 char:9
    + Throw 'No object ID for the input principal was not found'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OperationStopped: (No object ID fo...l was not found:String) [], RuntimeException
    + FullyQualifiedErrorId : No object ID for the input principal was not found
    It seems like New-AzureKeyVault calls Get-AzureADUser but that call fails. If I just execute Get-AzureADUser then 
    Get-AzureADUser : {"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient pri
    vileges to complete the operation."}}}
    At line:1 char:1
    + Get-AzureADUser
    + ~~~~~~~~~~~~~~~
    + CategoryInfo : CloseError: (:) [Get-AzureADUser], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.GetAzureADUserCommand
    I'm following the tutorial from top to bottom. We have an Azure AD set up, but there's no mentioning of Active Directory up until this point in the tutorial.
    Is there something which I need to configure within Azure AD prior to running New-AzureKeyVault which is not mentioned in the tutorial?
    Nitramafve

    Hi All,
    Thank You for taking the interest in Key Vault, I am sorry to hear that you have run in to this particular incident and hopefully we can get you unblocked.
    If you currently have 'Limit Guest Access' on the directory set to 'YES' then you will need to read the statement below in order to move forward as in this scenario GUEST do not have the ability to enumerate Directory Objects when access has been limited
    which is what causes this to fail.
    If your administrator doesn't want to limit guest access, then they can toggle the setting on the Directory to state 'Limit Guest Access' to NO which will then allow User Accounts of User Type Guest to enumerate objects.
    If you are using a Microsoft Account that is over user type GUEST and the administrator has chosen to limit guest access then you need to ask an administrator of the directory to run the following command:
    Set-MsolUser -UserPrincipalName someone_outlook.com#EXT#@tenant.onmicrosoft.com -UserType Member
    Furthermore, If your a customer that has multiple Azure Subscriptions ensure that the subscription in question is the current subscription in-use when using the PowerShell Session
    Get-AzureSubscription
    This will give you a list of all your subscriptions, there is an attribute on each subscription called 'IsCurrent' you need to ensure that the relevant subscription your attempting to use has a value of True.
    If this is not the case, then you need to run the command
    Select-AzureSubscription -SubscriptionId GUID -Current
    I imagine most of you here will have multiple subscriptions & directories, and even more so as it is recommended to run this in production it probable that you have a different Azure Subscription you would want to use, and in-turn a different directory
    also. {please take care when checking this info}
    NOTE: If you login to manage.windowsazure.com with your account and go to Settings > Subscriptions from here you will be able to see the GUID translation in to the Directory Name and furthermore there is a last column called 'Default Directory'
    that is the directory your account needs to be a GA off.
    If you have any further questions please be sure to reach out.
    If your currently using Microsoft Accounts in Azure. if your a Microsoft Online Service customers (such as Office 365) and have not linked the Azure Subscription to this directory and want to, check out
    this article to help you out in doing that as Work Accounts are recommended when using Azure in most scenarios and saves you having to login with different creds across portals.
    also, if you want further information on how Azure AD Administrators and Subscription Administrators differ you should check out
    the following article also.
    Regards,
    James.

  • SSL and J2EE - Problems with the tutorial

    I'm trying to make a small amendment to the bank application ('Duke's Bank') which is the main example in the J2EE tutorial. Nothing complicated: just add a simple 'enrollment' page which will be secured through SSL.
    The aim is to demonstrate that J2EE makes it very easy to put a session over a secure SSL channel.
    As I read the documentation, this should be a fairly simple thing to configure. Add a 'CONFIDENTIAL' network security requirement to the WAR component through the deploytool and import a server certificate using keytool. I've done all that and the thing won't work.
    After adding the 'CONFIDENTIAL' requirement I find that using the 'http' protocol serves up a server certificate which I can choose to trust through by IE6.0 browser. But then the application freezes. If I use the 'https' protocol the application freezes without even bothering about the certificate.
    I wonder if the J2EE tutorial setup is so tightly packaged that configuring it for SSL involves a number of undocumented steps related to ports, keystores and security providers. Explaining it all within the context of the tutorial would throw it out of scope so we're not really meant to do things like adding SSL.
    This is a big deal for us -- we're trying to decide if J2EE will be our application platform over the next five years or so. Any assistance here will be gratefully received.
    WR

    The Duke's Bank tutorial can be found at:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/
    It is the last chapter of the tutorial, under the "Putting it All Together" section.
    Andy

  • Error when executing EJB example in J2EE Tutorial

    Hi,
    I am trying Converter example in J2EE tutorial.
    I have created ConverterJAR and ConverterWAR
    ConverterJAR is verified sucessfully when using verifier option
    When verifying ConverterWAR i am getting the following error
    Error: Class [ converter.ConverterHome ] not found in WEB-INF/classes or WEB-INF/lib.
    For [ /ConverterWAR ]
    Error: class [ converter.ConverterHome ] cannot be found within this jar [ war-ic.war ].
    Error: Class [ converter.Converter ] not found in WEB-INF/classes or WEB-INF/lib.
    For [ /ConverterWAR ]
    Error: class [ converter.Converter ] cannot be found within this jar [ war-ic.war ].
    Please let me know if anybody aware of this problem

    I have created ConverterJAR and ConverterWAR
    ConverterJAR is verified sucessfully when using
    verifier option
    When verifying ConverterWAR i am getting the
    following errorCreate an EJB-client JAR which will contain only the home and remote interfaces. Place it in WEB-INF/lib of your webapp and recreate your WAR. This should solve the problem. :)
    $

  • Doubt about applet communicating with the SIM

    Greetings,
    I have this doubt: I am developing a web site which contains a java applet. The web site is going to be available at some web server. The web site is going to be accessed by mobile phones. The idea is that, somehow, the applet communicates with the mobile phone and extract info from the SIM Card for authentication. I still wondering if it is possible and the possible drawbacks or alternatives.
    Thank you in advance,
    Fernando

    Hi,
    you definitely have to sign your applet to do that.
    Check in the forum "Security -> Signed applet". You'll find the information you need to sign an applet.
    For example check at: http://forum.java.sun.com/thread.jsp?forum=63&thread=174214

Maybe you are looking for

  • Why all of a sudden is everything I try to download saying it is not a Win32 application?

    After Firefox updated the other day my pages started stopping and saying a Script had stopped running. Then I tried to download something and couldn't. It acted like it did but it wasn't in the folder, and if I clicked on it in the Download window it

  • Need help on mobile gaming development basic

    my game canvas is like this public a1Canvas(Display display){ super(true); this.display = display; frameDelay = 33; gameOverState = false; public void start(){ display.setCurrent(this); try { //get the images up } catch (IOException ex) { System.err.

  • Creating a Query Filter with the MDX editor

    I want to create a non mandatory predefined condition in the universe where only the last 31 days are returned. I would like to do this in the MDX editor in universe (released in XI 3.1) and not in the BEx query. There isn't much in the MDX editor th

  • Mozilla-bin error

    i get this error allthe time when clicking links and trying to open attached files online. My application (safari or netscape) unexpectedly quits and this is the only explanation i get. Is this viral???

  • Feedback on the BE3000

    Hello Everyone, This is a post to Cisco for a bit of feedback regarding the BE3000. I've been using the device in the lab for the past few days and I wanted to make the follwoing points regarding the BE3K. Just outline where I'm coming from I have a