Java EE Tutorial ant deploy

Hi
I have a problem when using the ant deploy command in the hello1 app in the tutorial. I get an error:
BUILD FAILED
E:\dev\javaeetutorial5\examples\bp-project\app-server-ant.xml:417: Property javaee.server.passwordfile not specified. Please
specify the javaee.server.passwordfile property in 'bp-project/build.properties'.
You will also need to ensure that the passwordfile is present and contains
AS_ADMIN_PASSWORD.
can any one point me in the direction for correcting this? Where do i find the password file so i can add it to the app-server-ant.xml file
Thank you for any help.

E:\dev\javaeetutorial5\examples\bp-project\app-server-
ant.xml:417: Property javaee.server.passwordfile not
specified. Please
specify the javaee.server.passwordfile
property in 'bp-project/build.properties'.
You will also need to ensure that the
passwordfile is present and contains
AS_ADMIN_PASSWORD.
point me in the direction for correcting this? Where
do i find the password file so i can add it to the
app-server-ant.xml file
hank you for any help.Create a password file, say password.txt with the following line
AS_ADMIN_PASSWORD=<substitue your admin password, most probably adminadmin>
Open bp-project/build.properties and update the following line
javaee.server.passwordfile=<absolute path to password.txt, example: c:/appserver/password.txt>
It is preferrable to create the file password.txt under a directory which has no spaces.
If bp-project/build.properties does not exist, copy bp-project/build.properties.sample to bp-project/build.properties and update it based on your application server installation.
- sreeni

Similar Messages

  • Java EE Tutorial ant deploy error.

    I'm not really sure where this post belongs, but I thought I would throw it out there as an FYI to anyone using the ant command line tools for the Java EE Tutorial.
    I have been playing around with the Java EE Tutorial and believe I may have found a bug with the war-ant.xml file. When running the deployment from the command line, the deploy portion of the build fails. The following is an example error message.
    deploy:
    [exec] Usage: deploy [--terse=false] [--echo=false] [--interactive=true] [-
    -host localhost] [--port 4848|4849] [--secure | -s] [--user admin_user] [--passw
    ordfile file_name] [--virtualservers virtual_servers] [--contextroot context_roo
    t] [--force=true] [--precompilejsp=false] [--verify=false] [--name component_nam
    e] [--upload=true] [--retrieve local_dirpath] [--dbvendorname dbvendorname] [--c
    reatetables=true|false | --dropandcreatetables=true|false] [--uniquetablenames=t
    rue|false] [--deploymentplan deployment_plan] [--enabled=true] [--generatermistu
    bs=false] [--availabilityenabled=false] [--libraries jar_file[(pathseparator)jar
    _file]*] [--target target(Default server)] filepath
    [exec] CLI019 Invalid number of operands. Number of operands should be equ
    al to 1.
    deploy-url-message:
    [echo] Application Deployed at: http://localhost:8080/bookstore1
    BUILD FAILED
    The root cause of the problem stems from the fact that the script basically calls a command line tool to deploy the war to the app server. If you examine the error output, all parameters are optional except the last one... filepath. This parameter is set in the war-ant.xml in the following line.
    <property name="app.module" value="${build.dir}/${module.name}.war"/>
    This line look innocuous at first but upon closer inspection, one notices that the path name refers to the build.dir. This is problematic because the build dir does not contain the war file. The build process puts the war file in the dist dir under the project root. So this line is incorrect. The following line offers the correct solution.
    <property name="app.module" value="${dist.dir}/${module.name}.war"/>
    By changing the line to use the dist.dir, which is where the file is located, the build script executes correctly. :)

    As a follow-up to be clear, the app.module property is used in the deploy task of the app-server-ant.xml. It is the last argument of the argument list.
    <target name="deploy" depends="tools,-pre-deploy"
    description="deploys the application">
    <fail unless="app.module" message="app.module must be set before invoking this target. Otherwise there is no application to deploy."/>
    <fail unless="module.name" message="app.name must be set before invoking this target. Otherwise there is no application to deploy."/>
    <condition property="app.url" value="http://${javaee.server.name}:${javaee.server.port}/${run.uri}">
    <not>
    <isset property="app.endpointuri"/>
    </not>
    </condition>
    <property name="failonerror" value="true"/>
    <exec executable="${asadmin}" failonerror="${failonerror}">
    <arg line=" deploy "/>
    <arg line=" --user ${javaee.server.username}" />
    <arg line=" --passwordfile ${javaee.server.passwordfile}" />
    <arg line=" --host ${javaee.server.name}" />
    <arg line=" --port ${javaee.adminserver.port}" />
    <arg line=" --name ${module.name}"/>
    <arg line=" --force=true "/>
    <arg line=" --upload=true "/>
    <arg line=" --dbvendorname ${db.vendorname}"/>
    <arg line="${app.module}" />
    </exec>
    <antcall target="deploy-url-message"/>
    </target>

  • Java EE5 Tutorial -  'ant create-tables' BUILD FAILED

    Hi,
    Appologies, this is quite a begineers question, hopefully it's an easy one to answer. I've searched for the last few hours regarding this issue,
    trying things and searched the forums here at sun with no similar issue. As you can see below, I cannot create the tables for the bookstore1 application using 'ant'.
    I am getting a FileNotFoundException however the delete.sql and tutorial.sql files are at this location C:\javaee\javaeetutorial5\examples\common\sql\javadb\
    I have also made sure that the files have read and write access. I know their could be some permissions issues using vista if I installed at C:/ProgramFiles, so everything is in C:/
    Another thing I have tried is using the ant command directly even though the PATH is in my enviroment variables, just incase another version was conflicting, as I read about people having such issues.
    "C:\Sun\AppServer\lib\ant\bin\ant create-tables" => This gave the same error as below. Im not sure what other information may help you help me here, so just ask.
    Annoying thing is, this example worked fine when I set up the environment on my work laptop (which I have no access to now) earlier, I didn't have this issue.
    Thanks for your help.
    /Paul.
    c:\javaee\javaeetutorial5\examples\web\bookstore1>ant create-tables
    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:\javaee\javaeetutorial5\examples\web\bookstore1\=C:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql
    BUILD FAILED
    C:\javaee\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.FileNotFoundException: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C
    :\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql (The filename, directory name, or volume label syntax is incorrect)
    Total time: 21 seconds
    c:\javaee\javaeetutorial5\examples\web\bookstore1>

    Hi,
    This is due to the path problem that u specified in build.properties file for javaee.tutorial.home= variable. Use / instead of \. Problem will solved.
    Thanks
    Amalka

  • Java EE tutorial, problem with ANT populating database

    Hi!
    I have followed the instructions in the Java EE tutorial to set up the enviroment but when I execute the command "ant create tables" I get this output:
    C:\javaeetutorial5\examples\web\bookstore1>ant create-tables
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
    BUILD FAILED
    C:\javaeetutorial5\examples\bp-project\app-server-ant.xml:140: The directory you specified does not existI have changed in the build.properties file to this:
    # The SDK's default installation on Windows is c:/Sun/SDK
    # The Application Server's default installation on Windows is
    # c:/Sun/AppServer
    javaee.home=C:\Sun\SDK
    javaee.tutorial.home=C:\javaeetutorial5
    # machine name (or the IP address) where the applications will be deployed.
    javaee.server.name=localhost
    # port number where the app-server is accessed by the users
    javaee.server.port=8080
    # port number where the admin server of the app-server is available
    javaee.adminserver.port=4848
    # Uncomment the property j2ee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property j2ee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    # AS_ADMIN_PASSWORD=adminadmin
    # Notice that the password is adminadmin since this is
    # the default password used by the glassfish app-server installation.
    javaee.server.passwordfile=${javaee.tutorial.home}\examples\common\admin-passwo rd.txt
    appserver.instance=server
    # Uncomment and set this property to the location of the browser you
    # choose to launch when an application is deployed.
    # On Windows and Mac OS X the default browser is used.
    #default.browser=\Applications\Firefox.app\Contents\MacOS\firefox-bin
    # Database vendor property for db tasks
    db.vendor=javadb
    # Digital certificate properties for mutual authentication
    keystore=${javaee.tutorial.home}\examples\jaxws\simpleclient-cert\support\clien t_keystore.jks
    truststore=${javaee.home}\domains\domain1\config\cacerts.jks
    keystore.password=changeit
    truststore.password=changeitAny idea which directory the error refers to?
    I�m using Netbeans 5.5 and have a connection to my local mysql database.

    Ok, this is the build.xml from bookstore1:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- You may freely edit this file. See commented blocks below for -->
    <!-- some examples of how to customize the build. -->
    <!-- (If you delete it and reopen the project it will be recreated.) -->
    <project name="bookstore1" default="default" basedir=".">
        <description>Builds, tests, and runs the project bookstore1.</description>
        <property name="is.war.module" value="true" />
        <property name="uses.db.sql.file" value="true"/>
        <path id="common.jars">
            <filelist dir="../bookstore" files="build.xml"/>
        </path>
        <macrodef name="iterate">
            <attribute name="target"/>
            <sequential>
                <subant target="@{target}" failonerror="false">
                    <buildpath refid="common.jars"/>
                </subant>
            </sequential>
        </macrodef>
        <import file="../../bp-project/main.xml" />
        <target name="-pre-deploy" unless="netbeans.home">
            <antcall target="create-tables"/>
        </target>
        <target name="-pre-compile" unless="netbeans.home" depends="init,build-common,copy-common-jars"/>
        <target name="build-common" unless="netbeans.home" depends="init">
            <iterate target="default"/>
        </target>
        <target name="copy-common-jars" unless="netbeans.home" depends="init">
            <mkdir dir="${build.web.dir}/WEB-INF/lib"/>
            <copy file="${reference.bookstore.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        </target>
    </project>And the build.xml in bookstore looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- You may freely edit this file. See commented blocks below for -->
    <!-- some examples of how to customize the build. -->
    <!-- (If you delete it and reopen the project it will be recreated.) -->
    <project name="bookstore1" default="default" basedir=".">
        <description>Builds, tests, and runs the project bookstore1.</description>
        <property name="is.war.module" value="true" />
        <property name="uses.db.sql.file" value="true"/>
        <path id="common.jars">
            <filelist dir="../bookstore" files="build.xml"/>
        </path>
        <macrodef name="iterate">
            <attribute name="target"/>
            <sequential>
                <subant target="@{target}" failonerror="false">
                    <buildpath refid="common.jars"/>
                </subant>
            </sequential>
        </macrodef>
        <import file="../../bp-project/main.xml" />
        <target name="-pre-deploy" unless="netbeans.home">
            <antcall target="create-tables"/>
        </target>
        <target name="-pre-compile" unless="netbeans.home" depends="init,build-common,copy-common-jars"/>
        <target name="build-common" unless="netbeans.home" depends="init">
            <iterate target="default"/>
        </target>
        <target name="copy-common-jars" unless="netbeans.home" depends="init">
            <mkdir dir="${build.web.dir}/WEB-INF/lib"/>
            <copy file="${reference.bookstore.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        </target>
    </project>And the main.xml in \bp-projects looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Copyright 2005-2006 Sun Microsystems, Inc.  All rights reserved.  You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at:
    http://developer.sun.com/berkeley_license.html
    $Id: main.xml,v 1.2 2006/04/12 17:20:13 ie139813 Exp $ -->
    <!-- main.xml: this is the file that should be included by the project
         build files. It will figure out whether it is running from inside Netbeans
         or command line and include appropriate tasks.
         @Author: Inderjeet Singh -->
    <project name="main" default="dummy-default">
      <property file="build.properties"/>
      <property value="1.5" name="default.javac.source"/>
      <property value="1.5" name="default.javac.target"/>
      <condition property="common-ant-tasks-file"
              value="${ant.file}/../nbproject/build-impl.xml"
              else="${ant.file.main}/../command-line-ant-tasks.xml">
        <and>
        <isset property="netbeans.home"/>
        <available file="${ant.file}/../nbproject/build-impl.xml"/>
        </and>
      </condition>
      <import file="${common-ant-tasks-file}"/>
      <target name="dummy-default"/>
    </project>

  • Java EE5 Tutorial - Totally lost!

    HI I'm just working through the Java EE5 Tutorial.
    I'm using:
    Sun Java System Application Server Platform Edition 9 Update 1 Patch 1
    installed in C:\Sun\SDK
    The tutorial/example projects are therefore in:
    C:\Sun\SDK\domains\domain1\docroot\javaeetutorial5\examples\web\bookstore1
    Netbeans IDE 5.5.1
    I'm having problems specifically with Chapter 2: Populating the Example Database
    The instructions state:
    When you deploy any of the Duke's Bookstore applications using ant deploy, the database is automatically populated at the same time. If you want to populate the database separately from the deploy task or are using NetBeans 5.5 to deploy the application, follow these steps:
    1. In a terminal window, go to the books directory or any one of the bookstore1 through bookstore6 example directories.
    2. Start the Java DB database server. For instructions, see Starting and Stopping the Java DB Database Server. You don't have to do this if you are using NetBeans 5.5. It starts the database server automatically.
    3. Run ant create-tables. This task runs a command to read the file tutorial.sql and execute the SQL commands contained in the file.
    At the end of the processing, you should see the following output:
    [sql] 181 of 181 SQL statements executed successfully
    The first problem I have is that the Runtime/Databases section, I cannot connect to:
    jdbc:derby://localhost:1527/sample
    (though I don't think this matters for this problem)
    Next if I use the ant command from the command prompt I get:
    C:\Sun\SDK\domains\domain1\docroot\javaeetutorial5\examples\web\bookstore1>ant c
    reate-tables
    'ant' is not recognized as an internal or external command,
    operable program or batch file.
    C:\Sun\SDK\domains\domain1\docroot\javaeetutorial5\examples\web\bookstore1>Using asant I get:
    C:\Sun\SDK\domains\domain1\docroot\javaeetutorial5\examples\web\bookstore1>asant create-tables
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    BUILD FAILED
    C:\Sun\SDK\domains\domain1\docroot\javaeetutorial5\examples\bp-project\app-serve
    r-ant.xml:417: Property javaee.server.passwordfile not specified. Please
                specify the javaee.server.passwordfile property in 'bp-project/build
    .properties'.
                You will also need to ensure that the passwordfile is present and co
    ntains
                AS_ADMIN_PASSWORD.
    Total time: 0 secondsI can deploy the project no problem, If I navigate to
    http://localhost:8080/bookstore1/bookstore
    I get the 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 '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)Can anyone give me any pointers as to what I'm doing wrong?
    I must say that I find the whole tutorial completely inaccessible, as it seems to give no tutorial at all, simply stating a stream of remotely connected facts, without any practical example. Is there an alternative book/guide to working through Java EE 5 for beginners?

    Dear all
    I am having a similar problem with the bookstore1 example from JEE5 Tutorial. When I launch it from the browser I get an 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 'WEB_BOOKSTORE_BOOKS' does not exist.Error Code: -1
    Call:SELECT BOOKID, INVENTORY, DESCRIPTION, PRICE, TITLE, FIRSTNAME, SURNAME, ONSALE, CALENDAR_YEAR FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
         bind => [203]
    Query:ReadObjectQuery(com.sun.bookstore.database.Book)
    My environment (under Windows) is set up as follows:
    JAVAEE_HOME points to C:\\Program Files\\Java\\java_ee_sdk-5_02
    The tutorial is located in C:\\javaeetutorial5
    Application server is running at localhost:8080
    Java DB running at localhost:1527
    Java DB databases directory is located at C:\\DERBYDB
    I created BookDB database and it is in C:\\DERBYDB\\BookDB
    I populated the database, can connect to it and view tables from within NetBeans > Runtime
    I can also execute SQL queries from NetBeans on the datasets.
    In Runtime>Databases the URL for the database is setup as jdbc:derby://localhost:1527/BookDB
    In NetBeans > Tools > Options > Advanced Options > Server and External Tool Settings > Java DB Database the properties are set as
    Java DB Location: C:/Program Files/Java/java_ee_sdk-5_02/javadb
    Database Location : C:/DERBYDB
    In Application Server > Resources > JDBC > JDBC Resources I have
    JNDI Name:     derby
    Pool Name: DerbyPool     
    Status:     Enabled
    JNDI Name:     jdbc/BookDB
    Pool Name:     DerbyPool
    Status:     Enabled
    as well as jdbc/__CallFlowPool, jdbc/__default, jdbc/__TimerPool
    Project bookstore1 properties feature
    Libraries > bookstore - dist/bookstore.jar
    The output from the Application Server console:
    deployed with moduleid = bookstore1
    WEB0100: Loading web module [bookstore1] in virtual server [server] at [bookstore1]
    naming.bind
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The alias name for the entity class [class com.sun.bookstore.database.Book] is being defaulted to: Book.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public java.lang.String com.sun.bookstore.database.Book.getDescription()] is being defaulted to: DESCRIPTION.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public java.lang.String com.sun.bookstore.database.Book.getSurname()] is being defaulted to: SURNAME.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public java.lang.String com.sun.bookstore.database.Book.getTitle()] is being defaulted to: TITLE.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public java.lang.String com.sun.bookstore.database.Book.getBookId()] is being defaulted to: BOOKID.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public int com.sun.bookstore.database.Book.getInventory()] is being defaulted to: INVENTORY.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public float com.sun.bookstore.database.Book.getPrice()] is being defaulted to: PRICE.
    [TopLink Config]: 2007.08.31 08:05:26.546--ServerSession(15189713)--The column name for element [public java.lang.String com.sun.bookstore.database.Book.getFirstName()] is being defaulted to: FIRSTNAME.
    [TopLink Config]: 2007.08.31 08:05:26.562--ServerSession(15189713)--The column name for element [public boolean com.sun.bookstore.database.Book.getOnSale()] is being defaulted to: ONSALE.
    [TopLink Config]: 2007.08.31 08:05:26.562--ServerSession(15189713)--The column name for element [public int com.sun.bookstore.database.Book.getCalendar_year()] is being defaulted to: CALENDAR_YEAR.
    [TopLink Config]: 2007.08.31 08:05:26.578--ServerSession(15189713)--property toplink.server.platform.class.name is deprecated, property toplink.target-server should be used instead.
    topLink_version
    application_server_name_and_version
    platform=>JavaDBPlatform
    user name=> ""
    connector=>JNDIConnector datasource name=>null
    );|connecting
    ;|connected_user_database_driver
    platform=>JavaDBPlatform
    user name=> ""
    connector=>JNDIConnector datasource name=>null
    );|connecting
    ;|connected_user_database_driver
    login_successful
    WARNING *********** NetBeans HTTP Monitor ************
    The request cannot be recorded most likely because the NetBeans HTTP Server is not running. Go to the IDE and start the HTTP Server from within the Runtime window to fix this problem.
    =======================================================
    The number of hits is: 1
    =======================================================
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: org.apache.derby.client.am.SqlException: Table 'WEB_BOOKSTORE_BOOKS' does not exist.Error Code: -1
    Call:SELECT BOOKID, INVENTORY, DESCRIPTION, PRICE, TITLE, FIRSTNAME, SURNAME, ONSALE, CALENDAR_YEAR FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
    bind => [203]
    Query:ReadObjectQuery(com.sun.bookstore.database.Book)
    at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303) ...
    Could anyone enlighten me why the table 'WEB_BOOKSTORE_BOOKS' cannot be found? As I said I can see it in NetBeans and can run a query e.g. SELECT BOOKID, INVENTORY, DESCRIPTION, PRICE, TITLE, FIRSTNAME, SURNAME, ONSALE, CALENDAR_YEAR FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = '201')
    Also does the line connector=>JNDIConnector datasource name=>null in the Application Server output have any implication on this problem?
    I will greatly appreciate your help as I have run out of ideas how to fix this.

  • Ant deploy fails

    I installed configured the Java Web Services Dev Pack 1.0_01. I built installed and tested the HelloWorld Java-RPC example without any problem. Next I tried creating a new Web Service but when I try to deploy it I get the following error:
    C:\Projects\MyRPCTest\source>ant deploy
    Buildfile: build.xml
    deploy:
    BUILD FAILED
    Total time: 1 second
    C:\Projects\MyRPCTest\source\build.xml:14: java.io.IOException: Server returned
    HTTP response code: 403 for URL: http://localhost:8080/lmrp/deploy?path=%2Flmrp-jaxrpc
    Has anyone seen this error and know a solution?

    Figured it out. I changed my build.xml to point build.properties in Java Web Services directory.
    <property file="/jwsdp-1_0_01/docs/tutorial/examples/jaxrpc/common/build.properties"/>

  • Ant deploy problem

    Hi, there,
    I'm new to Jave Web Service application developer, I've encounter a problem when I deploy the example "C:\jwstutorial13\examples\gs" , but both "ant build" and "ant package" are successful, when run "ant deploy", I see the following message:
    C:\jwstutorial13\examples\gs>ant deploy
    Buildfile: build.xml
    deploy:
    BUILD FAILED
    file:C:/jwstutorial13/examples/common/targets.xml:41: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/admin/deploy?path=%2Fgs
    pls help me, thanks!!!!

    The problem is that you haven't set the build properties and path variables as described in the tutorial preface:
    http://java.sun.com/webservices/docs/1.3/tutorial/doc/About.html#wp63742
    See the section Building the Examples

  • Is there a way of changing the jdevappunknown_ folder that Ant deploys to?

    Using Ant DeployESBSuitcase doesn't work when deploying Projects with dependencies.
    Steps to re-create error:
    Create a JDeveloper ESB Project called ‘ProjectB’ and add file adapter called ‘WriteFile’ to write a file. Deploy this project using JDeveloper.
    Create another JDeveloper ESB Project called ‘ProjectA’ and add a file adapter called ‘ReadFile’ to read a file.
    From ProjectA’s routing service add a routing rule and use ‘Browse Target Service Operation’ (Gear wheel icon) and select the deployed ProjectB_WriteFile service.
    Deploy ProjectA using JDeveloper.
    Use Ant to create a deploymentplan file for both projects by running the ExtractESBDeploymentPlan target.
    Note: As these projects are saved under their own directory structure
    C:\Workspace\Local\ProjectA and C:\Workspace\Local\ProjectB you will need to copy the ..\ProjectB\ProjectB_WriteFile.wsdl to the ProjectA folder.
    Confirm that ProjectA and ProjectB Ant build files DeployESBSuitcase properties (esbMetadataServerHost and esbMetaServerPort) point to another server other than the one you have just deployed ProjectA and ProjectB to using JDeveloper. i.e. a clean server that doesn’t know about these Projects
    Deploy ProjectB using Ant’s DeployESBSuitcase target.
    Deploy ProjectA using Ant’s DeployESBSuitcase target.
    An error is now thrown
    C:\Workspace\Local\ProjectA>ant DeployESBSuitcase
    Buildfile: build.xml
    DeployESBSuitcase:
    [echo] Deploying ESB Project ProjectA to serverx
    [deployESBSuitcase] Deployment Attempt Response :
    [deployESBSuitcase] <deploymentSummary>
    [deployESBSuitcase] <message>Entity Deployment Failed</message>
    [deployESBSuitcase] <errors>
    [deployESBSuitcase] <error code="1049" severity="5">
    [deployESBSuitcase] <description>WSDL "esb:///ESB_Projects/Local_ProjectB/ProjectB_WriteFile.wsdl" of service "DefaultSystem.ProjectB_WriteFile" is invalid or unaccessible. Following error is thrown by WSDL Parser : WSDL Parsing Failed: org.apache.slide.structure.ObjectNotFoundException: No object found at /files/ESB_Projects/Local_ProjectB</description>
    [deployESBSuitcase] <fix>Ensure that the WSDL is accessible and valid. If the problem persists, Contact Oracle Support.</fix>
    [deployESBSuitcase] </error>
    [deployESBSuitcase] </errors>
    [deployESBSuitcase] </deploymentSummary>
    [deployESBSuitcase]
    [deployESBSuitcase] Deployment Failed ...Unhandled Exception
    [deployESBSuitcase] java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    [deployESBSuitcase] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:128)
    [deployESBSuitcase] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:175)
    [deployESBSuitcase] at oracle.tip.esb.client.anttasks.DeployESBSuitcaseTask.execute(DeployESBSuitcaseTask.java:510)
    [deployESBSuitcase] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [deployESBSuitcase] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [deployESBSuitcase] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [deployESBSuitcase] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [deployESBSuitcase] at java.lang.reflect.Method.invoke(Method.java:585)
    [deployESBSuitcase] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [deployESBSuitcase] at org.apache.tools.ant.Task.perform(Task.java:348)
    [deployESBSuitcase] at org.apache.tools.ant.Target.execute(Target.java:357)
    [deployESBSuitcase] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [deployESBSuitcase] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [deployESBSuitcase] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [deployESBSuitcase] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [deployESBSuitcase] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [deployESBSuitcase] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [deployESBSuitcase] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [deployESBSuitcase] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [deployESBSuitcase] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    BUILD FAILED
    java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:128)
    at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:175)
    at oracle.tip.esb.client.anttasks.DeployESBSuitcaseTask.execute(DeployESBSuitcaseTask.java:510)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Total time: 2 seconds
    C:\Workspace\Local\ProjectA>
    This error is thrown as ProjectB’s wsdl file cannot be found under esb:///ESB_Projects/Local_ProjectB/ProjectB_WriteFile.wsdl.
    This is due to Ant deploying ProjectB under …\ESB_Projects\jdevappunknown_ rather than …\ESB_Projects\Local_ProjectB
    When deploying ESB projects from JDeveloper they are created under the following structure: <Oracle_Home>\integration\esb\oraesb\artifacts\store\metadata\files\ESB_Projects\<JDev_Workspace>\<Project_Name>
    However when using the Ant target DeployESBSuitcase ALL projects are deployed to the same folder:
    <Oracle_Home>\integration\esb\oraesb\artifacts\store\metadata\files\ESB_Projects\jdevappunknown_
    Is there a way of changing the jdevappunknown folder used by Ant deployments?
    Edited by: user2000 on Apr 27, 2009 3:37 PM

    James,
    Following my steps above I don't get anything in the deploymentPlan for either ProjectA or ProjectB which includes a WSDL URL I can modify.
    ProjectA includes the ProjectB_WrieFile.esbsv file which contains the following line:
    <wsdlURL>esb:///ESB_Projects/Local_ProjectB/ProjectB_Write.wsdl</wsdlURL>
    Is there something I can change which will mean when I regenerate the deploymentPlan it will include the WSDL location?
    Thanks
    Alistair
    Edited by: user2000 on Apr 28, 2009 11:55 AM
    I've included Both Deployment Plans:
    ProjectA Deployment Plan
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <deploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectA_ReadFile" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <jcaOperation>
    <property value="Read" name="LogicalDirectory"/>
    <property value="oracle.tip.adapter.file.inbound.FileActivationSpec" name="ActivationSpec"/>
    <property value="Archive" name="LogicalArchiveDirectory"/>
    <property value="true" name="DeleteFile"/>
    <property value=".*\.txt" name="IncludeFiles"/>
    <property value="60" name="PollingFrequency"/>
    <property value="0" name="MinimumAge"/>
    <property value="true" name="OpaqueSchema"/>
    </jcaOperation>
    <jcaAddress>
    <property value="eis/FileAdapter" name="location"/>
    <property value="*.txt" name="UIincludeWildcard"/>
    </jcaAddress>
    </properties>
    </serviceDeploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectA_ReadFile_RS" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <serviceDefinition>
    <property value="ProjectA_ReadFile.wsdl" name="wsdlURL"/>
    </serviceDefinition>
    </properties>
    </serviceDeploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectB_WriteFile" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <jcaOperation>
    <property value="Write" name="LogicalDirectory"/>
    <property value="oracle.tip.adapter.file.outbound.FileInteractionSpec" name="InteractionSpec"/>
    <property value="ProjectB_%SEQ%.txt" name="FileNamingConvention"/>
    <property value="1" name="NumberMessages"/>
    <property value="true" name="OpaqueSchema"/>
    </jcaOperation>
    <jcaAddress>
    <property value="eis/FileAdapter" name="location"/>
    </jcaAddress>
    </properties>
    </serviceDeploymentPlan>
    </deploymentPlan>
    Project B Deployment Plan
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <deploymentPlan>
    <serviceDeploymentPlan qname="DefaultSystem.ProjectB_WriteFile" status="ENABLED">
    <parent type="system" qname="DefaultSystem"/>
    <properties>
    <jcaOperation>
    <property value="Write" name="LogicalDirectory"/>
    <property value="oracle.tip.adapter.file.outbound.FileInteractionSpec" name="InteractionSpec"/>
    <property value="ProjectB_%SEQ%.txt" name="FileNamingConvention"/>
    <property value="1" name="NumberMessages"/>
    <property value="true" name="OpaqueSchema"/>
    </jcaOperation>
    <jcaAddress>
    <property value="eis/FileAdapter" name="location"/>
    </jcaAddress>
    </properties>
    </serviceDeploymentPlan>
    </deploymentPlan>

  • Problems encountered while running Java EE tutorial in JDeveloper

    I am using JDeveloper version 10.1.3.1 to run Java EE tutorial, I got the following error messages while running ServiceRequestFacadeClientEmbed to test the data model (tutorial page 44 of 222), please help me fix those errors.
    Thanks a lot for your help. Jan
    Creating a service request // correct output
    setting the status // correct output
    setting the timestamp for request date // correct output
    2007-01-25 15:12:46.915 // correct output
    getting product object with id = 117 // correct output
    Jan 25, 2007 3:12:47 PM oracle.j2ee.rmi.RMIMessages //error out EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionException Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
         ... 34 more
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:365)
         at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:356)
         at com.evermind.server.ejb.AbstractEJBObject.OC4J_handleUncheckedException(AbstractEJBObject.java:396)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         ... 8 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 13 more
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
         ... 34 more
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
         ... 34 more
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findProductById(Unknown Source)
         at org.srdemo.client.ServiceRequestFacadeClientEmbed.main(ServiceRequestFacadeClientEmbed.java:38)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
         javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 13 more
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
         ... 34 more
    Process exited with exit code 0.

    You may find a solution at the url below. It worked for me.
    http://forums.java.net/jive/thread.jspa?messageID=205578&#205578

  • Errors encountered while running Java EE tutorial SRDemo in JDeveloper

    I am using JDeveloper version 10.1.3.1 to run Java EE tutorial (Web Application) - SRDemo for JSF and EJB 3.0, I got the following error messages while running ServiceRequestFacadeClientEmbed to test the data model (tutorial page 44 of 222), please help me fix those errors.
    Thanks a lot for your help. Jan
    Creating a service request // correct output
    setting the status // correct output
    setting the timestamp for request date // correct output
    2007-01-25 15:12:46.915 // correct output
    getting product object with id = 117 // correct output
    Jan 25, 2007 3:12:47 PM oracle.j2ee.rmi.RMIMessages //error out EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionException Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
    at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
    at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
    at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
    at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
    ... 34 more
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:365)
    at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:356)
    at com.evermind.server.ejb.AbstractEJBObject.OC4J_handleUncheckedException(AbstractEJBObject.java:396)
    at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
    at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    ... 8 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
    at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
    at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
    at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    ... 13 more
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
    ... 34 more
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
    at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
    at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
    at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
    at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
    ... 34 more
    javax.ejb.EJBException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
    at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
    at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
    at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
    at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
    at __Proxy1.findProductById(Unknown Source)
    at org.srdemo.client.ServiceRequestFacadeClientEmbed.main(ServiceRequestFacadeClientEmbed.java:38)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed; nested exception is:
    javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
    at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
    at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
    at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
    at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
    at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    ... 13 more
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [Model] for which predeploy method either had not called or had failed
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
    ... 34 more
    Process exited with exit code 0.

    Hmmm ... I'm stuck at exactly the same problem, have you found any workaround by any chance?

  • Jvmargs not being placed in jnlp file by ant deploy task

    Hi
    I have an ant deploy task as given below. I run ant to produce the jnlp file. Everything works ok, EXCEPT the jvmargs, and the enclosing platform element, are not copied into the jnlp file.
    Is this the intended behaviour?
    thanks
    graham
    -- ant task ---
    <project name="BuildInfoView" xmlns:fx="javafx:com.sun.javafx.tools.ant">
    <taskdef
         resource="com/sun/javafx/tools/ant/antlib.xml"
         uri="javafx:com.sun.javafx.tools.ant"
         classpath="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/lib/ant-javafx.jar"/>
    <fx:deploy
    outdir="../installation/bin"
         outfile="infoview"
    width="800"
         height="500"
         embeddedWidth="100%"
         embeddedHeight="100%">
         <fx:application
              name="Infoview"
              mainClass="com.ods.infoview.Main">
         </fx:application>
         <fx:info
              title="InfoView"
              description="InfoView"
              vendor="OrangeDog">
         </fx:info>
         <fx:permissions elevated="true"/>
         <fx:platform javafx="2.2+">
         <fx:jvmarg value="-Xmx400"/>
         </fx:platform>
    <!--
    cacheCertificates="true"/>
    -->
         <fx:resources>
              <fx:fileset dir="../gradle/output/"/>
         </fx:resources>
    </fx:deploy>
    </project>

    There is a FAQ note about this
    http://java.sun.com/products/javawebstart/faq.html#72
    Bill

  • Tomcat error while ant deploy (via manager)

    I am getting the following error whenever I deploy or undeploy my jsp application using ant.
    The error is :
    Jun 30, 2007 1:18:50 PM org.apache.catalina.connector.CoyoteAdapter service
    SEVERE: An exception or error occurred in the container during the request processing
    java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk
         at org.apache.catalina.util.Base64.decode(Base64.java:214)
         at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:165)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:595)
    The ant call I used for accessing tomcat manager:
         <target name="start">
              <start
                   path="/${application.name}"
                   url="${manager.url}"
                   username="${manager.id}"
                   password="${manager.password}"
              />
         </target>
    Id and passwords seem to be correct, I get the error above, however my application is deployed and there is no problem other than the annoying exception
    Thanks...

    But as of now we cannot change application. So is there any temporary solution to fix the issue.
    FYI
       I went through the BO samples Adding Report.jsp. Not helping for current scenario.
    Regards
    lnarayanan

  • 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)

  • Working ANT deploy/redeploy example for weblogic 7

    Could someone please post a working example of an ANT-task which
    deploys/redeploys an ear in a running wl 7.x instance ? I've been trying to
    get this to work / find an example of a working task but haven't succeeded
    yet.
    //Linus Nikander - [email protected]

    The current WL7 docs at http://e-docs.bea.com/wls/docs70/programming/deploying.html#1130056
    show a pre-configured ant task shipping with WL7
    I cannot find any instance of the referenced WLDeploy class in any jar file in my WL7 installation [WLS 7 SP4]
    Is a standard distribution [ant deploy, configure tasks and classes] available for use with WLS7 ?
    Hey Linus.[snippage /]
    For WLS 7.0, you could use <java> to call
    weblogic.Deployer passing in the
    appropriate parameters on the arg line. Or, you can
    mimic what we did in
    8.1 by creating customer Ant tasks calling
    weblogic.Deployer for your
    specific use.
    -Chris
    "Linus Nikander" <[email protected]> wrote in
    message
    news:[email protected]..
    Could someone please post a working example of anANT-task which
    deploys/redeploys an ear in a running wl 7.xinstance ? I've been trying
    to
    get this to work / find an example of a workingtask but haven't succeeded
    yet.
    //Linus Nikander - [email protected]

  • Java Script Error while deploying a Model with Value Help

    Hi,
    I am using EP 7.0 SP 10.
    I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
    The model compiles successfully, but gives a Java Script Error while deploying the model,
    ! Error on Page
    When Click on this java script error, it shows that ,
    Line:14985
    Char 1: Error
    object does n't support this property or method.
    code
    URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
    The Same model works in dev server, and it fails in the production server.
    Thanks and Regards,
    Sekar

    Hi jakob,
    Thankyou for your quick response.
    I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
    I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
    And i think am not paring any formulas here.
    Please guide me.
    thanks and regrads
    Pradeep.B

Maybe you are looking for