Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Running Applet in MVC web application [modified]

Running Applet in MVC web application [modified]

Scheduled Pinned Locked Moved ASP.NET
asp-netannouncementcsharpc++java
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sandeep Akhare
    wrote on last edited by
    #1

    Hi Guys, I have a applet that runs with no issue in asp.net web application ... Now we are migrating it to ASP.MVC application ..here applet is not working throwing class not foind exception please let me know if anyone could able to run applet in MVC application .. below is the code from view

    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.6.0/jinstall-6u11-windows-i586.cab#Version=6,0,0,11"
    id="DeviceControl">
    <param name="java_arguments" value="-Xmx256m" />
    <param name="CODE" value="/com/XYZ/application/main/SomeApplet.class" />
    <param name="archive" value="all jar path" />
    <param name="type" value="application/x-java-applet;version=1.6" />
    <param name="scriptable" value="true" />
    <param name="mayscript" value="true" />
    </object>

    exception that i am gettting is load: class com.SomeApp.scanner.main.ScannerApplet.class not found. java.lang.ClassNotFoundException: com.XYZ.application.main.SomeApplet.class at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) 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) Caused by: java.io.IOException: open HTTP connection failed:http://localhost:3213/Appname/com/XYZ/application/main/SomeApplet/class at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 7 more

    Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

    modified on Tuesday, November 10, 2009 6:09 PM

    C 1 Reply Last reply
    0
    • S Sandeep Akhare

      Hi Guys, I have a applet that runs with no issue in asp.net web application ... Now we are migrating it to ASP.MVC application ..here applet is not working throwing class not foind exception please let me know if anyone could able to run applet in MVC application .. below is the code from view

      <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.6.0/jinstall-6u11-windows-i586.cab#Version=6,0,0,11"
      id="DeviceControl">
      <param name="java_arguments" value="-Xmx256m" />
      <param name="CODE" value="/com/XYZ/application/main/SomeApplet.class" />
      <param name="archive" value="all jar path" />
      <param name="type" value="application/x-java-applet;version=1.6" />
      <param name="scriptable" value="true" />
      <param name="mayscript" value="true" />
      </object>

      exception that i am gettting is load: class com.SomeApp.scanner.main.ScannerApplet.class not found. java.lang.ClassNotFoundException: com.XYZ.application.main.SomeApplet.class at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) 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) Caused by: java.io.IOException: open HTTP connection failed:http://localhost:3213/Appname/com/XYZ/application/main/SomeApplet/class at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 7 more

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

      modified on Tuesday, November 10, 2009 6:09 PM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your applet has nothing to do with ASP.NET, you're embedding it with the same HTML you'd use if this was PHP. I'd say the class is missing, and that MVC has noting to do with it.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 2 Replies Last reply
      0
      • C Christian Graus

        Your applet has nothing to do with ASP.NET, you're embedding it with the same HTML you'd use if this was PHP. I'd say the class is missing, and that MVC has noting to do with it.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        Sorry Graus, But i think MVC has ..... i think i need to ignore the class path of Applet as its not gettig path of class files.

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

        1 Reply Last reply
        0
        • C Christian Graus

          Your applet has nothing to do with ASP.NET, you're embedding it with the same HTML you'd use if this was PHP. I'd say the class is missing, and that MVC has noting to do with it.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          My Mistake Chris. Actually you are right its no way related to MVC ... thanks for providing right solution

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups