Can't get jsp:plugin to work with jb5

I am trying to get a Swing applet compiled with JDK 1.3.1 to run on a jsp page using the <jsp:plugin> tag. At this stage it is a ridiculously simple applet (just some JLabels and JTextFields) but I can't get it to work. Here is the jsp code:
<jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
codebase="./WEB-INF/classes" jreversion="1.3.1"
width="400" height="175">
<jsp:fallback>
Plugin support could not be determined
</jsp:fallback>
</jsp:plugin>
When I run it in the jb5 ide nothing shows up at all. OK, I figured the ide doesn't support the plugin, so leaving the ide running (which provides me with a web server) I go into IE (version 5) and enter the url to the page, which is http://localhost:8080/AppletCommunications/GanttApplet.jsp
I get the page, and the gray box saying loading the applet but the plugin console tells me:
load: class nz.astarte.ganttapplet.GanttApplet not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://localhost:8080/AppletCommunications/WEB-INF/classes/nz/astarte/ganttapplet/GanttApplet.class
Why not? Under the directory where the jsp page is located is the directory structure WEB-INF/classes/nz/astarte/ganttapplet and in that directory is a GanttApplet.class file.
I cannot understand why it isn't found. Do applets work with the jb5 ide? Is there something blindingly obvious that I've missed?
Thanks, Andrew

I appear to have solved it, but it is not clear to me why.
I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
<jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
codebase="."
archive="GanttApplet.jar"
jreversion="1.3.1"
width="400" height="175">
<jsp:fallback>
Plugin support could not be determined
</jsp:fallback>
</jsp:plugin>
This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
Thanks, Andrew

Similar Messages

  • Can't get JSP debugging to work with WebLogic 6.0 and Eclipse 2.1.1

    Is native JSP debugging supported in WebLogic 6.0? If so, what are
              the steps involved in getting it to work? I'm in debug mode and my
              servlets will catch at my breakpoints but the JSP pages' breakpoints
              are ignored. I am using compliance level 1.3 and a JRE 1.3. I tried
              to start WebLogic with the 1.4.2 JRE but I get an exception error on
              the WLS JDK name" field. What am I missing here?
              Thanks!
              

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • Can't get out.print to work with XML jsp tags

    <jsp:scriptlet>
    if(ErrorTrap == true) {
         out.println("<tr><td colspan=\"center\" align=\"center\">There was" an error while processing the form</td></tr>");
         ErrorTrap = false;
    </jsp:scriptlet>
    I can't get this script to work with the XML stype jsp tags. It keeps telling me the <jsp> tags are untermintaed. Is there a special trick to fix this or do I have to use the non-XML type tags?

    Sorry, I didn't mean to put the extra " in the out.println text string. :-/

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • How can I get my ipod to work with itunes?

    When I connect my ipod classic into my new computer it seems that itunes does not recognize it. How can I get my ipod to work with itunes? I'm afraid to disconnect my ipod because the display is saying Do Not Disconnect.

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • Can't get Palm Zire to work with windows 7

    Can't get palm zire to work with windows
    Post relates to: Palm Pilot

    Please review the "stickied" threads near the top of this board, about syncing with Windows 7 and Vista.  It's all there. 
    After you've been through and tried everything there is to try, and still have problems, please post back with specific info about exactly what you've tried, what version of Windows 7 you have (32-bit or 64-bit), etc.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • How can I get elements 11 to work with 16 bits photos?

    In the expert mode of Photoshop Elements 11, I can only work with 8 bits photos. How can I get Elements 11 to work with 16 bits photos?

    No, you can still buy photoshop cs6 (perpetual license) if one doesn't want to subscribe to the cloud version (photoshop cc version 14)
    Either way is expensive compared to photoshop elements.
    http://www.adobe.com/products/cs6.html?promoid=JOLIS

  • How can I get photoshop CS2 to work with Windows 8.1?

    how can I get photoshop CS2 to work with Windows 8.1?

    Have a look at
    http://forums.adobe.com/message/4976720
    Cheers
    John

  • How can i get ical invitations to work with outlook users?

    how can i get ical invitations to work with outlook users?
    I can send ical meeting invitations but outlook users are having problems having the meeting show up in their calendar….

    My Epson is able to do scans using Image Capture without any problems at all.
    Allan

  • How can I get Phillips Fidelio to work with ios7

    How can I get Phillips Fidelio to work with ios7. It worked with the previous operating system

    Not sure if this is the same problem others are having, but I used to play music on my Philips Fidelio by opening the Music app on my ipad and clicking on the box with the triangle (which has now disappeared in the new OS). However, if you have the philips dockstudio app, the box still appears there and I was able to get my speakers working again.

  • How can I get my iMac to work with scanners?

    How can I get my iMac to work with scanners? The scanners scan just fine, but not to my iMac. I've tried Epson and HP all-in-ones; it makes no diffference. I'm becoming extremely displeased, but don't know at whom I should be displeased, the printer guys or Apple. Help?

    My Epson is able to do scans using Image Capture without any problems at all.
    Allan

  • How can I get Java plugin to work

    How can I get Java plugin to work ?

    Greetings Dun1203,
    Welcome to the Apple Support Communities!
    I understand that you would like to install or update Java on your Mac. For information on this process, please use the information provided in the attached link. 
    Java updates available for OS X on August 28, 2013 - Apple Support
    Cheers,
    Joe

  • HT4623 iPad 3 how can l gets the SIM card works With iPad 3

    As all we know its christmas time l just received the gift for iPad 3 &amp; l notice that it need SIM card for me to use as the phone &amp; data,how can l gets the SIM card works With iPad 3

    Remember am in South Africa &amp; we got few carrier nets am in MTN provide &amp; I c my sim looks so big to fit on my iPad

  • Is there an adapter can i get so square will work with the otterbox i have on my iphone

    Is there an adapter can i get so square will work with the otterbox i have on my iphone, I love the otterbox and want to keep it on all the time. not only does it protect my iphone it, it makes it easy for me to hold because I have trouble with my hands. please help

    That's a good question. The main problem with the Square readers is that the plug is designed to send data to devices, rendering most headphone extension cables useless.
    Reading another forum I saw this: http://www.amazon.com/gp/product/B001BN7XSM
    Give that a try. Claims to work perfectly for Square. NOT headphones.

  • I can't get airport extreme to work with iPad

    I can't get airport extreme to work with iPad

    Ok, thanks for clarifying that for me. We have two distinctly different printing problems. Let's try tackling them one at a time if you don't mind.
    In order for the iPad to print to a printer it would either have to be AirPrint-enabled or you would need another solution, like PrintCentral for iPad or Printopia. Unfortunately, I don't believe your Canon printer is AirPrint-enabled. There aren't many printers on the market that currently are. All of them, that I am aware of, are HP devices.
    Now for the PC. I would go with what you have already suggested and that is try disabling either the Windows or third-party software firewall. Which version of Windows is it running? Just in case it's XP, here are two excellent iFelix articles on how to do so with or without using Bonjour.

Maybe you are looking for

  • Switch Document not created

    Hi, Need some suggestion for the below concern. I am trying to created switch document in IS U system from BOR Object i.e. ISUSWITCHD. But switch document is getting created with Error. I have checked the datex process is configured and updated for t

  • Data source and attribute list transport

    Hello gurus! How can we transport data source and attribute list to another system? In IMG system writes "Transport is not required". Best regards, Artur Litvinov.

  • Screensavers in apple stores (UK)...

    I took a trip down to the apple store in manchester arndale centre and on some of the macs that hadn't been used the screensavers were up, which is pretty normal. But the new advert with the fratellis song on and the colourful siloettes dancing aroun

  • Oracle Backup End to End Automation with BRBACKUP and RMAN

    Hi, We are about to implement a Oracle on mySAP 2004 or 2004 i.e. either NW2004 or NW2004s. Currently we are on DB2 UDB. We are going to use legato for backup. legato networker module (I guess this is module built for BACKINT)  for SAP is too costly,

  • XL Reporter in office 2013

    hi all, does XL reporter works with Excel 2013? Am getting error message like this Security Settings in Microsoft Excel Prohibit XL Reporter from Running even if VBA is enabled in macro settings. please help. thank you