Mapping problem of JnlpDownloadServlet from .Jnlp file

Hello All,
1. I am trying to run a java web start application, i am using tomcat 5.5.20 server. I am using the JnlpDownloadServlet to use the $$codebase and $$name to dynimically code the path to the jar's and the jnlp file.
Here is what i have done:
Here i have a JnlpDownloadServlet in a seperate folder called (D:/apache-tomcat-5.5.20/webapps/online/server1/WEB-INF/lib/jnlp-servlet.jar).
2. Now i am placing my .jnlp and my application jar's in a seperate folder called *"client1"* (D:/apache-tomcat-5.5.20/webapps/online/client1/)
I need to have the client1 and server1 folders and i have to map the servlet to the jnlp file, because i want to keep my jars's and the servlet in a seperate folders.
3. I have the web.xml file in WEB-INF folder.
4. web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<servlet>
<servlet-name> JnlpDownloadServlet</servlet-name>
<servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JnlpDownloadServlet</servlet-name>
*<url-pattern>../client1/*.jnlp</url-pattern>* *<!-- /* I am having problem here, i think */ -->*
</servlet-mapping>
</web-app>
Myapp.jnlp:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="$$codebase"
href="$$name">
<information>
</information>
<resources>
<j2se version="1.6+"/>
<jar href="$$codebase/XXXXXX.jar" main="true" download="eager"/>
     <jar href="$$codebase/XXXX.jar" download="eager"/>
     <jar href="$$codebase/XXXXX.jar" download="eager"/>
<nativelib href="$$codebase/XXX.jar" />
</resources>
</jnlp>
While i run the application. i get the following error:
Error occured when trying to run a Java web start application
BadFieldException[ The field <jnlp>codebase has an invalid value: $$codebase,$$codebase]
     at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
     at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
     at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
     at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
     at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
     at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
     at com.sun.javaws.Main.launchApp(Unknown Source)
     at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
     at com.sun.javaws.Main$1.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
I need to resolve the mapping issue, because the servlet is not running and the codebase and href variables are not populated.
Thanks in Advance.

Hi Peter,
to use messages of two different SWCVs in a BPM you need to create a based on relationship between the two SWCVs in SLD. BPM restricts object usage to the SWCV in which the BPM itself resides, so to solve your problem go to the SLD content maintenance and select your SWCV of your BPM, click on Usage Dependencies, then select Define Dependencies, choose Installation Time and then the SWCV in which the other objects reside, click save and your done. You might need to reimport the SWCV to the repository to update the relationship there. It is updated as soon as you can see Basis Objects in the SWCV tree.
best regards
Christine

Similar Messages

  • Problem in importing from dmp file

    Hi ,
    I am facing problem while importing from dmp file on unix server
    Error is as follows :
    Export file created by EXPORT:V08.01.07 via conventional path
    IMP-00013: only a DBA can import a file exported by another DBA
    IMP-00000: Import terminated unsuccessfully
    Export taken was with user xxx@yyy
    import command is : imp xxx/ppp file=abc.dmp TABLES=xxx.table1 ignore=y feedback=500
    please help me out.
    Atul Chougule

    I tried with FROM USER / TO USER , but the result is same.
    $ imp uuu/ppp file=aaa.dmp fromuser=uuu touser=uuu ignore=Y
    Import: Release 8.1.7.3.0 - Production on Thu Jun 15 06:44:49 2006
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.3.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    IMP-00013: only a DBA can import a file exported by another DBA
    IMP-00000: Import terminated unsuccessfully
    I am stucked up ,Dont know what to do .

  • Problem enlarging photo from saved file

    I saved my file to Maximum 12 on PSE7 and it won't let me print anything larger than an 11 x 13 photo.
    How should I save my file so that I can print as large as a 20 x 20.
    Help please!

    I saved my file to the largest setting on PSE7 (Maximum 12) and saved it to a disc, then took the disc  to Wolf Camera to print and the message I got when  trying to print was that the resolution was too low to print to a
    20" x 30" - it won't even print to an 8 x 10.
    I now know why the pros charge so much to print enlargements...
    Any help is greatly appreciated.
    Thank you!
    Date: Tue, 29 Jun 2010 13:16:05 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problem enlarging photo from saved file
    What won't let you?
    >

  • Problem loading Applets from Jar files on 64 bit machine

    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases. The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Below are all of my test results. Can someone provide a suggestion for repairing this? The Windows Server machine is a clients computer I access to it via remote desktop but I can't do much with it though I do have administrator rights. The Windows 7 machine is my development platform so I have been able to do extensive testing on it.
    This problem is presenting in the following environments when trying to load an applet from JAR files in a HTML document using the Applet or Object tag.
    Windows Server 2008 (Intel Chipset)
    Tested Browsers:
    Internet Explorer 9 (32 bit) - Shows it is blocked by default then simply shows an x when loaded from a web page, same result when loading from local drive.
    Windows 7 Home Premium (AMD Chipset)
    Tested Browsers:
    Firefox 6.0.1 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (64 bit) - Java logo shows with spinner and most of the windows desktop manager freezes, keyboard is the only thing that responds so you can alt-tab to another app to regain control of the desktop.
    Chrome (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    The only way I have been able to get a Java applet to run on a 64 bit machine are the following ways.
    Firefox 9 nightly (64 bit) works perfectly! Go Firefox!
    Internet Explorer 9 (32 bit) loading directly from drive (c:\...)
    Chrome (32 bit) loading directly from drive (c:\...)
    Firefox 6.0.1 (32 bit) loading directly from drive (c:\....)
    Can someone please help! I've been fighting with this bug for over a week and I can't find anything that will solve it, I have noticed that in some cases if my jar has very little code in it than it will run on the server, but the minute I start adding things to it the jar won't load anymore.

    jschell wrote:
    rritoch wrote:
    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases.
    To clarify...
    1. You have tried it on 32 bit machine? Exactly which OS?I tested this on Windows Vista Business which is in 32 bit mode and the applets run without any problems
    >
    2. Your only 64 bit tests have involved 2008/Win7?
    If so then I would suspect something with windows not java. Probably permissions.
    The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Yes, I haven't tried running the jars on other operating systems.
    >
    I don't understand that. If you are running on localhost then you should connect to localhost. If running on an IP then you should connect to that. Perhaps you meant that you have tested using both of those?I'm testing using the lan ip address but I'm connecting from the same machine. I've tried localhost and that didn't work so I tried lan ip since that will likely have a different java security context than localhost. At first I was blaming the IIS server but I downloaded the jar directly and using HTTP fox was able to verify that the jar is being sent with the correct mime-type and that the server can upload the jar file without a problem. This leaves me to believe the problem is with Java.

  • Problem creating pdf from multiple files

    Hello,
    I'm running Windows XP SP3 with Adobe Acrobat Standard 8.2.1.  When I try to create a one pdf from multiple files in Adobe Standard 8.2.1 the application just closes.  The two files I'm trying to combine into 1 pdf file are word files.   I'm able to create a single pdf of each word file by opening them separately in word and sending them to the acrobat printer.  I've tried combining other files also, but had no luck.  Windows events doesn't log anything under applications and no error message pops up when the application closes.
    Anybody have any ideas how to troubleshoot this issue or what could be causing the applicaton to just close? 

    I've read many discussions about Acrobat and problems with server files, with the general solution being what you are doing... copy the files to a local hard drive

  • Problem loading image from jar file referenced by jar file

    First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
    I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
    My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
    When JarB goes to load an image the following happens:
    java.lang.NullPointerException
         at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
         at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
         at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
         at java.lang.ClassLoader.getResource(ClassLoader.java:977)
         at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
         at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
    The code from JarB that loads the image looks like this:
              URL[] oSearch = {Main.class.getResource("images/")};
              URLClassLoader oLoader = new URLClassLoader(oSearch);
              imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
              imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
              imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
              imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
    Any help very appreciated!

    Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
    When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
    If you want to read somthing inside the jar-file you need to encode it first.
    Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file.

  • Problem with reading from bin file into Vector

    What am I doing wrong? It works fine to write the vector to the bin file and then read from it. But if I try just to read from the file it wont work.
    Does anybody has any good advice to give when it comes to reading data form a bin file??
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    class Binaerfil
         public static void main (String [] args) throws IOException, ClassNotFoundException{
              ObjectOutputStream utFil = new ObjectOutputStream (new FileOutputStream("HighScoreLista.bin"));
              int po = 50;
              Spelare s;
              Spelare s1, s2, s3, s4, s5,s6,s7,s8,s9,s10;
              String f�rNamn;
              Vector v = new Vector();
              s1 = new Spelare("Mario", 100);
              s2 = new Spelare("Tobias",90 );
              s3 = new Spelare("Sanja", 80 );
              s4 = new Spelare("Marko", 70 );
              s5 = new Spelare("Sofia", 60 );
              s6 = new Spelare("Kalle", 50 );
              s7 = new Spelare("Lisa", 40 );
              s8 = new Spelare("Pelle", 30 );
              s9 = new Spelare("Olle", 20 );
              s10 = new Spelare("Maria",10 );
              v.add(s1);
              v.add(s2);
              v.add(s3);
              v.add(s4);
              v.add(s5);
              v.add(s6);
              v.add(s7);
              v.add(s8);
              v.add(s9);
              v.add(s10);
              System.out.println ("Before writing to file");
              System.out.println(v);
              //Write to file
              utFil.writeObject (v);
              utFil.close();
         ObjectInputStream inFil = new ObjectInputStream (new FileInputStream("HighScoreLista.bin"));     
              v =(Vector) inFil.readObject();
         System.out.println (v);
              inFil.close();
    }

    Because what you are writing to the file is a vector, that is all you can get out. You are actually reading a single Object from the file which you can cast to a Vector, from which you can access the data stored inside. If you want to read the Spelare instances from the file, you will have to save them individually to the file. You will have to implement Serializable and look up the API to do that.

  • Problem with reading from DAT file. FileNotFound exception

    Can't seem to find the issue here. Two files, one (listOfHockeyPlayers) reads from a DAT file a list of players. The other (HockeyPlayer) has just the constructor to make a new hockey player from the read data.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.awt.*;
    import java.io.*;
    public class ImportHockeyPlayers
    private ArrayList<HockeyPlayer> listOfHockeyPlayers = new ArrayList<HockeyPlayer>();
    public ImportHockeyPlayers(String fileName)
      throws FileNotFoundException
      try
       Scanner scan = new Scanner(new File(fileName));
       while (scan.hasNext())
        //Uses all the parameters from the HockeyPlayer constructor
        String firstName = scan.next();
        String lastName = scan.next();
        int num = scan.nextInt();
        String country = scan.next();
        int dob = scan.nextInt();
        String hand = scan.next();
        int playerGoals = scan.nextInt();
        int playerAssists = scan.nextInt();
        int playerPoints = playerGoals + playerAssists;
        //listOfHockeyPlayers.add(new HockeyPlayer(scan.next(),scan.next(),scan.nextInt(),scan.next(),scan.nextInt(),scan.next(),
         //scan.nextInt(),scan.nextInt(),scan.nextInt()));
      catch(FileNotFoundException e)
       throw new FileNotFoundException("File Not Found!");
    public String toString()
      String s = "";
      for(int i = 0; i < listOfHockeyPlayers.size(); i++)
       s += listOfHockeyPlayers.get(i);
      return s;
    public class HockeyPlayer
    private String playerFirstName;
    private String playerLastName;
    private int playerNum;
    private String playerCountry;
    private int playerDOB;
    private String playerHanded;
    private int playerGoals;
    private int playerAssists;
    private int playerPoints;
    public HockeyPlayer(String firstName, String lastName, int num, String country, int DOB,
      String hand, int goals, int assists, int points)
      this.playerFirstName = firstName;
      this.playerLastName = lastName;
      this.playerNum = num;
      this.playerCountry = country;
      this.playerDOB = DOB;
      this.playerHanded = hand;
      this.playerGoals = goals;
      this.playerAssists = assists;
      this.playerPoints = goals + assists;
    DAT File
    Wayne Gretzky 99 CAN 8/13/87 R 120 222
    Joe Sakic 19 CAN 9/30/77 L 123 210These are all in early development, we seem to have the idea down but keep getting the odd FileNotFound exception when making an object of the ImportHockeyPlayers class with the parameter of the DAT file.
    We might even be on the wrong track with an easier way to do this. To give you an idea of what we want to do...read from the file and be able to pretty much plug in al lthe players into a GUI with a list of the all the players.
    Thanks for your time.

    Thanks for the tip on the date format...good to
    know.
    public static void main(String[] args)
    GUI gui = new GUI();
    ImportHockeyPlayers ihp = new
    ImportHockeyPlayers("HockeyPlayers.dat");
    }It's just being called in the main.
    Throws this error:
    GUI.java:39: unreported exception
    java.io.FileNotFoundException; must be caught or
    declared to be thrown
    ImportHockeyPlayers ihp = new
    ImportHockeyPlayers("HockeyPlayers.dat");
    ^This error is simply telling you that an exception may occur so you must enclose it in a try catch block or change the main method to throw the exception as follows
    public static void main(String[] args) throws  
                          java.io.FileNotFoundException {
         GUI gui = new GUI();
         ImportHockeyPlayers ihp = new
         ImportHockeyPlayers("HockeyPlayers.dat");
    }or
    public static void main(String[] args) {
         GUI gui = new GUI();
         try {
              ImportHockeyPlayers ihp = new
              ImportHockeyPlayers("HockeyPlayers.dat");
         catch (FileNotFoundException e) {
              System.out.println("error, file not found");
    }I would reccomend the second approch, it will be more helpful in debugging, also make sure that the capitalization of "HockeyPlayers.dat" is correct
    hope that helps

  • Passing arguments from jnlp file to application

    Hi,
    I am using a jnlp file to launch an application. This is working perfectly. Now I want my application to get some custom properties for making an rmi connection . The only place where I must specify this is in the jnlp file which is dynamically generated. The dynamically generated JNLP file contains:
    <property name="abc.rmi.adapter.host" value="localhost"/>
    <property name="abc.rmi.adapter.port" value="5050"/>
    <property name="abc.rmi.adapter.servicename" value="abc/RMIClientAdapter/"/>
    This does not work.
    However, according to sun only certain types of properties are supported by jnlp for security reason. Is there any way to get over this and have my custom properties. Any help will be appreciated.
    Thanks,
    dasappan

    If you are trying to use RMI, you probably need all-permissions allready.
    for applications requesting all-permissions, all of the properties set in the jnlp file will be set as system properties before the applications "main" is called.
    If you are not using <security><all-permissions/></security>, then only specific trusted properties, plus any begining with "javaws." or "jnlp." will be allowed.
    For properties you just need to pass to yourself, just append "jnlp." to the front of them.
    /Andy

  • Trying to call a Java3D application from .jnlp file

    Hi everybody,
    I'm trying to execute a java3D simple program making use of a *.jnlp* file, but isn't working...
    Can anybody help? Thanks in advance.
    This is what I have:
    simple.jnlp
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="file:///the_path/jnlp/">
    <information>
      <title>Hello JNLP</title>
      <homepage href="http://whatever.com" />
      <vendor>My self </vendor>
      <offline/>
    </information>
    <resources>
      <j2se version="1.2+" />
      <jar href="bin/HelloJava3Da.jar" />
      <jar href="bin/j3dcore.jar" />
      <jar href="bin/j3dutils.jar" />
      <jar href="bin/vecmath.jar" />
    </resources>
    <application-desc main-class="HelloJava3Da" />
    </jnlp>First, I had to generate the HelloJava3Da.jar, which contains HelloJava3Da.class (my program compiled and working when using java command).
    Generation of HelloJava3Da.jar :
    $ jar cf HelloJava3Da.jar HelloJava3Da.class
    $ jarsigner -keystore myKeys HelloJava3Da.jar jdcFinally, when I try to run simple.jnlp, making use of Firefox:
    firefox simple.jnlpThe result is:
    Error: Unexpected exception: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.javaws.Launcher.executeApplication(Launcher.java:1272)
         at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1218)
         at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1065)
         at com.sun.javaws.Launcher.run(Launcher.java:105)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ExceptionInInitializerError
         at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:227)
         at HelloJava3Da.<init>(HelloJava3Da.java:23)
         at HelloJava3Da.main(HelloJava3Da.java:53)
         ... 9 more
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkAccess(SecurityManager.java:712)
         at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:288)
         at java.lang.ThreadGroup.getParent(ThreadGroup.java:139)
         at javax.media.j3d.MasterControl$16.run(MasterControl.java:3680)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.media.j3d.MasterControl.<clinit>(MasterControl.java:3673)
         ... 12 moreI have already made the same procedure with a none Java3D program (*TheTime.class*) and everything run well... With my java3D program is not...
    TheTime.java
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import java.net.*;
    public class TheTime {
      public static void main(String args[]) {
        JFrame frame =  new JFrame("Time Check");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JLabel label = new JLabel();
        Container content = frame.getContentPane(); 
        content.add(label, BorderLayout.CENTER);
        String message = "missing";
        BufferedReader reader = null;
        try {
          Socket socket = new Socket("time.nist.gov", 13);
          InputStream is = socket.getInputStream();
          InputStreamReader isr = new InputStreamReader(is);
          reader = new BufferedReader(isr);
          reader.readLine(); // skip blank line
          message = reader.readLine();
        } catch (MalformedURLException e) {
          System.err.println("Malformed: " + e);
        } catch (IOException e) {
          System.err.println("I/O Exception: " + e);
        } finally {
          if (reader != null) {
            try {
              reader.close();
            } catch (IOException ignored) {
        label.setText(message);
        frame.pack();
        frame.show();
    HelloJava3Da.java
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Frame;
    import java.awt.event.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.ColorCube;
    import javax.media.j3d.BranchGroup;
    import javax.media.j3d.Canvas3D;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.awt.GraphicsConfiguration;
    //import com.sun.j3d.utils.universe.SimpleUniverse;
    //   HelloJava3Da renders a single, rotating cube.
    public class HelloJava3Da extends Applet {
      public HelloJava3Da() {
       setLayout(new BorderLayout());
       GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
       Canvas3D canvas3D = new Canvas3D(config);
       add("Center", canvas3D);
       BranchGroup scene = createSceneGraph();
       // SimpleUniverse is a Convenience Utility class
       SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
       // This will move the ViewPlatform back a bit so the
       // objects in the scene can be viewed.
       simpleU.getViewingPlatform().setNominalViewingTransform();
       simpleU.addBranchGraph(scene);
    } // end of HelloJava3Da (constructor)
      public BranchGroup createSceneGraph() {
        // Create the root of the branch graph
        BranchGroup objRoot = new BranchGroup();
        objRoot.addChild(new ColorCube(0.4));
        return objRoot;
    } // end of CreateSceneGraph method of HelloJava3Da
    //  The following allows this to be run as an application
    //  as well as an applet
    public static void main(String[] args) {
       Frame frame = new MainFrame(new HelloJava3Da(), 256, 256);
    } // end of main (method of HelloJava3Da)
    } // end of class HelloJava3Da

    I have a collection of Java3d applets launched with Java3d:
    http://astral.mobile-visuals.com/3d_visuals.php
    You can compare your code for the page with mine, for instance this one:
    <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
    width=100%
    height=98%
    archive="astrals.jar,
    http://download.java.net/media/applet-launcher/applet-launcher.jar,
    http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar,
    http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar,
    http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
    http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
    http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar">
    <param name="codebase_lookup" value="false">
    <param name="subapplet.classname" value="OrchideaOptM">
    <param name="subapplet.displayname" value="Orchideic Morph">
    <param name="jnlpNumExtensions" value="1">
    <param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp">
    <param name="progressbar" value="true">
    <param name="noddraw.check" value="true">
    </applet>
    -----------------

  • Problem accessing variables from java file to JSP page

    Hello Everyone,
    I have small problem accessing my method variables from my java bean file to a JSP page. can some please take a look and tell me why I can't populate my JSP page, I've been trying all day to get this done!!!
    This is my Java file
    package dev;
    import java.io.*;
    import java.util.*;
    public class RoundDetail2
    public String string_gameID;
    public int string_card1;
    public String readDetail_topLayer;
    public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
    public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
    public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
    public RoundDetail2() throws FileNotFoundException
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
    try { 
                 while((readDetail_topLayer = inFile.readLine()) != null)
              StringTokenizer tokenizer_topLayer = new StringTokenizer(readDetail_topLayer,"\t", true);
                   while  (tokenizer_topLayer.hasMoreTokens())
                        string_gameID = tokenizer_topLayer.nextToken();
         catch(IOException e)
                    System.out.println(e.getMessage());
         Thanks KT

    ......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
    Maybe you could post the relevant JSP code too?
    Hello again,
    Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
    Here is the JSP code
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" %>
    <jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
    <html>
    <head>
    <title>Round Detail</title>
    <body>
      <table width="530" bordercolor="#000000" valign="top">
        <tr>
              <td align="left"  width="19%">Game ID<%=wagerhist.string_gameID%></td>
              <td align="left"  width="30%">  </td>
              <td align="left"  width="20%">card1</td>
              <td align="left"  width="31%">  </td>
            </tr>
      </table>
    </body>
    </html>

  • Problem during restore from a file

    Hello guys,
    I'have a big problem during restore a backup, the situation :
    I want to upgrade my iPhone from 4.0.2 to 4.3.3
    I make a encrypted backup (I know password ...) of the old version -> ok no errors
    I upgrade iOS -> ok
    When I want to restore the version I ve just backup -> it crashs : iphone restart and error appears "the Iphone was disconnected" ... (it works fine with an older backup of december 2010 ...)
    I try to unistall / reinstall iTunes, it's the last version -> same problem
    I try one a another machine (Windows 7 and XP) -> same problem
    The logs :
    [4896 @ Mon Jun 20 22:33:02 2011] [com.apple.console AppleMobileBackup.exe] Unable to move temporary file "C:\Users\***\AppData\Roaming\Apple Computer\MobileSync\Backup\Logs\MobileBackup-unknown-20110620-223302-Restore-Co mputer.log" (3)
    [4896 @ Mon Jun 20 22:33:02 2011] [com.apple.console AppleMobileBackup.exe] Unable to move temporary file "C:\Users\Hamad\AppData\Roaming\Apple Computer\MobileSync\Backup\Logs\MobileBackup-10b66065f7dbf1da28658fd7fbeb7b128a 871760-20110620-223302-Restore-Computer.log" (3)
    [4896 @ Mon Jun 20 22:33:02 2011] [com.apple.console AppleMobileBackup.exe] WARNING: Restoring 10b66065f7dbf1da28658fd7fbeb7b128a871760 from 10b66065f7dbf1da28658fd7fbeb7b128a871760-20110619-224423
    [5564 @ Mon Jun 20 22:34:09 2011] [(unknown facility) iTunes.exe] AMDServiceConnectionReceiveMessage (thread 3352): Could not receive size of message: 0 No error
    [5564 @ Mon Jun 20 22:34:09 2011] [(unknown facility) iTunes.exe] _read_thread (thread 3352): Could not receive message: 0xe8000001
    [4896 @ Mon Jun 20 22:34:10 2011] [com.apple.console AppleMobileBackup.exe] ERROR: Connection to device lost (com.apple.MobileBackup.ErrorDomain/200)
    [4896 @ Mon Jun 20 22:34:10 2011] [com.apple.console AppleMobileBackup.exe] ERROR: Restore error: -10
    I want to restore at least my contacts, sms and photos, the issue was the backup is encrypted that why I cant't acceess directly to the concerned files ...
    Can somebody help me?
    Thanks

       Hello, I had the same problem with my notebook (HP Envy 15) and iTunes 10.5 after install iOS 5. The restore backup fail and show the next text:
    [4428 @ Mon Oct 17 00:44:41 2011] [com.apple.console AppleMobileBackup.exe] Unable to move temporary file "C:\Users\Dani\AppData\Roaming\Apple Computer\MobileSync\Backup\Logs\MobileBackup-unknown-20111017-004441-Restore-Co mputer.log" (2)
    [4428 @ Mon Oct 17 00:44:41 2011] [com.apple.console AppleMobileBackup.exe] Unable to move temporary file "C:\Users\Dani\AppData\Roaming\Apple Computer\MobileSync\Backup\Logs\MobileBackup-71f0bc4bbd4f76087135ff002d3b0c7f6b 85ee0f-20111017-004441-Restore-Computer.log" (2)
    [4428 @ Mon Oct 17 00:44:41 2011] [com.apple.console AppleMobileBackup.exe] WARNING: Restoring 71f0bc4bbd4f76087135ff002d3b0c7f6b85ee0f from 71f0bc4bbd4f76087135ff002d3b0c7f6b85ee0f
    [4428 @ Mon Oct 17 00:44:41 2011] [(unknown facility) AppleMobileBackup.exe] _AMDDeviceAttachedCallbackv3 (thread 3008): Device 'AMDevice 004EFAA8 {UDID = 71f0bc4bbd4f76087135ff002d3b0c7f6b85ee0f, device ID = 1, location ID = 0x0, product ID = 0x1297}' attached.
    [4428 @ Mon Oct 17 00:45:08 2011] [(unknown facility) AppleMobileBackup.exe] lockssl_handshake (thread 3008): SSL handshake fatal lower level error -1: SSL_ERROR_SYSCALL errno (No such file or directory)
    [4428 @ Mon Oct 17 00:45:08 2011] [(unknown facility) AppleMobileBackup.exe] AMDeviceStartSession (thread 3008): Could not start session: kAMDInvalidPairRecordError
    [4428 @ Mon Oct 17 00:45:08 2011] [(unknown facility) AppleMobileBackup.exe] _AMDNotifyHook (thread 3008): Could not load library SHLWAPI.dll from the AppleMobileDeviceSupport directory, C:\Program Files (x86)\Common Files\Apple\Mobile Device Support\\SHLWAPI.dll.
    [4428 @ Mon Oct 17 00:45:08 2011] [com.apple.console AppleMobileBackup.exe] ERROR: Error attaching to device
    [4428 @ Mon Oct 17 00:45:08 2011] [YSLoader AppleMobileBackup.exe]
    Without any doubt there's some problem with USB device during this operation of restore. After 5 hours looking for a solution, I copied the backup folder (C:\Users\Dani\AppData\Roaming\Apple Computer\MobileSync) to an external disk, installed iTunes in other PC, copy the backup and restore without any problem.
    Regards

  • Problem : Inserting Data from flat file  into  databse

    Hi,
    i m reading values from sybase tabel and writing those values into a flat file . some of those values are from table columns which has custom data type. the next thing i do is, read values from file , and insert into different table with the same column definition. the problem is that the values those are inserted into table are different than actual values . i dont know what's really happening. if any body have any idea ,plz help.

    when values are inserted ,only some column values are not inserted properly. i am reading those values as getBytes ,storing them in file and after that inserting into database using setBytes. but the values which are in file are different than those get inserted into database.
    dont know what is exact problem . is there something wrong with encoding. does anybody have any idea about this. what is basic encoding that sybase is using.

  • Problems with prints from RAW files

    I wonder if someone could shed some light on this problem. I uploaded some photos to Kodak through iPhoto, some were JPEG's from my old Canon Powershot and some were RAW files from my new Nikon D40. The images on my monitor from the RAW files from the D40 were great with very vivid colors and I was looking forward to my first prints from the D40. When I received the prints the photos from the old Power shot looked good but the D40 looked terrible. The prints were all washed out and very dull, the strange thing was that there was one photo that was taken with the D40 which was edited and that came out as a good print and seemed to be a JPEG. I guess its something to do with the upload of RAW files, should I be shooting in JPEG ?. I thought that iPhoto uploaded JPEG's
    Thank you in advance

    Printed RAW files will always look unsaturated or "dull" until processed and saved as a jpeg or tiff files. Think of RAW/NEF as a means of preserving ALL the available information to later "develop" a final image to be saved as tiff or jpeg for publication. Shooting in Large Fine JPEG mode will yield great results for print and web publishing, and also leave more room on your memory card and computer drive to make more great photos
    Nikon D70 & D200; TiBook 1Ghz; MacBook 2Ghz; Dual 1.8Ghz PowerMac G5; 20" Cinema Display   Mac OS X (10.3.9)   additional 300 GB internal; 160GB and 300GB externals; 10GB, 40GB, 60GB iPods

  • Problems printing envelope from pdf file with logo & return address.

    I have the 6310 All-In-One Printer. I am experiencing major problems printing envelopes (standard size, #10) from a pdf file that is setup with a business logo, name , and address. First of all, the User Guide on page 63 directs you to load the envelope with the flaps up and on the left. This prints out return address in the lower right corner of the envelope front. I have insert the envelope opposite to the User Guide to get the information printed in the correct location, the upper left corner.
    Bigger problem - The logo, which is placed to the left of the business name and address will NOT print out. My preview printer window shows the logo, but it will not print. I cannot figure out what I am doing wrong.
    Suggestions???

    Kindly follow the steps here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01096354&tmp_task=useCategory&cc=au&dlc=en&lang...
    supported envelopes:
    Envelopes U.S. 10: 105 x 241 mm (4.125 x 9.5 inches)
    U.S. 9: 98 x 225 mm (3.9 x 8.9 inches)
    A2: 111 x 146 mm (4.4 x 5.8 inches)
    DL: 110 x 220 mm (4.3 x 8.7 inches)
    C6: 114 x 162 mm (4.5 x 6.4 inches)
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

Maybe you are looking for

  • Questions about Indexing and Using an Indexing POA

    Although I have only about 50 users, at least 15 of them have in excess of 100,000 messages in their accounts and the POA (version 7.0.2) is regularly slowing to a crawl. (I just know that plans for revolution are fomenting!) I have embarked on a cam

  • No Browser on 8830 World Edition

    My wife has inherited an 8830 World Edition on the Sprint network.  It was formerly in use for a business and has some of the features blocked such as the web browser.  She would like to now use it for personal use such as email (which works) and web

  • How to Recursively Sum a Sum?

    Sorry, everyone, this is driving me nuts.  I have the following query, which gives me the relative percentage of [INDEX MARKET CAP]. SELECT *, [INDEX MARKET CAP] * 100/SUM([INDEX MARKET CAP]) OVER() as [%] FROM [S&P_Emerging_SmallCap_(US_Dollar)] So,

  • Using table as detailStamp

    i use selectOneChoice as detailStamp, the data is correct. bu when i use a table as detailStampm there is noi data any more. i just want to use table as detailStampm

  • Long runnig queries

    Hello, We have some long runnig queries, One query in example have around 150 chars(49 in Default layout and 101in free chars) and 65 keyfigures- this query executes in RSRT within 3 minutes.. but if you try to execute in BEX (7.0) it gets Time out e