Precompiled classes ignored on Solaris

I'm precompiling all of my jsps on NT and deploying them on Solaris. The
          classes seem to be ignored and the server always generates a new java file
          and compiles at runtime.
          I am using Weblogic 5.10 SP9. I have the following configuration
          case sensitivity is on during the compile, the correct case files are
          generated and used on NT
          the timestamps of the class files don't seem to matter
          pageCheck is -1
          Thanks
          Rob
          

          You must preserve the timestamps on the .jsp files between Solaris and NT. WL does
          not look at the timestamps on the .class files to decide whether or not to compile
          a jsp. It checks the date on the .jsp file against ... (the date on the .jsp file
          at the time it was compiled). Compile with -keepgenerated and look at the resulting
          .java file to see this.
          It also checks that it was compiled with the same version/service pack.
          Mike
          "Rob Murtha" <[email protected]> wrote:
          >I'm precompiling all of my jsps on NT and deploying them on Solaris.
          >The
          >classes seem to be ignored and the server always generates a new java
          >file
          >and compiles at runtime.
          >
          >I am using Weblogic 5.10 SP9. I have the following configuration
          >
          >case sensitivity is on during the compile, the correct case files are
          >generated and used on NT
          >the timestamps of the class files don't seem to matter
          >pageCheck is -1
          >
          >Thanks
          >Rob
          >
          >
          

Similar Messages

  • Precompiled JSP classes are ignored on Solaris

    I'm using Weblogic 5.10 SP9, building on NT and deploying on Solaris. I
              precompile the JSP files but the classes are ignored on Solaris. I tried
              touching all of the classes to ensure that it is not a date issue but that
              didn't help. I also put the pageCheckSeconds to -1. I also use the
              weblogic.httpd.windows.caseSensitive flag and when the generated files are
              compiled they are placed in the same location with the same names and top
              level package.
              Thanks,
              Rob
              

              You must preserve the timestamps on the .jsp files between Solaris and NT. WL does
              not look at the timestamps on the .class files to decide whether or not to compile
              a jsp. It checks the date on the .jsp file against ... (the date on the .jsp file
              at the time it was compiled). Compile with -keepgenerated and look at the resulting
              .java file to see this.
              It also checks that it was compiled with the same version/service pack.
              Mike
              "Rob Murtha" <[email protected]> wrote:
              >I'm precompiling all of my jsps on NT and deploying them on Solaris.
              >The
              >classes seem to be ignored and the server always generates a new java
              >file
              >and compiles at runtime.
              >
              >I am using Weblogic 5.10 SP9. I have the following configuration
              >
              >case sensitivity is on during the compile, the correct case files are
              >generated and used on NT
              >the timestamps of the class files don't seem to matter
              >pageCheck is -1
              >
              >Thanks
              >Rob
              >
              >
              

  • Jar class path in solaris

    Hi
    I am new to solaris environment. I have a java file which is dependent on xerces.jar. to compile the file i need to set the classpath. pleas let me know how to set class path for xerces.jar which is in usr/raj/ folder structure of solaris machine.
    if there is any on the fly method of setting classpath plz let me know....
    thanks a lot
    raj

    What shell are you using?
    csh:  setenv CLASSPATH ${CLASSPATH}:/usr/raj/xerces.jarsh/ksh:  CLASSPATH=${CLASSPATH}:/usr/raj/xerces.jar
      export CLASSPATH

  • USB Video Class Driver on Solaris 10 and Sun Ray

    Hello,
    Is it posible to use the USB Video Class Driver (usbvc) on Solaris 10 and Sun Ray?
    How can I do that?
    Thank you very much.

    It's not possible. The Video Class requires isochronous operation on USB and Sun Ray does not support isochronous mode.
    Even if Sun Ray did support isochronous mode, the libusb library (which is what third-party applications use to interact with USB devices attached to Sun Ray) does not support isochronous transfers. The hard part is the Sun Ray itself. When that gets resolved it probably won't be very hard to add isoc support into libusb.

  • The File class ignores the file.separator system property?

    I am saving the pathname of a file to a String using:
    String pathString = myfile.getAbsolutePath();
    This gives me e.g. "D:\Java\Projects\myfile.txt" on Windows XP
    If I want to save this value to a properties file, then load it in a new invocation of the program, this string will not be recognised as a valid pathname because of the backslashes.
    So I want to use forward slashes as the file separator char.
    I tried:
    System.setProperty("file.separator","/");
    However, this setting seems to be ignored by the File class, as I still get the same string with backslashes from the getAbsolutePath() method.
    Can anyone help please?

    Yeah... I've used that before. Never recalled having problems. I can't, however, recall if there were file paths saved.
    Just tested with this:
    import java.io.*;
    import java.util.*;
    public class Props {
         public static void main(String[] args) {
              try {
                   Properties p1 = new Properties();
                   p1.put("file", new File("C:\\test\\Props.java").getAbsolutePath());
                   FileOutputStream out = new FileOutputStream("Props.properties");
                   p1.store(out, null);
                   out.close();
                   FileInputStream in = new FileInputStream("Props.properties");
                   Properties p2 = new Properties();
                   p2.load(in);
                   System.out.println("p1: " + p1.getProperty("file"));
                   System.out.println("p2: " + p2.getProperty("file"));
              } catch(Exception e) {
                   e.printStackTrace();
    }created this:
    #Tue Jun 21 10:53:38 EDT 2005
    file=C\:\\test\\Props.java

  • CSS Class Ignored

    I'm trying to override the default css class for static styled text/message styled text/rawtext items by specifying a css class in the property pallette for these items.
    When i run the page through jdeveloper it is not taking any effect.
    I'vnt tried running it from the server.
    I've tried with multiple css class types.
    I've copied the blaf.css file from the server and placed in myhtml\OA_HTML\cabp\styles\
    I've tried clearing the cache , deleteing the class files etc etc..
    Any pointers ?
    Thanks,
    Tilak.

    Tilak,
    Following extract from Dev guide might be useful for your reference:
    Using Styles
    All of the regions -- and most of the items -- that you add to the page have their styles set automatically; you don't need to do anything extra (nor should you). As described above, you should be setting region and item properties ONLY if you must override the default behavior.
    That said, there are several cases where you must set the CSS Class property for your items:
    If you create a staticStyledText item to be used for instruction text, you must set its CSS Class to OraInstructionText.
    For any text entry fields, checkboxes, poplists and radio buttons you must set the CSS Class to OraFieldText. Do not use OraPromptText for your radio buttons and checkboxes.
    If you create a messageStyledText item for displaying read-only data, you must set the CSS Class to OraDataText for the data to render in bold (note that you don't need to set this value for table columns)
    Tip: New OA Framework developers often make the mistake of trying to significantly change "native" component rendering by changing the CSS style. If you find yourself falling into this trap (and you're frustrated because your style settings don't appear to have any impact on the bean's runtime appearance):
    Make sure you're using the right bean (region or item style) for the job.
    If you're certain you're using the right bean, check to see if it publishes a method that lets you achieve the desired result. For example, an oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean inherits a setSize(int size) method that lets you control the size of the header text (which is useful when rendering headers in Home page "At a Glance" regions or in side navigation "Search" regions, for example). You cannot achieve this effect by trying to set the header's CSS Class to OraHeaderSubSub as some are tempted to try after reading the BLAF specification that the beans implement.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Re: Precompiling JSP with admin/managed servers

    Thanks, but I'm not doing any copying.
              The admin/managed-server communication copies things to the managed server,
              which then always recompiles the pages when hit.
              -Greg
              Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
              www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
              "Robert Coonrad" <[email protected]> wrote in message
              news:[email protected]...
              >
              > check out post 8366...i found that i was not preserving
              > the lastmodified date on my jsps and this was causing
              > unnecessary re-compilation.
              >
              > hope it helps...
              > bobc
              >
              > "Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote:
              > >I believe I have exhausted all permutations of EARing/notEARing,
              > >WARing/notWARing, placing precompiled jsp class files in WEB-INF/classes,
              > >placing them in a static location and setting workingDir to that
              location,
              > >combinations of the above.
              > >
              > >No matter what, the managed server re-compiles pages the first time they
              > >are
              > >hit. Non admin/managed-server I have no problems.
              > >
              > >Can anyone from BEA comment on this problem? Or give me a workaround
              > >for
              > >getting a cluster working with precompiled jsps?
              > >
              > >-Greg
              > >
              > >"Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote in message
              > >news:[email protected]...
              > >> Grrr... The JSP engine is extremely frustrating! I've spent many hours
              > >> fighting the "staleness" checker in WL. I've been through all of the
              > >> newsgroup messages pertaining to pre-compiling, etc., and I've gotten
              > >> pre-compilation working on single-server deployments, but admin/managed
              > >> server deployments have me beat.
              > >>
              > >> WL6.1, SP1, Solaris
              > >>
              > >> I've done the pageCheckSeconds=-1 and the workingDir is set to a fixed
              > >> place. The fixed place contains pre-compiled versions of all jsps
              > >made on
              > >> that machine using jspc not 20 minutes earlier using the JSP files
              > >in the
              > >> exploded EAR file used by the admin server as the model for managed
              > >> servers.. The managed servers are on the same machine.
              > >>
              > >> When the admin server gives an application to a managed server, the
              > >managed
              > >> server creates a temporary directory containing all of the webapp
              > >> components, etc. The file timestamps on these files is the set by
              > >the
              > >> copying process to the time of the managed server boot (why?!?!????!?),
              > >so
              > >> the staleness check always thinks they are new and could care less
              > >what
              > >> precompiled jsps I have in my workingDir, the WEB-INF/classes
              directory,
              > >or
              > >> anywhere else. The pageCheckSeconds=-1 seems to be completely ignored
              > >in
              > >> this scenario.
              > >>
              > >> If I tell the managed server to precompile everything on boot (about
              > >45
              > >> minutes for this app) it will create versions of the classes that match
              > >th
              > >e
              > >> new JSP file timestamps, but this does not even survive a reboot of
              > >the
              > >> managed server because it AGAIN creates a new temp version of
              everything
              > >on
              > >> the next reboot with new timestamps.
              > >>
              > >> If I wait for the managed server to boot and find the directory like
              > >> .../applications/.wlnotdelete_man1/wlap7336/webapp/... and physically
              > >copy
              > >> (via cp -pr to retain timestamps) all of the original webapp components
              > >on
              > >> top of the temp versions, the staleness checker is happy and the
              > >> pre-compiled versions work fine.
              > >>
              > >> There HAS to be a way to package pre-compiled versions of the JSPs
              > >in the
              > >> "model" application in the admin server and keep from having to
              precompile
              > >> the JSPs on every managed server every time managed server is booted..
              > >>
              > >> It would help if we had a way to bypass the staleness checking
              > >completely..
              > >> Or you guys should make the timestamps on the files copied by the
              > >> admin/managed deployment process match properly so the staleness
              checker
              > >> doesn't think the JSP is different.
              > >>
              > >> It would also help if the engineer who wrote this could explain the
              > >rules
              > >> being implemented by the staleness checker. So far all the messages
              > >in
              > >the
              > >> newsgroup have amounted to point solutions for problems without a good
              > >> understanding of what the engine is checking for and/or doing under
              > >the
              > >> covers. Looking at the generated .java files for the JSP pages helps,
              > >but
              > >> it is not good enough...
              > >>
              > >> Anyone out there have a working admin/managed server JSP application?
              > >> -Greg
              > >>
              > >> -----------------------------------------------------------
              > >> Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
              > >> www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
              > >>
              > >>
              > >>
              > >
              > >
              >
              

    The admin/managed-server communication copies things to the managed server, which then always recompiles the pages when hit.
              This is a known issue and is fixed. The timestamps of the compiled classes was not being preserved when extracted from the war file used to distribute to the managed servers. This will be available in WLS6.1 Service Pack 3 - and there is a temporary patch available for SP2. Please ask your friendly BEA support person for it (you can refer to CR058946)
              I'd give you the patch myself, but they like to keep track of these things...
              Regards,
              Alex
              "Girish" <[email protected]> wrote in message news:[email protected]...
              >
              > "Aditya Kiran Gavvala" <[email protected]> wrote:
              > >Greg,
              > >
              > >I have been following your posts, because our application deployment
              > >ran
              > >into exact same problem you ran into. I had spent a full two days
              > >researching into the problem. And I figured the solution. Hope this
              > >helps.
              > >
              > >Here are my discoveries:
              > >
              > >The following applies only to the following environment:
              > >OS: Linux (perhaps for Win/Unix/Solaris etc)
              > >WLS 6.0 SP2 ( no rolling patches): I found Rolling Patch2 (RP2) not useful
              > >for this problem.
              > >Clustered environment with Admin/Managed servers
              > >
              > >- When you compile JSP using weblogic.jspc compiler it puts the JSP file
              > >timestamp into the compiled class. You can see it in the generated java
              > >file
              > >(you need to supply -keepgenerated switch to jspc)
              > >
              > >- When a request is made to a JSP page after the application is deployed,
              > >it
              > >seems to be retrieving this timestamp from the compiled class file and
              > >comparing it with the JSP file timestamp. If they dont match a compile
              > >command gets run by the server. Thereby you see a compile happening at
              > >run
              > >time.
              > >
              > >- If you have exploded directory deployment, when you start the managed
              > >servers they create a ".war" file (under some temp dir) with all the
              > >JSP
              > >source files going into the file. You can notice this by looking into
              > >the
              > >server log file. Therefore all JSP source files get a brand new timestamp
              > >in
              > >the archive (a timestamp later than what was put class files by
              > >weblogic.jspc). So, the server at run time sees that the timestamp in
              > >the
              > >class file is older than the JSP source file and runs a recompile. So
              > >DONT
              > >DO EXPLODED directory deployment if your environment is as described
              > >in this
              > >post.
              > >
              > >- If you have ".war" file deployment, you will not have a problem. At
              > >the
              > >start up time managed server still creates "".war" file under a temp
              > >directory however it seems to be copying the content of the your ".war"
              > >file. So, the timestamps of JSP remain the same as they were before.
              > >SO NO
              > >RE-COMPILATION.
              > >
              > >- Another important thing to remember is to make sure you specify the
              > >workingDir in the weblogic.xml file. That is where the precompiled class
              > >files should reside. This should be any directory the server uses as
              > >scratch
              > >pad to compile classes or find (pre)compiled classes. This is not a
              > >directory inside your .war file is what I am trying to get at.
              > >
              > >Hope this helps,
              > >Aditya
              > >
              > >"Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote in message
              > >news:[email protected]...
              > >> Thanks, but I'm not doing any copying.
              > >>
              > >> The admin/managed-server communication copies things to the managed
              > >server,
              > >> which then always recompiles the pages when hit.
              > >>
              > >> -Greg
              > >>
              > >> -----------------------------------------------------------
              > >> Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
              > >> www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
              > >>
              > >> "Robert Coonrad" <[email protected]> wrote in message
              > >> news:[email protected]...
              > >> >
              > >> > check out post 8366...i found that i was not preserving
              > >> > the lastmodified date on my jsps and this was causing
              > >> > unnecessary re-compilation.
              > >> >
              > >> > hope it helps...
              > >> > bobc
              > >> >
              > >> > "Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote:
              > >> > >I believe I have exhausted all permutations of EARing/notEARing,
              > >> > >WARing/notWARing, placing precompiled jsp class files in
              > >WEB-INF/classes,
              > >> > >placing them in a static location and setting workingDir to that
              > >> location,
              > >> > >combinations of the above.
              > >> > >
              > >> > >No matter what, the managed server re-compiles pages the first time
              > >they
              > >> > >are
              > >> > >hit. Non admin/managed-server I have no problems.
              > >> > >
              > >> > >Can anyone from BEA comment on this problem? Or give me a workaround
              > >> > >for
              > >> > >getting a cluster working with precompiled jsps?
              > >> > >
              > >> > >-Greg
              > >> > >
              > >> > >"Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote in message
              > >> > >news:[email protected]...
              > >> > >> Grrr... The JSP engine is extremely frustrating! I've spent many
              > >hours
              > >> > >> fighting the "staleness" checker in WL. I've been through all
              > >of the
              > >> > >> newsgroup messages pertaining to pre-compiling, etc., and I've
              > >gotten
              > >> > >> pre-compilation working on single-server deployments, but
              > >admin/managed
              > >> > >> server deployments have me beat.
              > >> > >>
              > >> > >> WL6.1, SP1, Solaris
              > >> > >>
              > >> > >> I've done the pageCheckSeconds=-1 and the workingDir is set to
              > >a
              > >fixed
              > >> > >> place. The fixed place contains pre-compiled versions of all
              > >jsps
              > >> > >made on
              > >> > >> that machine using jspc not 20 minutes earlier using the JSP files
              > >> > >in the
              > >> > >> exploded EAR file used by the admin server as the model for managed
              > >> > >> servers.. The managed servers are on the same machine.
              > >> > >>
              > >> > >> When the admin server gives an application to a managed server,
              > >the
              > >> > >managed
              > >> > >> server creates a temporary directory containing all of the webapp
              > >> > >> components, etc. The file timestamps on these files is the set
              > >by
              > >> > >the
              > >> > >> copying process to the time of the managed server boot
              > >(why?!?!????!?),
              > >> > >so
              > >> > >> the staleness check always thinks they are new and could care
              > >less
              > >> > >what
              > >> > >> precompiled jsps I have in my workingDir, the WEB-INF/classes
              > >> directory,
              > >> > >or
              > >> > >> anywhere else. The pageCheckSeconds=-1 seems to be completely
              > >ignored
              > >> > >in
              > >> > >> this scenario.
              > >> > >>
              > >> > >> If I tell the managed server to precompile everything on boot
              > >(about
              > >> > >45
              > >> > >> minutes for this app) it will create versions of the classes that
              > >match
              > >> > >th
              > >> > >e
              > >> > >> new JSP file timestamps, but this does not even survive a reboot
              > >of
              > >> > >the
              > >> > >> managed server because it AGAIN creates a new temp version of
              > >> everything
              > >> > >on
              > >> > >> the next reboot with new timestamps.
              > >> > >>
              > >> > >> If I wait for the managed server to boot and find the directory
              > >like
              > >> > >> .../applications/.wlnotdelete_man1/wlap7336/webapp/... and physically
              > >> > >copy
              > >> > >> (via cp -pr to retain timestamps) all of the original webapp
              > >components
              > >> > >on
              > >> > >> top of the temp versions, the staleness checker is happy and the
              > >> > >> pre-compiled versions work fine.
              > >> > >>
              > >> > >> There HAS to be a way to package pre-compiled versions of the
              > >JSPs
              > >> > >in the
              > >> > >> "model" application in the admin server and keep from having to
              > >> precompile
              > >> > >> the JSPs on every managed server every time managed server is
              > >booted..
              > >> > >>
              > >> > >> It would help if we had a way to bypass the staleness checking
              > >> > >completely..
              > >> > >> Or you guys should make the timestamps on the files copied by
              > >the
              > >> > >> admin/managed deployment process match properly so the staleness
              > >> checker
              > >> > >> doesn't think the JSP is different.
              > >> > >>
              > >> > >> It would also help if the engineer who wrote this could explain
              > >the
              > >> > >rules
              > >> > >> being implemented by the staleness checker. So far all the messages
              > >> > >in
              > >> > >the
              > >> > >> newsgroup have amounted to point solutions for problems without
              > >a
              > >good
              > >> > >> understanding of what the engine is checking for and/or doing
              > >under
              > >> > >the
              > >> > >> covers. Looking at the generated .java files for the JSP pages
              > >helps,
              > >> > >but
              > >> > >> it is not good enough...
              > >> > >>
              > >> > >> Anyone out there have a working admin/managed server JSP application?
              > >> > >> -Greg
              > >> > >>
              > >> > >> -----------------------------------------------------------
              > >> > >> Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
              > >> > >> www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
              > >> > >>
              > >> > >>
              > >> > >>
              > >> > >
              > >> > >
              > >> >
              > >>
              > >>
              > >
              > >
              >
              [att1.html]
              

  • Solaris 10 zone configuration with sysidcfg and dhcp and hostname

    Hi
    Excuse me if I look like a n00b... it's probably because I'm a n00b.
    I've been struggling in the dark for more than 2 days now and I'm wondering if I'm thinking about this all wrong...
    I have stand-alone server where I need to run zones. I want to create zones and automagically configure them at boot (read: by running a script). So here's what I need...
    A zone
    starting from unconfigured state
    whose hostname is not the same as the zone name
    using corporate DHCP to get its IP address
    with DNS config coming from the DHCP server
    registering its address the DNS
    with a preconfigured root password
    (I don't own the corporate DHCP or DNS servers, I can't put my own DHCP or DNS servers on the network.)
    I would lke to create the zone, throw some config at it, then boot the zone and walk away. I am using zones with exclusive-IP. I can construct the zones and manually configure them once they're started to have DHCP, my own name, registered IP address with DNS and everything else I have specified above. But I don't want to do it manually...
    Sysidcfg seems to do some of what I want but not entirely.
    In sysidcfg I can set the root_password, the primary interface using DHCP, DNS server. I can't set a hostname in sysidcfg AND use configure it for DHCP. So the hostname is not what I want it to be after the zone is started and ready to go. The DHCP server is providing the DNS configuration, Solaris does not seem to honour it, but i'll ignore that for the moment.
    I have tried various combinations of using sysidcfg, /etc/nodename, /etc/hostname.+interface+ and /etc/dhcp.+interface+ but I can't find any combination that actually works.
    I can write to the zonestorage/etc/nodename to set the nodename, that works. But it does not match the DHCP address, so I get prompted for a new name service because it can't find a DNS entry for the name.
    I can write to the zonestorage/etc/hostname.+interface+ and /etc/dhcp.+interface+ (to get the system to register its name with the DNS server after getting its DHCP address) but then I get a system with no root password and no DNS configuration, even though they are set in the sysidcfg file.
    I can write a script that gets part of the way using sysidcfg and /etc/... files, then boots the zone and then runs a bunch of voodoo via zlogin commands to fix all the stuff that couldn't be done 'properly', but that's not a 'boot and walk away' environment. I can write a script that uses sysidcfg and hacks around with other files in /etc (like nsswitch.conf, resolv.conf), but that just feels likes a dirty hack to fix something that wasn't done properly in the first place.
    So where am I going wrong and how do I do it right (within the constraints defined)? Why can't I configure, boot and walk away?
    Thanks

    Thanks abrante
    Thanks for your response!
    I don't think the config is messed up after the installation. I think the installation is fine, it's just not what I want :-)
    I'm trying to decouple the zonename from the system name and get DNS registrations working. After installation, a DHCP client can get its hostname from DNS but I'm trying to do it the other way around. I want the DHCP client specify its own hostname, get an address from the DHCP server and then register its hostname with DNS. If the system gets its name from DNS/DHCP then I have to configure those to provide the system name and I don't own the DHCP/DNS infrastructure. These zones are for a development/QA environment, so we create and reconfigure these frequently. Hence the need to specify the system name within the zone and register that name in the DNS.
    I have tried fiddling with the PARAM_REQUEST_LIST but it does not seem to be working as I expect. :-$ Removing 12 did not help with setting the hostname from the system. DNS does not have a registered name for this system anyway, so even if it tried to get a name for this system, it would get nothing.
    I also do want the DHCP to change the DNS server and domain name, but this does not happen even though my dhcpagent includes 6 and 15 in the PARAM_REQUEST_LIST. I still have to set them in the sysidcfg file because it is always ignored in Solaris (S10u8 with 10_Recommended 30-Jul-2010)
    As stated, I know I can hack around with the system after it has booted. But I'm trying to configure the system before it starts and let it take care of itself and not have to touch it. Frankly I'm surprised that the sysidcfg does not allow you to set a hostname name when you are using DHCP, that the default DHCP configuration does not register the system name with the DNS server, and the DNS config from the DHCP response is ignored. Even a sys-unconfiged system requires DNS configuration during initial boot, when I know that the DHCP response contains DNS information.
    FYI: Windows systems using DHCP work as expected in this respect by default, i.e. set system name, use DHCP --> system gets address from corporate DHCP, DNS settings are set from DHCP information, DNS registration is made for system name.
    I'm working around this at the moment... I call my zone by the system name I want, I hardcode the DNS settings in the sysidcfg file and I create the hostname.+nic+ and dhcp.+nic+ files in the zone storage to get the system to register its name with DNS, them boot.
    Edited by: cydonian on Aug 19, 2010 7:45 PM

  • How to add compiled classes for EJBs in 10.1.3

    Hi there,
    I have a problem when migrating to 10.1.3.
    I have a big library of EJBs which I use in everal projects just by copying precompiled classes and adding them in ejb-jar.xml
    In previous JDeveloper I used ant as default build procedure. My build.xml didn't compile anything. just copied precompiled classes to output dir. Thus, the new project didn't care if classes were really build from source or not.
    The problem is that new JDeveloper doesn't allow setting a ant task as defualt build procedure and, so, building and then performing a ejb-jar.xml "verify enterprise beans" I get plenty of errors saying it can't find classes. (I have to copy them manually, or run the ant task manually).
    It is very tedious to copy classes manually as they are changed often... also, the deployment profile invokes nternal building procedure (an ant task before that copied classes) but now does nothing.
    I have tried to add these classes to the src dir, the resource dirs and even classpath, but they never get copied to output directory.
    Can I solve this or JDeveloper is only prepared to handle EJBs which source code is owned in the project itself?
    Thanks,
    Ignacio

    That link is to an older version of Jdev. There is no 'Common' section in project properties and no html input path either. There is a 'Project Content' section and within that section there is a 'Web Application' option. However i get "ArrayIndexOutOfBoundsException" whenever i click on the 'Web Application' option. I suspect this is the area where i can configure the .jsp portion of my project. I can't get to it though due to the exception.

  • JSP Precompile - Doesnt Work

    Hi All,
              I am having serious trouble trying to precompile my JSP's and have the wl
              server recognise them (and not re-compile them for me). Im using WLS6.1 with
              SP2 installed.
              I am running the JSPC pre-compiler with -D ....WEB-INF\classes. The files
              get created as expected and then I put them into my WAR file. When I deploy
              the WAR file, WLS always recompiles. I have experimented at length with
              different settings in my weblogic.xml, but as yet have had no success. I
              have also read some previous posts, but these have not helped either.
              Any suggestions or advice are very welcome!
              Thanks,
              Mark
              

              The suggestion to register JSPs as servlets is not at all practical or acceptable
              to me. Across multiple applications, we have over 200 JSP files and there's no way
              I would even consider this approach. What needs to happen is BEA should fix the problem
              and be more forthcoming about such "bugs" instead of letting the customers serve
              as QA and having to "ask" for patches. Why is 6.1 SP3 not on the web site? Why aren't
              all the patches available online for download? For the amount of money BEA charges,
              especially for clustered licenses, this type of problem should not go unfixed.
              Sam Fowler
              "Ashok Madhavan" <[email protected]> wrote:
              >
              >hi,
              >for pre-compiling the jsps in production in .ear format we found a way of
              >doing it.
              >We treated all the jsps in the application as servlets. we precompiled all
              >the jsps
              >before-hand and in the web.xml we gave a servlet-name, sevlet-class etc
              >just as we
              >do for a normal servlet. The compiled classes were in WEB-INF/classes/jsp_servlet.
              >we used hte weblogic.jspc coming along with weblogic. we have weblogic 6.1
              >with SP
              >2.
              >
              >we then did a .war file of this as we do normally.
              >
              >now we deployed this war file and it did work. we didnt include even a single
              >jsp
              >file with our application, just compiled jsps as servlets.
              >
              >The main problem with this is all the jsp need to be pre-compiled and the
              >deployment
              >has to be .war/.ear. this is not suitable for development. for developement
              >there
              >are other easy ways of doing it though.
              >
              >regards
              >Ashok Madhavan
              >
              >"Eric Ma" <[email protected]> wrote:
              >>
              >>Simon:
              >>
              >>Can you do the community a service by posting the patched weblogic.servlet.jsp.Precompiler
              >>class? If it is not convenient to share the Java source file, how about
              >>just the
              >>.class file? I am sure a lot of people will great appreciate the help.
              >>
              >>Eric Ma
              >>
              >>
              >>"Simon Spruzen" <[email protected]> wrote:
              >>>
              >>>There's still a bug in WebLogic's precompile dependency checking in
              >6.1
              >>>SP1 and
              >>>SP2. It will always recompile every JSP in a war file on deployment
              >if
              >>>precompile
              >>>option is true because WebLogic incorrectly generates the mangled JSP
              >servlet
              >>>class
              >>>name. I just patched the appropriate class (weblogic.servlet.jsp.Precompiler)
              >>>and
              >>>all is cool - I precompile my JSPs, put the generated servlet classes
              >into
              >>>the war
              >>>file and deploy it. Much quicker.
              >>>
              >>>I have raised this as a bug with BEA (I sent them my fix too) and they're
              >>>going to
              >>>try and sort this out for SP3. (Judging by postings, this is still a bug
              >>>in 7.0)
              >>>
              >>>simon.
              >>>
              >>>Ryan Barker <[email protected]> wrote:
              >>>>I am having a similar problem. With sp1, the process we would do the
              >following:
              >>>>Unjar the application into exploded format
              >>>>start up the server using the exploded format with precompile turned
              >on
              >>>>copy the /WEB-INF/_tmp_war_..../jsp_servlets directory into the /WEB-INF/classes/jsp_servlets
              >>>>directory
              >>>>rejar up the application
              >>>>start up the server using the war file.
              >>>>
              >>>>Now when we do this process, it recompile all of the jsps into the .wlnotdelete
              >>>>directory.
              >>>>
              >>>>This is seriously annoying. In production we have to have the applications
              >>>>directory as read only due to security policies and jsps need to
              >>>>be pre-compiled. Also on a slightly different note, if the config.xml
              >>>file
              >>>>is set to readonly, weblogic sp1 complained very loudly every 30
              >>>>seconds, have not checked with sp2 yet, hope that this has been fixed.
              >>>>
              >>>>Ryan Barker
              >>>>
              >>>>ludovic le goff wrote:
              >>>>> Hello Mark,
              >>>>>
              >>>>> Please check that in the weblogic.xml file of your web application,
              >>you
              >>>>get
              >>>>> an entry like:
              >>>>>
              >>>>> <context-param>
              >>>>> <param-name>weblogic.jsp.precompile</param-name>
              >>>>> <param-value>true</param-value>
              >>>>> </context-param>
              >>>>>
              >>>>> With the WLS 6.1 SP2, a fix has been done ( 041729 ) and now, the
              >>>>> weblogic.servlet.jsp.Precompiler honors weblogic.xml parameters, like
              >>>>> workingdir, packagePrefix, etc., for the JSPs that it precompiles
              >>>>>
              >>>>> Hope this helps,
              >>>>> Ludovic
              >>>>> Developer Relations Engineer
              >>>>> BEA Support
              >>>>> "newsgroups.bea.com" <[email protected]> a écrit dans le message
              >>news:
              >>>>> [email protected]...
              >>>>>
              >>>>>>Hi All,
              >>>>>>
              >>>>>>I am having serious trouble trying to precompile my JSP's and have
              >the
              >>>>wl
              >>>>>>server recognise them (and not re-compile them for me). Im using WLS6.1
              >>>>>
              >>>>> with
              >>>>>
              >>>>>>SP2 installed.
              >>>>>>
              >>>>>>I am running the JSPC pre-compiler with -D ....WEB-INF\classes. The
              >>files
              >>>>>>get created as expected and then I put them into my WAR file. When
              >I
              >>>>>
              >>>>> deploy
              >>>>>
              >>>>>>the WAR file, WLS always recompiles. I have experimented at length
              >with
              >>>>>>different settings in my weblogic.xml, but as yet have had no success.
              >>>>I
              >>>>>>have also read some previous posts, but these have not helped either.
              >>>>>>
              >>>>>>Any suggestions or advice are very welcome!
              >>>>>>Thanks,
              >>>>>>Mark
              >>>>>>
              >>>>>>
              >>>>>
              >>>>>
              >>>>>
              >>>>
              >>>>
              >>>
              >>
              >
              

  • WorkManager and ignore-stuck-thread setting

    In WL 10.3, using an application scoped work manager with the following .war deployment descriptors:
    web.xml:
    <resource-ref>
    <res-ref-name>wm/WorkManagerABC</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    weblogic.xml:
    <work-manager>
    <name>WorkManagerABC</name>
    <fair-share-request-class>
    <name>abcClass</name>
    <fair-share>1000</fair-share>
    </fair-share-request-class>
    <ignore-stuck-threads>true</ignore-stuck-threads>
    <min-threads-constraint>
    <name>MinThreadsCountTen</name>
    <count>10</count>
    </min-threads-constraint>
    <max-threads-constraint>
    <name>MaxThreadsCountTwenty</name>
    <count>20</count>
    </max-threads-constraint>
    </work-manager>
    <wl-dispatch-policy>WorkManagerABC</wl-dispatch-policy>
    ( This particular app is meant to be a socket listener using javax.nio ). This results in WL seeing "stuck threads" after the default 600 seconds. In our clusters, our clusters are configured that 3 stuck threads cause a server restart by nm.
    So I created the same objects at the domain level ( workmanager, min/max/fair-share ), with the workmanager set to ignore stuck threads.
    web.xml
    <resource-ref>
    <res-ref-name>WorkManagerABC</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    weblogic.xml
    <weblogic-version>10.3</weblogic-version>
    <!-- no work manager defined -->
    <wl-dispatch-policy>WorkManagerEni</wl-dispatch-policy>
    The app deploys and simple web pages are processed within the WorkManagerABC wm. Although WL still marks 4 threads as hoggers, none of them are stuck. So no restart, and the server Health stays OK.
    So a workManager at the server level obeys the "Ignore Stuck Threads" while an application scoped workmanager does not.

    I wasn't too disappointed that the application-scoped workmanager didn't obey the stuck threads; I'd rather have the work manager configurable at the server console level without having to involve customized deployment plans to override hard-coded thread restraint levels in the app's deployment descriptors.
    I think having it defined within the server console will make it simpler to manage the different performances in production versus qa, etc., than having it defined within the app and then adjusting it in each environment.

  • "cannot resolve symbol" when compiling a class that calls methods

    I am currently taking a Intro to Java class. This problem has my instructor baffled. If I have two classes saved in separate files, for example:
    one class might contain the constructor with get and set statements,
    the other class contains the main() method and calls the constructor.
    The first file compiles clean. When I compile the second file, I get the "cannot resolve symbol error" referring to the first class.
    If I copy both files to floppy and take them to school. I can compile and run them with no problem.
    If I copy the constructor file to the second file and delete the "public" from the class declaration of the constructor, it will compile and run at home.
    At home, I am running Windows ME. At school, Windows 2000 Professional.
    The textbook that we are using came with a CD from which I downloaded the SDK and Runtime Environment. I have tried uninstalling and reinstalling. I have also tried downloading directly from the Sun website and still the error persists.
    I came across a new twist tonight. I copied class files from the CD to my hard drive. 4 separate files. 3 of which are called by the 4th.
    I can run these with no problem.
    Any ideas, why I would have compile errors????
    Thanks!!

    Oooops ... violated....
    Well first a constructor should have the same name as the class name so in our case what we have actually created is a static method statementOfPhilosophy() in class SetUpSite and not a constructor.
    Now why does second class report unresolved symbol ???
    Look at this line
    Class XYZ=new XYZ();
    sounds familiar, well this is what is missing from your second class, since there is no object how can it call a method ...
    why the precompiled classes run is cuz they contain the right code perhaps so my suggestion to you is,
    1) Review the meaning and implementation of Constructors
    2) Ask your instructor to do the same ( no pun intended ... )
    3) Check out this for understanding PATH & CLASSPATH http://www.geocities.com/gaurav007_2000/java/
    4) Look at the "import" statement, when we have code in different files and we need to incorporate some code in another it is always a good idea to use import statement, that solves quite a few errors.
    5) Finally forgive any goof up on this reply, I have looked at source code after 12 months of hibernation post dot com doom ... so m a bit rusty... shall get better soon though :)
    warm regards and good wishes,
    Gaurav
    CW :-> Mother of all computer languages.
    I HAM ( Radio-Active )
    * OS has no significance in this error
    ** uninstalling and reinstalling ? r u nuttttttts ??? don't ever do that again unless your compiler fails to start, as long as it is giving a valid error it is working man ... all we need to do is to interpret the error and try to fix the code not the machine or compiler.

  • Ignoring back edges in an undirected graph...

    let's say i have a graph with 3 vertices. then let's say i have 2 edges connecting vertex 1 (v1) with vertex 2 (v2), and there's one edge connecting v2 with vertex 3 (v3). i want only to print edges going to each vertex, not 'back' edges. how do i do that?
    //given - Graph 'g'
    Iterator it = g.vertices();
    while(it.hasNext()){
    Vertex v = (Vertex)it.next();
    VertexElement a = v.element();
    System.out.println(vertexElement);
    Iterator fit = g.incidentEdges(v);
    while(fit.hasNext()){
    Edge e = (Edge)fit.next();
    EdgeElement = e.element();
    System.out.println(EdgeElement);
    this prints out every edge associated with each vertex.

    alright guys, sorry for the previous confusion... i guess i'll go ahead and show all the code associated so you can get a good idea on what i'm trying to do. we're making an airline reservation system built upon a graph in which the vertices are 'airports' and the edges are 'flights'
    the information is stored in a text file, which a certain format for airports and a slightly different format for flights. we read the text file, read in the airports and assign them as vertices, then read in the flights, and assign those to edges on the corresponding vertices (there are 'destination' and 'origin' values so we can keep track of which edge to place the elements) the format of the text file is described in detail in the class code, but i'll give an example at the bottom.
    here are the classes
    AIRPORT CLASS
    * Airport information in text file...
    * the information in the text file has 2 sections of data, each section is
    * separated by a bang (!) line:
    *                � Airport Information
    *                � Flight Information
    * the information is presented in padded fields of known length. ex. the first
    * 3 characters in the airport section is the unique airport abbreviation.
    * Fields:                                (variable associated)
    * #3 - Airport abbreviation           :  'airportID'
    * #1 <padding>                        :
    * #5 - Time Zone (offset from GMT)    :  'timeZone'
    * #1 <padding>                        :
    * #3 - X Coordinate on map            :  'xCoord'
    * #1 <padding>                        :
    * #3 - Y Coordinate on map            :  'yCoord'
    * #1 <padding>                        :
    * # remainder - Name of City/Airport  :  'airportCity'
    public class Airport {
      private int timeZone, xCoord, yCoord;
      private String airportID = "[UNASSIGNED]", airportCity = "[UNASSIGNED]";
    // blank constructor
      public Airport(){
      public Airport(String airportID, int timeZone, int xCoord, int yCoord,
                     String airportCity) {
        this.airportID = airportID;
        this.timeZone = timeZone;
        this.xCoord = xCoord;
        this.yCoord = yCoord;
        this.airportCity = airportCity;
      // accessor methods
      public String getID(){
          return airportID; }
      public int getTimeZone(){
          return timeZone; }
      public int getX(){
          return xCoord; }
      public int getY(){
          return yCoord; }
      public String getCity(){
        return airportCity; }
      // mutator methods
      public void setID(String airportID){
        this.airportID = airportID; }
      public void setTimeZone(int timeZone){
        this.timeZone = timeZone; }
      public void setXcoord(int xCoord){
        this.xCoord = xCoord; }
      public void setYcoord(int yCoord){
        this.yCoord = xCoord; }
      public void setCity(String airportCity){
        this.airportCity = airportCity; }
      // toString
      public String toString(){
        return ("AIRPORT ID: " + airportID + '\n' +
                "TIME ZONE: " + timeZone + '\n' +
                "X/Y: " + xCoord + "/" + yCoord + '\n' +
                "CITY: " + airportCity); }
    }FLIGHT CLASS
    package lab06;
    * Airline Flight Schedule - USA: Starts after the '!' delimiter.
    * Fields:                               (variable associated)
    * #2 - Airline                       :  'airline'
    * #4 - Flight                        :  'flightNum'
    * #2 <padding>                       :
    * #3 - Origin Airport                :  'originAirport'
    * #1 <padding>                       :
    * #5 - Departure Time                :  'departTime'
    * #2 <padding>                       :
    * #3 - Destination Airport           :  'destinationAirport'
    * #1 <padding>                       :
    * #5 - Arrival Time                  :  'arriveTime'
    * #2 <padding>                       :
    * #2 - Meals (S=snack/L=lunch/       :
    *             D=dinner/B=b-fast/     :
    *             #=depends on class)    :  'meals'
    * #4 <padding>                       :
    * #1 - # of stops during flight      :  'stops'
    * #4 <padding>                       :
    * #3 - Aircraft type                 :  'aircraftType'
    * #12 <padding>                      :
    * # remainder - Booking classes      :
    *               [IGNORE THIS DATA]   :
    public class Flight {
      private int flightNum, stops;
      private String
      airline = "[UNASSIGNED]", originAirport = "[UNASSIGNED]",
      departTime = "[UNASSIGNED]", destinationAirport = "[UNASSIGNED]",
      arriveTime = "[UNASSIGNED]", meals = "[UNASSIGNED]",
      aircraftType = "[UNASSIGNED]";
    // blank constructor
      public Flight(){
      public Flight(String airline, int flightNum, String originAirport,
                    String departTime, String destinationAirport, String arriveTime,
                    String meals, int stops, String aircraftType) {
        this.airline = airline;
        this.flightNum = flightNum;
        this.originAirport = originAirport;
        this.departTime = departTime;
        this.destinationAirport = destinationAirport;
        this.arriveTime = arriveTime;
        this.meals = meals;
        this.stops = stops;
        this.aircraftType = aircraftType;
      // accessor methods
      public String getAirline(){
          return airline; }
      public int getFlightNum(){
          return flightNum; }
      public String getOrigin(){
          return originAirport; }
      public String getDepartTime(){
          return departTime; }
      public String getDestination(){
        return destinationAirport; }
      public String getArriveTime(){
        return arriveTime; }
      public String getMeals(){
        return meals; }
      public int getStops(){
        return stops; }
      public String getAircraftType(){
        return aircraftType; }
      // mutator methods
      public void setAirline(String airline){
        this.airline = airline; }
      public void setFlightNum(int flightNum){
        this.flightNum = flightNum; }
      public void setOrigin(String origin){
        this.originAirport = origin; }
      public void setDepartTime(String departTime){
        this.departTime = departTime; }
      public void setDestination(String destination){
        this.destinationAirport = destination; }
      public void setArriveTime(String arriveTime){
        this.arriveTime = arriveTime; }
      public void setMeals(String meals){
        this.meals = meals; }
      public void setStops(int stops){
        this.stops = stops; }
      public void setAircraftType(String aircraftType){
        this.aircraftType = aircraftType; }
      // toString
      public String toString(){
          return ('\n' + "FLIGHT #" + airline + flightNum + '\n' +
                  "ORIGIN AIRPORT: " + originAirport + '\n' +
                  "DESTINATION: " + destinationAirport + '\n' +
                  "DEPARTS: " + departTime + " ARRIVES: " + arriveTime + '\n' +
                  "MEAL ON FLIGHT: " + meals + '\n' +
                  "NUMBER OF STOPS: " + stops + '\n' +
                  "AIRCRAFT TYPE: " + aircraftType); }
    }and here's my driver - it selects the text file (which must be formatted appropriately) and reads in each flight/airport and creates the graph.
    MAIN CLASS
    import java.io.*;
    import java.util.StringTokenizer;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import java.util.Iterator;
    import net.datastructures.*;
    import java.util.Vector;
    public class Driver extends JComponent{
      public static void main(String args[]){
        JPanel contentHolder;
        int status;
        StringTokenizer tokenizer;
        String first_, second_, third_, fourth_, fifth_, sixth_, seventh_,
        eighth_, ninth_, rest_, temp_, airportID, timeZone, xCoord, yCoord, airportCity;
        //create initially empty graph
        Graph g = new AdjacencyListGraph();
        //hash table to store information
        HashTable h = new HashTable();
        //display file chooser
        JFileChooser chooser = new JFileChooser();
        status = chooser.showOpenDialog(null);
        if(status != JFileChooser.APPROVE_OPTION)
          System.out.println("NO FILE CHOSEN.");
        else {
          //read file selected...
          try {
          File x = chooser.getSelectedFile();
          FileReader fr = new FileReader(x);
          BufferedReader inFile = new BufferedReader(fr);
          String info = "";
          String line = inFile.readLine();
          int numLines = 0; //keep track of # of lines in our file (if desired)
          boolean readingFlights = false;
          while(line != null){
            if (line.equals("!")) {  //we found the bang line, and now start reading
                                     //flight objects.
                line = inFile.readLine();
                readingFlights = true; }
            tokenizer = new StringTokenizer(line);
            int numTokens = tokenizer.countTokens();
            if (readingFlights) {
                first_ = tokenizer.nextToken();   //airline
                second_ = tokenizer.nextToken();  //flightNum
                third_ = tokenizer.nextToken();   //originAirport
                fourth_ = tokenizer.nextToken();  //departTime
                fifth_ = tokenizer.nextToken();   //destinationAirport
                sixth_ = tokenizer.nextToken();   //arriveTime
                //'meals' is a special case, since not all flights even have a meal
                //designated in the text file. those flights w/out meals can throw
                //our tokenizer off track, so we use a substring methods from here.
                seventh_ = line.substring(30,35); //meals
                eighth_ = line.substring(36,37);  //stops
                ninth_ = line.substring(41,44);   //aircraftType
                rest_ = line.substring(56,69);    //read rest of line
              //a test to see if the substrings are lined up right...
              //System.out.println("1st " + first_ + '\n' + "2nd " + second_ + '\n'
              //                 + "3rd " + third_ + '\n' + "4th " + fourth_ + '\n'
              //                 + "5th " + fifth_ + '\n' + "6th " + sixth_ + '\n'
              //                 + "7th " + seventh_ + '\n' + "8th " + eighth_ +
              //                 '\n' + "9th " + ninth_ + '\n' + "rest: " + rest_);
                //create flight object from this information
                //if(seventh_ == ""){
                Flight f1 = new Flight(first_, (Integer).parseInt(second_), third_,
                                       fourth_, fifth_, sixth_, seventh_,
                                       (Integer).parseInt(eighth_), ninth_);
                Vertex v1 = (Vertex)h.get(f1.getOrigin());
                Vertex v2 = (Vertex)h.get(f1.getDestination());
                Edge e1 = g.insertEdge(v1, v2, f1);
        } else {
            first_ = tokenizer.nextToken();       //airportID
            second_ = tokenizer.nextToken();      //timeZone
            third_ = tokenizer.nextToken();       //xCoord
            fourth_ = tokenizer.nextToken();      //yCoord
            fifth_ = tokenizer.nextToken("");     //airportCity (reads rest of line)
            //create airport object from this information
            Airport a1 = new Airport(first_, (Integer).parseInt(second_), (Integer).
                                     parseInt(third_), (Integer).parseInt(fourth_),
                                     fifth_);
            Vertex v1 = g.insertVertex(a1);
            h.put(a1.getID(), v1);
        } //close else
            line = inFile.readLine();
            numLines++; } //stop reading file
           //show info on screen
            Iterator it = g.vertices();
              while(it.hasNext()){
              Vertex v = (Vertex)it.next();
              Airport a = (Airport)v.element();
              System.out.println(a.getID());
            Iterator fit = g.incidentEdges(v);
              while(fit.hasNext()){
              Edge e = (Edge)fit.next();
              Flight curFlight = (Flight)e.element();
              //if the origin of the current flight is the same as the current
              //airport's ID then we wanna list those because those are the outgoing
              //flights from the current airport
              //System.out.println(curFlight.getOrigin().compareTo(a.getID()));
              System.out.println(curFlight);
              System.out.println("--------------------------------------" + '\n');
        catch(FileNotFoundException exception)
        { System.out.println("The file " + chooser.getSelectedFile() +
                             " was not found."); }
        catch(IOException exception)
        { System.out.println(exception); }
    }an example text file would look like this...
    ABQ -0800 195 275 Albuquerque, New Mexico
    DEN -0800 215 205 Denver, Colorado
    DTW -0600 445 140 Detroit, Michigan
    UA 785  ABQ  645A  DEN  757A  S     0    733            F  Y  B  M  Q
    CO 195  DEN  251P  ABQ  410P        0    73S            F  A  Y  Q  H
    AA 305  DTW  105P  ABQ  446P  #     1    72S            F  Y  H  B  Mthe first three lines are airports, separated by the bang line, then the next three lines are airports...
    the way the flights are set up, i want to display only outgoing flights...
    for example, under the Alberquerque airport display, the output will show flight UA785 leaving Alberquerque and arriving at Denver, BUT it will also show flights CO195 & AA305 coming INTO Alberquerque from Denver and Detroit, respectively. I don't want to see that. I only want to see the flights LEAVING a given airport.
    -Chris

  • Query regarding Application Classes - 2

    While going through Classes of Application Package *"EX"*, I have seen that some of the class definitions have a semi-colon after the class-name like:
    class ExpenseHeader;
    end-class;
    While most of the classes are defined without the semi-colon.
    class Transaction
    end-class;
    {color:#000000}+Does this semi-colon make any difference?+{color}

    The PeopleCode AppClass API documentation is silent on this. See [http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr07.htm#d0e16363|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr07.htm#d0e16363]. When creating your own classes, don't include the semi-colon after the class name (or implements/extends). When reading someone else's classes, ignore it. In this case, I would say the semi-colon makes no difference. I'm not the definitive reference on this, but that is how I would treat it.

  • Unable to load the '.jsp' file

    Hi all,
              We use Weblogic 8.1 sp3 and are devloping a struts based application.
              I have deployed my 'ear' file (containing a '.war' and a '.jar' file). We use struts. Our '.war' file, contains the pre-compiled 'jsp' classes (we have changed our web.xml to indicate that we are using pre-compiled jsps. I can show my web.xml file if you need).
              When I click on my 'submit' button, I see that my action class has been invoked and it's spitting out messages to the stdout. Everything looks fine. But, when it is trying to load the '.jsp', I get the following error.
              <b>
              Error 500--Internal Server Error
              javax.servlet.ServletException: [HTTP:101249][ServletContext(id=20736651,name=gta,context-path=/gta)]: Servlet class jsp_servlet._presentation._jsp.__link for servlet /presentation/jsp/Link.jsp could not be loaded because the requested class was not found in the classpath C:\bea\8.1sp3\user_projects\domains\gta\gtaServer\stage\_appsdir_gta_ear\gtaweb.war;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-beanutils20573.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-collections20574.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-digester20575.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-fileupload20576.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-lang20577.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-logging20578.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\commons-validator20579.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\jakarta-oro20580.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\jstl20581.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\standard20582.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\WEB-INF\lib\struts20583.jar;C:\bea\8.1sp3\user_projects\domains\gta\.\gtaServer\.wlnotdelete\extract\gtaServer__appsdir_gta_ear_gta\jarfiles\_wl_cls_gen.jar.
              java.lang.ClassNotFoundException: jsp_servlet._presentation._jsp.__link.
                   at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:824)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
                   at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312)
                   at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
                   at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
                   at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
                   at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
                   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
                   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
                   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                   at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              </b>
              I have looked in the '.war' file and it contains the above mentioned precompiled class (_link).
              Could anyone point me in the right direction??

    Hi,
              Could you check that whether the jsp file is placed in right place or not ?
              Regards
              Anilkumar kari

Maybe you are looking for

  • Not Happy with iTunes 10.0.1.22; Won't Sync with My IPad

    I have my IPad for quite some time, back to 29 April when they came out. No problem syncing a ton of photos, some music and apps on a 32GB version with 3G until yesterday when I was instructed to update Itunes and Quicktime to ver. 10.0.1.22! Now I c

  • Findind my backed up files after a complete restore

    I just had to do a complete restore on my laptop and i really need help finding all of my files i had backed up i cannot find them and there were pics and imprtant legal documents on there please some one help me.....

  • HP Photosmart B9180 not printing black

    i am not getting black ink on any of my prints i used the printer the other day and it was fine the black ink cart is at about 88% i did get a message about ink carts that had expired but ignored it as i always do so i am not sure if this is the caus

  • Fonts screwed up on certain websites

    My Firefox installation at work used to display all websites fine. But starting a few months ago, the fonts displayed on certain websites (that always looked fine before) started looking of low quality. These websites look fine when I look at them at

  • Forall with bulk collect .. getting error

    it's 10 g. gettting this error. drop table t2; create table t2 ( seq_id number,   act number,    is_p varchar2(1),   other varchar2(20) insert into t2 values(1,2,'N','Test 1'); drop table t3; create table t3 ( seq_id number -- ,act number --  ,is_p v