What is the point of column with scale 0 ?

DB Version: 11.2
This is what my understanding about Precision and Scale in Number datatype is
NUMBER ( p, s )
Example: in NUMBER(5,3)
5 ==> stands for the total number of digits including the numbers after the decimal point
3 ==>. stands for the digits to right of the decimal point.But , for number type defined with scale 0 how am I able to INSERT numbers with decimals as shown below ? I even managed INSERT numbers whose total length is crossing the precision 5 below ( 93939.223 )
SQL> drop table t1;
Table dropped.
SQL> create table t1 (empid number (5,0));
Table created.
SQL> insert into t1 values (883.2);
1 row created.
SQL> insert into t1 values (883.22);
1 row created.
SQL> insert into t1 values (883.332);
1 row created.
SQL> insert into t1 values (93939.223);
1 row created.
SQL> commit;
Commit complete.

>
So, oracle is letting us INSERT numbers with decimals but it is eliminating those numbers internally.
>
Yes - if by 'eliminating' you mean 'rounding'.
See the 'Datatypes' section of the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements001.htm#i54330
>
Specifying scale and precision does not force all values to a fixed length. If a value exceeds the precision, then Oracle returns an error. If a value exceeds the scale, then Oracle rounds it.
>
The Table 2-2 shows how different numbers are stored
>
Table 2-2 Storage of Scale and Precision
Actual Data Specified As Stored As
123.89     NUMBER     123.89     
123.89     NUMBER(3)     124
123.89     NUMBER(3,2)     exceeds precision
123.89     NUMBER(4,2)     exceeds precision
123.89     NUMBER(5,2)     123.89
123.89     NUMBER(6,1)     123.9
123.89     NUMBER(6,-2)     100
.01234     NUMBER(4,5)     .01234
.00012     NUMBER(4,5)     .00012
.000127     NUMBER(4,5)     .00013
.0000012     NUMBER(2,7)     .0000012
.00000123     NUMBER(2,7)     .0000012
1.2e-4     NUMBER(2,5)     0.00012
1.2e-5     NUMBER(2,5)     0.00001          

Similar Messages

  • What is the point of Precision and Scale in Number Type?

    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
          COL1
    223.993939
    88.228384
          9.34
             0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?

    Omega3 wrote:
    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
    COL1
    223.993939
    88.228384
    9.34
    0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?Lots of business requirements for specific precisions and scales.
    A persons Age may required to be stored as whole numbers of no more than 3 digits.
    A sum of money may required to be stored with no more than 2 decimal places of accuracy e.g. GB Pounds and Pence or US Dollars and Cents
    A unit of length may required to be stored in metres with 2 decimal places for centimetres
    A shoe size may be required to be stored with one decimal place for half sizes
    etc.
    etc.
    Yes, you may just create all of them as generic NUMBER datatype, but creating them with precision and scale can provide additional information about the limitations expected for the values stored, especially for things like reporting tools that may use the specified precision and scale to determine how to display the values automatically (by default).
    If you start questioning "what's the point?" then you may as well say what's the point in having a NUMBER datatype when we can store numbers in a VARCHAR2 datatype? or what's the point in having a DATE datatype when we can stored dates as VARCHAR2 datatype? etc.
    No point in asking such a question because there's almost always a point to these things (and if there isn't they get deprecated in later versions).

  • What's The Point of Miana With Scanned Photo Dates?...

    So I had the issue of scanning paper photos to digital images and importing them into iPhoto (and changing the dates from when the photos were scanned to when the photos were actually taken) that I'm sure many people have had. Now I've heard it suggested before to use a program called Miana (http://www.versiontracker.com/dyn/moreinfo/macosx/26900) to put photos in an entire folder and with the program you can set the contents of the entire folder to have been created at a date that you specifiy (i.e. when photos were taken). After doing this you could import the files into iPhoto and have the dates be acurate. But of course, you can change the date of the photos and even the film roles in iPhoto so they can be correct. So why do this? Just to have the files creation date be the same as when it was taken? But I noticed in iPhoto's library system when you import... you are making another copy of the photos into the libarary system, so the creation date is always going to be wrong. So what is then the point of using Miana? I don't really mind this but lets say one day I want to switch back to windows. How can I backup my photos and keep the proper dates of when photos were actually taken? If your being a good computer using and backup often, creation dates are always changing, no? Any thoughts?

    brianzk1:
    Welcome to the Apple Discussions. Even though iPhoto copies the file into its library the created (or modified date if it's later than the created date) is used. Making a duplicate copy of an existing file does not change those dates as you're only making a bit by bit copy. Copying a file to another HD does not change those dates either.
    One way to keep the dates straight is to rename them with the date. I use the international date format, YYYY-MM-DD-01.jpg, like this. I've started lately adding a brief description to the files after the date like this.
    You can use R-Name to batch rename them before importing into iPhoto. It provides excellent chronological sorting and searching.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • What's the point with Spaces?

    I use F9 very frequently to see which windows/how many windows are open. Works great! So why bother with this new "great" app called Spaces? What's the point?

    Reasons for me include to help me focus by reducing visual clutter and organise running applications by task.
    I've just recently discovered there is a single application mode for the dock. (Is this Leopard only? I'll kick myself if it was in Tiger!) This can be a good alternative to spaces as it's visual clutter that bothers me most. To easily enable this install the freeware Secrets http://www.macupdate.com/info.php/id/27025

  • TS1702 what is the point of the Ipod touch(2nd generation)?Every single app Is not compatible with it.Seems like a complete ripoff to me.My phone was alot cheaper and does way more.Very frustrated with this device.

    what is the point of the Ipod Touch(2nd generation)?Every single app is not compatible with it.Am I missing something?My cell phone cost 1/2 as much and does way more.This is why I don't normally purchase any apple products.Overpriced flashlight,that's about all it does.

    There are still some apps compatible, with the 2G. Also, since September, Apple has now allowed download the last version of apps that were compatible with the 2G but have been updated to no longer be compatibles
    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app

  • What is the point of syncing apps with iTunes?

    I have an iPad & iPhone.
    In older itunes the updates on one device would sync to itunes. but now what is the point of apps in itunes other than to waste space? if i backup a device, all apps seem to come from the internet. if i update then don't sync to itunes on pc so i end up download all updates 3 times (ipad/iphone/itunes).
    Should I just delete all apps from itunes and same space both on hdd and on network (since i backup my itunes folder).
    note that I have 300mbps unlimited internet.

    Is the device backing up to iTunes on the computer or iCloud?
    If backing up to iTunes on the computer, any content purchased from iTunes (apps, media, podcast, etc) will transfer during the backup/sync process.
    If backing up to iCloud, content does not transfer automatically.
    The purpose is to have a local backup of content.  This is beneficial in the event that content is removed from iTunes and the user wants to reinstall or restore the device.

  • Capture Conv: rev/reverse - what's the point?

    Take this example from http://www.langer.camelot.de/GenericsFAQ/FAQSections/TechnicalDetails.html
    public static List<?> reverse(List<?> list) { return rev(list); }
    private static <T> List<T> rev(List<T> list) {
         List<T> tmp = new ArrayList<T>(list);
         for (int i = 0; i < list.size(); i++)
              list.set(i, tmp.get(list.size() - i - 1);
         return tmp;
    }Now, I've read the JLS, the Generics tutorial, the JOT.fm article and the langer.camelot.de FAQ, but I can't for the life of me figure out one thing:
    What's the point!? The wildcard version of reverse returns List<?> whereas the naive alternative (public static <T> List<T> reverse(List<T> list)) returns whatever you pass in. That seems much more useful! You pass in a List<String> and you get back a List<String> The JLS says that the templatized version "is undesirable, as it exposes implementation information to the caller."
    My question is this: is that the real reason? It's not, right? What implementation information is exposed? The type parameter? How is that bad? Is it bad enough to reduce the functionality of the method?
    I have a hunch that "exposing implementation information" is low on the tradeoff scale - and that the real reason for the wildcard version is backward compatibility. If you only had the templatized version, old code that tries to pass in a plain-old List to reverse would now generate unchecked warnings because of the conversion from raw List to the formal parameter's type List<T>. The preferred wildcard version doesn't generate unchecked warnings because the conversion from raw List to List<?> is 'safe'.
    Isn't that right? The reason that "public static <T> List<T> reverse(List<T> list)" is bad is not because it exposes implementation details, but because it causes old code to generate unchecked warnings, non?
    If I'm right, then my follow up question would be: who cares? Who cares if old code generates unchecked warnings? Isn't that fair? - a sort of gentle pseudo-deprecation of raw types?
    And furthermore, if you'll allow me to smush several questions together, why the preoccupation with eliminating unchecked conversions all over the place? Doesn't the bytecode that comes out look the same either way? What benefit does an unchecked-conversion-free program or CompilationUnit have over one with such conversions? Does provability make possible some future JVM optimizations where some casts or instanceofs can be eliminated? I don't really see how, unless we're talking about some wacky static compiler. Why go to so much trouble to avoid unchecked conversions?

    Angelika, you caught me. I was writing about the 'void reverse(List<?>)' example from the JLS when I went back to your page and realized that your example had a return type. It confused the matter slightly, but not enough to detract from my main point, I thought. In fact, it seemed to prove my point - to provide a good counter-example to the JLS reasoning! But let me start from the beginning:
    In the draft JLS, it mentions that<T> void reverse(List<T> list) {} is preferable to void reverse(List<?> list) {} which is "undesirable" because "it exposes implementation information to the caller."
    What implementation information? The only difference between the two is that the 'unknown element type' has a different name. '?' as opposed to 'T'. In both cases, it means the same thing! A List with some unknown element type.
    Whether it's called 'T' or '?' is inconsequential, it seemed to me. Perhaps one could argue that one is 'prettier' than the other but I didn't see how any implementation detail was exposed.
    I didn't see any real reason to prefer the wildcard version over the other, except the reason I gave: the wildcard version avoids unchecked warnings for legacy code.
    I now see that there is one other important difference - the type parameter T is actually part of the method signature. That could have important implications for overriding. In that sense, the 'List<T>' version does 'expose' and impose an unnecessary implementation constraint. I haven't thought through how that could be a problem, but I certainly can imagine that it might.
    However, neither the 'avoid-unchecked-warnings-on-legacy-code' reason nor the 'typeparameter-is-part-of-method-signature' reason is mentioned in the JLS example. Without those two pieces of information, the preference just seems arbitrary.
    So that was my initial question: "am I incorrect? The dont-expose-implementation-information reason seems much less important than the avoid-legacy-warnings reason - shouldn't the JLS mention *that* instead?"
    THEN, to add to my feeling, I noticed that the similar-looking example on your page involved a return type of List<T>. It seemed to follow the JLS recommendation to its detriment! The preference in the JLS example seemed arbitrary yet harmless, but here it seemed actually wrong! In trying to avoid the hand-wavy concept of 'exposing implementation information to the caller', the usefulness and semantics were ruined! That seemed like alot to give up, just to spare legacy people some unchecked warnings. I thought this just drove home my original point about the JLS example - but instead it just made my question a confusing mixture of two different issues. I should have realized that and left the FAQ version out of the discussion.
    Given all of that, consider now only the JLS's 'void reverse(List<?> list)' case and let me ask this refined question:
    I think the JLS should say that '<T> void reverse(List<T> list)' is undesirable not because of the vaguely unconvincing reason that "it exposes implementation information" but rather because of these two explicit reasons:
    . the type parameter is part of the method signature (which can cause strange 'gotchas' with overriding) and because
    . it causes previously acceptable code to now unnecessarily generate unchecked warnings.
    Does anyone else think differently?
    POSTSCRIPT:
    Of course, the thing I didn't realize was that that code snippet in the FAQ is crazy. ie. 'List<?> reverse(List<?> list)' is absurd! You would probably never do that. What kind of reverse method would return a List of a different parameterization than it gets? That would be a really weird reverse method, I think.
    Given that, it seems to me that you should modify the 'reverse' snippets in the FAQ, under sections "What is the capture of a wildcard?" and "What is a wildcard capture assignment-compatible to?". I think you should do one of three things:
    1. Make rev/reverse return 'void'. Then your example code becomes the same as the JLS, the wildcard version makes sense, and preferring it makes sense too.
    2. Remove one of the two methods and only have 'public <T> List<T> reverse(List<T>)' which gives the correct implication.
    3. Keep the example but give the methods a different name and purpose than 'reverse', like
    'List<?> examineListAndMaybeReturnOneWithDifferentElementTypes(List<?> list)'. :)

  • AVCHD/ HDV- What's the point

    This is probably as stupid as it sounds, but it suddenly struck me today, but what is the point of having AVCHD/ HDV compatibility and editing on FCE/ FCP if you can only burn the projects onto a standard def DVD? Does FCE give you any other options in tems of what you do with your freshly edited High Def content? Do you lose a heap of quality when you burn it to DVD?

    hey there qsack,
    in the USN i was told the only stupid questions are the ones you don't ask. you can send your HDV project back to tape in your cam to watch on your HDTV... the shoot/edit/distribute flow that we have in DV, is not yet ready w/ HDV, partly because of the cost of the burners & the R&D to develop the authoring software for mass commercial use(make it simple enough for average users as w/ iDVD). also the major studios are probably closely guarding the technology in part due concerns about piracy, also the HD-disc format war thing.... these are just some of the speculations on why we can't yet burn our HD movies to disc.
    i've burned some of my HDV content to SD discs & they look pretty good, because i had good lighting to start with. though i dropped down a lot in terms of res from 1080i to 480p. i was okay w/ the results & as w/ most graphic types be it print, photo or video, it's usually better to start out w/ more or larger(1080/720) & if you have to shrink it(480) you still have a decent image rather than have a small image & try to scale up. for example--a photo from a 10 megapixel DSLR "RAW" file will still have a lot of detail & look good when it gets down-converted to a JPEG vs. a photo from a 2 megapixel phone camera that starts as a JPEG.

  • While defining a columnar table, what is the purpose of column store type

    Hi folks
    I have two questions related to columnar table definition.
    1. What is the purpose of column store type.
    While defining a columnar table, what is the purpose of column store type (STRING ,CS_FIXEDSTRING,CS_INT etc) , when I define a table using the UI I see that the column is showing STRING but when I goto EXPORT SQL it does not show.  Is this mandatory or optional ?
    2.VARCHAR Vs. CHAR - In the UI when I create the table I do not see the CHAR option , but I do see lot of discussion where people are using CHAR for defining the columnar table. Not sure why UI dropdown does not show it. I also read that we should avoid using VARCHAR as those columns are not compressed, is that true, I thought the column store gives compression for all the columns. Are there certain columns which cannot be compressed .
    Please let me know where I can find more information about these two questions.
    Poonam

    Hi Poonam
    the CS_-data types are the data types that are used internally in the column store. They can be supplied but it is not at all required or recommended to do so.
    SAP HANA will automatically use the correct CS_-data type for every SQL data type in your table definitions.
    To be very clear about this: don't use the CS_-data types directly. Just stick to the SQL data types.
    Concerning VARCHAR vs CHAR: fixed character data types are not supported anymore and don't show up anymore in the documentation.
    I have no idea why you believe that VARCHAR columns are not compressed but this is just a myth.
    create column table charcompr (fchar char(20), vchar varchar(20));
    insert into charcompr (
        select lpad ('x', to_int (rand()*20), 'y'), null from objects cross join objects);
    -- same data into both columns
    update charcompr set vchar = fchar;
    -- perform the delta merge and force a compression optimization
    merge delta of charcompr;
    update charcompr with parameters ('OPTIMIZE_COMPRESSION' ='FORCE');
    -- check the memory requirements
    select COLUMN_NAME, MEMORY_SIZE_IN_TOTAL, UNCOMPRESSED_SIZE, COUNT, DISTINCT_COUNT, COMPRESSION_TYPE
    from m_cs_columns where table_name ='CHARCOMPR'
    COLUMN_NAME    MEMORY_SIZE_IN_TOTAL    UNCOMPRESSED_SIZE   COUNT   DISTINCT_COUNT  COMPRESSION_TYPE
    FCHAR       3661                    70285738            6692569 20              RLE
    VCHAR       3661                    70285738            6692569 20              RLE
    We see: compression and memory requirements are the same for both fixed and variable character sizes.
    - Lars

  • I am extremely upset. I purchased my iPad in SA and I am traveling in Greece. When I want to make use of the free apps, I get a message that the app is not available in the SA store. What is the point of having an iPad if you cannot use it worldwide?

    I am extremely upset. I purchased my iPad in SA and now I am in Greece. I cannot download free apps as I get a message that the apps are not available in the SA store and only in US stores. When I change to the US store the same thing happens. What is the point of having an iPad if I cannot use it worldwide??? I feel that I wasted my money purchasing it as I specifically purchased it to use when I travel. How can I get access to all the available apps and why are they restricted.

    You can use your iPad worldwide. However, each AppleID is tied to
    a specific country's store. To use the AppStore in any country, you
    must be in that country and have a credit/debit card issued by a financial
    institution in that country with a verified billing address in that country.
    It is the developer's choice which AppStores he makes his app available
    from, and some countries prohibit certain apps.
    To make a purchase from the US store (including downloading a free app
    available in the US store), you must be in the US and have card issued
    in the US with verified billing address in the US.
    You can use your purchases from the SA store worldwide, but you
    cannot make purchases in other than the SA store unless you meet
    the aforesaid conditions.

  • What's the point of warranty?

    I am a student coming from Hong Kong  to London for postgraduate study. Before I left Hong Kong, I decided to buy a netbook for my lecturers in the UK. Lenovo s10-2 was chosen because the version available in HK comes with 6 cell battery with international warranty and Lenovo Protection Service (against accidental damage).
    This is the first Lenovo machine for me. All was well and I was starting to appreciate Lenovo. Suddenly, the LED screen started to flick with white lines moving across the it, just two weeks after I bought it from Hong Kong.
    Yesterday, I called the UK support line who initially suggested replacement (because the purchase is last than 30-day old). However, when the agent found out that I bought the machine in Hong Kong, he said I could only get it repairs. Fair enough.
    I packed the netbook this afternoon ready to ship it to the repair center. Being not sure about whether or not my proof of purchase was needed, I called the support line again. This time, the agent gave me a "friendly warning" or maybe a management of my expectations.
    I was told that Lenovo believes that there is a 99.5% chance that these type of problems are due to “internal damages" caused by users! I was also advised that sending the machine in for repairs risk myself getting into paying 230 pounds (pretty much the purchase cost) to get the LED screen fixed because it is likely to be not covered by warranty. On top of that, I would have to pay 65 pounds even if I want my netbook back after inspection without getting fixed because again, 99.5% chance that "damages by users" would be concluded!
    What's the point of warranty? Totally unacceptable. Any thoughts? Should I take the risk?
    I only got the machine just over two weeks ago and used for less than 10 times!

    seblee,
    This bears a bit of looking into to provide you the best answer.   Sometimes, the accidental damage policies are only valid in the home country, and I would like to check.  If that were to be the case, you would have replacement or repair options in HK, but standard warranty terms would likely apply in UK.
    Your situation sounds exceptional, and I'd like to look into this and see what can be done.
    Can your send me a private message with your contact information and the serial number from the bottom of the unit?
    Sorry that you are having this trouble.  Will see how we can help.
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • What is the point of having indented levels in course outlines?

    What is the point of having indented levels in course outlines? It's not possible to add any materials or posts to this. I want to avoid having simply a long list of topics that are difficult to manage. When I create a topic in the outline, I can indent it, but then I can't add any posts to it as it doesn't even show up as a heading in course manager.
    I've been trying to have some kind of logical organisation of materials, but the only thing you seem to be able to do is have a long list of topics.
    Which makes me wonder why the possibility of indenting levels is there at all - it seems to be a completely worthless item.

    I guess the point of the indented lists is to provide the user with some description of the topic’s contents. It's a standard convention in the table of contents of books. It might pay to break your course down into a number of courses if the list of topics is getting too unwieldy.

  • JWSDP and J2EE Integration: Doesn't work. What's the point?

    My problems involve the integration of JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    It looks like a long one, but it�s really not that bad. All comments are appreciated.
    I�ve numbered each line-paragraph-section for easy reference later.
    (1) My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website that uses servlets, JavaServer Pages (JSP), and JDBC.
    (2) I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    (3) On MyWebServer I installed the following:
    Java 2 Standard Edition (J2SE)
    Java 2 Enterprise Edition (J2EE)
    Java Web Services Developer Pack (JWSDP)
    The JWSDP tutorial
    Apache HTTP Server
    (4) The files I downloaded and installed are as follows:
    j2sdk-1_4_0-rc-win.exe
    j2sdkee-1_3_1-win.exe
    jwsdp-1_0-ea1-win.exe
    jwsdp-1_0-ea1_01-tutorial.zip
    apache_1.3.23-win32-x86-no_src.exe
    (5) After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    J2EE_HOME = c:\j2ee
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\j2ee\bin;c:\jwsdp\bin; [and other previous statements]
    (6) I checked to see that Apache is running as a service. It is.
    On MyWebServer I start Tomcat and J2EE. Both start properly and are operating simultaneously.
    (7) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    This displays the page c:\ApacheHTTP\apache\htdocs\index.html.en (The Apache default server installation page.)
    (8) I then enter this address in IE:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html (The default JWSDP page).
    (9) I then enter this address in IE:
    http://10.10.1.1:8000
    This displays the page c:\j2ee\public_html\index.html (The J2EE 1.3 Default Home Page).
    (10) So far so good. Now I want to test JWSDP as a container for JSP pages.
    (11) I use ant to build the converter app found in the tutorial examples (in folder c:\jwsdp\�\tutorial\examples\gs). I then deploy the converter app to the c:\jwsdp\webapps\gs folder.
    (12) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1:8080/gs
    The converter app works perfectly.
    (13) To eliminate the need to enter the port number, I create a link from the Apache default server installation page to the converter app. From MyClientPC and enter this address into IE:
    http://10.10.1.1
    I then click on the link to the converter app and it works perfectly.
    (14) Question: Is this the best way to display JSP pages without having to enter the port number?
    (15) Now it�s time to integrate JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    (16) After I complete this integration I cannot start both Tomcat and J2EE at the same time. This makes sense because they both share port 8080.
    I start Tomcat.
    (17) From MyClientPC and use Internet Explorer to test the various relevant addresses. Everything works the same as it did before except this one:
    http://10.10.1.1:8000
    The page cannot be displayed. The J2EE default home page is not displayed, which makes sense because the J2EE port is no longer 8000; it has been changed to 8080.
    (18) Now I shutdown Tomcat and start J2EE.
    From MyClientPC and use Internet Explorer to test the various relevant addresses:
    (19) http://10.10.1.1:8080
    Displays the JWSDP default home page.
    (20) http://10.10.1.1:8080/gs
    The page cannot be displayed. The converter app no longer works.
    (21) From MyWebServer and use Internet Explorer to test localhost:
    http://localhost:8080
    This displays the J2EE default home page.
    (22) Question: Why does localhost give me a different page than the IP address?
    (23) Question: What was the point of integrating JWSDP and J2EE?
    (24) I want to get the converter app working, so I create a .war file and attempt to add it to the J2EE deploytool (see the two integration documents listed above at section 15.) I create the .war file following the instructions in the JWSDP tutorial:
    http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp3.html#64606
    (25) I change to the c:\jwsdp\�\tutorial\examples\gs\build folder.
    I then type:
    jar cvf converter.war .
    A .war file is created.
    (26) I open the deploytool: File, New, Application, and I name it �converter�.
    I attempt to add the .war file: File, Add to Application, Web WAR.
    (27) When I attempt to add the converter.war file I get this error:
    �converter.war does not appear to be a valid web JAR.�
    I tried a few different attempts, all with the same result. I�m stuck.
    (28) I ask again, What was the point of integrating JWSDP and J2EE?
    (29) If this is the preferred configuration, how do I display my JSP pages like the converter app?
    Please help!!!

    The JWSDP tutorial says to be in the �build� folder of the example when issuing the jar command to create the .war file. The build folder is created when I run the �ant build� command.
    Attempt 1 from the command prompt in folder c:\jwsdp\tutorial\examples\gs\build>
    I typed this command:
    jar cvf c:\jaxmservices\converter.war .
    In this case I directed the .war file to be placed in a different folder as you suggested. Here�s the output:
    added manifest
    adding: index.jsp(in = 921) (out= 525)(deflated 42%)
    adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/Converter.class(in = 582) (out= 358)(deflated 38%)
    Didn�t work. Same error as before.
    Attempt 2 from the same folder:
    I typed this command as you suggested (I tried it with and without the final dot):
    jar tvf converter.war
    Here is the output:
    java.io.FileNotFoundException: converter.war (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:185)
    at sun.tools.jar.Main.main(Main.java:904)
    I tried a few other variations on these attempts with no luck. I�m stuck.
    I�m attempting to create a .war file out of two files: index.jsp and converter.class.
    Now that I�ve integrated JWSDP and J2EE, is there some other way that I can run the converter app instead of a .war file and the deploytool? In other words, if I go back to using ant to build and deploy converter, where would I deploy it so that it will work with J2EE?
    By the way, it doesn�t have to be converter. I�d be happy if I could get any JSP page to work in J2EE after the integration.
    Forever grateful,
    Logan

  • What's the point in buying a new MacBook?

    Hi all,
    Recently I went with my iBook G4 to the Apple store to troubleshoot a small problem, but they were unable to help me as after only 7 years, the machine was rendered obsolete and they didn't feel obliged to help. My iBook recently died and I felt like a part of me was missing.
    So my question is, what is the point of buying myself a brand new MacBook Pro if in 5 or 6 years, it will be obsolete? I want a Mac that will last me wherever I go for a long time before it finally dies. I've realized that I need to put PowerPC computers out of the question, but will intel processer Macs last longer than PowerPC processors?
    For the record, I don't want to switch to Microsoft as I find them difficult and this isn't a crack at Apple.
    Any answers are very appreciated,
    Thomas.

    With Intel based Macs the hardware will not become obsolete as fast as PPC based Macs did, but the operating system and/or applications used might.
    That does not mean that it will stop working, just that you won't, in a few years' time, be able to get the latest bells and whistles.
    Officially, support from Apple ceases after seven years - but that does not stop the Macs working!
    Vintage and obsolete Apple products:
    Obsolete products are those that were discontinued more than seven years ago. Apple has discontinued all hardware service for obsolete products with no exceptions. Service providers cannot order parts for obsolete products. These include ALL G4 and G5 models.
    http://support.apple.com/kb/HT1752?viewlocale=en_US

  • What's the point of buying apps from the BBWorld?

    What's the point of purchasing apps from the BlackBerry world for playbook if I don't even know if they will work after the BB10 update?

    thestepiens wrote:
    Mama told me 'son, do NOT Gamble' - I will not with my own money. I would advice everyone else the same.
    ...but you bought a tablet. Not exactly a dead cert. 

Maybe you are looking for