BC4J Online Auction Sample

Hi all,
I'm trying to deploy BC4J Online Auction Sample to iAS installed on WinNT4.
I made jsps.jar containing the jsp files and the webbeans class files such as auctionbeans\greetings.class and auctionbeans\qpBean.class. Then I moved jsps.jar to \iAS\Apache\Apache\htdocs\auctionDemo\ folder and added corresponding line to wrapper.classpath section of jserv.properties file and restarted Apache.
Despite all this efforts I'm getting the following errors:
JSP Error:
Request URI:/ebay/bc4jauctions/buildjsps/nav.jsp
Exception:
java.lang.NoClassDefFoundError: auctionbeans/qpBean
JSP Error:
Request URI:/ebay/bc4jauctions/buildjsps/contents.jsp
Exception:
oracle.jsp.parse.JspParseException: Line # 17, Error: Unable to find class for bean: hello defined by tag with class: auctionbeans.greetings
Can somebody tell me whats the matter? I'll appreciate any help.
SY,
Olexandr Bozhyk
null

If you in fact definitely have the beans in the jar files and everything matches up.. such as package names.. then perhaps you can try changing the order of the libraries. For example make your jsps.jar appear earlier in the classpath just in case there is a duiplication of some sort..
Hope this helps,
-Chris

Similar Messages

  • Building an online auction

    I need a good tutorial for building an online auction in
    Dreamweaver using ASP can anyone help ive been looking for 2days
    and cant find the right tutorial. Cheers

    Rob
    You are not going to find a single tutorial on how to build
    an auction site
    as they can be very complicated applications. However you
    will find
    tutorials on the different elements that make it up. As has
    been mentioned
    before the key to the design lies in the database structure.
    I have designed one in Cold Fusion and you may get some more
    specific advise
    if you can be more specific in what areas you are concerned
    with.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "rob dalton" <[email protected]> wrote in
    message
    news:em70g8$gar$[email protected]..
    > Can you give us an idea of where you've already been
    online and
    > specifically
    > what you're looking for (a step by step tutorial?)?
    >
    > Future suggestions may then be more helpful.
    >
    > --
    > Regards
    >
    > John Waller
    >
    >
    >
    >
    > ive tried webthang and dmxzone auction teller a lot a
    sites that say
    > tutorial
    > give you a breakdown on how to use ebay and the theory
    behind it i need a
    > step
    > by step tutorial any help would be appreciated
    >

  • Problem in uploading Online store sample project script

    I am not able to upload "online store" sample project script. The Appex (3.0.1) I am using flashes a message that the script size is exceeding the limit.
    Anybody, please help me.
    Jayashree.
    Message was edited by:
    user589027

    Are you 'uploading' it as a script? It is an export file and needs to be imported.
    1. Unzip and extract all files
    2. Access your target Workspace
    3. Select the Application Builder
    4. Click [Import >]
    5. Browse and locate the installer file, online_store_installer_0.9.sql
    6. When prompted, select to install supporting objects
    -- Sharon

  • Auctions sample compiling problem

    Hello,
    I'm unable to compile samples\BC4J\bc4jauctions.
    I'm getting Error: (0) cannot access directory oracle\jbo\common\appmgr; verify that directory is reachable from classpath and/or sourcepath.
    How to fix this problem
    Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by sarantos:
    I had the same problem!What you have to do is to remove this statement from the import of every jsp (in the very first tag).<HR></BLOCKQUOTE>
    I tried to do what you propose, it been compiled, but works not properly
    null

  • BC4J Audit Users Sample - How to use in a Class Diagram

    I downloaded/reviewed the BC4J sample for auditing users, and am trying to incorporate it into a Class Diagram,
    so I can explicitly show that my 'Entity' extends EntityAudit. When I create an 'EntityAuditImpl' Entity Object in the Class
    Modeller, and then try to indicate that my 'Entity' extends EntityAuditImpl, I get a null pointer exception when applying the change.
    Help! What is the proper way to express the relationship is a Class Diagram?

    Randy,
    It sounds as though you're trying to model the type of relationship where one entity object extends another one - which
    in this case isn't the right relationship. In this case only the Java classes are being extended. So if your new EO is
    called MyEO:
    EntityAuditImpl extends EntityImpl
    MyEOImpl extends EntityAuditImpl
    One way to model this relationship:
    1. Add a new entity object (MyEO) to your UML diagram
    2. On the diagram, double-click MyEO to edit your entity object
    3. In the entity object editor, select the Java page then click Extends...
    4. In the Base Classes dialog, click Browse... to the right of the Row field, and navigate to EntityAuditImpl
    5. Click OK, OK, OK to dismiss all of the dialogs.
    If you take a look at MyEOImpl.java you'll see that the class extends EntityAuditImpl.
    6. On the diagram, right-click MyEO and select Show Implementation Files. This adds MyEOImpl to the diagram.
    7. Now, right-click MyEOImpl and select Show Related Elements. This adds EntityAuditImpl to the diagram, and shows
    it as being the superclass of MyEOImpl.
    Hope this helps
    Blaise

  • When I try to log in to an online auction website, Firefox simply keeps reloading the "enter login information" page. I can log in just fine on IE.

    I buy and sell sport clay sport shooting accessories on "GunBroker-dot-com". To get in, you have to enter a user name and a password. This worked fine on IE, and used to work on Firefox, but about four days ago, when I would try to log in to the site on Firefox, it would simply reload the page asking me for my user name and password. I tried using the pre-stored information, and I tried entering it directly; neither worked, it just keeps reloading the sign-in page. I continue to be able to access the site without problems on IE.

    Try a different browser. Try OpenDNS servers.

  • Deployments of BC4J using Jdeveloper3.2 on Oracle9i AS

    I would like to know the deployment proceedures of deploying a BC4J to Oracle 9iAS. At present i am trying deploying BC4J from Jdeveloper directly to an oracle8i.
    In future 8i is going to be used as a database with 9i as an application server.
    Would appreciate the help put forth,
    David.

    David,
    Here is a document that describes the steps in detail, following the online orders example in JDev 3.2.
    Hope this helps,
    Lynn
    Java Tools Team
    IAS 1.0.1 Installation On NT or 2000
    ==============================
    You do not have to do an enterprise installation of IAS to make a jsp
    application works. IAS enterprise editions includes Forms, Reports, Discoverer,
    Oracle HTtp Server.
    For running a jsp application created by oracle Jdeveloper you can just install
    Oracle Http Server which is going to take about 250 MB space in your hard drive.
    This is the first option Of IAS installation.
    Accept all default, when asked for creating Directory Service
    (Oracle Internet Directory), ignore this step. You can however
    create a local net8 service to test with sql plus. IAS comes in two cds,
    you will have to restart your machine when the first cd finishes,
    then you will be asked to insert the second cd. after successfully
    finishing the installtion, Apache http server will start automatically.
    to test it, type the ip address of your machine in any browser http://ipAddress
    (no port is needed to be entered)
    you should see ORACLE HTTP SERVER default page.
    Note: You can install IAS to any directory you want . normally it will
    be in Oracle\IAS.
    Sample JSP Application
    ======================
    For this demo, we will use Online Auction Sample.
    This sample comes with jdeveloper 3.1 or 3.1.1.2 installation under
    samples\bc4j directory.
    Open jdeveloper and go to FILE\OPEN and navigate to the samples directory
    of jdeveloper to select the bc4jauctions.jws
    When you open this worspace, you will see 4 projects related to each other.
    (businesslogic.jpr, hotbids.jpr, jsps.jpr,setup.jpr)
    Before talking about IAS here, you need to open setup.jpr and go to
    BC4JAuctions.html to learn about how to run this sample in jdeveloper.
    Before compiling, you need to go to jsps.jpr and open the jsp source files
    and remove this statement from the IMPORT section:
    oracle.jbo.common.appmgr.*,
    if you left it, it will work in jdeveloper, but when you run it in the web
    server, it will generate some errors that it will not be able to resolve
    the appmgr.* classes.
    this import is not needed.
    Deploying to Sample to IAS 1.0.1
    ============================
    After compiling and running successfully the jsp application in jdeveloper
    follow the following steps:
    after IAS installation, your IAS_home might look like this:
    C:\Oracle\iAS
    1. go to C:\Oracle\iAS\Apache\Apache\htdocs and create a folder.
    Name that folder auctionDemo.
    2. in Jdeveloper, select jsps.jpr and go to Project menu \ Deploy \
    new Deployment Profile.
    in the deployment wizard, click next and select Web Application to Web server
    from the drop down list.
    in step 2 of 6, browse to C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo,
    (still in step 2 of 6) From file to deploy, check buildjsps.
    This will deploy all the jsp and html file plus the webbeans classes,
    click next, accept the defaults.
    in step 5 of 6 , click next without moving the files
    (this is needed only for applets),
    in step 6 of 6 move all project libraries to deployed libraries,
    click next then FINISH.
    click YES to deploy.
    After this C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo directory
    will have all the following files in it:
    including a folder that will be generated by the wizard.
    the name of the folder is bc4jauctions and this will contain
    another folder called buildjsps in which all the jsp files will be included.
    jsps.jar: this contains the jsp files and the webbeans class files
    Jdeveloper libraries: use winzip utility to jar these files into one
    jar file and call it jdevLib.jar.
    the files that need to be jarred are :
    aurora_client.jar
    classes12.zip
    connectionmanager.zip
    javax_ejb.zip
    jbohtml.zip
    jbojdbcpatch.zip
    jbomt.zip
    jboo8i.zip
    jbooorasql.zip
    jboremote.zip
    jboremoteejb.zip
    jdev-rt.zip
    jndi.jar
    ojc.jar
    ojsp.jar
    runtime.zip
    servlet.jar
    vbjorb.jar
    vbjapp.jar
    xmlparser2.jar
    3. copy connections.properties file to auctionDemo. make sure you open
    this file in notepad and see if the auction connection is there.
    4.copy package1_Package1Module.properties file from jdeveloper_home\samples
    \bc4j\bc4jauctions to
    C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo
    5.in jdeveloper select businesslogic.jpr and go to project menu\deploy\
    new deployment profile.
    choose to deploy as a simple archive, click next. when asked about the archive
    path , browse to C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo,
    the name of the jar file will be businesslogic.jar
    click next, finish then accept to deploy
    6. For the images that the jsp application is using , you need to point
    to webapp folder that contains them. therefore create a folder in
    C:\Oracle\iAS\Apache\Apache\htdocs and call it bc4jauctions.
    copy webapp folder from jdeveloper_home\samples\bc4j\bc4jauctions\webapp to
    C:\Oracle\iAS\Apache\Apache\htdocs\bc4jauctions
    Note: right now, your folder C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo
    should contain the following files:
    *)jsps.jar
    *)jdevLib.jar
    *)businesslogic.jar
    *)connections.properties
    *)package1_Package1Module.properties
    *)and a folder named bc4jauctions (wich has another folder called buildjsps)
    7. you need to set the classpath to point to the above jar files.
    to do this you need to modify the jserv.properties file of the http server.
    Note: you might find duplicate jser.properties file, make sure to go to
    the properties of the file by right clicking on jserv file (located in
    C:\Oracle\iAS\Apache\Jserv\Conf)
    and make sure that it says in TYPE of FILE: Properies file. that is the one
    you need to edit.
    open jserv.properties file and add these lines in wrapper.classpath section
    wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo
    wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\jdevLib.jar
    wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\connections.properties
    wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\package1_Package1Module.properties
    wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\businesslogic.jar
    wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\jsps.jar
    remember that the main.jsp is inside C:\Oracle\iAS\Apache\Apache\htdocs\
    auctionDemo\bc4jauctions\buildjsps
    therefore to run this sample in IAS, make sure first that the Oracle Http
    Server is running.If it is not running, go to the START menu
    \PROGRAMS\Oracle-iAs Home\Oracle Http Server click on
    start Http server powered by Apache
    8. To run the auction sample in the browser, open netscape or Internet explorer
    and type the following URL: http://yourIpAddress/auctionDemo/bc4jauctions/buildjsps/main.jsp
    Now you can Play with it.
    Cool, isn't it?
    null

  • What happened to the online sample CLAD Exam???

    Now only am planning to take the CLAD Exam but before that my seniors advised me to take the online CLAD sample exam. I searched a lot nut am not able to get that... :smilwysad: What happened???... Any issue regarding that....?.
    Is there anyother possibility to take sample online CLAD exam???
    The best solution is the one you find it by yourself

    tbob wrote:
    The link that I provided is a link to the online sample exam.  Have you tried it?
    PS:  click on the words in blue, "this link"
    Common Bob i checked it... It gives me only the pdf material and i have written both the sample exams... But i was searching for the Online sample exam... Ok is the pdf material is getting updated... ? 
    The best solution is the one you find it by yourself

  • JSP, BC4J: EditCurrentRecord DataWebBean

    Hi,
    I am using the EditCurrentRecord DataWebBean in a JSP program (using BC4J) to create a combo box. The combo box is populated by from a look up table in the
    database.
    The value selected by the user is to be used in the where clause of a second query whose results will then be displayed. The value that is selected will also be displayed in the
    same page.
    How can I carry out the above?
    I tried to store the value of the item selected in a variable using:
    <%= variable_name = request.getAttribute(attributeName)>
    However, I got a null value.
    Thanks.

    Since you are using JDev 3.1 technology, here is how you code a poplist combobox using the EditCurrentRecord Web Bean.
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(application, session , request, response, out, "package1_Package1Module.srchItemsView");
    RowEditor.useComboBox("CatId", "select id, name from categories", "NAME", "ID" );
    RowEditor.render();
    %>
    </jsp:useBean>
    This source code is from the JSP page: ItemsView_insert.jsp from the JDev 3.1 BC4J Auctions sample application.
    To get the value from a specific attribute
    you can use:
    <%= row.getAttribute("AttributeName") %>
    Or in scriptlet form:
    <% String AttributeValue = row.getAttribute("AttributeName"); %>
    (Taken from BidsView_Insert.jsp of the Auctions app. Also make sure you use quotes around the attribute name.. It is also case sensitive..)
    With the JDeveloper 3.2 making poplists/HTML selects is a piece of cake with
    the new Data Tags technology.
    Here is an example pulled from the new 3.2 Online Orders JSP sample app. (search.jsp)
    It uses the DataTags RowsetIterate and ShowValue to populate data into an HTML select.
    <select name="advcatsel">
    <option value="">All Categories</option>
    <jbo:RowsetIterate datasource="cat" >
    <option value="<jbo:ShowValue datasource="cat" dataitem="Id" />">
    <jbo:ShowValue datasource="cat" dataitem="Name" /></option>
    </jbo:RowsetIterate>
    </select>
    Hope this helps..
    -Chris

  • BC4J application causes DB locks with iAS 1.0.2.2

    Hi,
    We've deployed a BC4J JSP application to iAS. After a few (not
    more then 5!!) requests, the application seems to hang. At
    first, we thought it was iAS that didn't respond, but after a
    while we noticed DB sessions with a lockwait.
    We configured the BC4J samples and did a few tests. The result
    was the same: we had a lock after a few requests.
    Here are the details about the lock:
    select sid, lockwait,status, sql_hash_value, prev_hash_value
    from v$session
    where username ='BC4J'
    and sid in (29,30)
    SID LOCKWAIT STATUS SQL_HASH_VALUE PREV_HASH_VALUE
    29 INACTIVE 2784278226 2784278226
    30 38117E20 ACTIVE 1756791003 1334541938
    select * from dba_blockers
    HOLDING_SESSION
    29
    select sql_text from v$sqltext
    where hash_value = '2784278226' -- Hash value and Previous hash
    value blocker
    order by piece
    SQL_TEXT
    SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCR
    IPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.
    ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FRO
    M INVENTORY_ITEM InventoryItem WHERE (category_id=8)
    select * from dba_waiters
    WAITING_SESSION HOLDING_SESSION LOCK_TYPE
    MODE_HELD
    MODE_REQUESTED
    LOCK_ID1
    LOCK_ID2
    30 29 Transaction
    Exclusive
    Share
    327705
    63779
    select sql_text from v$sqltext
    where hash_value = '1756791003' -- Hash value waiter
    order by piece
    SQL_TEXT
    INSERT INTO LINE_ITEM(STATUS,QUANTITY,BACKORDER,ITEM_ID,ORD_ID,
    DISCOUNT) VALUES (:1,:2,:3,:4,:5,:6)
    select sql_text from v$sqltext
    where hash_value = '1334541938' -- Previous hash value waiter
    order by piece
    SELECT LINE_ITEM_SEQ.NEXTVAL FROM DUAL
    So my question is: what is causing the lock? I'm doing an insert
    and a select?
    Regards,
    Philip

    Can someone respond please!
    I tried to run the Online Orders sample application on iAS 1.0.2.1 and 1.0.2.2. On both iAS versions, the sample application created a DB session for each request to the page addtocart.jsp. After 2 (sometimes 3) requests, one DB session has a lockwait and the application stops responding.
    This problem is easy to reproduce. Just create the BC4J schema, go to http://localhost:7778/onlineorders_html/main.jsp and try to add a few items in your shopping cart....
    Thanks!

  • How to use an Oracle sequence with BC4J ?

    I'm using Business Components for Java (BC4J) with JDeveloper 3.0.
    In my database I need to insert a unique ID for each record inserted (a user ID).
    I know Oracle can generate automatically this munbers, using a sequence.
    How can I insert it automatically in the BC4J view?
    The user should be able to edit this number, since it's for identification inside the system.
    Thanks!
    null

    This is what I got from another mailing list.
    It worked for me, try it!
    Here's a code example that works for the customer table in the online order sample application that ships with jdeveloper 3. You need to override the entity's create() method (when you generate the entity you need to
    generate a create() method - check "create method" in the Java tab of the entity wizard).
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    SequenceImpl s = new SequenceImpl("customer_seq", getDBTransaction());
    Integer next = (Integer)s.getData();
    setId(new Number(next.intValue()));
    }

  • Bc4j: Application Error

    Thanks for your great effort in bc4j and the samples in JDeveloper 3.1.1.2
    When I run the ?Business Components for Java Auctions Sample Web Application? sample and try to bid with low value I got the message:
    Application Error
    JBO Error:JBO-27011: Attribute set with value 5.00 for BidPrice in Bids failed
    You must submit a bid which is higher than the current bid price!
    I clicked the button to go back and bid with hi value but this time I got more INTERESTING message:
    Application Error
    JBO Error:JBO-27102: Attempt to access dead view row
    Can any one tell me the cause? and how to fix it?
    Is there any resource with JBO-xxxxx error codes like Oracle Errors?
    null

    This was a bug in business components JSPs (bug number 1259308); it's been fixed for JDeveloper 3.2.
    Also new in 3.2, JBO error messages are documented.
    Blaise

  • Need design solution : Closed bid Auction application

    I am working on an online auction[closed-bid] web application.
    I have to develop two modules, an administration module and actual auction module.
    The Administration module should be able to manage the auction items.
    The auction module runs the auction and takes the bid from the bidders for the auction items.
    Administration domain:
         AuctionItem --> Category --> Specification Group --> Specifications
    95'Honda --> Car --> General --> Make: Nissan
         All domain objects in the administration module are manageable units.
    Auction domain:
         Bidder --> AuctionItem --> Category --> SpecificationGroup --> Specifications
    Tom --> 95' Honda --> Car --> General --> Make: Nissan
    Administration module will run on the intranet app server and Auction module will be on the internet app server.
    How would I design this application?
    Do I need to make two war files for each module and deploy them on the respective server?
    Appreciate your feedbacks and suggestions.
    Please let me know if more clarifications needed.
    Thanks,
    Mohideen.

    I feel it is better to seperate the Admin from the application, ie two seperate war file on two seperate app server, this makes your application little more secure. provided your client is ready to invest in another server for the admin

  • Auction tracker

    I'm stuck on a homework assignment. I am not asking anyone to write this for me, but I am stuck. I have no idea even how to start this program. Any help will be greatly appreciated.
         Use the LinkedStack class to support an application that tracks the status of an online auction. Bidding begins at one dollar and proceeds in increments of at least one. If a bid arrives that is not more than the current bid, it is discarded. If a bid arrives that is more than the current bid, but less than the maximum bid by the current high bidder, then the current bid for the current high bidder is increased to match it and the new bid is discarded. If a bid arrives that is more than the maximum bid for the current high bidder, then the new bidder becomes the current high bidder, at a bid of one more than the previous high bidder’s maximum. When the auction is over, a history of the actual bids (the ones not discarded), from high bid to low bid, should be displayed.
    The bid history for this action would be:
         Joey     11
         Jill      8
         John     5
         John     1

    mister1337 wrote:
    I'm stuck on a homework assignment. I am not asking anyone to write this for me...Basically, yes you are with what you have posted so far.
    but I am stuck. I have no idea even how to start this program. Any help will be greatly appreciated.Talk to your teacher. This is not a homework mill.

  • Documentation for Online Store or any other Apex application?

    Hi!
    I'm trying to understand Apex "Online Store" sample Packaged Application
    dowloaded from
    http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html
    After having spent several days trying to "decode" this Application,
    with some moderate success,
    I decided to ask if there is some documentation/explanation of this Application,
    or alternatively if you could point me
    to some other well documented and explained Apex Application,
    preferably with "online store" features.
    I'm a newcomer to Apex, PL/SQL, and the rest of Oracle culture.
    I've studied manuals and tutorials such as
    - Apex 2 Day + Application Express Developer’s Guide
    - Apex Advanced Tutorials
    - Apex Application Builder User’s Guide
    - Database 2 Day Developer's Guide
    Thank you very much,
    Marios

    Yes, I did (turning off and then on again is a way of life for any windows user!). Actually, through a process of trial and error I have fixed the problem although I'm not very comfortable with the fix. For some reason, the OS X firewall is to blame. By relaxing the firewall settings to their most lenient, the iTunes store is now fully accessible via iTunes, and so is the whole of the apple website. Another added side effect has been that general web browsing is now lightning fast.
    I'm therefore left with the (temporary) conclusion that my iMac's internal firewall is only capable of blocking access to the web resources of the people who created it, and slowing my web browser to a crawl.

Maybe you are looking for