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

Similar Messages

  • I have an iMac OS X 10.6.8 and have problems with the backup Disk for Time Machine disconnecting itself with the message that I ejected it improperly.. It ejected itself - why?

    I have an iMac OS X 10.6.8 and have problems with the backup drive to Time Machine ejecting itself and so does not automatically backup the way it is meant to do. It is connected with an USB cable to my iMac. What could cause this - malfuntioning drive?

    The "iLife" apps are not part of any Mac operating system install and are a separate purchase.
    Once you get past 10.6.6 you can purchase and download iPhoto, GarageBand and iMovie. iWeb and iDVD have been discontinued.
    Snow Leopard 10.6.6 and higher include the App Store application which is what you use to purchase Lion.

  • Spotify and facebook problem with the date

    Hi, everyone.My spotify account have a problem with the date. I changed the date on facebook and nothing happens with that, the spotify account has a wrong date, is not the same as facebook account

    Hi ,
    By default , RFC accept date format of SQL date (yyyy-mm-dd) . If you are using a date picker from WD, it directly set the date in SQL date format. Incase if you are trying to pass date to RFC in some other way you have to convert that into SQL date format before passing.
    if you are passing String date of format dd-mm-yyyy , you try this method to convert that to SQL date and pass to your RFC.
    public java.sql.Date sqlDateConvert( String date)  {
        //@@begin sqlDateConvert()
         java.sql.Date dateObj=null;
         try{     
              StringTokenizer tempStringTokenizer = new StringTokenizer(""+date,"-");          int dd=Integer.parseInt(tempStringTokenizer.nextToken().trim());
                                    int mm=Integer.parseInt(tempStringTokenizer.nextToken().trim());
              mm=mm-1;
              int yyyy=Integer.parseInt(tempStringTokenizer.nextToken().trim());
              Calendar cal =Calendar.getInstance();   
              cal.set(yyyy,mm,dd);                         
              dateObj = new java.sql.Date( cal.getTime().getTime());
         }catch(Exception e)
              return dateObj;
    Hope this will help you.

  • 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

  • Scanner and fax problems with the Officejet 7410 AIO

    Hi
    I have Windows 7 SP1 Ultimate 64 bit and I installed the basic drivers for the network of the Officejet 7410 AIO printer and I checked that all its functions worked properly.
    Now, the functionality of the scanner and fax do not work more as in the "Devices and Printers" not appear more their relative icons. How come? How do I install them manually?
    Thanks
    Bye
    balubeto

    Hi balubeto,
    Welcome to the HP Forums!
    I see that you are having scanning, and faxing problems with your HP Officejet 7410 on Windows 7 SP1.
    I would recommend the following:
    Run the HP Print and Scan Doctor, to diagnose the issue.
    Uninstall the software. Uninstalling the Printer Software.
    Re-install the software using the HP Printer Install Wizard for Windows.
     Hope this helps, and have a great day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Nokia N85, and my problems with the Nokia N96

    Hi there,
    First of all, i have both phones (after buying the n85, because of issues with the N96), when i go to send a large file from the n96 to the n85 via bluetooth, it wont allow it as it says not enough memory, it seems that you can only send, what free memory your phones internal system has, im deeply confused as the video im sending is over 88mb, and was passed down from my previous nokias without any problems whats so ever, any ideas anybody??????
    Secondly i feel a fool, as i bought like i said the n85 because of the problems with the and i quote" flagship model n96".... well, i can honestly say, ive wasted my money, because after installing the newest firmware 11 on it, it has since been running like a dream, albeit like it should have done last month, but i musnt grumble, now i need to decide which one to put on an auction site.
    ps the n96 was bought with 3 network, the other from an auction site, both work fantastically well with the 3 network.
    ashton

    Hi, beg to differ, I would sell the 96. The 85 is far better,OLED screen; a battery that lasts for days not hours; FM transmitter for when you are in your mates car who doesn't have a bluetooth radio; it breathes!!! is sleeker and of course it has a lens cover, for crying out loud why didn't they fit one to the 96!

  • I use an iMac (27" 3.4) and have problems with the Magic Mouse. It does not use contact, but opens useless and unrelated submenus with every click, even on the empty desktop. I can't shift, open or close pages. Has anyone out there the same problem?

    I use an iMac 27" (mid 2011). Until recently I had OSX 10.6.8 installed, but both, the HDD and SSD had to be replaced, and I lost all the memory.
    After the repair through Apple Care I had OSX 10.7.5. (Lion) installed, which developed a Magic Mouse problem.
    Unlike with most users, I have no problems with connection, but grapple with a different kind of erratic behaviour.
    All fancy stuff is turned off in the mouse preferences. When I try to move, open or close pages, unrelated submenus pop up and hinder the
    required task. No matter how often I click, these menus stay there, and they even come up when clicking on the bare desktop.
    It renders the mouse absolutely useless, as no work can be done with it.
    The first 'Magic Mouse' had depleted batteries every few days, despite switching it off after use.
    I was supplied a new Mouse, which does better battery-wise, but the problems are the same. I can't get a result by clicking on any link, due to
    the pop-up menus, so both 'Magic Mice' are totally useless.
    At present I am using the old USB mouse from my Mac Pro, and that works still o.k.
    The problem are not the mice, but the software. The first 2 weeks after installation of OSX 10.7.5 the Magic Mouse worked though.
    I have no idea as to what the reason may be.
    Has anyone in the community ever experienced that particular problem. Any hint would be welcomed.
    Thank you!

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • I purchased CS6 and had problems with the Adobe Acrobat Pro so i uninstalled and now need to reinstall but serial number wont work. How can i reinstall ONLY Adobe Acrobat Pro since its included in CS6?

    I purchased Design Standard CS6 the entire package. I downloaded and installed but I was continually having problems with Adobe Acrobat Pro. I tried updating to the newest version but it only made the problems worse (acrobat was super slow and constantly not responding). So i decided to try to uninstall and then reinstall the program. Well I uninstalled, and then attempted to reinstall ONLY the adobe acrobat pro but it says my serial number (which is for design standard) will not work. Since Acrobat Pro is included in the suite, i thought this wouldnt be a problem. Is there anyway to get around this without uninstalling the entire design standard and reinstalling everything? I only need to reinstall acrobat pro.

    You need to reinstall Acrobat the the Creative Suite, you cannot download it is a separate application and install it that way because it will be looking for a serial number relative to being a singly purchased application.

  • Problems with the Tutorial...

    Hi,
    I've installed kodo 2.5.2 in Websphere ver.5.
    I've followed all the instructions to run the tutorial:
    I put all the *.java, .jdo and .properties files in a new Project named
    JDO_TEST.
    After using the menu "Add enhancer to build" with the file "Animal.java",
    I've rebuilded all the files and then in the kodo's window appear a
    message error.
    I've opened the log and this is what i've found:
    "!SUBENTRY 1 com.solarmetric.kodo 4 0 Jul 24, 2003 12:19:30.229
    !MESSAGE The Enhancer failed. The message included was:
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
    !STACK 0
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
         at
    com.solarmetric.modules.tools.compiler.ClassArgParser.parseClasses(ClassArgParser.java:71)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:208)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:189)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder$BuildVisitor.visit(EnhancerBuilder.java:55)
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:40)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:30)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:392)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:120)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:176)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:186)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:146)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:160)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:211)
         at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:142)
         at
    org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:156)
         at
    org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)"
    Please, someone help me....
    Pluso

    Pluso,
    It sounds like your project files are not in the classpath that Kodo
    is seeing. Is this at all possible? Can you ensure that your project
    classpaths are correctly set up?
    -Patrick
    On Thu, 24 Jul 2003 11:49:54 +0000, Pluso wrote:
    >
    Hi,
    I've installed kodo 2.5.2 in Websphere ver.5.
    I've followed all the instructions to run the tutorial:
    I put all the *.java, .jdo and .properties files in a new Project named
    JDO_TEST.
    After using the menu "Add enhancer to build" with the file "Animal.java",
    I've rebuilded all the files and then in the kodo's window appear a
    message error.
    I've opened the log and this is what i've found:
    "!SUBENTRY 1 com.solarmetric.kodo 4 0 Jul 24, 2003 12:19:30.229
    !MESSAGE The Enhancer failed. The message included was:
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
    !STACK 0
    java.lang.IllegalArgumentException: The specified class "tutorial.Animal"
    could not be loaded. com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: tutorial.Animal
    NestedThrowables:
    java.lang.ClassNotFoundException: tutorial.Animal
         at
    com.solarmetric.modules.tools.compiler.ClassArgParser.parseClasses(ClassArgParser.java:71)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:208)
         at com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:189)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder$BuildVisitor.visit(EnhancerBuilder.java:55)
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at
    org.eclipse.core.internal.resources.Resource.accept(Resource.java(Compiled
    Code))
         at org.eclipse.core.internal.resources.Resource.accept(Resource.java:40)
         at
    com.solarmetric.modules.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:30)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:392)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:120)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:176)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:186)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:146)
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:160)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:211)
         at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:142)
         at
    org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:156)
         at
    org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)"
    Please, someone help me....
    Pluso--
    Patrick Linskey
    SolarMetric Inc.

  • Compilation Problems with the Tutorial in JDeveloper

    Hello!
    I'm a new user of JDeveloper. So this is typical newbie problem! I am planning to develop a Web Application using JDeveloper 3.0(JRE 1.1.8) and Oracle 8i (8.1.1). As a start I installed JDeveloper and on an Oracle Client machine and tried to run through the tutorial. The tutorial on "Builing Business Components" (displays master-detail relnship between dept and emp tables in the scott/tiger schema) worked fine. Then I tried to convert this to a WebApp - the jsps were generated alright. However when I tried to run main.jsp ..I got a host of errors of the type :
    Error (0) : /Program Files/Oracle/JDeveloper 3.0/myprojects/ not contained in /Program Files/Oracle/JDeveloper 3.0/myprojects/WebApp2/contents.jsp.
    This problem repeated for all the jsp files.
    Clearly some environment variable needs setting. HELP!
    Regards
    Mona

    When you generate the web.xml file, one section is commented as follows:
    <!--
      <servlet>
        <servlet-name>index</servlet-name>
        <jsp-file>/index.jsp</jsp-file>
      </servlet>
    --> 
    You have to uncomment this section.
    Regards,
    Todor

  • Performance and Contention problem with the database ?

    Hello!
    I am having one database which is used by around 95 thousand
    users.Database contain about 4 lakh records. The database is
    going smooth and perfect.
    The problem(perfomance is slow and there is contension too) came
    when i made 4 web applications which contain atleast 1000 hits
    (1000 records are inserted in the database ) per day.
    Now the db is not going so smooth(contention and performance
    problem).
    I think this is happening becuase of those 4 web applications.
    So should i make new database for that 4 applications or i need
    to get the new system for it or there is another way through i
    can tune my running database.
    Any help will be appreciated.
    Regards
    Seemab

    Hi,
    If i well understand, u have one database and u insert 4000 rows
    per day and u have performance problem ?
    I think u have a big problem cause it's not really a big
    intensity on a base. So u should have big problems on ur
    database design such as undersized memory area, bad disk
    repartition, bad types of indexes or something like that.
    To decrease the contention, u should separate ur data and index
    datafiles over differents disks and specialize tablespace by the
    granularity of the table.
    But u r not enough precise to expect a precise answer; could u
    be more precise ? as the server u have, data volumes, a select *
    from v$system_event, etc...
    Good Luck,
    Fred DENIS

  • Problems with the Tutorial in the MDK Documentation

    Hey,
    I have made the tutorial-exercise of the MDK-documentation, in which You try to create a SyncBO and let generate the client application.
    When I do all the steps and import the generated XML-file into my Eclipseproject, it should be possible to test the application on the client, after uploading to the middleware.
    But when I download it to the client by synchronizing and when I´m clicking on the shown link then, it doesn´t start!
    I get the message "The page cannot be found..".
    But when I´m installing other application, like f.e. MAM, I can start it....
    Any ideas?
    Many thanks!

    When you generate the web.xml file, one section is commented as follows:
    <!--
      <servlet>
        <servlet-name>index</servlet-name>
        <jsp-file>/index.jsp</jsp-file>
      </servlet>
    --> 
    You have to uncomment this section.
    Regards,
    Todor

  • My blackberry q10 and its problem with the boradcast

    hii there,
    could you please help me with a problem that i cant solve? , this is why im posting here so i can get the best answer.
    i have almost 2000 bb contacts in my list, and whenever i try to send a BC using "select all " feature, it says the message has been sent but actually it hasnt been sent. i knew this when i asked a couple of friends: have you guys received my bbm broadcast? their answer was no
    also when u usally send any BC, u can find it in any available chat in your chats list so u know its there.
    just so u know, i tried sending a BC to one person and it worked out but when i selected all contacts the second time, it couldnt be sent at all... so please help
    i appreciate your help and immediate support.
    thx,

    hii,,
    well well, this is not my problem only. also a friend of mine is having the same issue. so i guess this is not a network issue, but its a technical one.. broadcasting to 100 people or less than 500 is working.. this is a bbm bug and i would like to report it to blackberry company or the developers of the bbm so if you know how to reach them let me know.. when i used the version 7.1, it was ok all the time. no lagging .. no issues at all. but now... this version pisses me off...
    have to find a solution ASAP

  • W530 and a problem with the sound card

    Hi,
    Whenever I play a song or a tune, I experience a reoccurring glitch or a "bzzzzzt" for about half a second, before the sound gets back to normal. This seems to be totally random, and not caused by heavy usage of RAM or the processor.
    Do you think this is a hardware problem or a driver related issue?
    Any suggestions to solve this are appreciated.

    Hi, Dolve
    This could be either hardware or software, so let's start with trying to get all drivers and software up to date. This page has updates for all your system. I would recommend getting at least your latest audio driver and BIOS downloaded. Following the installation, try using your sound again and see if the issue still persists.
    Best,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Problems with the tutorial Introduction to Java Servlet technology

    Has anyone done this tutorial?
    https://www6.software.ibm.com/developerworks/education/j-intserv/
    I created an application. Created the XML file. Imported the project from the website and tried viewing it in the broswer:
    http://localhost:8080/contacts/
    I get this:
    HTTP Status 404 - /contacts/
    type Status report
    message /contacts/
    description The requested resource (/contacts/) is not available.
    Apache Tomcat/5.0.28

    that means you didn't deploy the app properly.
    go read the tomcat docs for "your first web app"
    %

Maybe you are looking for

  • Mail crash 10.10.3 on Macbook Retina and Imac 5K

    please help me , my Macbook Retina an my Imac 5K crash Mail after open it permanent Date/Time:       2015-04-10 00:58:09 +0200 OS Version:      10.10.3 (Build 14D131) Architecture:    x86_64 Report Version:  21 Command:         Mail Path:           

  • How can I get iPhoto to display ONLY file numbers of pictures and not document titles when displayed as thumbnails?

    I am a pro photographer and I've never used iPhoto. I use a combination of Adobe's Bridge, Lightroom & Photoshop programmes.  I've sent a disk of images to a client and they cannot see the file numbers of the images.  Their version of iPhoto only dis

  • Camera guy needs help with his first build

    Hello all- I work in a video rental house, and I'm sick of renting out $13,000 cameras and $16,000 lens packages all the time and not having the capability to get the gear for free and make my own projects on my own time!  To that end, I'll happily t

  • Pinkish glow around mouse pointer on external screen.

    Since the last update (10.9.1) my mid-2012 macbook air started showing a very peculiar behaviour. Only when connected to an external monitor and waking up from sleep, the mouse pointer on the external monitor comes with a pinkish glow. Very annoying.

  • PO automatic afeter to good issue to a customer

    Hi all My company need this process: After each good issue to a final customer (salesorder->delivery->good issue), a purchase order with the headquarter as vendor (cross company p.order) has to be generated with the same quantity sold to customer. (p