JAVA Applet embedded in a JSP MI Application.

Hi
I am trying to include a Java Applet into a JSP page in my MI application. The code is as follows:
<jsp:plugin type = "applet"
     code = "com.mycompany.applet.myApplet.class">
</jsp:plugin>
It gave me a Class Not Found exception. If I place the class in the same directory that the JSP resides it works properly. It seems that I need to set the codebase and/or archive property to work. But every value I use to set them still gaves me the CLASS NOT FOUND Exception. I am using MI2.5 and the jar file is located at MYAPPS/WEB-INF/lib folder. Any suggestion will be appreciated.

Hi,
   plz try the following and see whether it can be of any help.
<jsp:plugin type = "applet"
code = "com.mycompany.applet.myApplet.class         
codebase=”http://localhost:4444/*”>
</jsp:plugin>
OR
<jsp:plugin type = "applet"
code = "com.mycompany.applet.myApplet
archive="Applet.jar"       -
> jar  
codebase=”http://localhost:4444/*”>
</jsp:plugin>
The codebase plays an important role as when u r running it relatively on a web server, the path for code base becomes relative as is described above.
plz try this and let me know.
regards
anubhav

Similar Messages

  • Problem in display file in java applet embeded browser

    hi, i am facing problem to display the file from local drive in java applet embeded browser. here is the error message i get:
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i think it should be the java security problem and i have try to get the solution from internet. i try to solve by using the fllowing method:
    keytool -genkey -keyalg rsa -alias yourkey
    keytool -export -alias yourkey -file yourcert.crt
    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey
    but the command prompt ask me to enter the keystore password. i try to enter any password. but i show me the error:
    keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect.
    So may i know what is the problem actually?Thanks a lot.

    Hi,
    here is the sample coding :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import com.sun.j3d.utils.behaviors.mouse.MouseTranslate;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import org.web3d.j3d.loaders.VRML97Loader;
    import com.sun.j3d.loaders.Scene;
    public class SimpleVrml extends Applet implements ActionListener {
    String           location;
    String           initLocation;
    Canvas3D     canvas;
    SimpleUniverse     universe;
    TransformGroup     vpTransGroup;
    VRML97Loader     loader;
    View          view;
    Panel          panel;
    Label          label;
    BranchGroup     sceneRoot;
    TransformGroup     examineGroup;
    BranchGroup     sceneGroup;
    BoundingSphere     sceneBounds;
    DirectionalLight     headLight;
    AmbientLight     ambLight;
    TextField      textField;
    Cursor          waitCursor;
    Cursor          handCursor;
    public SimpleVrml() {
    initLocation="cylinder.wrl";     
         setLayout(new BorderLayout());
         GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();     
         setLayout(new BorderLayout());
         canvas = new Canvas3D(config);
         add("Center",canvas);
         panel = new Panel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT));
         textField = new TextField(initLocation,60);     
         textField.addActionListener(this);
         label = new Label("Location:");
         panel.add(label);
         panel.add(textField);
         add("North",panel);
         waitCursor = new Cursor(Cursor.WAIT_CURSOR);
         handCursor = new Cursor(Cursor.HAND_CURSOR);
         universe = new SimpleUniverse(canvas);
         ViewingPlatform viewingPlatform = universe.getViewingPlatform();
         vpTransGroup = viewingPlatform.getViewPlatformTransform();
         Viewer viewer = universe.getViewer();
         view = viewer.getView();
         setupBehavior();
         loader = new VRML97Loader();
         gotoLocation(initLocation);
    public void actionPerformed(ActionEvent ae) {
         gotoLocation(textField.getText());
    void gotoLocation(String location) {
         canvas.setCursor(waitCursor);
         if (sceneGroup != null) {
         sceneGroup.detach();
         Scene scene = null;
         try {
         URL loadUrl = new URL(location);
         try {
              // load the scene
              scene = loader.load(new URL(location));
         } catch (Exception e) {
              System.out.println("Exception loading URL:" + e);
         } catch (MalformedURLException badUrl) {
         // location may be a path name     
         try {
              // load the scene
              scene = loader.load(location);
         } catch (Exception e) {
              System.out.println("Exception loading file from path:" + e);
         if (scene != null) {
         // get the scene group
         sceneGroup = scene.getSceneGroup();
         sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
         sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
         // add the scene group to the scene
         examineGroup.addChild(sceneGroup);
         // now that the scene group is "live" we can inquire the bounds
         sceneBounds = (BoundingSphere)sceneGroup.getBounds();
         // set up a viewpoint to include the bounds
         setViewpoint();
         canvas.setCursor(handCursor);
    void setViewpoint() {
         Transform3D viewTrans = new Transform3D();
         Transform3D eyeTrans = new Transform3D();
         // point the view at the center of the object
         Point3d center = new Point3d();
         sceneBounds.getCenter(center);
         double radius = sceneBounds.getRadius();
         Vector3d temp = new Vector3d(center);
         viewTrans.set(temp);
         // pull the eye back far enough to see the whole object
         double eyeDist = 1.4*radius / Math.tan(view.getFieldOfView() / 2.0);
         temp.x = 0.0;
         temp.y = 0.0;
         temp.z = eyeDist;
         eyeTrans.set(temp);
         viewTrans.mul(eyeTrans);
         // set the view transform
         vpTransGroup.setTransform(viewTrans);
    private void setupBehavior() {
         sceneRoot = new BranchGroup();
         examineGroup = new TransformGroup();
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         sceneRoot.addChild(examineGroup);
         BoundingSphere behaviorBounds = new BoundingSphere(new Point3d(),
              Double.MAX_VALUE);
         MouseRotate mr = new MouseRotate();
         mr.setTransformGroup(examineGroup);
         mr.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mr);
         MouseTranslate mt = new MouseTranslate();
         mt.setTransformGroup(examineGroup);
         mt.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mt);
         MouseZoom mz = new MouseZoom();
         mz.setTransformGroup(examineGroup);
         mz.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mz);
         BoundingSphere lightBounds =
         new BoundingSphere(new Point3d(), Double.MAX_VALUE);
    ambLight = new AmbientLight(true, new Color3f(1.0f, 1.0f, 1.0f));
    ambLight.setInfluencingBounds(lightBounds);
    ambLight.setCapability(Light.ALLOW_STATE_WRITE);
    sceneRoot.addChild(ambLight);
    headLight = new DirectionalLight();
    headLight.setCapability(Light.ALLOW_STATE_WRITE);
    headLight.setInfluencingBounds(lightBounds);
    sceneRoot.addChild(headLight);
         universe.addBranchGraph(sceneRoot);
    public static void main(String[] args) {
    new MainFrame(new SimpleVrml(), 780, 780);
    cylinder.wrl :
    #VRML V2.0 utf8
    # A cylinder
    Shape {
    appearance Appearance {
    material Material { }
    geometry Cylinder {
    height 2.0
    radius 1.5
    view.html:
    <html>
    <applet code="SimpleVrml.class" width=600 height=600>
    </applet>
    </html>
    error msg that i get :
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i can display the wrl file in applet itself but i can't display in the browser.is it any problem with my code?Urgent, please help me. Thanks.

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • No option to Enable the Java applet plug-in and Web Start applications

    How do I Enable the Java applet plug-in and Web Start applications
    Their is no option under java preferences General Tab
    The options i get their are
         Run appelts
              in their own proccess
              Within the browser process
              (Defaut most compatible)
    Under the network tab im told
    By default java applets and web start applications use network settings in the system network preferences. Only advanced users should modify these settings
    Any ideas on why it is like this?

    Mac OS 10.6.8
    This happend once before when I was running 10.5.8 I fixed it but for the life of me i can't remember how i did it.

  • Java applet was loaded in JSP as HTML.

    I was running my web application in Linux platform. I have the lastest mozilla broswer which is 1.7.1. I was installed the Java plugins which this can be proved by i was able to load ICQ2Go of ICQ.com. The Java applet i created was loaded correctly in .html file. Unfortunately the Java applet was not load in .jsp file and a window was pop up to prompt me to go java.sun.com to donwload the proper plugin to view the applet which the link is http://java.sun.com/products/plugin/?application/x-java-applet;. I need help. Please give me a hand. Thank you.
    Coding to load Java applet in .jsp
    <HTML>
    <HEAD>
    <TITLE>Applet In Broswer</TITLE>
    </HEAD>
    <BODY>
    <H1>Applet in Broswer</H1>
    Fibonacci Test in Java Applet.
    <jsp:plugin type="applet" code="foo.FibonacciTest.class" width="800" height="300" >
    </jsp:plugin>
    </BODY>
    </HTML>Coding to load Java applet in .html
    <HTML>
    <HEAD>
    <TITLE>Applet In Broswer</TITLE>
    </HEAD>
    <BODY>
    <H1>Applet in Broswer</H1>
    Fibonacci Test in Java Applet.
    <APPLET CODE="foo.FibonacciTest.class" WIDTH=800 HEIGHT=300>
    </APPLET>
    </BODY>
    </HTML>

    Whoops.. I even make a mistaken on the title of my problem - should be is Java applet was not loaded in JSP as HTML. The problem was solved. Thanks for anyone who had view this.

  • Socket communication failure between Java applet and C++ application

    I have a java applet that connects to a C++ application via Java's ServerSocket and Socket objects. THe C++ application is using the Winsock 2 API. The applet and application are running on an NT workstation (SP 6) and using IE (5.5) For a very simple C++ test applications the communictions work fine. Once more code gets added to the C++ application the portion of the socket that C++ listens to seems to close. Upon performing a recv call the return value is a zero. Microsoft insists this is a sign the Java side has shut down the socket. The Java applet can still receive messages from the C++ app but C++ cannot receive responses from the Java side. Java throws no exceptions and an explicit check of the socket shows no errors. Again, what puzzles me is that it works for simple C++ applications. Are there any known conflicts between Java and C++ in this regard?
    I have inlcuded the basic java code segments below.
    / run Method.
      * This method is called by the Thread.start() method. This
      * method is required for the implementation of the Runnable interface
      * This method sets up the server side socket communication and
      * contiuously loops looking for requests from a external
      * socket.
      * @author Chris Duke
      public void run(){
         // create socket connections
         boolean success = false;
         try {
             cServerSocket = new ServerSocket(cPortID);
             System.out.println("Waiting for client to connect...");
             cClientSocket = cServerSocket.accept();
             System.out.println("Client connected");
             // Create a stream to read from the client
             cInStream = new BufferedReader(new InputStreamReader(
               cClientSocket.getInputStream()));
             // Create a stream to write to the client       
             cOutStream = new PrintWriter(
               cClientSocket.getOutputStream(), true);
             success = true;
         }catch (IOException e) {
             System.out.println("CommSocket:Run - Socket Exception(1) " + e);
             success = false;
         // if the socket was successfully created, keep the thread running
         while (success){
             try{
                // check socket to see if it is still available for reading
                if (cInStream != null && cInStream.ready()){
                    // check for an incoming message
                    String message = ReceiveMessage();
                    // Send message to listeners
                    Event(message);
                if (cInStream == null){
                    success = false;
                    System.out.println("CommSocket:Run - shutdown");
             }catch (IOException e){
                System.out.println("CommSocket:Run - Socket not ready exception");
                break;
    // SendMessage method -
      *  Sends a text message to a connected listener through port specified by portID
      * @author Chris Duke
      * @param  String message - This will be the message sent out through the server
      * socket's port specified by portID.
       public void SendMessage(String message){
          cOutStream.println(message);
          if (cOutStream.checkError() == true)
            System.out.println("SendMessage : Flush = Error");
          else{
            System.out.println("SendMessage : Flush - No Error");
       }

    a very simple C++ test applications the communictions work fine. Once more code gets added to the C++ application the portion of the socket that C++ listens to seems to close.
    This quite strongly implicates the extra code in the C++ App. The firstly thing I would try would be telnet. Try connecting to both versions of the C++ Application and manually reproducing a proper exchange.
    a recv call the return value is a zero. Microsoft insists this is a sign the Java side has shut down the socket.
    A correct implementation of recv should return the number of bytes received, or -1 for an error. A zero return indicates no bytes received not a socket closed/error. This sounds like FUD to me.
    Are there any known conflicts between Java and C++ in this regard?
    I can see no obvious faults, though the code is incomplete, I don't think it's an sockets implementation issue, at either end, it sounds more likely to be a protocol/handshaking bug in the C++ App.

  • Run a java applet whitin a application ?

    Is it possible for an application to start a java applet and run it inside the application, say on a Jpanel ?
    Regards
    Per

    Yes. Just remember that it's now you who is responsible for calling init and start.
    (there will be some problems if the applet calls methods like getCodeBase and getParameter)

  • Java Applets in Safari

    I'm trying to run a Java applet with safari, but everytime I go to the webpage all I get is a grey box with a picture of a coffee cup that has two arrows circling it. Nothing loads after that. Any idea how to fix this?

    Hi ad1054,
    Are you sure you have java 1.6 and if so, how did you get it? I believe the latest version available from apple is 1.5.0_06. Java 1.6 was only just released by Sun, and, if I'm not mistaken, only for PC and Linux. Apple may be waiting to force people to pay for Leopard to get Java 1.6. (Though you can get a beta version from developer.apple.com.) As Hawaiian_Starman mentioned above, you can check your java version.
    That said, you don't have to worry about lower versions of Java because Java is backwards compatible. In fact, if you use Firefox (sorry, but I just checked it in Safari, and got a blank page so I guess Safari, like IE, doesn't support this) and go to "about:plugins" you will see something like
    <pre>
    Java Embedding Plugin 0.9.5g2
    File name: MRJPlugin.plugin
    Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Test Your JVM.
    MIME Type Description Suffixes Enabled
    application/x-java-vm Embedded JVM xjv Yes
    application/x-java-applet Embedded Java Applet xja Yes
    application/x-java-applet;version=1.1 Embedded Java Applet xja11 Yes
    application/x-java-applet;version=1.1.1 Embedded Java Applet xja111 Yes
    application/x-java-applet;version=1.1.2 Embedded Java Applet xja112 Yes
    application/x-java-applet;version=1.1.3 Embedded Java Applet xja113 Yes
    application/x-java-applet;version=1.2 Embedded Java Applet xja12 Yes
    application/x-java-applet;version=1.2.1 Embedded Java Applet xja121 Yes
    application/x-java-applet;version=1.2.2 Embedded Java Applet xja122 Yes
    application/x-java-applet;version=1.3 Embedded Java Applet xja13 Yes
    application/x-java-applet;version=1.3.1 Embedded Java Applet xja131 Yes
    application/x-java-applet;version=1.4 Embedded Java Applet xja14 Yes
    application/x-java-applet;version=1.4.1 Embedded Java Applet xja141 Yes
    application/x-java-applet;version=1.4.2 Embedded Java Applet xja142 Yes
    application/x-java-applet;version=1.5 Embedded Java Applet xja15 Yes
    </pre>
    You can see from this list that all versions up to and including the currently installed one are supported. The only thing you have to fear is that the applet you are trying to use was compiled with Java 1.6 and is not itself backwards compatible. However, when I made a test applet of this type, I got a red X, and no coffee cup.
    If you see the red X, and I think the coffee cup as well, you should be able to right-click (or ctrl-click) the icon. If so, this will give you a menu with "console" and "about" choices. "About" will give you the version of Java you have, and "console" is supposed to show you the errors that kept the applet from working. (However, with my Java 1.6 test, the console was empty.)
    I hope this helps.
    1.5GB, 2.16 GHz Core Duo, 15.4" Macbook Pro   Mac OS X (10.4.8)  

  • JComboBox shows "Java Applet Window" as last element

    Hey all,
    I am having a problem with using JComboBox. When I use JComboBox and show it in a JDialog (popup window), the last element of the drop down (JComboBox) is "Java Applet Window". This element is, however, not selectable. I want to get rid fo the "Java Applet Window" in my dropdown.
    This problem only happens when my applet opens up a JDialog that has the JComboBox, but does not happen when I add the JComboBox directly to the applet.
    I've read around in other forums that this has to do with security. I understand the need to show that a popup window (JDialog) is an applet window so the user doesn't mistake it as one of the native windows. But, the JComboBox is not a whole 'nother window, so why does it feel the needs to add that last line to designate it as a "Java Applet Window?"
    Thanks.
    Nina.

    My apologies, I did not clarify myself in my question. Sorry that I created misunderstandings of the problem - as evident in the response in the previous post from himanshug.
    I am using JDK 1.3.1
    I must use an applet, but all my components are standalone. They can be ran as a standalone application. But for deployment, we are using applets. It's easier to do applets so clients can access via browser than deploy a whole application installation on 50 machines halfway across the world.
    And no, there is no element in my list that says "Java Applet Window". When running my application standalone, the "Java Applet Window" does not appear as the last element in my drop down.
    The "Java Applet Window" also does NOT appear when I add the drop down directly to the applet. It only appears when the drop down is in a JDialog that gets launched by an applet.
    My problem: How to get rid of the "Java Applet Window" as it seems something is adding this to my dropdown. And it's not my code that is adding it.
    Thanks. I am also up'ing the duke dollars for a solution to this to 15.

  • Replacing all java applets

    Hi, 
    What technology shoud we use to replace all  the Java Applets in our MII applications ¡? .  The reason is that java applets slows them down  ,  sometimes the application screen ( GUI ) seems like not  responding & when the end user is proactive changes his computer  java version to the latest  which does create other kind of problems to the MII applications .
    Furthermore,  we want our MII applications running on plataforms which do not  support java applets ( ipads for example ) .  I guess that our next move is to use AJAX, JQUERY & XSLT technologies instead of java applets,  but still we would like to make sure that there is no another way .
    Thanks in advance ,
    Note : We are running a MII 12.2.3 build 167 sp 5  with a 7.11 CW NW version

    Hi Fernando
    The best UI technology providing rich UI is HTML5 currently which is supported on all devices and browsers (IE9 is minimum) but with varying degrees of support with Chrome the best but others are not too far behind.
    The easiest way to replace the Applets and use HTML5 rendering is to upgrade to MII 14.0 SP4 and use the SAP UI5 based i5Charts, i5Grid.
    If you cannot upgrade to MII 14.0 or higher (15.0 has some cool features as well) you may do this on your own where you may use one of several HTML5 based charting libraries like D3, High Charts etc but the work will be more for you as MII 12.2 does not have JSON support (available with MII 14.0 again) and you will have to work with XML or write custom code to convert XML to JSON.
    So my suggestion would be upgrade and use i5 Charts as these look much better, are faster and provide almost the same support as the applets. Also these charts would be developed in the future in MII but the applets would remain mostly in maintenance mode. This means new features would, most probably, be only added to the HTML5 charts in MII.
    Best Regards
    Partha

  • Applet not loading from jsp

    using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
              the compiled applet UploadScreenshots.class is bundled into a web app
              file named roach.war and resides in the following directory in the war
              file:
              WEB-INF/classes/roach/web/applets/UploadScreenshots.class
              trying to deploy applet from jsp with following plugin definition in
              jsp:
              <jsp:plugin type="applet"
              code="roach.web.applets.UploadScreenshots.class"
              codebase="/classes/"
              height="200" width="500"
              jreversion="1.3"
              nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
              iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
              <jsp:fallback>
              <font color=#FF0000>Sorry, cannot run java applet!!</font>
              </jsp:fallback>
              </jsp:plugin>
              when executing the jsp from the browser, get the following error
              message when browser attempts to load the applet:
              Exception: java.lang.ClassNotFoundException:
              roach.web.applets.UploadScreenshots.class
              however, when codebase attribute is removed from plugin element
              definition and the compiled applet class (and its directory) is moved
              to the same directory as the jsp, the applet loads and works without
              any problems!
              what's up???
              

    joseph,
              thanks for the follow up. i still was not able to load the applet from
              the web-inf directory so i just jarred up the applet, stuck the jar
              file in the jsp directory, and added the archive attribute to the
              jsp:plugin element. everything loads and works fine. maybe i'll
              revisit loading applets from the web-inf directory later. thanks
              again.
              rick
              "Joseph Nguyen" <[email protected]> wrote in message news:<[email protected]>...
              > Rick,
              >
              > Take a look here real quick:
              > http://e-docs.bea.com/wls/docs70/jsp/trouble.html#error-plugin. It's not
              > much, but if it doesn't help please open a case with BEA Support via
              > WebSupport portal here http://support.bea.com/welcome.jsp as there is no
              > existing issue in our bug db right now with the jsp:plugin tag.
              >
              > Regards,
              > Joseph Nguyen
              > BEA Support
              >
              > "rick bryant" <[email protected]> wrote in message
              > news:[email protected]...
              > > using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
              > >
              > > the compiled applet UploadScreenshots.class is bundled into a web app
              > > file named roach.war and resides in the following directory in the war
              > > file:
              > > WEB-INF/classes/roach/web/applets/UploadScreenshots.class
              > >
              > > trying to deploy applet from jsp with following plugin definition in
              > > jsp:
              > > <jsp:plugin type="applet"
              > > code="roach.web.applets.UploadScreenshots.class"
              > > codebase="/classes/"
              > > height="200" width="500"
              > > jreversion="1.3"
              > >
              > nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
              > >
              > iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"
              > >
              > > <jsp:fallback>
              > > <font color=#FF0000>Sorry, cannot run java applet!!</font>
              > > </jsp:fallback>
              > > </jsp:plugin>
              > >
              > > when executing the jsp from the browser, get the following error
              > > message when browser attempts to load the applet:
              > > Exception: java.lang.ClassNotFoundException:
              > > roach.web.applets.UploadScreenshots.class
              > >
              > > however, when codebase attribute is removed from plugin element
              > > definition and the compiled applet class (and its directory) is moved
              > > to the same directory as the jsp, the applet loads and works without
              > > any problems!
              > >
              > > what's up???
              

  • Debug applet embedded in jsp using tomcat and eclipse

    I am trying to debug applet embeded in jsp. I have deployed my application on tomcat.
    The steps I followed
    1. Added JVM rumtime parameters in Java plugin control panel
    -Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:8000,suspend=n
    2. Added JPDA_ADDRESS = localhost:8000 and JPDA_TRANSPORT=dt_socket to catlina.bat
    3. I start my server from commandline prompt "catalina.bat JPDA start"
    4.I have made a new configuration for remote debug in eclipse debug>new> connection type (socket attach) >port 8000
    5. when I open my application url in browser browser closes and command prompt displays "*Debugger failed to attach , timeout before handshake*"
    Any help on this ?
    Thanks in advance

    Personally, I have no knowledge about Applet but have you checked this link?
    [http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101|http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101]

  • How can i convert java application of bibeans to java applet?

    Hi Bibeans PMTeam,
    Bibeans provide two type client:java application and web client(JSP/Servlet),because web client's function is weaker than java app,so we want to convert java app to java applet,thus,we can embed java applet into web browser(our system framework is in web browser).
    That is,we want one applet client that commution with a server side service(can by socket,just like oracle 9i form service)that provide the data that applet need,or the applet connect to olap server and bibeans catalog server by socket(this need security authentication if olap server,bibeans catalog,web server is not in one machine).
    so we need you provide whole resolve scheme,thanks a lot,if this answer is not clarity,please connect:[email protected],thanks a lot!

    hi tomsong
    well, in my experience 20mb are quite large for an applet. also take into account that you need a certain jvm that supports this type of application (my guess is that internet explorers native vm isnt an option)
    i personally would tend to deliver the functionality via java webstart (look at the sunsite):so you can centrally manage the software, download it once and opertae an application on your client (i mean an APPLICATION and not an applet)
    regarding 2: well but there is NO bibean service in ias: so you have to open the former mentioned jdbc connection to the olap service from your client
    for the availability: you have to check with the pm team
    in the meantime: what about the following approach: give power users a java application and lightweight or random users a handy html client ?
    regards,
    thomas

  • Embedded Java Applet NullPointerException in JSPX pages

    We have a ADF web application programmed in JDeveloper 11g (11.1.2.4.0), which was migrated over from a 10g (10.1.3.5.0) project
    Within the application, occasionally, we need to call a Java Applet which is placed in a public_html/applet folder. The jars show up in the Web-Content tab of the ViewController in the Application Navigator, just like it did in 10g.
    The applet tag looks like this:
    <applet height="100" width="100" code="applet.SetupApplet" archive="applet/SSetupApplet.jar">
                <param name="debug" value="true"/>   
    </applet>
    I've also tried calling the applet with the Java deploy applet script
    <trh:script source="http://java.com/js/deployJava.js"></trh:script>
        <trh:script>
            var attributes = {code:'applet.SetupApplet',
            archive:'applet/SSetupApplet.jar'};
            var parameters = {} ;
            var version = '1.6' ;
            deployJava.runApplet(attributes, parameters, version);
       </trh:script>
    When I navigate to the login.jspx page that has this tag, it pops the Java Console open, but doesn't actually run the applet (or show the prompts to allow using the Applet). Instead, the applet is shown with an error and the error says "NullPointerException". I've double-checked the path and it's correct (with incorrect paths, I get a ClassNotFoundException). In the application server logs, I see the following error:
    <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it on IPADDRESS during the configured idle timeout of 5 secs>
    I created a normal .jsp file that's outside the ADF Faces Context in the applet folder. Navigating to it with the same applet tags does have the Java applet run without the socket error. The same code in 10g works fine.
    Is there anything I'm missing?
    Thanks.

    Hi,
    this is how I did it in 11g R1: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf
    Frank

Maybe you are looking for

  • Generate Absence Quota For Every 5 Years Service

    Hi Expert, First of all, I'm not familiar with PCR as I'm new with time management. Annual leave is generated via RPTQTA00 with no problem. But we have another absence quota (long leave) that is given to the employee every 5 years (22 days of leave).

  • Error while building execution_Plan_name in DAC

    Hello All, While trying to built a execution plan in DAC execute view the following error is displayed after clicking on Build? MESSAGE:::NodeList size size cannot be less than 1 EXCEPTION CLASS::: java.lang.IllegalArgumentException com.siebel.analyt

  • Is There A UK Contact Tel Number For Tech Support,...

    Is There A UK Contact Tel Number For Tech Support, Complaints & Billing?

  • Problem in sending e-mail from workflow task

    I configured the TS20000095 for sending a mail to PERNR when his trip was approved. I generated the auto binding for the task. But I am getting error in task saying "Work item 000000393101( work item id): Object 000000393101 method SENDTASKDESCRIPTIO

  • What is a code purple?

    I have a Touch Smart and tried to formatt it and got the error message: code purple. What can I do to fix this? My warranty is out.