BC4J Toy Store Demo

I've followed all the instructions to get the demo up and running, but I can't seem to compile any of the source in JDeveloper. I get the following errors for each .jsp
Error(1): java.util.zip.ZipException: invalid entry size (expected 2376 but got 2334 bytes)
Error(1): Unable to load taghandler class: /WEB-INF/struts-bean.tld
any ideas?

Brad,
We've not seen this problem before. Did you download the toystore demo from OTN ?
If you do a:
jar tvf bc4jtoystore.zip
does the ZIP file give any errors?

Similar Messages

  • BC4J Toy Store Demo  --LoginForm.java

    Excerpted from LoginForm.java
    public class LoginForm extends ActionForm {
    private String _username;
    private String _password;
    public LoginForm() { }
    public String getUsername() { return _username; }
    Now, I changed getUsername function to
    public String getUsername() { return null; }
    in order to stop and popup error (for testing purpose).
    But it never stop and display error but proceed to success.
    What is going on?
    Thanks.
    Scott

    I opened the BC4J Toy Store source, set a breakpoint (*)on the unchanged source line in LoginForm.java of:
    (*) public String getUsername() { return _username; }Then I right-moused on the "index.jsp" page in ToyStoreController project, and picked "Debug".
    Next, I clicked on the toolbar "Signin" icon, and during the rendering of the login form HTML page, I stop at my breakpoint once.
    When I submit the form after entering a username and password, I stop again at the breakpoint.
    Did you change anything about the struts-config.xml file in the example that you're trying?

  • ADF Toy Store demo - problem

    I have just downloaded JDeveloper for the first time and installed the ADF Toy Store demo, but when I try to run it I get:
    C:\adf\adftoystore\FwkExtensions\src\toystore\fwk\controller\ToyStoreInitModelListener.java
    Error(4,8): InitModelListener not found
    Error(5,8): UIXRequestEvent not found
    C:\adf\adftoystore\FwkExtensions\src\toystore\fwk\controller\ToyStoreDataForwardAction.java
    Error(29,8): MessageData not found
    Have I missed a step?

    The 10.1.3 EA1 release doesn't include UIX, which is definitely part of your problem, so you are better off trying the sample in 10.1.2. You don't need to uninstall 10.1.3 though; as long as you install them in different directories, the different releases can happilly coexist. I have at least five different versions currently installed on my laptop.
    Blaise

  • TOY STORE DEMO (How to default the user name)

    When I logged on to my network I used my user name: scott.
    Now when I opened the signin.jsp page, I want the user name control box default to my network user name, i.e., scott. How can I do it? (The current demo default the user name to blank).
    Thanks.

    If you Google for os user name java site:java.sun.com you'll find the page that lists all System properties that provide info you can retrieve from a Java program.
    This info will allow you to write the appropriate line in your overridden entity object create() method where programmatic defaults are performed.
    However, this scheme won't work well for a web-based application since the code is running on the web server.

  • ADF Toy Store Demo App

    Hi experts,
    I am new in developing JDeveloper, so I search sample application and found toystore webstore application created by Steve Muench, the documentation explain to run it on Oracle JDeveloper 10g production, version 10.1.2. but I do not have it, so I try with the one I have (Oracle JDeveloper 10 production 10.1.3.0.4). After I download JUnit using Check update feature, I try to run it as said in the readme. And I get the following errors:
    Project: C:\adftoystore\FwkExtensions\FwkExtensions.jpr
    C:\adftoystore\FwkExtensions\src\toystore\fwk\controller\ToyStoreDataForwardAction.java
    Error(29,8): MessageData not found
    C:\adftoystore\FwkExtensions\src\toystore\fwk\controller\ToyStoreInitModelListener.java
    Error(4,8): InitModelListener not found
    Error(5,8): UIXRequestEvent not found
    Do someone could tell me what should I add to the lib or point me a solution. (Three errors above pointing to import oracle.cabo.ui.data.MessageData; import oracle.cabo.adf.rt.InitModelListener; import oracle.cabo.servlet.event.UIXRequestEvent;)
    Thanks

    Hi user556888
    The Toystore demo is a little outdated now. Instead why not try the SRDemo? There is a whole tutorial manual that relates to the SRDemo so it's a much better choice than Toystore.
    SRDemo is downloaded within JDeveloper by selecting the Help menu, Check for Updates option, selecting the Official Oracle Extensions link, then next, finally selecting the ADF SRDemo Application (ADF BC Version). Once downloaded it does require that database schema objects are created, so make sure you have a database to work with.
    In turn the tutorial known as the JDeveloper guide for Forms/4GL Programmers is available here:
    http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/10131/index.htm
    Happing learning.
    CM.

  • ADF Toy Store Demo

    In http://otn.oracle.com/products/jdev/tips/muench/adftoystore_10_1_2.zip there are two SQL scripts, CreateToyStoreUsers.sql and ToyStore.sql. Running these in SQLPlus result in
    -two users are created, TOYSTORE and TOYSTORE_STATEMGMT
    -both users are 'empty', i.e. no tables, nothing
    -all tables et cetera are found under the SYSTEM user
    What's wrong (with the scripts)?
    The log files indicate success.
    I'm running
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    What's wrong (with the scripts)? Nothing, they are OK. You didn't connect as a toystore before runing ToyStore.sql script.
    Run the SQL script ./adftoystore/DatabaseSetup/ToyStore.sql like this:
    sqlplus toystore/toystore @ToyStore.sql

  • ADF Toy Store : create row : problem scenario

    hi (Steve)
    While experimenting with the ADF Toy Store Demo (*1) I tried this scenario:
    (1) Use the "Sign In" icon to navigate to "Register as a New User".
    (2) Without entering data into the input fields, click the "Register" button. You will get errors for the required fields.
    (3) (You change your mind about registering.) Click on "Games".
    (4) (You see a nice game, so you still want to register.) Use the "Sign In" icon to navigate to "Register as a New User".
    (5) Be nice and fill out all the fields and click the "Register" button.
    [!] This will result in errors for the required fields (although you filled out all of them).
    My guess is these errors are related to the first "account row" that was created.
    Could someone suggest a "best practice" approach to avoid problems like these?
    thanks
    Jan Vervecken
    *1 : http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore.html
    * : using JDeveloper 10.1.2 and ADF Toy Store 9.0.5.2.31 (Built on 21-Jun-2004)

    thanks for your reply Steve
    (1st) I've updated ToyStoreServiceImpl like you suggested:
      public boolean validSignon(String username, String password) {
        System.out.println("validSignon() : begin");
        removeAnyInvalidNewAccounts();
        return getAccounts().findAccountByUsernamePassword(username, password);
      public void prepareToCreateNewAccount() {
        System.out.println("prepareToCreateNewAccount() : begin");
        removeAnyInvalidNewAccounts();
        ViewObject vo = getAccounts();
        vo.clearCache();
         * Mark the view object as insert only by setting
         * it's max fetch size to zero. Executing the query
         * when the max fetch size is zero won't actually
         * perform any query, but will mark the VO as
         * executed so the ADF binding layer will know it
         * doesn't need to re-execute it later.
        vo.setMaxFetchSize(0);
        vo.executeQuery();
        Row newRow = vo.createRow();
        vo.insertRow(newRow);
        newRow.setNewRowState(Row.STATUS_INITIALIZED);
        vo.setCurrentRow(newRow);
        System.out.println("newRow = " + newRow);
        System.out.println("prepareToCreateNewAccount() : end");
       * Purge any new but invalid AccountImpl (and associated SignInImpl) instances
       * from the Entity Cache. These could get into the system if the user visits
       * the "Register a New User" page, enters invalid data and submits, but
       * instead of fixing the invalid data, click on another link to sign-in
       * as another valid account instead.
      private void removeAnyInvalidNewAccounts() {
        System.out.println("removeAnyInvalidNewAccounts() : begin");
        EntityDefImpl def = AccountImpl.getDefinitionObject();
        com.sun.java.util.collections.Iterator iter = def.getAllEntityInstancesIterator(getDBTransaction());
        while (iter.hasNext()) {
          AccountImpl acct = (AccountImpl) iter.next();
          System.out.println("considering acct = " + acct);
          if (acct.isInvalid() && (acct.getEntityState() == Entity.STATUS_NEW)) {
            System.out.println("removing acct = " + acct);
            acct.remove();
            acct.getSignon().remove();
        System.out.println("removeAnyInvalidNewAccounts() : end");
      //...(2nd) I've followed the original problem scenario I described at the beginning of this thread:
    (1) Use the "Sign In" icon to navigate to "Register as a New User".
    (2) Without entering data into the input fields, click the "Register" button. You will get errors for the required fields.
    (3) (You change your mind about registering.) Click on "Games".
    (4) (You see a nice game, so you still want to register.) Use the "Sign In" icon to navigate to "Register as a New User".
    (5) Be nice and fill out all the fields and click the "Register" button.
    [!] This will result in errors for the required fields (although you filled out all of them).
    (3rd) That results in this output:
    prepareToCreateNewAccount() : begin
    removeAnyInvalidNewAccounts() : begin
    removeAnyInvalidNewAccounts() : end
    newRow = toystore.model.dataaccess.AccountsRowImpl@1
    prepareToCreateNewAccount() : end
    prepareToCreateNewAccount() : begin
    removeAnyInvalidNewAccounts() : begin
    removeAnyInvalidNewAccounts() : end
    newRow = toystore.model.dataaccess.AccountsRowImpl@18b
    prepareToCreateNewAccount() : end
    questions
    (1) I never seem to enter the while loop of your removeAnyInvalidNewAccounts() method, how come?
    (2) Although my scenario never signs in with another valid account, do you consider my scenario to be similar to the one you describe in your comment for the removeAnyInvalidNewAccounts() method?
    (3) In general, if creating (and inserting) new rows should be accompanied with methods like removeAnyInvalidNewEntityXs(), what would be the "rule of thumb" to determine where to call these methods? It is my impression that such methods should be inserted in different places to account for all the scenarios (paths in the application) a user can follow (and you better forget none).
    thanks
    Jan

  • ADF Toy Store - adf:inputrender - EditRenderer

    hi
    The ADF Toy Store Demo (*1) uses the adf:inputrender tag in the formControl.jsp page.
    While trying to understand the inner workings of this adf:inputrender tag, I came across the JDeveloper Online Help topic "About Rendering Data with ADF Renderers" (*2).
    (1) I couldn't find anything on the workaround for bug 3703925, as implemented in the setupDefaultFieldRenderers() method of the RegisterAction class in the ADF Toy Store Demo. But maybe this workaround is intended not to be documented.
    (And by the way, there seems to be no mention of bug 3703925 being resolved in the fixlist for JDev 10.1.2)
    (2) The help topic (*2) ends with a paragraph that says "The following is an example ...", but there doesn't seem to be an example.
    (3) Where can I find some documentation on the default behavior as to mapping between "attribute types" and "EditRenderer"?
    thanks
    Jan Vervecken
    *1 : http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore.html
    *2 : http://helponline.oracle.com/jdeveloper/help/topics/jdeveloper/developing_mvc_applications/adf_aclientrenderingdata.html
    *3 : http://www.oracle.com/technology/products/jdev/htdocs/10.1.2.0.0/1012fixlist.htm

    Go to project properties and change the default package to myapp.view every newly added UIModel gets added to that package. If you do this before dragging datacontrols to pages you don't have to change things .
    When a UiModel gets added to the wrong package what I do is I close the file with JDeveloper (with the red cross in the applications tab). Then I close JDeveloper. I move the UIModel file on the file system. Change the FullName of that UIModel in the databindings.cpx file to the new location. Start JDeveloper and open the file with JDeveloper again (green cross under the applications tab). I know this doesn't sound good but it works. Try it in a bogus project and if it works for you do it in your production project.
    You say "(using jdeveloper)" so this might not be what you want but as far as I know this is the only way. (correct me if I'm wrong)
    Joris

  • Toy Store related question

    I was reviewing some of the code for the toy store project and wondering why in ShoppingCart fillInCartItemDetailsUsingViewObject method the following code was use to get the view object:
    ViewObject lookup = getDBTransaction().getRootApplicationModule() .findViewObject("ShoppingCartItemLookup");
    Based on the javadoc I believe one could use the following:
    ViewObject lookup = getApplicationModule() .findViewObject("ShoppingCartItemLookup");
    Why would you choose to use one approach over the other?
    I apologize if this is a stupid question, but it appears these would do the same thing.
    Thank you.

    From the white paper:
    "View Row message bundle (ViewNameRowImplMsgBundle.java) appears automatically when you define any built-in prompts, tooltips, format masks, etc., for your view object."
    In the Toy Store Demo, you can see that there were hints created on "Userid" and "Status". You can validate it by clicking on the "Accounts" view in the navigator, double clicking on one of the 2 attributes in the Structure pane, clicking on "Control Hints", and noticing that "Display Hint" has a value of "Hide".
    HTH.
    Thanks, George

  • Where to find the OC4J-ready Pet Store Demo file jps112.zip

    where to find the OC4J-ready Pet Store Demo file jps112.zip in OTN
    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg

    You have to execute the installer jar file.
    This will create a folder with all the source codes inside.
    I wasn't aware of any need for cvs.

  • Ldapmodify error in grocery store demo

    I'm getting a "Segmentation fault" error message when I execute "ldapmodify -h myhostname -p 3060 -D cn=orcladmin -w mypassword -f grocerystore.ldif". This is step1 in the "Deploying the application" section of the Grocery Store demo installation. Any suggestions on how to fix this?
    I'm running it from the terminal window of a linux red hat 2.1. machine where my 10g AS infra is installed.
    Any ideas would be greatly appreciated.

    how did you transfer the files to the linux machine , if you have FTP'ed it ., check if you have used ascii mode.., or check if the file contains ^M characters., i guess the file may be corrput and that is the reason for the error

  • How to change the "Store demo mode" in AppleTV?

    In AppleTv set up menu, I can't access certain features. The message "Not available in store demo mode" appears. How do I change/remove this mode?

    The question is how you got into this mode in the first place!
    Home users are not officially able to access this - whether it's a software glitch or inadvertent remote combinatiojn of presses enabling it i have no idea.
    AC

  • How to turn ON Apple Store Demo Screensaver?

    How to turn ON the apple store Demo Screensaver? Does someone know???

    There are no screensavers for the iPad. What you see on demo models I have never seen. Would you care to explain further?
    And the discussion of jail breaking is against the TOU of this forum.

  • How to Reset/Erase a Store Demo iPad 3?

    We have a demo unit in our store, but visitors loaded it full of garbage and there is no way to erase any apps and no "restore"  or "restrictions" options under settings/general. Also, pressing and holding home+lock button for 30 seconds doesn't reset the device. What should i try to free this poor baby from all the junk it had unwittingly been loaded with? Thanks!

    Restore it using iTunes on a computer if there is no way to erase the device using the settings. The instructions are in here. This is likely the only way that you can erase it now.
    http://support.apple.com/kb/ht1414

  • Java pet store demo

    hi, iam quite new to java, and i have been trying to install the demo for java pet store.
    I run windows xp, and have installed j2sdkee1.3.1 on my c drive, ie c:\j2sdkee1.3.1
    how do i set the enviroment variables?
    do i add them to the user variables or system variables??
    in the instructions it says
    JAVA_HOME must point to the root directory of your J2SE SDK installation. For example, if you installed the J2SE SDK in c:\jdk1.3.1, then that path should be the value of JAVA_HOME.
    J2EE_HOME must point to the root directory of your J2EE SDK installation. For example, if you installed the J2EE SDK in /usr/local/java/j2sdkee1.3.1 , then that path should be the value of J2EE_HOME.
    could someone explain the second part to me?
    thanks for any help

    hi, iam quite new to java, and i have been trying to
    install the demo for java pet store.
    I run windows xp, and have installed j2sdkee1.3.1 on
    my c drive, ie c:\j2sdkee1.3.1
    how do i set the enviroment variables?
    do i add them to the user variables or system
    variables??
    in the instructions it says
    JAVA_HOME must point to the root directory of your
    J2SE SDK installation. For example, if you installed
    the J2SE SDK in c:\jdk1.3.1, then that path should be
    the value of JAVA_HOME.
    J2EE_HOME must point to the root directory of your
    J2EE SDK installation. For example, if you installed
    the J2EE SDK in /usr/local/java/j2sdkee1.3.1 , then
    that path should be the value of J2EE_HOME.The paragraph above is for UNIX users. You should set your J2EE_HOME=C:\j2sdkee1.3.1
    >
    could someone explain the second part to me?
    thanks for any help

Maybe you are looking for

  • Can't Separate Libraries Anymore

    I have multiple libraries on the same computer for 4 different ipods and have had them for several months. Since the update all of the libraries now contain the exact same files and when I change one, they all change. I've tried un- and reinstalling

  • Designing Line Graph

    Hi, How to get class file to design a line graph with multiple series and facility to set minimum and maximum values of y-axis. and I need applet code also

  • Canon RAW files or DNG

    Is it safe to assume that the .CR2 Canon RAW format will be around for a while or should I look at converting to DNG format? If the latter, I wonder when Aperture will be able to read DNG files? Is there a way of converting all my .CR2 files that cur

  • ClassCastException fro connection pool

    hi i'm trying to use IPlanet 6.5 connection poolin for oracle driver and using it for inserting blob in db(oracle91) im getting the error as java.lang.ClassCastException: com.netscape.server.jdbc.ConnectionProxy the error is being thrown in this line

  • Missing COPA in intercompany sales

    Hi, We are unable to get COPA documents posted for our intercompany sales. Please find details in the attachment, for your kind reference. Once we simulate the billing document in Transaction KE4ST for simulated the billing document. Its giving the e