SCJD B&S ambiguous Sun's description -

< issue 1 >
< Sun's description >
The id value (an 8 digit number) of the customer who has booked this. Note that for this application, you should assume that customers and CSRs know their customer ids. The system you are writing does not interact with these numbers, rather it simply records them. If this field is all blanks, the record is available for sale.
I am confused with the word, "not interact" ... simply record.
So, here is what I am going to do.
when which contractor is selected and book button is pressed,
dialog popup and user of this sw would type the the 8 digit number.
If my implementaion is considered as a interact with these number, please say so.
< issue 2 >
public int[] find(String[] criteria);
//--1./ returns an array of record numbers that match the specified critieria.
//--2./ Field n in the database file is described by criteria[n].
//--3./ A null value in criteria[n] matches any field value.
//--4./ A non-null value in critieria[n] matches any field value that begins with criteria[n]. (For example, "Fred", matches "Fred", "Freddy.")
1 and 2 is confusing 3 and 4 any field.
In another word, the words, "any field" can be considered other criteria's value?
using the word, field and criteria interchangably?
Let say
user choose which criteria with JComboBox
-> chosen criteria : column 1
-> type searching word : Fred
column 1 column 2 column 3 column 4
0 Fredy XX CC DD
1 XX Freding GG QQ
2 CC FF Fredden HH
3 HH QQ EE Freddy
Correct answer : __________
1) only row 0
2) ( any field ) row 0, 1, 2, 3
I hope it is clear enough to give me clear answer.

4gui wrote:
I hope it is clear enough to give me clear answer.No, your question isn't "clear enough" at all.
But those specs as provided by Sun are deliberately ambiguous.
It is your responsibility as a candidate to make decisions based on those specs (which is realistic based on realworld experience, though there you'd often try to discuss the problems with your customer, something that's often not possible).
Make a reasoned decision, document it, and implement it.
So it's up to you to decide what's correct behaviour, and why.
What quite a few people do (including me) is provide for several options in the code and either make only one of them (documented why that one of course) available in the user interface or allow the user interface to select which option to use.

Similar Messages

  • Strange C++ error when using newer Sun Studio compiler

    My company has just set up a new build machine for our product. We have gone from
    this version: CC: Sun C++ 5.7 Patch 117830-11 2007/04/04
    to this one: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    we have also upgraded the OS (solaris/sparc). I think the new one has gcc but the old one doesn't (we don't use it).
    and now I am getting this error:
    "/opt/SUNWspro/prod/include/CC/./new", line 32: Error, badextlnk: operator new(unsigned) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 35: Error, badextlnk: operator delete(void*) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 37: Error, badextlnk: operator new[](unsigned) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 40: Error, badextlnk: operator delete[](void*) was declared before with a different language.
    "/opt/SUNWspro/prod/include/CC/./new", line 53: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/./new", line 54: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/./new", line 55: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/./new", line 56: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 106: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 169: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 185: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 198: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 202: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 206: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 217: Error, badollnk: Only one of a set of overloaded functions can be extern "C".
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 225: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 239: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 249: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 264: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    "/opt/SUNWspro/prod/include/CC/Cstd/rw/iterator", line 275: Error, temnotexternc: Template declarations cannot have extern "C" linkage.
    I have no idea what could be causing this. I can find one link to it on this forum: http://forums.sun.com/thread.jspa?messageID=9488983 . But the only answer to that query says it is the same as another bug which appears entirely different, not to mention being very old (while talking about an imminent fix), and being related to a different OS and (I think) a different version of sun studio (express vs. normal?).
    Any ideas? Could it be related to having gcc/g++ on the machine?

    Hi,
    I am also facing the same error while upgrading the Sun compiler description as below
    when I am compiling the cxx file on the system with compiler version (CC: Sun C++ 5.9 SunOS_sparc 2007/05/03) , I am facing the following error:-
    /opt/SUNWspro/bin/CC -dy -misalign -xcode=abs64 -xarch=v9 -D__EXTENSIONS__ -Dsun4_R5=1 -I. -Isun4_R5_v -I/home/as185259/ash_iadraid/ash_get_10/IA/PORT/include -I/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v -I/app/oracle/product/10.2.0/client_1/sqllib/public -I/app/oracle/product/10.2.0/client_1/precomp/public -I/opt/informix/include -DSVR4 -O -g p -pta -c MContext.cxx -o sun4_R5_v/MContext.o || \
    (rm -f sun4_R5_v.d; false)CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 97: Error: Only one of a set of overloaded functions can be extern "C".
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 99: Error: Only one of a set of overloaded functions can be extern "C".
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 101: Error: Only one of a set of overloaded functions can be extern "C".
    "/home/as185259/ash_iadraid/ash_get_10/IA/WV/WV5.3.6-ncr0302/build/include/sun4_R5_v/ssmalloc.h", line 102: Error: Only one of a set of overloaded functions can be extern "C".
    4 Error(s) detected.
    The same file with the same compilation command is getting compiled with compiler version CC: Sun WorkShop 6 update 2 C+ 5.3 2001/05/15 .
    Can anyone suggest what should be the resolution:-
    The code for the ssmalloc.h file is as under:-
    #ifndef SSMALLOC_H
    #define SSMALLOCH
    #include <stddef.h>
    #if defined(__sparcv9)
    namespace ssmalloc {
    #endif
    #if defined(__cplusplus)
    extern "C" {
    #endif
    The type for the malloc routine depends on
    the compiler and library that you are using.
    #if defined(hpux) || defined(sun4_R5) || defined(__GNUC_) || defined(_OS2_)
    typedef void MALLOC_PTR;
    #else
    typedef char *MALLOC_PTR;
    #endif
    #if defined(_GNUG_)
    typedef size_t MALLOC_SIZE;
    #else
    typedef unsigned MALLOC_SIZE;
    #endif
    #if defined(sun4) && ! defined(_GNUG_)
    # define FREE_RETURNS int
    # define FREE_RETURN return 0
    #else
    # define FREE_RETURNS void
    # define FREE_RETURN return
    #endif
    // User-callable routines.
    // Note: memalign and valloc are broken in that they do not aling
    // memory on documented boundaries, and thus do not behave as described
    // on the "malloc" manual page. They simply call malloc.
    MALLOC_PTR malloc (MALLOC_SIZE size);
    FREE_RETURNS free (MALLOC_PTR data);
    MALLOC_PTR realloc (MALLOC_PTR data, MALLOC_SIZE size);
    MALLOC_PTR calloc (size_t nelem, size_t elsz);
    MALLOC_PTR valloc (unsigned size);
    MALLOC_PTR memalign (unsigned alignment, unsigned size);
    // This memory allocator supports memory allocation inside signal
    // handlers. For correct operation, the following functions must be
    // called upon entering and exiting signal handlers that allocate
    // memory.
    void ssmalloc_enter_signal_level();
    void ssmalloc_exit_signal_level();
    // Set this variable to not 0 (possibly in the debugger) if you want
    // to get malloc to check memory data structures very carefully as it
    // goes. This may be handy if you are trying to detect a memory
    // trasher.
    // It also causes ssmalloc to abort the program instead of returning
    // zero if memory runs out.
    extern int check_memory_very_carefully;
    #if defined(__cplusplus)
    #endif
    #if defined(__sparcv9)
    } // namespace ssmalloc {
    #endif
    #endif / SSMALLOCH */
    The Machine is
    root@ldg1-> uname -a
    SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320
    Thanks
    Vijay

  • Java Web Start- Cannot launch Application. Pls help

    HI
    Ia m beginner in java web start. I creaate a simple swing application and try to launch it through web start. But I failed. My application jar file (sample.jar)contains only class files. No menifest file. Then I sign my "sample.jar" file and placed inside tomcat server: "webapps/root/WebStart/Sample". I also placed the "sample.jnlp" file in the above directory.The name of my main class is :"Sample" .Here is the content of sample.jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
      codebase="http://165.231199.164:8080"
    >
    <information>
      <title>Sample Launching Test</title>
      <vendor>FMO</vendor> 
      <homepage href="www.sun.com" />
      <description>Demonstration of JNLP</description>
    </information>
    <offline-allowed/>
    <security>
      <all-permissions/>
    </security>
    <resources>
      <j2se version="1.2+" />
      <jar href="/WebStart/Sample/sample.jar"/>
    </resources>
    <application-desc main-class="Sample" />
    </jnlp>Whenever I try to launch this application from the browser , it shows me following :
    An error occurred while launching/running the application.
    Title: Sample Launching Test
    Vendor: FMO
    Category: Unexpected Error
    RED
    Anybody pls help me here about how to Launch my application. Am I missing something?

    I fixed the porblem by modifying the sample.jnlp file. Here is the latest version:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase=http://[my-ip-address]:8080/WebStart/Sample>
    <href="sample.jnlp">
    <information>
      <title>Sample Launching Test</title>
      <vendor>FMO</vendor> 
      <homepage href="www.sun.com" />
      <description>Demonstration of JNLP</description>
      <offline-allowed/>
    </information>
    <security>
      <all-permissions/>
    </security>
    <resources>
      <j2se version=1.4+ />
      <jar href="sample.jar"/>
    </resources>
    <application-desc main-class="Sample" />
    </jnlp>

  • Aperture creating new versions unexpectedly

    One of my projects in Aperture started behaving unexpectedly yesterday and I still haven't figured out why. I was reviewing proofs with a client and we were making selections and adjustments to some of the images. We were working in a smart album that was filtered on 5-star ratings. We made a few new versions of some of these images within the smart album, made adjustments, and ultimately selected her picks by adding the keyword "pick" to her selected images. In retrospect I probably will change that flow so that when I make my original selects I will rate them as a 4-star and then up it to a 5-star when the client makes their picks.
    But for now, back to the problem. All was going well with the workflow until I tried to rearrange some of the images within the smart album. When I dragged the first image to a new location it created new versions of several images. I think this happened multiple times before I realized what had happened, so before I new it the album was filled with duplicate versions. I deleted the duplicate versions, but I find that they keep cropping up unexpectedly. If I go to the parent project and then return to the smart album, it makes a duplicate version of every image in the album.
    A light table and a book within the project are now also giving me trouble in that they claim to have images in them, but even with all queries turned off they do not show any of the images (and yes, the "show all images" button is selected).
    Any thoughts on what could be wrong?
    G5   Mac OS X (10.4.3)  

    Mmm...I don't think this explanation tells the whole story.
    Dragging an image out of the project container and into an enclosed (non-smart) album does NOT automatically generate a new version of the master image local to that album; instead, the album is populated with a new reference to the original version. Dragging that same image again out of the project container - or the first album - to yet another album generates yet another reference to the same underlying version.
    Edits performed in any of these containers propagate to the images in all containers (within a particular project, of course), demonstrating that each type of container holds merely a reference to the project's single original version.
    The Aperture User Manual is a bit ambiguous in its description (Chapter 5 pg 113) of the distinction between "copying" and "moving" images between projects and albums; I believe that when it refers to copying versions it's really talking about copying REFERENCES to versions between various containers.
    So, long story short, I don't think moving images between the various types of containers within a single project can explain your duplicated images.
    15" Alu PB 1.25GHZ G4 FW800 1GB RAM 100GB HDD   Mac OS X (10.4.6)   Aperture 1.1.1

  • XML parsing a spesific value with DOM

    Hi guys.
    I have the following xml file:
    <channel>
          <title>Java Technology Headlines</title>
          <link></link>
          <description>Technical content and news from java.sun.com, the premier source of information about the Java platform.</description>
          <language>en-us</language>
          <image>
            <title>java.sun.com</title>
            <url>http://developers.sun.com/im/logo_java_grey.gif</url>
            <link></link>
            <width>144</width>
            <hight>40</hight>
            <description>Visit java.sun.com</description>
          </image>   
         <item>
            <title>Implementing Service-Oriented Architectures (SOA) with the Java EE 5 SDK</title>
            <link>http://java.sun.com/developer/technicalArticles/WebServices/soa3/?feed=JSC</link>
            <description>This article presents concepts and language constructs needed to develop a Service-Oriented Architecture composite application in Java EE 5. It then describes an example application designed to solve a business problem.</description>
            <date></date>
         </item>
         <item>
            <title>2006 JavaOne Highlights!</title>
            <link>http://java.sun.com/javaone/sf/?feed=JSC</link>
            <description>In It's a Wrap, read about the doings that kept 14,000 attendees percolating. Winner's Circle lists who won the various drawings. And Incoming T-Shirt! Duck! celebrates the Gosling-MythBusters' Wow factor.</description>
            <date></date>
         </item>
         <item>
            <title>Visit us at JavaOne!</title>
            <link>http://java.sun.com/javaone/sf/?feed=JSC</link>
            <description>We are at the 2006 JavaOne conference this week. Find out about the latest happenings, including session coverage, announcements, articles, blogs, photos, and more. Check out all the JavaOne action at java.sun.com/javaone/sf.</description>
            <date></date>
         </item>
    </channel>    and the following java class.
    public class SimpleDOMExample
      public SimpleDOMExample()
      private static void scanDOMTree(Node node)
        int type = node.getNodeType();
        switch (type)
          case Node.ELEMENT_NODE:
             //System.out.println("Element: " +node.getNodeName());
             if(node.getNodeName().equals("channel")&&node.getNodeName().equals("title"))
                  //&& node.getNodeName().equals("title"))
                 Node fc = node.getFirstChild();
                  //Node sc = fc.getNextSibling();
                System.out.println("the tithe: "+ fc.getNodeValue());}
                   if(node.getNodeName().equals("link")){
                    // if ( node.getNodeName().equals("title") )//&& node.getNodeName().equals("title")
                      Node fc = node.getFirstChild();
                       //Node sc = fc.getNextSibling();
                     System.out.println("the url: "+ fc.getNodeValue());}
            NamedNodeMap attrs = node.getAttributes();
            for (int i = 0; i < attrs.getLength(); i++)
              Node attr = attrs.item(i);
              //System.out.println("Attribute: " +attr.getNodeName() + "=\"" + attr.getNodeValue());
            NodeList children = node.getChildNodes();
            if (children != null)  
              int len = children.getLength();
              for (int i = 0; i < len; i++)
                scanDOMTree(children.item(i));
            break;
          case Node.DOCUMENT_NODE:
            scanDOMTree(((Document)node).getDocumentElement()); 
            break;
          case Node.ENTITY_REFERENCE_NODE:
            //System.out.print("this &"+node.getNodeName()+";");
            break;
          case Node.TEXT_NODE:
           // System.out.println("TEXT: " + node.getNodeValue().trim());
            break;
         public static void main(String argv[])
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              Document document = null;
        try
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse( new File("java.xml"));
        catch (Exception e)
                   e.printStackTrace();
        if(document!=null)
                   scanDOMTree(document);
    }The questions i have are really simple.
    1) I am trying to get a specific value from the xml.
    for example the <title> after <channel> but i want only this title not the others as well. I can all the titles but i cant get it right for returning only the first. What am i doing wrong?
    2) i also want to parse the same values that are in the <item> for all 3 items but when i am using the
                   if(node.getNodeName().equals("link")){
                     Node fc = node.getFirstChild();
                     System.out.println("the link: "+ fc.getNodeValue());}i get a nullPointerException because the first link is empty under the <title>. If i change it to <description> it works fine.
    The fact is that i dont know how to point it to look a specific tags like only in <item>
    I have some comments in there of the different things i tried...
    Any suggestions??? Pleaseeeee.... :)
    Thx in advance...

    thx for the replay
    1) i thought of using xpath but wanted to know how to do it over DOM
    2) i mean that the 3 <item> have other element inside like that:
    <item>
    <title>Implementing Service-Oriented Architectures (SOA) with the Java EE 5 SDK</title>
      <link>http://java.sun.com/developer/technicalArticles/WebServices/soa3/?feed=JSC</link>
      <description>This article presents concepts and language constructs needed to develop a Service-Oriented Architecture composite application in Java EE 5. It then describes an example application designed to solve a business problem.</description>
      <date />
      </item>and all of them have <title>, <link> etc. I want to get the same values(eg. <title>) from all the 3 <item> and not including the <title> in the begining of xml
    3) i am a professional child.....joke....
    try to get to your sensitive side...thats way.

  • How to get SAAJ impl. working on 9.0.4 (Lehmann?)

    Hi,
    I'm currently working on an assignment which needs to leverage functionality as described by the SAAJ spec. Since I had/have trouble getting the SAAJ (10.0.3) impl from Oracle working on either 9.0.3/9.0.4 OC4J, I'm currently developing against the developer's preview of OC4J J2EE 1.4. However, since it looks like J2EE 1.4 support (by OC4J) will not be available by the end of summer 2004, I need to get SAAJ working for OC4J 9.0.4. Can someone provide me with the details how this can be achieved. I know Michael has made some notes on how AXIS can be deployed on OC4J 9.0.3 and since that package (can) also uses SAAJ, I was hoping there is some kind of step-by-step configuration note.
    Regards,
    Jan.

    As I'm progressing my assignment to create an application using SAAJ (on OC4J) I ran into a problem. As I mentioned earlier whenever I redeploy the application, I have to cycle the OC4J engine, in order to circumvente the error "DataContentHandlerFactory already defined". Each subsequent call will result in NoClassDefFoundError. Anyways....
    To simulate a peer service, I also deployed the application with different settings (web.xml/application.xml) on the same engine. Silly me, because this obviously leads to the problems stated above. Digging a bit further I came across the following bugtrack about SAAJ/JAXM (on Sun):
    # 4825743: Description: Web Service with attachment and its client cannot be deployed separately to the same web container.
    Due to a known JAXM bug (#4763995), deploying a web service with attachment to a web container and then deploying its test client separately to the same web container will result the following exception:
    java.lang.Error: DataContentHandlerFactory already defined at
      javax.activation.DataHandler.setDataContentHandlerFactory(DataHandler.java:628) at
      com.sun.xml.messaging.saaj.soap.AttachmentPartImpl.<clinit>(AttachmentPartImpl.java:35) at
      com.sun.xml.messaging.saaj.soap.MessageImpl.createAttachmentPart(MessageImpl.java:305)Workaround: Always deploy a web service with an attachment with its default test client.
    (Ref: http://developer.java.sun.com/developer/bugParade/bugs/4825743.html)
    If I understand correctly sun has managed to fix this JAXM bug. The trace I get with the Oracle implementation of SAAJ is very, very similar, so I believe the same mistake has been made. Can you confirm this and are there plans to fix this?

  • Im parsing error

    Hi,
    im is successfuly installed but after trying to launch im with web start i get
    An error occurred while launching/running the application.
    Title: IM
    Vendor: Sun Microsystems, Inc.
    Category: Launch File Error
    Could not parse launch file. Error at line 0.
    JNLParseException[ Could not parse launch file. Error at line 0.]
         at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:44)
         at
    com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:46)
         at
    com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:58)
         at
    com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:66)
         at
    com.sun.javaws.LaunchDownload.downloadExtensionsHelper(LaunchDownload.java:469)
         at com.sun.javaws.LaunchDownload.downloadExtensions(LaunchDownload.java:395)
         at com.sun.javaws.Launcher.downloadResources(Launcher.java:1002)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:375)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
         at com.sun.javaws.Launcher.run(Launcher.java:165)
         at java.lang.Thread.run(Thread.java:595)
    Can you give me some recomendation ?
    Running im with java plugin works.
    Any ideas ?
    Thanks,
    Stefan

    Hi Amit,
    appreciate your help, here is the file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Copyright 2004 Sun Microsystems, Inc. All rights reserved. -->
    <!-- Instant Messenger -->
    <jnlp
    spec="1.0+"
    codebase="http://mail.server.com:80/im"
    href="en/im.jnlp">
    <information>
    <title>IM</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <homepage href="http://www.sun.com"/>
    <description>Sun Java System Instant Messenger</description>
    <description kind="short">Instant Messenger</description>
    <icon href="sunIM_64.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+" />
    <jar href="messenger.jar"/>
    <jar href="imdesktop.jar"/>
    <jar href="imnet.jar"/>
    <jar href="icalendar.jar"/>
    <nativelib href="imjni.jar"/>
    <extension href="http://mail.server.com:80/im/en/unsigned.jnlp" name="unsigned resources"/>
    </resources>
    <application-desc main-class="com.iplanet.im.client.iIM">
    <argument>locale=en</argument>
    <argument>usessl=no</argument>
    <argument>server=mail.server.com:5222</argument>
    <argument>document_base=http://mail.server.com:80/im/en/im.jnlp</argument>
    <argument>help_codebase=http://mail.server.com:80/im/en</argument>
    </application-desc>
    </jnlp>

  • Version Based Downloading w/JBoss Missing Version Field....

    Here we go again, version based downloading difficulties.
    I cannot get version based downloading to work using the version.xml file or using file based versioning.
    My environment is
    JBoss 4.0.3 SP1 (whatever version of tomcat container this contains)
    JRE 1.5.0_06
    I have a .ear file which contains a .war file which contains the appropriate folder format and loose application jars, html, jnlp, etc., as described in the "Packaging JNLP Applications in a Web Archive" document.
    My web.xml file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
      <display-name>TotalZilla</display-name>
      <description> TotalVU application </description>
       <servlet>
          <servlet-name>JnlpDownloadServlet</servlet-name>
          <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
               <init-param>
                  <param-name>logLevel</param-name>
                  <param-value>DEBUG</param-value>
               </init-param>
               <init-param>
                  <param-name>logPath</param-name>
                  <param-value>jnlpdownloadservlet.log</param-value>
               </init-param>     
       </servlet>
          <servlet-mapping>
         <servlet-name>JnlpDownloadServlet</servlet-name>
         <url-pattern>*.jnlp</url-pattern>
       </servlet-mapping>
      </web-app>
    ]NOTE: changing the <url-pattern> value to anything but *.jnlp causes JBoss to throw an exception during application deployment[i]
    My version.xml file looks like this:
    I believe this to be the culprit but I am at a loss as to why.
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp-versions>
          <resource>
             <pattern>
               <name>utilities.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>utilities.jar</file>
          </resource>
          <resource>
             <pattern>
               <name>totalvu.jar</name>
                <version-id>2.0</version-id>
             </pattern>
             <file>totalvu.jar</file>
          </resource>     
          <resource>
             <pattern>
               <name>images.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>images.jar</file>
          </resource>      
          <resource>
             <pattern>
               <name>common.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>common.jar</file>
          </resource>     
       </jnlp-versions>
    My jnlp file looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
      spec="1.0+"
      codebase="$$codebase"
      href="$$name" context="$$context">
      <information>
        <title>Total VU Application</title>
        <vendor>Perimeter Aquisition Corp.</vendor>
        <homepage href="docs/totalvu.html"/>
        <description>TotalVU application from Perimeter</description>
        <description kind="short">The perfect application.</description>
        <offline-allowed/>
         <shortcut online="false">
          <desktop/>
          <menu submenu="Perimeter - TotalVU"/>
        </shortcut>
      </information>
       <security>
          <all-permissions/>
      </security>
      <resources>
         <j2se version="1.5.0+"/>
        <jar href="totalvu.jar" version="1.0+"/>
        <jar href="utilities.jar" version="1.0"/>
        <jar href="common.jar" version="1.0"/>
        <jar href="images.jar" version="1.0"/>
        <jar href="jlfgr-1_0.jar"/>
        <jar href="jboss-j2ee.jar"/>  
        <jar href="jnpserver.jar"/>
        <jar href="jboss-common-client.jar"/>
        <jar href="jbossmq.jar"/>
        <jar href="concurrent.jar"/>
        <jar href="swing-worker.jar"/>
        <jar href="log4j.jar"/>   
        <extension name="Sun Signed Jars" href="sunsignedjars.jnlp"/>
      </resources>
      <application-desc main-class="com.perimeter.totalvu.framework.TotalVU"/>
    </jnlp>
    The other jnlp file (temporary) which contains a version of activation.jar signed by sun looks like this:
    <?xml version="1.0" encoding="utf-8"?>
        <jnlp spec="1.0+"
          codebase="$$codebase"
          href="$$name"
          context="$$context">
        <information>
            <title>SunSignedJars</title>
            <vendor>Sun Microsystems, Inc.</vendor>
            <description>Jars signed by Sun Microsystems</description>
        </information>
        <security>
          <all-permissions/>
        </security>
        <resources>
            <jar href="activation.jar"/>
        </resources>
       <component-desc>
       </component-desc>
    </jnlp>
    My war file (which is in an ear file) has this format:
    META-INF\MANIFEST.MF
    WEB-INF\lib\jnlp-servlet.jar
    WEB-INF\lib\jardiff.jar
    WEB-INF\lib\jnlp.jar
    version.xml
    *.jar
    *.jnlp
    *.html
    This configuration spits out the famous "Missing version field from server....." that I have seen many times in this forum. The download servlet is getting executed because I am getting a log file generated every time. Debug is the only value that will put out a log. The log output looks like this:
    JnlpDownloadServlet(3): Request: /totalvu/totalvu.jnlp
    JnlpDownloadServlet(3): User-Agent: JNLP/1.5 javaws/1.5.0_06 (b05) J2SE/1.5.0_06
    JnlpDownloadServlet(4): DownloadRequest[path=/totalvu.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /totalvu.jnlp lastModified=Mon Dec 05 11:17:46 EST 2005]]
    JnlpDownloadServlet(3): Resource returned: /totalvu.jnlp
    JnlpDownloadServlet(4): SupportQuery in Href: true
    JnlpDownloadServlet(4): lastModified: 1133799466000 Mon Dec 05 11:17:46 EST 2005
    JnlpDownloadServlet(3): Request: /totalvu/sunsignedjars.jnlp
    JnlpDownloadServlet(3): User-Agent: JNLP/1.5 javaws/1.5.0_06 (b05) J2SE/1.5.0_06
    JnlpDownloadServlet(4): DownloadRequest[path=/sunsignedjars.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /sunsignedjars.jnlp lastModified=Mon Dec 05 10:00:20 EST 2005]]
    JnlpDownloadServlet(3): Resource returned: /sunsignedjars.jnlp
    JnlpDownloadServlet(4): SupportQuery in Href: true
    JnlpDownloadServlet(4): lastModified: 1133794820000 Mon Dec 05 10:00:20 EST 2005If I remove the version= tag from the main jnlp file, everything loads fine, but there is no versioning. I have also tried to remove the version.xml file from the package and change my jar files to use file based versioning, but that didn't work either. I rebuilt my jar files with the __V1.0 extension and the complaint was that it couldn't load the resource totalvu.jar. Well, ya, it is now named totalvu__V1.0.jar! Again, versioning is being ignored. The double underscore and V was not recognized as anything special.
    The servlet is running long enough to spit out a log file, no errors. It looks like it succesfully processed the jnlp files, but there is no indication of any versioning.
    Doe the jnlp.jar and jardiff.jar files need to be included in the lib folder in the .war file? I am only including the jnlp-servlet.jar. They were not referenced in the example war file in the documentation, but I have seen them referenced in older doc for other app servers. I did try including them, but it made no difference of course. Guess this question is just a housekeeping question.
    Does anyone have any insight on this problem?
    I am at the point where I think I would like to get the source and debug through it to see what is going on, but that should be unecessary.

    Thanks. I had the same problem.
    As danrak suggests, just add this to your web.xml file to parse .jar and/or .zip file extensions:
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.zip</url-pattern>
    </servlet-mapping>          
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jar</url-pattern>
    </servlet-mapping>

  • Strange Problem when Redirect to other Servlet using dispatch. Please help!

    I've a servlet which will check login session first, if not logged in, it will redirect to LOGIN servlet using "req.getRequestDispatcher(forwardTo).forward(req, resp);", it works fine. For eg, if I press ServletA it will redirect to LoginServlet. It works fine IF I DON'T RESTART TOMCAT.
    However, if I restart tomcat OR restart tomcat and close browser, then request ServletA again, it will display error:
    Apache Tomcat/4.0.1 - HTTP Status 404 - /sun.userlogin
    type Status report
    message /sun.userlogin
    description The requested resource (/sun.userlogin) is not available.
    BUT if I press RELOAD, it will become normal and REDIRECT me to LoginServlet. It's very strange and it troubles my development. The following is a part of my code, do you have any idea what's going wrong?Thanks.
    public class viewMyAcct extends HttpServlet
    public void doGet(HttpServletRequest req,
    HttpServletResponse resp)
    throws ServletException, java.io.IOException
    // Set the content type of the response
    resp.setContentType("text/html");
    // Create a PrintWriter to write the response
    java.io.PrintWriter out = resp.getWriter();
    HttpSession session = req.getSession(true);
    if (session == null) {
    out.println("ERROR: Internal servlet problem - no session");
    out.flush();
    out.close();
    return;
    UserLog ulog = (UserLog) session.getAttribute(USER);
    cmd = new sqlcmd();
    String uri = req.getRequestURI();
    if (ulog == null) {         
    String forwardTo = "sun.userlogin?where=RegForm"; //return to login page           
    //String forwardTo = "../"+uri.substring(0,uri.indexOf(".")) + ".userlogin?where=RegForm"; //return to login page      
         req.getRequestDispatcher(forwardTo).forward(req, resp);
         //http://127.0.0.1:8080/user/servlet/student.userlogin
         //here sure have login,get user loginid
         else{
    ...

    I got a reply why this problem occurs but do anyone of you know how to solve it? The reason is listed below:
    Hi Ken,
    The trouble starts when u restart tomcat,the servelet which is there in memory gets removed so the next time it has to cater to a request it has to go through init(), before getting into the service(), so when u restart and press for Re-login page,it has still not compiled, which it does on getting the first request and hence when u reload it, it responds

  • Starting cached Apps on JWS 1.2

    Hi everyone,
    we are using thick-client Applications which are downloaded at our JBoss apps servers. This has been working perfectly until late. But in order to prevent our company to stand still on server blackouts or network break downs, I had to develop a backup application which can run independent from our apps servers.
    My application is able to run normally when servers and network available, can handle blackouts and break downs automatically and can also be started with no servers or network at all.
    Since our applications are deployed with .jnlp-files from our apps servers, our applications are usually started by a distributed short-cut which points to a specific app jnlp-file (e.g. http://my-server:1234/my-app.jnlp).
    But during server blackouts or network break downs this way of starting is not available. Now I need a way to start up my downloaded appilcations from the cache of the Java Web Start. Since we have several branches in different countries and even have external companies which use our application the configuration of the Java Web Start is not always the same, so the cache folder may not always be at the same spot in the directory system of a client.
    I thought by starting the JWS with the url command (e.g. javaws "http://my-server:1234/my-app.jnlp"), the JWS would automatically start the application from cache if servers or network is not available. But unfortunately the JWS throws an error message which tells that the server is not reachable.
    Can anyone tell me how to get my app started?
    Any solutions or suggestions would be highly appreciated.
    Thanks and greetz,
    CB
    PS.: Our clients are using Java 1.4 and the including JWS.

    As far as I understand it starting the jnlp from command line without options means to use the default option witch is "online". From command line you have to manually choose if you want to start online or offline.
    But you can let webstart create a desktop shortcut with "online=true" while you provide the <offline-allowed/> element in the <information/> element.
    If you start your app by this shortcut webstart will try to reach the server to run the app online, but if the server is not reachable it will start the cached version of the app. For me it works.
    <!-- JNLP File for SwingHelloWorld App --> <jnlp
    codebase="http://somedomain"
    href="SwingHelloWorld.jnlp">
    <information>
    <title>Swing Application - Hello World</title>
    <vendor>Sun</vendor>
    <description>Hello world with Swing in action </description>
    <description kind="short">Swing App - Hello World</description>
    <offline-allowed/>
    <shortcut online="true">
    <desktop/>
    <menu submenu="My Company"/>
    </shortcut>
    <update="background" policy="prompt-update"/>
    </information>
    <resources>
    <j2se version="1.5+" />
    <jar href="SwingHelloWorld.jar"/>
    </resources>
    <application-desc main-class="HelloWorld"/> </jnlp>

  • Problems in Sun's Database from SCJD Exam

    Hello,
    Any does the SCJD exam between January - February 2008?
    I did, but the Sun's database has a problem, so my exam went send by the inspector ONE MONTH later.

    Hi Brian,
    Thanks a lot. I don't have an oracle full java driver now. I'll try working with it. But the thing is, there is no error in syntax because i'm able to access the database now and then. But it doesn't work always. Moreover the one about the link! When I type a URL, it works fine but not with a location.href link or a flash link. To be frank with you I copied the working url and pasted it into the link, but still that doesn't work. What is the reason for all this? Even despite including "con.close()" statement in my page, why does the connection still continue? When is the connection actually established? Supposed to be when I submit the form!! Please reply at your earliest.
    Thanks a lot once again...
    R. Yogaesh.

  • Sun C++ 5.0 question: ambiguity of mbstate_t

    Dear Sun C++ users,
    I recently installed Sun C++ 5.0 on my Solaris 8 machine.
    The following simple example:
    #include <iostream>
    int main()
    std::cout << "Hello, World!" << std::endl;
    should compile under Sun's CC version 5.0, but it complains as follows:
    $ CC -o test test.cc
    "/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbsta\te_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t i\s ambiguous, std::mbstate_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name mbstate_t i\s ambiguous, std::mbstate_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name mbstate_\t is ambiguous, std::mbstate_t and std::mbstate_t.
    4 Error(s) detected.
    If I modify this code to:
    #include <iostream.b>
    int main()
    cout << "Hello, World!" << endl;
    it produce the same errors.
    If I compile the above modified code with -compat=4 flag,
    $ CC -compat=4 -o test test.cc
    Then it works.
    I really would like to know what is wrong with the version 5.
    Any help is greatly appreciated.
    Best regards,
    Naoki Saito (UC Davis)

    I am currently having the same problem. I installed the following patches in an attempt to solve compiler errors with std::list<> template on Sparc Solaris 5.7:
    107311-14 C++ 5.0: Patch for C++ 5.0 compiler requires:
         107357-11 Compiler Common 5.0: Patch C 5.0, C++ 5.0, F77 5.0, F90 2.0
         106300-11 SunOS 5.7: 64-bit Shared library patch for C++
         106327-10 SunOS 5.7: 32-bit Shared library patch for C++ requires:
              106950-15 SunOS 5.7: Linker Patch
    I also tried to compile a hello world and got the same errors. I backed off 107311-14 and hello world compiled but I'm back to my original problem. I have to fix this problem by next Tuesday so I could really use some help.
    Thanks, Steve

  • Sun coding conventions for documentation are horribly outdated!

    Seriously I have seen 10 different formats on searching that look way better and the fact the conventions on display from sun date to 1999 is very confusing.
    Can I ask which is preferred (I am doing the SCJD and here is an example of format vs format)....
    For beginning class comments.
    * @(#)Contractor.java
    * Version 1.0.0
    * Date 27/03/2009
    */vs
    * @(#)Contractor.java    Version 1.0.0    Date 27/03/2009
    Methods
    * Sets the record number for the Contractor record.
    * @param recNo A <code>Integer</code> containing the record number to be
    * set.
    */vs
    * Sets the record number for the Contractor record.
    * @param recNo     A <code>Integer</code> containing the record number to be set.
    */Edited by: Yucca on Apr 5, 2009 7:12 PM
    Edited by: Yucca on Apr 5, 2009 7:14 PM
    Edited by: Yucca on Apr 5, 2009 7:17 PM

    * Returns an Image object that can then be painted on the screen.
    * The url argument must specify an absolute {@link URL}. The name
    * argument is a specifier that is relative to the url argument.
    * <p>
    * This method always returns immediately, whether or not the
    * image exists. When this applet attempts to draw the image on
    * the screen, the data will be loaded. The graphics primitives
    * that draw the image will incrementally paint on the screen.
    * @param  url  an absolute URL giving the base location of the image
    * @param  name the location of the image, relative to the url argument
    * @return      the image at the specified URL
    * @see         Image
    public Image getImage(URL url, String name) {
         try {
             return getImage(new URL(url, name));
         } catch (MalformedURLException e) {
             return null;
    }This was taken from... [http://java.sun.com/j2se/javadoc/writingdoccomments/#format]
    And this...
         * ...method doSomethingElse documentation comment...
         * @param someParam description
        public void doSomethingElse(Object someParam) {
            // ...implementation goes here...
        }from [http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html] Notice how the @param docs differ and both are from sun! So Jwentling Mr. know it all which one must I follow? And this is not THE ONLY ONE WHERE SUN contradict their own conventions, leaving people like me asking here! Go moan at them for not being precise.

  • SUN/Oracle directory user entry DN rename (move)

    Hi,
    Version FIM2010R2SP1 with latest publicly available hotfix rollup applied.
    Use case: Legacy enterprise directory (SUN iPlanet 5.2)  has users in different (ou) branches under the same tree depending on their current job. If they are transferred to another part of the organisation in the HR system, the requirement is to 
    move their user entry in this directory into a different ou.
    MA/Connector: Out of the box Sun/Oracle directory MA
    e.g. (dn) uid=hsmith001, ou=Sales,o=MyOrg.com
    moved to:
    (dn) uid=hsmith001, ou=Cleaners,o=MyOrg.com
    When the export is run to the connected directory, the "move"
    does actually happen in the connected source (the SUN directory server). So far so good.
    The connector space object is now marked as  'Awaiting export
    confirmation' (which is meant to occur on the next import).
    When an import is run, FIM creates a new connector space object with the new (renamed) dn but retains the existing object . At the same time it reports an error "ambiguous-import-flow-from-multiple-connectors" because it is seeing
    two objects with the same RDN (uid=hsmith). It has marked the original CS object for deletion.
    On the next synch, it says it has successfully deleted the original CS Object, however it is still there (and with the same anchor guid).
    It appears that with this connector connected to Sun Directory v5.1 and newer , you don't get to choose which attribute(s) you use for the anchor - it chooses the dn.
    It's puzzling why this issue exists in a technology set that has been around for years, so we are assuming that there is workaround or solution to this problem.
    N.B. This problem has been replicated on two completely independent environments by different people in our organisation.
    Any help/advice/suggestions would be most welcome.
    David.

    We appear to have resolved this.
    Because the sun directory MA isn't the authoritative source for the Person object then the delete failed because the cs object was still connected to the MV object (unfortunately it failed silently).
    The dn and the anchor being the same (forced by the MA) FIM does an add (for the new renamed object) and delete (for the existing object). At least that's our interpretation.
    The solution is to use an MV extension and in code, disconnect the existing cs object and connect to the directory server and do the move (outside of FIM's knowledge.). Then everything will line up on subsequent import, sync as the disconnected cs.object
    which is no longer reflected in the connected source will be deleted.
    Maybe someone has a better description of this.

  • Installation failed when using Jumpstart Server to install SUN Netra T1 200

    I have a problem to install a couple of Sun Netra T1 200 Servers with a Jumpstart Server. The Jumpstart Server is set up and I have executed the add_install_client Script. If I boot the Server which should to be installed the server crashes after getting the assigned IP-Address with a software fault.
    Attached i will sent the Jumpstart-Client-Output and the config Files of the Jumpstart-Server.
    ****Netra T1 Server Output, while configured as an Jumpstart client:****
    ok boot net -install
    Resetti
    LOM event: +2h28m47s host reset
    ng ...
    `
    Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
    OpenBoot 4.0, 1024 MB memory installed, Serial #16692502.
    Ethernet address 8:0:20:fe:b5:16, Host ID: 80feb516.
    Executing last command: boot net -install
    Boot device: /pci@1f,0/pci@1,1/network@c,1 File and args: -install
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    Timeout waiting for ARP/RARP packet
    2ae00 Warning: boot will not enable cache
    Requesting Internet address for 8:0:20:fe:b5:16
    Enter filename [kernel/sparcv9/unix]:
    Enter default directory for modules [platform/SUNW,UltraAX-i2/kernel /platform/sun4u/kernel /kernel /usr/kernel]:
    SunOS Release 5.8 Version Generic_108528-13 64-bit
    Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
    whoami: no domain name
    panic[cpu0]/thread=300010a9ba0: Can't invoke , error 2
    000002a1000f7a40 genunix:icode+274 (ffbefff0, 0, 300010a7b88, 0, ffbefffc, ffffffffffffffff)
    %l0-3: 00000000ffbefffc 0000000000000000 0000000000002000 000002a10000fd20
    %l4-7: 0000000000000bb8 0000000010423a00 000000001041b2f8 00000000000007a9
    syncing file systems... done
    skipping system dump - no dump device configured
    rebooting...
    Resetti
    LOM event: +2h36m51s host reset
    ng ...
    p
    Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
    OpenBoot 4.0, 1024 MB memory installed, Serial #16692502.
    Ethernet address 8:0:20:fe:b5:16, Host ID: 80feb516.
    Executing last command: boot
    Boot device: disk File and args:
    SunOS Release 5.8 Version Generic_108528-13 64-bit
    Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
    configuring IPv4 interfaces: eri0.
    Hostname: infrasrv
    The system is coming up. Please wait.
    checking ufs filesystems
    /dev/rdsk/c1t0d0s4: is stable.
    /dev/rdsk/c1t0d0s6: is stable.
    Starting IPv4 routing daemon.
    starting rpc services: rpcbind done.
    Setting netmask of eri0 to 255.255.255.0
    Setting default IPv4 interface for multicast: add net 224.0/4: gateway infrasrv
    syslog service starting.
    Print services started.
    Jun 26 04:48:14 infrasrv sendmail[220]: My unqualified host name (infrasrv) unknown; sleeping for retry
    volume management starting.
    The system is ready.
    infrasrv console login: root
    Password:
    Last login: Thu Jun 26 02:13:59 on console
    Jun 26 04:48:24 infrasrv login: ROOT LOGIN /dev/console
    Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
    Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
    # uname -i
    SUNW,UltraAX-i2
    # ^[[A
    ^[[A: not found
    # uname -m
    sun4u
    *****Config Files of the Jumpstart-Server******************
    Sysidcfg
    bootparams
    bash-2.03# more bootparams
    infrasrv  root=adminws:/cdrom/sol_8_202_sparc/s0/Solaris_8/Tools/Boot install=ad
    minws:/export/install boottype=:in sysid_config=adminws:/export/sysidcfg install
    _config=adminws:/export/config rootopts=:rsize=32768
    bash-2.03#
    rules
    bash-2.03# more rules
    #       @(#)rules 1.12 94/07/27 SMI
    # The rules file is a text file used to create the rules.ok file for
    # a custom JumpStart installation. The rules file is a lookup table
    # consisting of one or more rules that define matches between system
    # attributes and profiles.
    # This example rules file contains:
    #   o syntax of a rule used in the rules file
    #   o rule_keyword and rule_value descriptions
    #   o rule examples
    # See the installation manual for a complete description of the rules file.
    # RULE SYNTAX:
    # [!]rule_keyword rule_value [&& [!]rule_keyword rule_value]... begin profile fi
    # nish
    # "[ ]" indicates an optional expression or field
    # "..." indicates the preceding expression may be repeated
    # "&&" used to "logically AND" rule_keyword and rule_value pairs together
    # "!" indicates negation of the following rule_keyword
    # rule_keyword a predefined keyword that describes a general system
    # attribute. It is used with the rule_value to match a
    # system with the same attribute to a profile.
    # rule_value a value that provides the specific system attribute
    # for the corresponding rule_keyword. A rule_value can
    # be text or a range of values (NN-MM).
    # To match a range of values, a system's value must be
    # greater than or equal to NN and less than or equal to MM.
    # begin a file name of an optional Bourne shell script
    # that will be executed before the installation begins.
    # If no begin script exists, you must enter a minus sign (-)
    # in this field.
    # profile a file name of a text file used as a template by the
    # custom JumpStart installation software that defines how
    # to install Solaris on a system.
    # finish a file name of an optional Bourne shell script
    # that will be executed after the installation completes.
    # If no finish script exists, you must enter a minus sign (-)
    # in this field.
    # Notes:
    # 1. You can add comments after the pound sign (#) anywhere on a line.
    # 2. Rules are matched in descending order: first rule through the last rule.
    # 3. Rules can be continued to a new line by using the backslash (\) before
    # the carriage return.
    # 4. Don't use the "*" character or other shell wildcards, because the rules
    # file is interpreted by a Bourne shell script.
    # RULE_KEYWORD AND RULE_VALUE DESCRIPTIONS
    # rule_keyword rule_value Type rule_value Description
    # any minus sign (-) always matches
    # arch text system's architecture type
    # domainname text system's domain name
    # disksize text range system's disk size
    # disk device name (text)
    # disk size (MBytes range)
    # hostname text system's host name
    # installed text text system's installed version of Solaris
    # disk device name (text)
    # OS release (text)
    # karch text system's kernel architecture
    # memsize range system's memory size (MBytes range)
    # model 'text' system's model number
    # network text system's IP address
    # totaldisk range system's total disk size (MBytes range)
    # RULE EXAMPLES
    # The following rule matches only one system:
    # hostname sample_host - host_class set_root_pw
    # The following rule matches any system that is on the 924.222.43.0 network
    # and has the sun4c kernel architecture:
    # Note: The backslash (\) is used to continue the rule to a new line.
    #network 924.222.43.0 && \
    # karch sun4c - net924_sun4c -
    # The following rule matches any sparc system with a c0t3d0 disk that is
    # between 400 to 600 MBytes and has Solaris 2.1 installed on it:
    #arch sparc && \
    # disksize c0t3d0 400-600 && \
    # installed c0t3d0s0 solaris_2.1 - upgrade -
    # The following rule matches all x86 systems:
    #arch i386 x86-begin x86-class -
    # The following rule matches any system:
    #any - - any_machine -
    hostname infrasrv - infrasrv_class -
    hostname msm_srv1 - msm_srv_class -
    hostname msm_srv2 - msm_srv_class -
    bash-2.03#
    class
    bash-2.03# more infrasrv_class
    install_type initial_install
    system_type standalone
    partitioning explicit
    filesys c0t0d0s0 2048 /
    filesys c0t0d0s1 10
    filesys c0t0d0s3 1024 swap
    filesys c0t0d0s4 2048 /var
    filesys c0t0d0s5 2048 /opt
    filesys c0t0d0s6 free /export
    cluster SUNWCXall
    bash-2.03# more msm_srv_class
    install_type initial_install
    system_type standalone
    partitioning explicit
    filesys c0t0d0s0 2048 /
    filesys c0t0d0s1 10
    filesys c0t0d0s3 1024 swap
    filesys c0t0d0s4 2048 /var
    filesys c0t0d0s5 free /opt
    cluster SUNWCXall
    bash-2.03#
    ethers
    bash-2.03# more ethers
    8:00:20:fe:b5:16 infrasrv
    bash-2.03#
    hosts
    bash-2.03# more hosts
    # Internet host table
    127.0.0.1 localhost
    192.168.0.220 adminws loghost
    192.168.0.210 infrasrv
    192.168.0.200 tc
    bash-2.03#
    dfstab
    bash-2.03# more dfstab
    # Place share(1M) commands here for automatic execution
    # on entering init state 3.
    # Issue the command '/etc/init.d/nfs.server start' to run the NFS
    # daemon processes and the share commands, after adding the very
    # first entry to this file.
    # share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
    # .e.g,
    # share -F nfs -o rw=engineering -d "home dirs" /export/home2
    share -d "jumpstart conf dir" /export/config
    share -F nfs -o ro,anon=0 /export/install
    share -F nfs -o ro,anon=0 /cdrom/sol_8_202_sparc/s0/Solaris_8/Tools/Boot
    bash-2.03#
    tftpboot
    bash-2.03# pwd
    /tftpboot
    bash-2.03# ls -al
    total 348
    drwxrwxr-x 2 root other 512 Jun 26 11:45 .
    drwxr-xr-x 24 root root 512 Jun 26 11:45 ..
    lrwxrwxrwx 1 root other 26 Jun 26 11:45 C0A800D2 -> inetboot.SUN4U.Solaris_8-1
    lrwxrwxrwx 1 root other 26 Jun 26 11:45 C0A800D2.SUN4U -> inetboot.SUN4U.Solaris_8-1
    -rwxr-xr-x 1 root other 159416 Jun 26 11:45 inetboot.SUN4U.Solaris_8-1
    -rw-r--r-- 1 root other 318 Jun 26 11:45 rm.192.168.0.210
    lrwxrwxrwx 1 root other 1 Jun 26 11:45 tftpboot -> .
    bash-2.03#

    Hi,
    It seems to me that you have not created a proper sysidcfg file. From your post, it looks to me like your sysidcfg contains no entries. This is why it prompts you to enter the kernel path. Look on docs.sun.com for a guide to creating the sysidcfg file .

Maybe you are looking for