Appserver 9 bookstore example

I have verified the database tables are there by using the IJ tool.
I have made the DerbyPool connection pool
In jdbs resources it shows the jdbc/BookDB enabled true description derby data source
I go into the bookstore1 dir and buiild with no errorrs. I copy the bookstore1.war file into the autodeploy directory.
I go to console and when I try and launch (using launch button) I get a dir listing
if I redeploy with verifcation on I get the following:
Deploying application in domain failed; Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details
any help appreciated

I am replying to myself here:
after looking at the verifier errors log it appears I am getting an error about missing exception classes, I have examined the bookstore1.war and the "missing" classes are in the bookstore.jar in the lib directory.
The web.xml in bookstore1\web\web-inf
has this entry
<error-page>
<exception-type>exception.BookNotFoundException</exception-type>
<location>/errorpage.html</location>
</error-page>
here is the error from verifier log:
RESULTS FOR WEB-RELATED TESTS
     FAILED TESTS :
     Test Name : tests.web.ExceptionType
     Test Assertion : exception-type element contains a fully qualified class name of a Java exception type. Please refer to Java Servlet 2.5 Specification Section #SRV.13.3 for further information.
     Test Description : For [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ]
Error: exception-type element [ exception.BooksNotFoundException ] does not contain a fully qualified class name of a Java exception type within Web application [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ].
For [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ]
Error: exception-type element [ exception.BookNotFoundException ] does not contain a fully qualified class name of a Java exception type within Web application [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ].
     Test Name : tests.web.WebArchiveClassesLoadable
     Test Assertion : All classes in this Web Archive are loadable excluding classes used in JSPs. The test AllJSPsMustBeCompilable takes care of reporting non portable errors in JSP classes. Please refer to JavaEE 5 Specification Section #8.1.2 for further information.
     Test Description : For [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ]
Failed to find following classes:
     exception.BooksNotFoundException,
     exception.BookNotFoundException
Please either bundle the above mentioned classes in the application or use optional packaging support for them.
END OF STATIC VERIFICATION RESULTS
again any help is appreciated

Similar Messages

  • Duke's Bookstore Example - Pointbase console

    Hi,
    I'm trying to set up the Duke's Bookstore Examples and I'm having a problem starting the pointbase console because I don't know the password. I can't recall every being asked for a password on installation, other than my AppServer password.
    All help apprectiated.
    Thanks.

    Try using pbpublic/pbpublic as the user/pass.
    thanks.

  • Duke's Bookstore Example (yet again)

    Folks'es,
    i'm currently ploughing my way through the j2ee tutorial 1.4. now that i come to the interesting parts (JSP et al) i'm stuck with getting the bookstore example to work.
    i've done everything to compile and packge the bookstore.jar, i've created and populated the database, and created the data source in the server, all without problems.
    but then it says under the heading "Specifying a Web Application's Resource Reference", that i should use deploytool and "1.Select the WAR (created in Chapters 11 through 22).". but i have no war file for the bookstore example! (i have some war's for the other examples and that's all.)
    what am i missing? were did i go wrong?
    any help is greatly appreciated.
    thomas

    well, i found it by just reading on (several 100s of pages).
    you actually need to do all this much later (pg 443 ff).
    thomas

  • Problem populating the Pointbase DB (WSDP bookstore example)

    Hi,
    I'm trying to access a PointBase DB from a WebService, as suggested by Sun's tutorial on this topic (http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868).
    I have verified that the PB installation works fine on it's own (through the sample code in SampleDatabaseApplication.java), and also that the Tomcat servlet engine provided in the WSDP (WebService Developer Pack) is running OK.
    But when I try to populate the DB (as described on the link above: ant create-book-db), nothing much happens (3 rows: "Buildfile: build.xml", "init:" & "create-book-db" are shown, and then it hangs).
    I tried to get around this by manually executing the 'books.sql' statements in the PB console, and that works without problem. But when I try to deploy the bookstore example from the WSDP, ant hangs in the same way as mentioned above. The following is written to the (jwsdp_)log:
    "Couldn't create bookstore database bean: Couldn't open connection to database: DbcpDataSourceFactory: driverClassName is required"
    I checked all setting many times over (the driverClassName is specified in server.xml, so I can't pinpoint what's causing the log entry) and they all seem OK. Please help!
    Cheers
    /Daniel

    Have you copied the PB client JAR to JWSDP_HOME/common/lib and restarted Tomcat?

  • Bookstore example in Servlets chap..trouble going thro the following steps

    hi
    i successfully connected to the Pointbase database and was able to view the table created.
    Now this is with reference to Chapter 11 on Servlet technology. I went through the following steps and i am stuck in Step 9, after which i do not understand the correlation between what is said in Step 10 and what is there while using the deploy tool..
    The following are the steps which i have copied and pasted from the J2Ee tutorial Chap 11 - Section on "Example Servlets"
    Add the filters filters.HitCounterFilter and filters.OrderFilter (described in Filtering Requests and Responses).
    1)Select the Filter Mapping tab.
    2)Click Edit Filter List.
    3)Click Add Filter.
    4)Select filters.HitCounterFilter from the Filter Class column. deploytool will automatically enter HitCounterFilter in the Display Name column.
    5)Click Add.
    6)Select filters.OrderFilter from the Filter Class column. deploytool will automatically enter OrderFilter in the Display Name column.
    7)Click OK.
    8)Click Add.
    9)Select HitCounterFilter from the Filter Name column.
    10)Select Servlet from the Target Type column.
    11)Select BookStoreServlet from the Target column.
    12)Repeat for OrderFilter. The target type is Servlet and the target is ReceiptServlet.
    Step 10 is what baffles me. I cannot see a Target Type column in the dialog box.Perhaps I am not being very careful in following the steps.
    can anybody help me out with step 10 and above
    Please help me out
    thanks in advance

    i was a bit confused about the following:
    when trying to running the bookstore1 application the
    tutorial says one has got to go back and "Perform all
    the operations described in Accessing Databases from
    Web Applications"This instruction is telling you to do the operation as described in Chapter 3. So, you run create-db_common in the bookstore directory because the database tables are shared by all the bookstore applications.
    >
    this takes me to Chapter 3, where we have the section
    "Accessing Databases from Web Applications".
    Now the steps there are as follows:
    1) Populating the example database:
    In a terminal window, go to
    <INSTALL>/j2eetutorial14/examples/web/bookstore/.
    Run asant create-db_common. This task runs a PointBase
    commander tool command to read the file books.sql and
    execute the SQL commands contained in the file. The
    table named books is created for the user pbpublic in
    the sun-appserv-samples PointBase database.
    and so on..
    now with regard to Bookstore1 do i have to do the
    following ( i mean is that is implied by the
    tutorial)?
    In a terminal window, go to
    <INSTALL>/j2eetutorial14/examples/web/bookstore1/
    ( instead of bookstore i substituted bookstore1)
    is that right or am i wrong?
    No, you only run create-db_common in the bookstore directory. The X-ref is there in case you didn't create the tables while working through Chapter 3.

  • Cannot deploy the Bookstore Example for Java EE tutorials

    I also have the same issue as another user on a different thread, and I did check my build.properties and it appears accurate. However I am still getting the exception when I try to run the 'ant create-tables' or 'ant deploy' :
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial\examples\web\bookstore1\${db.delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48:java.io.FileNotFoundException: C:\tutorial\javaeetutorial\examples\web\bookstore1\${db.delete.src} (The system cannot find the file specified)
    Total time: 7 seconds
    The Build.Properties file in my [install]/examples/bp-projects/ directory is a follows
    javaee.home=C:/Sun/AppServer
    javaee.tutorial.home = c:/tutorial/javaeetutorial5
    javaee.server.name=localhost
    javaee.server.port=10000
    javaee.adminserver.port=4848
    javaee.server.username=admin
    javaee.server.passwordfile=c:/tutorial/javaeetutorial5/password.txt
    appserver.instance=server
    I was able to compile the first Hello tutorial with Ant, so I am assuming that means the above build.properties file should be correct (or else that deployment would have failed too, right?). I also created the JDBC connection in the System Admin Console before trying this, as per the tutorial text.
    Since I'm new to the environment, I'm not sure where else to look for the problem.

    Ok, I did an 'ant deploy' at the books directory. It seems to be going well and then just hung for minutes at the following line...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database started in Network Server mode on host localhost and port 1
    527.
    [exec] --------- Derby Network Server Information --------
    [exec] Version: CSS10011/10.1.1.0 Build: 208786 DRDA Product Id: CSS10011
    [exec] -- listing properties --
    [exec] derby.drda.maxThreads=0
    [exec] derby.drda.keepAlive=true
    [exec] derby.drda.minThreads=0
    [exec] derby.drda.portNumber=1527
    [exec] derby.drda.logConnections=false
    [exec] derby.drda.timeSlice=0
    [exec] derby.drda.startNetworkServer=false
    [exec] derby.drda.host=localhost
    [exec] derby.drda.traceAll=false
    [exec] ------------------ Java Information ------------------
    [exec] Java Version: 1.5.0_06
    [exec] Java Vendor: Sun Microsystems Inc.
    [exec] Java home: C:\Sun\AppServer\jdk\jre
    [exec] Java classpath: C:\Sun\AppServer\lib\appserv-rt.jar;C:\Sun\AppServe
    r\lib\admin-cli.jar;C:\Sun\AppServer\javadb\lib\derby.jar;C:\Sun\AppServer\javad
    b\lib\derbytools.jar;C:\Sun\AppServer\javadb\lib\derbynet.jar;C:\Sun\AppServer\j
    avadb\lib\derbyclient.jar
    [exec] OS name: Windows XP
    [exec] OS architecture: x86
    [exec] OS version: 5.1
    [exec] Java user name: Russell Longo
    [exec] Java user home: C:\Documents and Settings\Russell Longo
    [exec] Java user dir: C:\Sun\AppServer
    [exec] java.specification.name: Java Platform API Specification
    [exec] java.specification.version: 1.5
    [exec] --------- Derby Information --------
    [exec] JRE - JDBC: J2SE 5.0 - JDBC 3.0
    [exec] [C:\Sun\AppServer\javadb\lib\derby.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbytools.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbynet.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbyclient.jar] 10.1.1.0 - (208786)
    [exec] ------------------------------------------------------
    [exec] ----------------- Locale Information -----------------
    [exec] ------------------------------------------------------
    [exec] Starting database in the background. Log redirected to C:/Sun/AppSe
    rver/javadb\derby.log.
    [exec] Command start-database executed successfully.
    I hit a Ctrl-C and it asked if I wanted to end the batch. I replied 'n' but it dropped out to the command line.
    So I tried the ant deploy again and got the following...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    I finally went to the bookstore directory to see if I could deploy that application. Ant deploy gave the following:
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    Last, I went to bookstore1 just to try the ant deploy again, see if things were cleared up, and maybe the errors above wouldn't affect it. When I tried deploying I got the following...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    I'm clearly not 'getting' a handle on this environment.

  • Problems with Duke's Bookstore Examples (Chapter 3 of the J2EE 1.4 Tut)

    Hi
    Please help me, I am going through the J2EE tutorial (I have the Sun App Server 8 installed on a Win XP Service Pack 2 machine) but am running into problems.
    I'm having a problem with the
    1. asant build and
    2. asant create-db_common
    commands.
    1. asant build
    ===========
    When trying to use the command asant build I get the following problems:
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant build
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    prepare:
    build:
    [javac] Compiling 11 source files to D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\booksto
    re\build
    BUILD FAILED
    file:D:/P.Files%20Ext/MJ%20Ext/J2EE%201.4%20Tutorial%20EXT/j2eetutorial14/examples/web/bookstore/build.xml:54: D:\lib not found.
    Total time: 8 seconds
    I then created an empty folder = D:\lib
    It then seemed to work?? but still could not find targets.xml as below
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant build
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    prepare:
    build:
    [javac] Compiling 11 source files to D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore\build
    BUILD SUCCESSFUL
    Total time: 18 seconds
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>
    2. asant create-db_common
    ======================
    When trying to use the command asant create-db_common I get the following problems (I had to create an empty folder - D:\pointbase\lib to get this far)
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant create-db_common
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    create-db_common:
    [java] java.lang.NoClassDefFoundError: com/pointbase/tools/toolsCommander
    [java] Exception in thread "main"
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Total time: 8 seconds
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>
    Now I know that creating empty folders is not the solution so if anyone has any ideas as to what is wrong PLEASE tell me. I think there is something I need to add to a configuration file or something. I have re-installed the App Server but I still get the same problems. Thanks for your time!!

    Hi
    I have the same problem with the hello2 example, in the tutorial... You didnt??
    anyway maybe you are not setting the j2ee.home.
    somebody named " Jennifer " give me this advise ( i told you this to recognice that i was helped before)
    " Hello,
    You are probably not setting j2ee.home correctly. Please go to the following page and read section Building The Examples. Pay special attention to the Note in that section.
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/About.html
    thanks,
    Jennifer "
    good luck, see ya

  • O No: not that bookstore example again!

    I've been reading through the forum to find an answer for my problem but using the suggested solutions doesn't seem to work. I have deployed, redeployed, created, destroyed and re-created, all to no avail. I consistently get a message telling me that "Servlet BookStoreServlet is not available". My locale and language shouldn't be a problem. I tried the database tricks suggested by one earlier user but it didn't work for me.
    The latest log reads:
    [#|2004-04-12T20:19:58.338+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=13;|ADM1041:Sent the event to instance:[ResourceDeployEvent -- redeploy jdbc/jdbc/BookDB]|#]
    [#|2004-04-12T20:19:58.378+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=13;|CORE5008: Resource Redeployed: [jdbc:jdbc/BookDB].|#]
    [#|2004-04-12T20:20:19.338+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=14;|StandardWrapperValve[BookStoreServlet]: Servlet BookStoreServlet is currently unavailable|#]
    But I can see it's there. And I have followed the instructions carefully more than once!
    Does anyone have another suggestion? My web.xml file has the correct url "/bookstore" .
    Thanks.

    Does anyone have another suggestion? My web.xml file
    has the correct url "/bookstore" .The correct URL to access this sample is noted in the docs listed here:
    <install_dir>/samples/webapps/bookstore/docs/index.html#14931
    Also, if you've changed anything in the source code, including deployment descriptors, have you rebuilt the application to pick up these changes? Note, you shouldn't have to change anything, you should be able to use the pre built bookstore1.war file.

  • Building the bookstore example in the JEE tutorial

    Hi:
    I am going through the SUN JEE tutorial with Netbeans 6.1 Beta
    I am trying to define the DB connectivity.
    After defining the JDBC resource as jdcb/BookDB with the Derby Pool in the glassfish app server
    I run the bookstore1 project. This is supposed to populate the tables and run the application
    I get the following error:
    Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/bookstore1,J2EEApplication=null,J2EEServer=server
    WEB0123: WebModule [bookstore1] failed to deploy and has been disabled
    java.lang.RuntimeException: java.lang.RuntimeException: Persistence unit named [book] is configured as JTA, yet only non-jta-data-source name is supplied in persistence.xml.
    this is the persistence.xml supplied with the application:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="book" transaction-type="JTA">
    <non-jta-data-source>jdbc/BookDB </non-jta-data-source>
    </persistence-unit>
    </persistence>Is there anything else that am I supposed to do?
    Thanks for your time

    Thanks for your reply:
    I am new to persistence API and JEE
    Could you please show me how to define this JTA data source?

  • Problem deploying Duke's Bookstore JavaEE5 example

    Hello everyone,
    I am having problems deploying the Duke's Bookstore example. I am trying to follow the tutorial.
    I have already updated the information concerning AS_ADMIN_PASSWORD on the file "build.properties". It took me some times... by the way i am new in J2EE tecnology and i am trying to get the example working so i can see the example running.
    Right now i am able to run ant to build the example so i get the .war file and the other files in the "build" and "dist" directory.
    I am stock in the operation concerning the database. I get to the same error weather i try "ant deploy" or "ant create-tables"... this is the message that i get:
    C:\javaeetutorial5\examples\web\bookstore1>ant deploy
    Buildfile: build.xml
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\javaeetutorial5\examples\web\bookstore1\${db.delete.src}
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:25: The following error occurred while executing this line:
    C:\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.FileNotFoundException: C:\javaeetutorial5\examples\web\boo
    kstore1\${db.delete.src} (El sistema no puede hallar el archivo especificado)
    Total time: 7 seconds
    By the way, i am spanish thats why the error message its in spanish! :)
    Its saids something about a missing file, a file that it can not be found. I dont know which one is the missing file... so i dont know what to do.
    I have looked both "build.xml" and "database-ant.xml" to see if i see something, but as i told you i am need in J2EE and this is getting very difficult.
    It seems very easy in the tutorial, but in practice you have to do other things to make it works. I dont know why this information it is not in the tutorial.
    I really hope that somebody can help me...
    Thx in advances

    Hello everyone,
    I am having problems deploying the Duke's Bookstore
    example. I am trying to follow the tutorial.
    I have already updated the information concerning
    AS_ADMIN_PASSWORD on the file "build.properties". It
    took me some times... by the way i am new in J2EE
    tecnology and i am trying to get the example working
    so i can see the example running....
    C:\javaeetutorial5\examples\web\bookstore1>ant
    deploy
    Buildfile: build.xml
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host
    localhost, port 1527.
    [exec] Command start-database executed
    successfully.
    delete-tables:
    [sql] Executing file:
    C:\javaeetutorial5\examples\web\bookstore1\${db.delete
    .src}
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:2
    5: The following error occurred while executing this
    line:
    C:\javaeetutorial5\examples\bp-project\database-ant.xm
    l:48: java.io.FileNotFoundException:
    C:\javaeetutorial5\examples\web\boo
    kstore1\${db.delete.src} (El sistema no puede hallar
    el archivo especificado)
    Total time: 7 seconds
    By the way, i am spanish thats why the error message
    its in spanish! :)
    Its saids something about a missing file, a file that
    it can not be found. I dont know which one is the
    missing file... so i dont know what to do.
    I have looked both "build.xml" and "database-ant.xml"
    to see if i see something, but as i told you i am
    need in J2EE and this is getting very difficult.The property db.delete.src is set in:
    .../javaeetutorial5/examples/bp-project/javadb.properties
    Check to make sure that this file exists. It should. You don't have to create it or edit it, as it is shipped with the correct properties for the tutorial.
    Also, have you followed the instructions on setting javaee.home in your build.properties, as described here:
    http://java.sun.com/javaee/5/docs/tutorial/doc/About.html#wp87965
    -ian

  • Java EE Tutorial - problem with the example Bookstore

    Hi,
    I've been working few days on a problem running the Bookstore example from the Java EE Tutorial. When I run the application, I'm redirected from the servlet BookStoreServlet to errorpage.html with the following message: The application is unavailable. Please try later. The tutorial troubleshooting reads: ... a servlet can’t retrieve the web context attribute representing the bookstore. This will occur if the database server hasn’t been started. But the database server is running (I'm running Derby bundled into NetBeans 6.5). The Glassfish admin console reads:
    StandardWrapperValve[BookStoreServlet]: PWC1406: Servlet.service() for servlet BookStoreServlet threw exception
    com.sun.bookstore.exception.BookNotFoundException: Couldn't find book: 203
            at com.sun.bookstore1.database.BookDBAO.getBook(BookDBAO.java:58)
            at com.sun.bookstore1.servlets.BookStoreServlet.doGet(BookStoreServlet.java:76)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at com.sun.bookstore1.filters.HitCounterFilter.doFilter(HitCounterFilter.java:71)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)This would indicate that the tables are empty, but they were created according to the tutorial, with the command ant create-tables, and I can see their content in NetBeans. Please help, I really need to run the examples.
    Best regards,
    Rene Puchinger

    I solved the problem running the command that is correctly explained in the page 97 of the tutorial:
    Ant create-tables
    My mistake was that until that day, I was believing that I could do everything inside Netbeans.
    For this you explicitly need to use ant.
    Then I got some error which I solved fixing the file
    C:\Java\JavaEETutorial5\examples\bp-project\ build.properties
    ( like set correctly the path to the server and so on)

  • The sun-appserv-admin task doesn't support

    Help! - this is driving me nuts! I am trying to build the bookstore example and get this error on asant steps that involve the admin-command-common target (such as "asant deploy-war").
    I am running Studio Creator with SunAppServer8 under it. The command looks right. If I remove the passwordfile line from the admin-command-common target, I get the same error on another attribute in the command.
    The password file exists where it should and contains valid information, including the correct password.
    I have run this same bookstore example build on another workstation and it worked, but on that box, there was an instance of SunAppserver 7 (not under Studio Creator). That build was successful so I assume this is a configuration issue, but I don't know what it is. I am attaching the error and the listprops. If anyone knows what is wrong I sure would appreciate your help
    Thanks!
    Robert Hill
    C:\j2eetutorial14\examples\web\bookstore1>asant deploy-war
    Buildfile: build.xml
    deploy-war:
    admin_command_common:
    [echo] Doing admin task deploy bookstore1.war
    BUILD FAILED
    file:C:/j2eetutorial14/examples/common/targets.xml:36: The <sun-appserv-admin> t
    ask doesn't support the "passwordfile" attribute.
    Total time: 1 second
    C:\j2eetutorial14\examples\web\bookstore1>
    C:\j2eetutorial14\examples\web\bookstore>asant listprops
    Buildfile: build.xml
    listprops:
    [echo] Path information
    [echo] j2ee.home = C:/Sun/Creator/SunAppServer8
    [echo] j2ee.tutorial.home = C:/j2eetutorial14
    [echo] j2ee.home = C:/Sun/Creator/SunAppServer8
    [echo] env.Path = .;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    ;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Fil
    es\Adaptec Shared\System;c:\Program Files\Microsoft SQL Server\90\Tools\Binn\;c:
    \j2sdk1.4.2_06\bin;C:\Sun\Creator\SunAppServer8\bin;C:\j2sdk1.4.2_06
    [echo] env.PATH = ${env.PATH}
    [echo] Classpath information
    [echo] classpath = C:\j2sdk1.4.2_06
    [echo] Admin information
    [echo] admin.password =
    [echo] admin.password.file = C:/j2eetutorial14/examples/common/admin-passwo
    rd.txt
    [echo] admin.host = localhost
    [echo] admin.user = admin
    [echo] admin.port = 14848
    [echo] https.port = 18181
    [echo] Domain information
    [echo] domain.resources = "domain.resources"
    [echo] domain.resources.port = 18080
    [echo] Database information
    [echo] db.root = C:/Sun/Creator/SunAppServer8/pointbase
    [echo] db.driver = com.pointbase.jdbc.jdbcUniversalDriver
    [echo] db.host = localhost
    [echo] db.port = 19092
    [echo] db.sid = sun-appserv-samples
    [echo] db.url = jdbc:pointbase:server://localhost:19092/sun-appserv-samples
    [echo] db.user = pbpublic
    [echo] db.pwd = pbpublic
    [echo] url.prop = DatabaseName
    [echo] ds.class = com.pointbase.jdbc.jdbcDataSource
    [echo] db.jvmargs = -ms16m -mx32m
    BUILD SUCCESSFUL
    Total time: 1 second
    C:\j2eetutorial14\examples\web\bookstore>
    clipped from targets.xml
    <target name="admin_command_common">
    <echo message="Doing admin task ${admin.command}"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    passwordfile="${admin.password.file}"
    host="${admin.host}"
    port="${admin.port}"
    asinstalldir="${j2ee.home}" />
    </target>

    Dude!
    Try this.
    change that target I was talkin about to
    <target name="admin_command_common">
         <property file="${j2ee.home}/j2eetutorial14/examples/common/admin-password.txt"/>
    <echo message="Doing admin task ${admin.command} with password"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    password="${AS_ADMIN_PASSWORD}"
    host="${admin.host}"
    port="${admin.port}"
    />
    </target>
    Reason?
    well, the blinkin 'asinstalldir' attrib is ... optional!
    The build succeeds and deploys the war.
    C:\java\Sun\Appserver\j2eetutorial14\examples\web\bookstore1>asant deploy-war
    Buildfile: build.xml
    deploy-war:
    admin_command_common:
    [echo] Doing admin task deploy bookstore1.war with password
    [sun-appserv-admin] Executing: deploy port 4848 host localhost --password ad
    min123 --user admin bookstore1.war
    [sun-appserv-admin] Command deploy executed successfully.
    BUILD SUCCESSFUL
    Total time: 7 seconds

  • Connecting BookDB with pointbase in tuto examples

    At last I successed to build bookstore example.
    I create the db with "asant create-db_common" command
    As it's mentioned in tuto i want to connect db from pointbase
    in url i write the path in the tuto.But it says no db in that url
    i'm sure that it's the same url given in the tuto.What should i do?
    Another question : while creating web applications with IIS in windows localhost refers to "inetpub\wwwroot" . In J2ee what does localhost refer to ?

    I am not sure what your overall question is, but you need to update the examples/build.properties file to have the correct values.
    localhost is refering to the machine that the appserver is running on.

  • Problems with database access in Servlet Apllication (Duke's Bookstore)

    Hi! My name is Elena Veretilo! I am so newbie in JavaEE. So I really need you help and advice!!!
    I started to learn JavaEE with "The JavaEE5 tutorial for Sun Java Application Server 9.1" (http://java.sun.com/javaee/5/docs/tutorial/doc/) and this tutorial recommended the next examples: http://java.sun.com/javaee/5/docs/tutorial/information/download.html. I try to work in NetBeans 6.0 and NetBeans 6.5.
    First problem - I couldn't add Sun Java Application Server 9.1 to NetBeans' server list - it just doesn't see the installed Sun Java Application Server 9.1.
    Second problem - I couldn't run Duke's Bookstore example (from tutorial examples) - something wrong with working (maybe creating or accessing) database. The Database Server started, GlassFish Server also started, so I don't know where the problem could be.
    There is exception:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: org.apache.derby.client.am.SqlException: Table/View 'WEB_BOOKSTORE_BOOKS' does not exist.Error Code: -1
    Call:SELECT BOOKID, FIRSTNAME, SURNAME, ONSALE, INVENTORY, CALENDAR_YEAR, TITLE, PRICE, DESCRIPTION FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
    bind => [203]
    Query:ReadObjectQuery(com.sun.bookstore.database.Book)
    If anybody had learned this tutorial and examples or just know what I need to do, please help me!!!!! If it's possible, tell me step by step, what I need to do!
    And one more question - do I really need Sun Java Application Server 9.1 to work with or GlassFish includes Sun Java Application Server 9.1?????

    [http://forums.sun.com/thread.jspa?threadID=5350426]
    Crossposting without notification is very rude. Please stick to one topic.

  • Duke's Bookstore - bugs in tutorial

    Hello Friends,
    I've installed the latest J2EE 1.4 tutorial, and tried to compile Duke's Bookstore example.
    I got many errors - references to classes that don't exist.
    For example, database.BookDetails - the class is not in database package. The only class there is BookDBAO.java... etc.
    Sure Sun should do simple testing before releasing the tutorial for public download???
    I ran standard "asant build" task... Other examples build with no errors.

    The suggestion to add bookstore.jar was a response to the compilation errors.
    If you can't create the connection to the database, it's probably because you haven't created the JDBC resource in the Application Server or you haven't mapped the jdbc/BookDB resource reference in the WAR to the JDBC resource in the Application Server.
    If you still have a problem, there may be an error in the JDBC resource reference. I have seen the error "BookDB not found" if the JDBC resource reference has a trailing space. If you look in J2EE_HOME/domains/domain1/config/domain.xml you should have a JDBC resource defined as follows:
    <jdbc-resource enabled="true" jndi-name="jdbc/BookDB" object-type="user" pool-name="PointBasePool"/>
    If there is an extra space after BookDB as shown below , the resource name won't be resolved correctly:
    <jdbc-resource enabled="true" jndi-name="jdbc/BookDB " object-type="user" pool-name="PointBasePool"/>
    You can either edit domain.xml and restart the server, or recreate the JDBC resource.

Maybe you are looking for

  • Help with text box rasterization in adobe muse

    When ever I create a text box, add some text , highlight the text and try and create it into a hyperlink, it says that the text requires rasterization and that the hyperlink will not work. How do I 'rasterize' the text box which will allow me to conv

  • Failed to back flush in IDES 4.7 due to kp26 proplem

    hi: I Failed to back flush in IDES 4.7, and afterwads i found it was due to a system problem with kp26 which should be patched with KH47012. I tried spam ,but failed.I could not proceed. any opinions will be appreciated. infomation below is from tran

  • Exporting video results in still image with original sound background

    I've tried several times to export my home movie (MOV) into smaller formats using the export function. It worked fine on QT 6 but now I'm on version 7 and it's not working. The final product is a still image of the first frame and the original record

  • [svn:osmf:] 14823: Fix bug where canPause was not set to false for live streams.

    Revision: 14823 Revision: 14823 Author:   [email protected] Date:     2010-03-17 10:51:40 -0700 (Wed, 17 Mar 2010) Log Message: Fix bug where canPause was not set to false for live streams. Modified Paths:     osmf/trunk/framework/OSMF/org/osmf/net/N

  • Leftover Library "*.data" files - OK to Delete?

    I have exported all photos to Aperture. I no longer use iPhoto 6.0.5. Nothing is left in the library and the iPhoto trash is empty. However, when I look in the iPhoto library in Finder I see three files consuming totalling 111mb of space: Thumb32Segm