Metadata accessor

 

Michael Mai wrote:
This happened when I try to migrate weblogic 5.1 to 6.1.
Here is result of conn.getTransactionIsolation()
SQL Exception encountered: java.sql.SQLException: JZ0SJ: Metadata accessor infor
mation was not found on this database. Please install the required tables as men
tioned in the jConnect documentation.Yes, I understand. Our pools do some more (necessary) work, as I've described.
The Sybase driver does need those procedures to be installed in the Sybase database.
Did you do what I asked? Please add one line of code to your standalone program that
connects to Sybase using the sybase driver:
con.getTransactionIsolation();
Please tell me what happens.
Joe
>
>
Joseph Weinstein <[email protected]> wrote:
michael mai wrote:
Hi,
I had the same problem with Sybase Jconnect drive. I created standaloneprogram
and got db connection.
Help advised!The issue is likely that you are using our pools. Our pools do some necessary
preparation
when making pool connections, including asking what the default isolation
level is etc,
so we can return pool connections to their known default state when they
go back into
the pool. Otherwise, one user can inadvertantly affect the connection
behavior for the
next user. Unfortunately Sybase chooses to implement their driver to
require certain
stored procedures that Sybase doesn't supply in the database by default.
You should
install those stored procedures. Did you do this as 'sa'? As whom are
you logging in
when you get the failure?
In your standalone program, please make this call:
con.getTransactionIsolation();
Let me know... Joe
Joseph Weinstein <[email protected]> wrote:
Myron Tuang wrote:
Hi,
I have the following error on the JDBC log:
java.sql.SQLException: JZ0SJ: Metadata accessor information was
not
found on
this database. Please install the required tables as mentioned in
the
jConnect documentation.
I have followed the steps to configured the ASA and the metadata,but
WLS6
still give me this error.
MyronThis is an error returned to you directly from the Sybase DBMS, telling
you it
can't find the stored procedures it needs. I suggest making a JDBCconnection
in a small standalone program using the Sybase dirver directly withno
WebLogic
code in the picture. This should simplify debugging.
Joe
PS: Folks: BEA WebLogic is expanding rapidly, with both entry andadvanced
positions
for people who want to work with Java, XML, SOAP and E-Commerce infrastructure
products.
We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and SanJose
CA.
Send resumes to [email protected]

Similar Messages

  • Problem in Sybase Metadata accessor information

    Hi!
    I am accessing Sybase database thru JConnect 5.5. If I try to access Metadata information, it throws the following exception. As per JConnect documentation, to access metadata info, one has to run a stored procedure i.e., sql_server.sql(for versions lesser than sybase 12.0 - I am using sybase 11.0.1) which is available with JConnect 5.5. I did the same. But still I am not able to access the metadata information. It throws the following Exception:
    java.sql.SQLException: JZ0SJ: Metadata accessor information was not found on this database. Please install the required tables as mentioned in the jConnect documentation.
    Thanks in advance.
    rgds.,
    s. saravana sankaran.

    I am having the same problem.
    The docs are saying:
    To support JDBC DatabaseMetaData methods, Sybase provides a set of stored procedures that jConnect can call for metadata about a database. These stored procedures must be installed on the server for the JDBC metadata methods to work.
    If the stored procedures for providing metadata are not already installed in a Sybase server, you can install them using one of two stored procedure scripts provided with jConnect:
    sql_server.sql installs stored procedures on an Adaptive Server database.
    sql_anywhere.sql installs stored procedures on an Adaptive Server Anywhere database.
    I executed the script but i am still facing the same problem.

  • MetaData Accessor Information

    Hi, I got an error from SQL exception JZ0SJ saying that MetaData Accessor Information was not found.
    public class Reset {
         public Reset(String hostname, String port, String id, String password, String dd, String mm, String yy)
              String connStat = new String();
              String qStat = new String();
              connStat = "jdbc:sybase:Tds:" + hostname + ":" + port;
              Connection conn = null;
              Statement stmt;
              String app_date = yy + mm + dd;
              try {               
                   Class.forName ("com.sybase.jdbc.SybDriver");
                   catch(java.lang.ClassNotFoundException e)
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {
                   conn = DriverManager.getConnection (connStat, id, password);
                   stmt = conn.createStatement();
                   conn.setAutoCommit(false);
                   qStat = "delete from table1";
                   stmt.executeUpdate(qStat);
                   qStat = "insert into table1 (field1) values ('" + app_date + "')";
                   stmt.executeUpdate(qStat);
                   conn.commit();
                   conn.setAutoCommit(true);
                   catch (SQLException sqe)
                   System.out.println("Unexpected exception : " +
                             sqe.toString() + ", sqlstate = " +
                             sqe.getSQLState());
                   if (conn != null) {
                        try {
                             System.err.print("Transaction is being ");
                             System.err.println("rolled back");
                             conn.rollback();
                             System.exit(1);
                        catch(SQLException excep)
                             System.err.print("SQLException: ");
                             System.err.println(excep.getMessage());
    The program runs smoothly when i comment out those 2 SetAutoCommit statements.
    Thank you.
    Raymond

    I did a little searching on the Sybase website.
    It appears that you must run a few scripts during server installation.
    'sql_server.sql (ASE) or sql_asa.sql (ASA)'
    However I do not know Sybase. Seems this would be a good place to search for the answer:
    http://www.sybase.com/search_results?search_type=basic&refer=http%3A%2F%2Fwww.sybase.com%2F&start=1&psize=20&order=desc&field=score&displaystyle=summary&powerbar=Y&timeframe=&coll=sc+sx+ng_db+ng_mw+ng_tl+pm_as+pm_db+pm_mw+pm_oc+pm_tl+cr-*%253066&qparse=any&qstr=SQL+exception+JZ0SJ+

  • Error when run page with EJB + ADF

    hello
    when i run one page with EJB+ ADF give me this error:
    <15/Set/2009 17H35m WEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1253032513131' for task '0'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(Application-EJBModel-ejb)
    weblogic.application.ModuleException: Exception preparing module: EJBModule(Application-EJBModel-ejb)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class valtex.java.ejb.entities.Team] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1245)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1173)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:486)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:443)
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:303)
         Truncated. see log file for complete stacktrace
    >
    <15/Set/2009 17H35m WEST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'Application'.>
    <15/Set/2009 17H35m WEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(Application-EJBModel-ejb)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class valtex.java.ejb.entities.Team] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1245)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1173)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:486)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:443)
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:303)
         Truncated. see log file for complete stacktrace
    >
    weblogic.application.ModuleException: Exception preparing module: EJBModule(Application-EJBModel-ejb)
    #### Deployment incomplete. #### Sep 15, 2009 5:35:14 PM
    oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:247)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:157)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:436)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$5$1.run(AdrsStarter.java:1365)
    Caused by: oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:413)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:238)
         ... 11 more
    Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:395)
         ... 12 more
    #### Cannot run application Application due to error deploying to DefaultServer.
    [Application Application stopped and undeployed from Server Instance DefaultServer]
    <15/Set/2009 17H43m WEST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=HomePage1.>
    what's means this error???
    thanks
    Miguel Teixeira

    I have a problem when running
    the following is the error report
    *** Using port 7101 ***
    C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\utils\config\10.3.1.0\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\JDEVEL~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Nero\Lib\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.07\DEFAUL~1 -Doracle.home=C:\Oracle\MIDDLE~1\JDEVEL~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\JDEVEL~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.security.jps.config=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.07\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\JDEVEL~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\JDEVEL~1\modules\oracle.oamprovider_11.1.1 -Dsso.filter.enable=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
    <23/09/2009 05:20:57 PM COT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <23/09/2009 05:20:58 PM COT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 11.0-b16 from Sun Microsystems Inc.>
    <23/09/2009 05:20:59 PM COT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.1.0 Wed Jun 10 22:24:41 MDT 2009 1227385 >
    <23/09/2009 05:21:03 PM COT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <23/09/2009 05:21:03 PM COT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <23/09/2009 05:21:03 PM COT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <23/09/2009 05:21:03 PM COT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00007. Log messages will continue to be logged in C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <23/09/2009 05:21:03 PM COT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <23/09/2009 05:21:11 PM COT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <23/09/2009 05:21:13 PM COT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <23/09/2009 05:21:13 PM COT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\access.log00003. Log messages will continue to be logged in C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <23/09/2009 05:21:17 PM COT> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <23/09/2009 05:21:17 PM COT> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <23/09/2009 05:21:20 PM COT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <23/09/2009 05:21:20 PM COT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <23/09/2009 05:21:23 PM COT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application HR_EJB_JPA_App is not versioned.>
    23/09/2009 05:21:23 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: Identificador de Aplicación : HR_EJB_JPA_App
    23/09/2009 05:21:23 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: "Servicios de Metadatos: Archivo de metadatos (MAR) no encontrado."
    23/09/2009 05:21:23 PM JpsApplicationLifecycleListener Migrate Application Credential Store
    ADVERTENCIA: Overwriting credentials is allowed in application credential store migration with Weblogic server running in Development Mode and system property 'jps.app.credential.overwrite.allowed' set to true
    [EL Finer]: 2009-09-23 17:21:26.427--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Searching for default mapping file in file:/C:/Users/Administrador/AppData/Roaming/JDeveloper/system11.1.1.1.33.54.07/o.j2ee/drs/HR_EJB_JPA_App/HR_EJB_JPA_App-EJBModel-ejb/
    [EL Finer]: 2009-09-23 17:21:26.481--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Searching for default mapping file in file:/C:/Users/Administrador/AppData/Roaming/JDeveloper/system11.1.1.1.33.54.07/o.j2ee/drs/HR_EJB_JPA_App/HR_EJB_JPA_App-EJBModel-ejb/
    [EL Config]: 2009-09-23 17:21:26.53--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.Departments] is set to [FIELD].
    [EL Config]: 2009-09-23 17:21:26.531--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.Departments] is being defaulted to: Departments.
    [EL Config]: 2009-09-23 17:21:26.531--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The table name for entity [class oracle.Departments] is being defaulted to: DEPARTMENTS.
    [EL Config]: 2009-09-23 17:21:26.534--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.Employees] is set to [FIELD].
    [EL Config]: 2009-09-23 17:21:26.535--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.Employees] is being defaulted to: Employees.
    [EL Config]: 2009-09-23 17:21:26.535--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The table name for entity [class oracle.Employees] is being defaulted to: EMPLOYEES.
    [EL Config]: 2009-09-23 17:21:26.543--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [private java.lang.String oracle.Employees.email] is being defaulted to: EMAIL.
    [EL Config]: 2009-09-23 17:21:26.544--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [private java.lang.Double oracle.Employees.salary] is being defaulted to: SALARY.
    [EL Config]: 2009-09-23 17:21:26.544--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to many mapping element [private java.util.List oracle.Departments.employeesList] is being defaulted to: class oracle.Employees.
    [EL Config]: 2009-09-23 17:21:26.544--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [private oracle.Departments oracle.Employees.departments] is being defaulted to: class oracle.Departments.
    [EL Config]: 2009-09-23 17:21:26.545--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [private oracle.Departments oracle.Employees.departments] is being defaulted to: DEPARTMENT_ID.
    [EL Config]: 2009-09-23 17:21:26.545--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [private oracle.Employees oracle.Departments.employees] is being defaulted to: class oracle.Employees.
    [EL Config]: 2009-09-23 17:21:26.545--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [private oracle.Employees oracle.Departments.employees] is being defaulted to: EMPLOYEE_ID.
    [EL Config]: 2009-09-23 17:21:26.545--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to many mapping element [private java.util.List oracle.Employees.departmentsList] is being defaulted to: class oracle.Departments.
    [EL Config]: 2009-09-23 17:21:26.546--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [private oracle.Employees oracle.Employees.employees] is being defaulted to: class oracle.Employees.
    [EL Config]: 2009-09-23 17:21:26.546--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [private oracle.Employees oracle.Employees.employees] is being defaulted to: EMPLOYEE_ID.
    [EL Config]: 2009-09-23 17:21:26.546--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to many mapping element [private java.util.List oracle.Employees.employeesList] is being defaulted to: class oracle.Employees.
    [EL Finer]: 2009-09-23 17:21:26.547--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Class [oracle.Departments] registered to be processed by weaver.
    [EL Finer]: 2009-09-23 17:21:26.547--ServerSession(30842787)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Class [oracle.Employees] registered to be processed by weaver.
    23/09/2009 05:21:34 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: Identificador de Aplicación : wsm-pm
    23/09/2009 05:21:34 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: "Servicios de Metadatos: Archivo de metadatos (MAR) no encontrado."
    23/09/2009 05:21:38 PM oracle.adf.share.config.ADFConfigFactory getInstance
    INFO: ADF Config instance implementation in use is : oracle.adf.share.config.MDSConfigFactory
    23/09/2009 05:21:46 PM oracle.adf.mbean.share.connection.ConnectionsRuntimeMXBeanImpl getNonCachedConnectionsContext
    INFO: Registering Connection Runtime MBean
    23/09/2009 05:21:46 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    23/09/2009 05:21:47 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    23/09/2009 05:21:47 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    <23/09/2009 05:21:50 PM COT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <23/09/2009 05:21:50 PM COT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00006. Log messages will continue to be logged in C:\Users\Administrador\AppData\Roaming\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <23/09/2009 05:21:50 PM COT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    23/09/2009 05:21:51 PM oracle.wsm.audit.Auditor <init>
    INFO: Created J2EE application auditor for componentType=oracle.security.jps.internal.audit.AuditServiceImpl$Auditor@213b6e
    23/09/2009 05:21:55 PM oracle.adf.share.config.ADFMDSConfig parseADFConfiguration
    INFO: Configuration file:/META-INF/adf-config.xmlcannot not be read by MDS. Reading directly from the classpath
    <23/09/2009 05:21:55 PM COT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <23/09/2009 05:21:55 PM COT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:246d:98bd:32fc:bf08:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:790b:d0ee:a329:57db:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:28a5:117:3611:5367:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:0:5efe:c0a8:66:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.102:7101 for protocols iiop, t3, ldap, snmp, http.>
    <23/09/2009 05:21:55 PM COT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <23/09/2009 05:21:55 PM COT> <Warning> <Server> <BEA-002611> <Hostname "Crht-PC", maps to multiple IP addresses: 192.168.0.102, fe80:0:0:0:246d:98bd:32fc:bf08%12, fe80:0:0:0:28a5:117:3611:5367%13>
    <23/09/2009 05:21:56 PM COT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <23/09/2009 05:21:56 PM COT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    [Running application Application9 on Server Instance DefaultServer...]
    DefaultServer startup time: 64580 ms.
    DefaultServer started.
    <23/09/2009 05:22:08 PM COT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Application9 is not versioned.>
    23/09/2009 05:22:08 PM JpsApplicationLifecycleListener Migrate Application Credential Store
    ADVERTENCIA: Overwriting credentials is allowed in application credential store migration with Weblogic server running in Development Mode and system property 'jps.app.credential.overwrite.allowed' set to true
    <23/09/2009 05:22:09 PM COT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1253744528059' for task '0'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(Application9-Project1-ejb)
    weblogic.application.ModuleException: Exception preparing module: EJBModule(Application9-Project1-ejb)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:454)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    Exception [EclipseLink-28010] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: PersistenceUnitInfo Project1 has transactionType JTA, but doesnt have jtaDataSource.
         at org.eclipse.persistence.exceptions.EntityManagerSetupException.jtaPersistenceUnitInfoMissingJtaDataSource(EntityManagerSetupException.java:154)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:798)
         at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:216)
         at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:343)
         at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:323)
         Truncated. see log file for complete stacktrace
    >
    <23/09/2009 05:22:09 PM COT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'Application9'.>
    <23/09/2009 05:22:09 PM COT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(Application9-Project1-ejb)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:454)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    Exception [EclipseLink-28010] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: PersistenceUnitInfo Project1 has transactionType JTA, but doesnt have jtaDataSource.
         at org.eclipse.persistence.exceptions.EntityManagerSetupException.jtaPersistenceUnitInfoMissingJtaDataSource(EntityManagerSetupException.java:154)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:798)
         at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:216)
         at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:343)
         at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:323)
         Truncated. see log file for complete stacktrace
    >
    [05:22:09 PM] Weblogic Server Exception: weblogic.application.ModuleException: Exception preparing module: EJBModule(Application9-Project1-ejb)
    [05:22:09 PM] Caused by: java.lang.Throwable: Substituted for missing class Exception [EclipseLink-28010] (Eclipse Persistence Services - 1.1.1.v20090430-r4097) - org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: PersistenceUnitInfo Project1 has transactionType JTA, but doesnt have jtaDataSource.
    [05:22:09 PM] See server logs or server console for more details.
    oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: Deployment Failed[05:22:10 PM] #### Deployment incomplete. ####
    oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:341)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:235)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:442)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$6$1.run(AdrsStarter.java:1469)
    Caused by: oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:483)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:332)
         ... 11 more
    Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:465)
         ... 12 more
    #### Cannot run application Application9 due to error deploying to DefaultServer.
    [Application Application9 stopped and undeployed from Server Instance DefaultServer]
    Please help me!!
    thnks!!

  • Error in jdeveloper11

    when i running my application show me this error and i can not understand what i do to solve its
    D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
    WLS Start Mode=Development
    CLASSPATH=;D:\JDEVEL~2\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\JDEVEL~2\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\JDEVEL~2\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\JDEVEL~2\JDK160~1\lib\tools.jar;D:\JDEVEL~2\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\JDEVEL~2\WLSERV~1.3\server\lib\weblogic.jar;D:\JDEVEL~2\modules\features\weblogic.server.modules_10.3.0.0.jar;D:\JDEVEL~2\WLSERV~1.3\server\lib\webservices.jar;D:\JDEVEL~2\modules\ORGAPA~1.5/lib/ant-all.jar;D:\JDEVEL~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;D:\JDeveloper11\jdeveloper\modules\features\adf.share_11.1.1.jar;;D:\JDEVEL~2\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;D:\JDEVEL~2\WLSERV~1.3\server\lib\xqrl.jar;;
    PATH=D:\JDEVEL~2\patch_wls1030\profiles\default\native;D:\JDEVEL~2\patch_jdev1111\profiles\default\native;D:\JDEVEL~2\patch_cie660\profiles\default\native;D:\JDEVEL~2\WLSERV~1.3\server\native\win\32;D:\JDEVEL~2\WLSERV~1.3\server\bin;D:\JDEVEL~2\modules\ORGAPA~1.5\bin;D:\JDEVEL~2\JDK160~1\jre\bin;D:\JDEVEL~2\JDK160~1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\JDEVEL~2\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
    Starting WLS with line:
    D:\JDEVEL~2\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=D:\JDEVEL~2\WLSERV~1.3 -Dwls.home=D:\JDEVEL~2\WLSERV~1.3\server -Dweblogic.home=D:\JDEVEL~2\WLSERV~1.3\server -Ddomain.home=D:\JDEVEL~2\JDEVEL~1\system\SYSTEM~1.56\DEFAUL~1 -Doracle.home=D:\JDeveloper11\jdeveloper -Doracle.security.jps.config=D:\JDEVEL~2\JDEVEL~1\system\SYSTEM~1.56\DEFAUL~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=D:\JDEVEL~2\patch_wls1030\profiles\default\sysext_manifest_classpath;D:\JDEVEL~2\patch_jdev1111\profiles\default\sysext_manifest_classpath;D:\JDEVEL~2\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=DefaultServer -Djava.security.policy=D:\JDEVEL~2\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    <05/11/2008 PST 08:35:42 ص> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    D:\JDeveloper11\patch_wls1030\profiles\default\sysext_manifest_classpath\weblogic_ext_patch.jar;D:\JDeveloper11\wlserver_10.3\L10N\beehive_ja.jar;D:\JDeveloper11\wlserver_10.3\L10N\beehive_ko.jar;D:\JDeveloper11\wlserver_10.3\L10N\beehive_zh_CN.jar;D:\JDeveloper11\wlserver_10.3\L10N\beehive_zh_TW.jar;D:\JDeveloper11\wlserver_10.3\L10N\p13n_wls_ja.jar;D:\JDeveloper11\wlserver_10.3\L10N\p13n_wls_ko.jar;D:\JDeveloper11\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;D:\JDeveloper11\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;D:\JDeveloper11\wlserver_10.3\L10N\testclient_ja.jar;D:\JDeveloper11\wlserver_10.3\L10N\testclient_ko.jar;D:\JDeveloper11\wlserver_10.3\L10N\testclient_zh_CN.jar;D:\JDeveloper11\wlserver_10.3\L10N\testclient_zh_TW.jar;D:\JDeveloper11\wlserver_10.3\L10N\tuxedocontrol_ja.jar;D:\JDeveloper11\wlserver_10.3\L10N\tuxedocontrol_ko.jar;D:\JDeveloper11\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;D:\JDeveloper11\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;D:\JDeveloper11\wlserver_10.3\L10N\workshop_ja.jar;D:\JDeveloper11\wlserver_10.3\L10N\workshop_ko.jar;D:\JDeveloper11\wlserver_10.3\L10N\workshop_zh_CN.jar;D:\JDeveloper11\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <05/11/2008 PST 08:35:43 ص> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
    <05/11/2008 PST 08:35:44 ص> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for CR380042 Thu Sep 11 13:33:40 PDT 2008
    WebLogic Server Temporary Patch for 7372756 Fri Sep 12 17:05:44 EDT 2008
    WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
    <05/11/2008 PST 08:35:48 ص> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <05/11/2008 PST 08:35:48 ص> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <05/11/2008 PST 08:35:48 ص> <Notice> <Log Management> <BEA-170019> <The server log file D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <05/11/2008 PST 08:35:58 ص> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <05/11/2008 PST 08:36:07 ص> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'D:\JDEVEL~2\WLSERV~1.3\server\lib\uddi.war'.>
    <05/11/2008 PST 08:36:07 ص> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'D:\JDEVEL~2\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <05/11/2008 PST 08:36:11 ص> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <05/11/2008 PST 08:36:11 ص> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <05/11/2008 PST 08:36:13 ص> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <05/11/2008 PST 08:36:13 ص> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <05/11/2008 PST 08:36:13 ص> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <05/11/2008 PST 08:36:13 ص> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <05/11/2008 PST 08:36:13 ص> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <05/11/2008 PST 08:36:13 ص> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <05/11/2008 PST 08:36:13 ص> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 48969 ms.
    DefaultServer started.
    [Running application MobileService on Server Instance DefaultServer...]
    Uploading credentials.
    ---- Deployment started. ---- Nov 5, 2008 8:36:32 AM
    Target platform is (Weblogic 10.3).
    Running dependency analysis...
    2008-11-05 08:36:32.139: Writing WAR file to D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\MobileService\MobileService-ViewController-webapp
    2008-11-05 08:36:32.218: Wrote WAR file to D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\MobileService\MobileService-ViewController-webapp
    2008-11-05 08:36:32.233: Writing EJB JAR file to D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\MobileService\MobileService-Model-ejb
    2008-11-05 08:36:32.249: Wrote EJB JAR file to D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\MobileService\MobileService-Model-ejb
    2008-11-05 08:36:35.093: Writing EAR file to D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\MobileService
    2008-11-05 08:36:35.139: Wrote EAR file to D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\MobileService
    Deploying Application...
    <05/11/2008 PST 08:36:39 ص> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application MobileService is not versioned.>
    05/11/2008 08:36:48 ص oracle.as.jmx.framework.PortableMBeanFactory setJMXFrameworkProviderClass
    INFO: JMX Portable Framework initialized with platform SPI "class oracle.as.jmx.framework.wls.spi.JMXFrameworkProviderImpl"
    <05/11/2008 PST 08:36:53 ص> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1225902998358' for task '0'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(MobileService-Model-ejb)
    weblogic.application.ModuleException: Exception preparing module: EJBModule(MobileService-Model-ejb)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class org.mobile.persistence.ServiceHistories] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1245)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1173)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:486)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:443)
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:303)
         Truncated. see log file for complete stacktrace
    >
    <05/11/2008 PST 08:36:53 ص> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'MobileService'.>
    <05/11/2008 PST 08:36:53 ص> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(MobileService-Model-ejb)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
         Truncated. see log file for complete stacktrace
    Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class org.mobile.persistence.ServiceHistories] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1245)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1173)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:486)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:443)
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:303)
         Truncated. see log file for complete stacktrace
    >
    [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application MobileService on DefaultServer.: Exception preparing module: EJBModule(MobileService-Model-ejb)
    weblogic.application.ModuleException: Exception preparing module: EJBModule(MobileService-Model-ejb)
    #### Deployment incomplete. #### Nov 5, 2008 8:36:53 AM
    oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:247)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:157)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:436)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$4$1.run(AdrsStarter.java:1316)
    Caused by: oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:413)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:238)
         ... 11 more
    Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:395)
         ... 12 more
    #### Cannot run application MobileService due to error deploying to DefaultServer.
    [Application MobileService stopped and undeployed from Server Instance DefaultServer]

    Look at the part of your stack trace ...
    Exception Description: Entity class [class org.mobile.persistence.ServiceHistories] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.This tells you that one of your beans does not have a PK filed. Try correcting this before deploying the app again.
    By the way, it helps if you give us more infromation about the technology stack you are using.
    Timo

  • Error Message - java.lang.LinkageError: loader constraint violation

    Hi
    I get the following errormessage if I try to apply a more recent build of the JPA Toplink Essentials.
    If I use the glassfish-persistence-installer-v2-b45.jar all things work fine, but if a try to upgrade my program will fail. I tried the glassfish-persistence-installer-v2-b54.jar, all also tried all builds between?!
    I have no idea how I may resolve the problem?!
    Any ideas?
    Thanks
    Marcel
    (I am using Java 6, Netbeans 5.5)
    Exception in thread "AWT-EventQueue-0" java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "DatenStruktur.ConditionBasic.getCouplingElement()LDatenStruktur/CouplingElement;" the class loader (instance of oracle/toplink/essentials/internal/ejb/cmp3/JavaSECMPInitializer$TempEntityLoader) of the current class, DatenStruktur/ConditionBasic, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface DatenStruktur/Conditionable have different Class objects for the type DatenStruktur/CouplingElement used in the signature
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
    at java.lang.Class.getDeclaredFields(Class.java:1743)
    at oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getDeclaredFields(PrivilegedAccessHelper.java:204)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.getFields(MetadataHelper.java:443)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescriptor.usesPropertyAccess(MetadataDescriptor.java:1081)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessors(ClassAccessor.java:564)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:498)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.MetadataAccessor.processAccessor(MetadataAccessor.java:514)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processTableAndInheritance(ClassAccessor.java:1388)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:484)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:240)
    at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:600)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:169)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:237)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:253)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:140)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java):96)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java):73)
    at MainProgramManagement.ProgramMain.getEntityManagerFactory(ProgramMain.java:347)
    at MainProgramManagement.ProgramMain.persistData(ProgramMain.java:788)

    upgrade to cf8, which supports jdk 1.6.
    mx7 does not support 1.5 or 1.6
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • After downgrade from weblogic 10.3.2 to 10.3.1 i get ValidationException

    hi all,
    i am using JPA with weblogic 10.3.1.
    at first we used weblgoic 10.3.2 and unfortunately we need to downgrade to 10.3.1.
    Then i get the following exception
    <Jan 20, 2010 2:32:53 PM SGT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request w
    ith ID '1263969169713' for task '0'. Error is: 'weblogic.management.DeploymentException: '
    weblogic.management.DeploymentException:
    at weblogic.application.internal.flow.JpaFlow.prepare(JpaFlow.java:44)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:609)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:185)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:53)
    Truncated. see log file for complete stacktrace
    Exception [EclipseLink-7244] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.
    ValidationException
    Exception Description: An incompatible mapping has been encountered between [class sg.com.stee.stars21.cu.entity.TeamMem
    ber] and [class sg.com.stee.stars21.cu.entity.RegistrationAuthority]. This usually occurs when the cardinality of a mapp
    ing does not correspond with the cardinality of its backpointer.
    at org.eclipse.persistence.exceptions.ValidationException.invalidMapping(ValidationException.java:1142)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToOneAccessor.process(OneToOneAccessor.ja
    va:101)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.processRelationship(Rel
    ationshipAccessor.java:362)
    at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processAccessorsWithRelationships(MetadataProje
    ct.java:645)
    at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.process(MetadataProject.java:634)
    Truncated. see log file for complete stacktrace
    >
    <Jan 20, 2010 2:32:53 PM SGT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for
    With Regards,
    WP

    hi,
    Thanks for reply. here is my two class and mapping.
    it is suppose to be one to one mapping. and it is working fine on 10.3.2. i think 10.3.1 do validation. but i have no idea how they really validate this two class.
    with Regards,
    WP
    @Entity
    @NamedQueries({
    @NamedQuery(name = "TeamMember.findAll", query = "select o from TeamMember o")
    , @NamedQuery(name = "TeamMember.findByMemberId", query = "select o from TeamMember o where o.memberId=:p_memberId")
    @Table(name = "TEAM_MEMBER")
    public class TeamMember implements Serializable, ISTARS21Entity {
    @SequenceGenerator(name = "TEAM_MEMBER_GEN", sequenceName = "TEAM_MEMBER_SEQ", initialValue = 1, allocationSize = 1)
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TEAM_MEMBER_GEN")
    @Column(name="MEMBER_ID", nullable = false)
    private Long memberId;
    @Column(length = 4000)
    private String name;
    @ManyToOne
    @JoinColumn(name = "TEAM_ID")
    private Team team;
    *@OneToOne(mappedBy = "teamMember")*
    private RegistrationAuthority registrationAuthority;
    public TeamMember() {
    @Column(name="AMETHOD_BATCH", length = 100)
    private String amethodBatch;
    @Column(name="AMETHOD_HDB", length = 100)
    private String amethodHdb;
    @Column(name="AMETHOD_PRIVATE", length = 100)
    private String amethodPrivate;
    @Column(name="CT_ISSUE", length = 100)
    private String ctIssue;
    @Column(name="PROCESS_CAVEAT_BATCH", length = 100)
    private String processCaveatBatch;
    @Column(name="PROCESS_CAVEAT_NORMAL", length = 100)
    private String processCaveatNormal;
    @Column(name="SMETHOD_BATCH", length = 100)
    private String smethodBatch;
    @Column(name="SMETHOD_HDB", length = 100)
    private String smethodHdb;
    @Column(name="SMETHOD_PRIVATE", length = 100)
    private String smethodPrivate;
    @Column(name="USUAL_BATCH", length = 100)
    private String usualBatch;
    @Column(name="USUAL_HDB", length = 100)
    private String usualHdb;
    @Column(name="USUAL_PRIVATE", length = 100)
    private String usualPrivate;
    @Column(length = 100)
    private String withdraw;
    *@Id*
    *@OneToOne*
    *@JoinColumn(name = "MEMBER_ID")*
    private TeamMember teamMember;
    }

  • OneToMany Mapping Exception - can anybody help

    SEVERE: >>java.lang.ExceptionInInitializerError: null
    javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionException Description: predeploy for PersistenceUnit [dmsPU] failed.
    Internal Exception: Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
    oracle.toplink.essentials.exceptions.EntityManagerSetupException: Exception Description: predeploy for PersistenceUnit [dmsPU] failed.
    Internal Exception: Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
    Local Exception Stack:
    Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
         at oracle.toplink.essentials.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1118)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNoMappedByAttributeFound(MetadataValidator.java:297)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.getOwningMapping(RelationshipAccessor.java:127)

    @Entity
    @Table(name = "m_part", catalog = "dms_dev")
    public class MPart implements java.io.Serializable {
         // Fields
         private static final long serialVersionUID = -7784550511312653300L;
         private Integer partPk;
         private MWarehouse warehouse;
         private String partNo;
         private String venderPartNo;
         private String partName;
         private Integer group2;
         private Integer issueUom;
         private Integer purchaseUom;
         private String warrantyAppl;
         private String returnable;
         private String salvageValue;
         private Double mrp;
         private Double ndp;
         private Double venderPrice;
         private String partLocation;
         private Double stockInHand;
         private Double minQty;
         private Double openQty;
         private String decsription;
         private Integer crtBy;
         private Date crtDt;
         private Integer updBy;
         private Date updDt;
         private Integer partGroup;
         private Set<TReqApprDtl> reqApprDtls = new HashSet<TReqApprDtl>(0);
         private Set<TPcrInfo> pcrInfos = new HashSet<TPcrInfo>(0);
         private Set<TPoReceive> poReceives = new HashSet<TPoReceive>(0);
         private Set<MPackageparts> packagepartses = new HashSet<MPackageparts>(0);
         private Set<TPoReturn> poReturns = new HashSet<TPoReturn>(0);
         private Set<TAncillaryDtls> ancillaryDtlses = new HashSet<TAncillaryDtls>(0);
         private Set<TPoDetails> poDetailses = new HashSet<TPoDetails>(0);
         // Constructors
         /** default constructor */
         public MPart() {
    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "part")
         public Set<MPackageparts> getMPackagepartses() {
              return this.packagepartses;
         public void setMPackagepartses(Set<MPackageparts> packagepartses) {
              this.packagepartses = packagepartses;
    @Entity
    @Table(name = "m_packageparts", catalog = "dms_dev")
    public class MPackageparts implements java.io.Serializable {
         // Fields
         private static final long serialVersionUID = -3528271808797143260L;
         private Integer packagePartPk;
         private MPart part;
         private MComplaint complaint;
         private Double reqQuantity;
         private Integer crtBy;
         private Date crtDt;
         private Integer updBy;
         private Date updDt;
         // Constructors
         /** default constructor */
         public MPackageparts() {
    @ManyToOne(fetch = FetchType.EAGER)
         @JoinColumn(name = "PART_PK", nullable = false)
         public MPart getMPart() {
              return this.part;
         public void setMPart(MPart part) {
              this.part = part;
    Yes it is mentioned as ManyToOne mapping.

  • Sybase JDBC Connection - OWB11gr2 Issue

    Hi All,
    We are uning OWB11gr2 on 64-bit linux box. Database is Oracle 11.1.0.6. We are trying to connect to Sybase database is ASA 9.0.
    Added the JAR files "jconn2.jar" and "jodbc.jar" under OWB_HOME/owb/lib/ext.
    Restarted Control Centre Agent and OWB client.
    Created a new platform for Sybase database connection.
    Under location Details -
    I entered Username and Password.
    Port Number of the database.
    I kept Schema option Blank.
    Driver Class - com.sybase.jdbc2.jdbc.SysDriver
    Url - jdbc:sybase:Tds:machine-name:port-number/databasename
    When I hit the test connection button it returns as Successful.
    But When i try to import database objects , I cannot see any database objects.
    After testing connection(successfully) when i hit the browse button to get schema names i get the following error -
    Failed: java.sql.SQLException:jZ0sj:Metadata accessor information was not found on this database. Please install the required tables as mentioned in the jconnect documentation.
    What could be the issue ?? I am not sure whether this problem is related to OWB or Sybase.
    When I use the ODBC connection on windows box with same username and password for the same database i see few views and tables.
    Any help is appreciated.
    Regards,
    Samurai.

    Hi David,
    I just edited the script. Since there are no tables( user just has read rights over few views) for the user I am trying to run , i modified the script to run against the views.
    The following is the output for the view which had the text column -
    DataType : varchar Column : nfsExportName Table : nfsExportView
    DataType : varchar Column : nfsExportActualPath Table : nfsExportView
    DataType : varchar Column : nfsExportAnonymousUserID Table : nfsExportView
    DataType : varchar Column : nfsExportNoSUID Table : nfsExportView
    DataType : long varchar Column : nfsExportReadOnlyAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportReadWriteAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportRootAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportSecurity Table : nfsExportView
    DataType : unsigned int Column : nfsExportHostId Table : nfsExportView
    DataType : unsigned int Column : nfsExportVolId Table : nfsExportView
    DataType : unsigned int Column : nfsExportQtreeId Table : nfsExportView
    If you need the entire output please let me know , i will paste it.
    It looks like text is subsititued by long varchar. What can be done to overcome this situation ?
    Thanks,
    Samurai.

  • Composite Primary Key Mapping error

    I have the following code:
    public class PreviousStepEJB3PK implements Serializable {
    private static final long serialVersionUID = 3024775815042084864L;
    public Long id;
    public Long previousId;
    public PreviousStepEJB3PK() {
    public PreviousStepEJB3PK(Long id, Long previousId) {
    this.id = id;
    this.previousId = previousId;
    public boolean equals(Object other) {
    if (other instanceof PreviousStepEJB3PK) {
    final PreviousStepEJB3PK otherPreviousStepPK = (PreviousStepEJB3PK) other;
    final boolean areEqual = (otherPreviousStepPK.id.equals(id) && otherPreviousStepPK.previousId.equals(previousId));
    return areEqual;
    return false;
    public int hashCode() {
    return super.hashCode();
    @Entity
    @Table(name = "OS_CURRENTSTEP_PREV")
    @NamedQuery(name = "findById",
         query = "select object(o) from PreviousCurrentStepEJB3 o where o.id = ?1")
    @IdClass(PreviousStepEJB3PK.class)
    public class PreviousCurrentStepEJB3 implements Serializable {
    private static final long serialVersionUID = 1717698904412346878L;
    @Id
    @Column(name = "ID", nullable = false)
    private Long id;
    @Id
    @Column(name = "PREVIOUS_ID", nullable = false)
    private Long previousId;
    public PreviousCurrentStepEJB3() {
    I´m using eclipse to deploy my application over an OC4J. When I launch the deploy I have the following error:
    07/07/05 11:42:47 Caused by: Exception [TOPLINK-7150] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Invalid composite primary key specification. The names of the primary key fields or properties in the primary key class [ar.com.eds.mcd.fawkes.model.PreviousStepEJB3PK] and those of the entity bean class [class ar.com.eds.mcd.fawkes.model.PreviousCurrentStepEJB3] must correspond and their types must be the same. Also, ensure that you have specified id elements for the corresponding attributes in XML and/or an @Id on the corresponding fields or properties of the entity class.
    07/07/05 11:42:47      at oracle.toplink.essentials.exceptions.ValidationException.invalidCompositePKSpecification(ValidationException.java:995)
    07/07/05 11:42:47      at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwInvalidCompositePKSpecification(MetadataValidator.java:119)
    07/07/05 11:42:47      at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.validatePrimaryKey(ClassAccessor.java:1463)
    07/07/05 11:42:47      at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:463)
    07/07/05 11:42:47      at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:196)
    07/07/05 11:42:47      at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.processORMetadata(EntityManagerSetupImpl.java:993)
    07/07/05 11:42:47      at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:501)
    07/07/05 11:42:47      at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:152)

    I ran into a similar problem. I was able to work around it by putting the @Id annotations on the accessors for the primary key fields rather than on the fields themselves. This seems like a bug to me.

  • JPA Generic entities classes Mappedsuperclass are not possible!

    Hi,
    I have came to understand this:
    You can use generics with fields in a class, but you cannot make the class generic or a collection in a generic form. I hope that I stated what I wanted correctly.
    This is the normal generics known to JPA!
    public class MyEntity{
    @OneToMany
    List<OtherEntity> others;But the next is not allowed!
    public class MyEntity<T extends OtherEntity>{
    @OneToMany List<T> other;
    }Please comment on this if this is true or false, as I have encountered this error while trying the same!
    I am using Toplink for a desktop Application
    Thank you
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named Access1: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
    oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Local Exception Stack:
    Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@fabe9
    Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Access1] failed.
    Internal Exception: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
            at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
            at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
            at edu.acis.ccms.ui.MainRMIServerInterface.connectDB(MainRMIServerInterface.java:342)
            at edu.acis.ccms.ui.MainRMIServerInterface.<init>(MainRMIServerInterface.java:102)
            at edu.acis.ccms.ui.MainRMIServerInterface.main(MainRMIServerInterface.java:1804)
            at edu.acis.ccms.main.Main.runCCMSServer(Main.java:18)
            at edu.acis.ccms.main.Main.main(Main.java:35)
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Access1] failed.
    Internal Exception: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:643)
            at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:171)
            at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
            at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
            at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
            ... 7 more
    Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Access1] failed.
    Internal Exception: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
            at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
            ... 12 more
    Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.objects.MetadataAccessibleObject.getRawClass(MetadataAccessibleObject.java:120)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.isEmbedded(MetadataHelper.java:732)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.buildAccessor(ClassAccessor.java:193)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessorFields(ClassAccessor.java:541)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessors(ClassAccessor.java:567)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processMappedSuperclass(ClassAccessor.java:1128)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.MappedSuperclassAccessor.process(MappedSuperclassAccessor.java:63)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processMappedSuperclasses(ClassAccessor.java:1138)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:495)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:240)
            at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
            ... 11 moreEdited by: hmulhim on Feb 27, 2008 3:00 AM
    Edited by: hmulhim on Feb 27, 2008 3:01 AM

    No you will be unable to make the Entities generic. The provider will be unable to map the relationship to the specific type defined by the generic definition as this type is assigned when the Entity is created in code not where the Entity is defined. Remember when designating Generics the Collection (in this case) is limited only to those types. The Provider can not possibly be this restrictive on a per Entity instance basis. In some cases changing the type may result in entirely different tables being mapped for a single Entity instance and that is definitely not supported.
    Having said that this is a pretty poor exception that I will file a bug for.
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Deploing an ejb project

    i have an application wich contain a jsp and servlet project, then i create in this application an ejb project which contain an ejb entity and ejb session but when i run'it whith oc4j both of this project: a jsp page or an ejb session don't be executed and the error is:
    11 mai 2007 11:45:01 com.evermind.server.ejb.logging.EJBMessages logException
    GRAVE: [current-workspace-app] Une erreur s'est produite lors du déploiement du module EJB : com.evermind.server.ejb.exception.DeploymentException: [current-workspace-app:PFE_Project_EJB_0] - Exception lors de la création de EntityManagerFactory utilisant la classe PersistenceProvider oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider pour l'unité de persistance Project_EJB.
    com.evermind.server.ejb.exception.DeploymentException: [current-workspace-app:PFE_Project_EJB_0] - Exception lors de la création de EntityManagerFactory utilisant la classe PersistenceProvider oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider pour l'unité de persistance Project_EJB.
         at com.evermind.server.ejb.exception.DeploymentException.exceptionCreatingEntityManagerFactory(DeploymentException.java:130)
         at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.createContainerEntityManagerFactory(PersistenceUnitManagerImpl.java:197)
         at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initializePersistenceUnit(PersistenceUnitManagerImpl.java:159)
         at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initialize(PersistenceUnitManagerImpl.java:86)
         at com.evermind.server.ejb.EJBPackageDeployment.initializePersistenceUnitManager(EJBPackageDeployment.java:1022)
         at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:845)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:217)
         at com.evermind.server.Application.setConfig(Application.java:439)
         at com.evermind.server.Application.setConfig(Application.java:340)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1853)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1608)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:990)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-7161] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Entity class [class project_ejb.Test] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass.
         at oracle.toplink.essentials.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1112)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNoPrimaryKeyAnnotationsFound(MetadataValidator.java:210)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.validatePrimaryKey(ClassAccessor.java:1470)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:463)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:196)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.processORMetadata(EntityManagerSetupImpl.java:993)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:501)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:152)
         at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.createContainerEntityManagerFactory(PersistenceUnitManagerImpl.java:192)
         ... 12 more
    07/05/11 11:45:01 ATTENTION: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.
    java.lang.InstantiationException: Error initializing ejb-modules: [current-workspace-app:PFE_Project_EJB_0] - Exception lors de la création de EntityManagerFactory utilisant la classe PersistenceProvider oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider pour l'unité de persistance Project_EJB.
    11 mai 2007 11:45:01 com.evermind.server.ServerMessages warningApplicationInitializationFailed
    ATTENTION: Exception lors de l'initialisation de l'application déployée : current-workspace-app. Application: current-workspace-app is in failed state as initialization failed
    Please help me, this error stop me to continue my job

    Hi,
    I think your ejb doesn't contain primary key definition.
    From your exception:
    Caused by: Exception [TOPLINK-7161] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Entity class [class project_ejb.Test] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass.
    You can use the @Id annotation on the primary key field(s).
    For example:
    @Id
    @Column(name="INVOICE_NR", nullable = false)
    private Long invoiceNr;
    Regards,
    Kati

  • How to handle the error when using Connection.setAutoCommit()

    I use Jboss's datapool to realize the connection to Sybase
    Database.And after connected to the database I wrote "con.setAutoCommit(false)" then the error occured.
    The error is "java.sql.SQLException: JZ0SJ: Metadata accessor information was not found on this database. Please install the required tables as mention ed in the jConnect documentation."
    I think it is because there is something wrong with the
    configuration of the database but can not handle it .So please
    help me,thank you!

    I use Jboss's datapool to realize the connection to
    o Sybase
    Database.And after connected to the database I wrote
    "con.setAutoCommit(false)" then the error occured.
    The error is "java.sql.SQLException: JZ0SJ: Metadata
    a accessor information was not found on this database.
    Please install the required tables as mention ed in
    the jConnect documentation."
    I think it is because there is something wrong with
    th the
    configuration of the database but can not handle it
    .So please
    help me,thank you!Most likely it means that your either DB or JDBC driver doesn't
    support transactional approach, I mean: commit(), rollback() functions, so it reports setAutoCommit(false) as errorneous situation.
    Paul

  • Exception Description: Entity class [] has no primary key....

    Received the following error in jdeveloper - some info on how to fix would be greatly appreciated
    [EclipseLink/JPA Client] Adding Java options: -javaagent:C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar
    C:\Oracle\MiddlewareNew\jdk160_05\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\APP_CM_AUTONUM_GEN\.adf;C:\JDeveloper\mywork\APP_CM_AUTONUM_GEN\SAM_CM_AUTONUM_GEN\classes;C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.toplink_11.1.1\toplink.jar;C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.toplink_11.1.1\antlr.jar;C:\oracle\MiddlewareNew\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\oracle\MiddlewareNew\modules\javax.persistence_1.0.0.0_1-0.jar;C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar;C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar;C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar;C:\oracle\MiddlewareNew\modules\javax.jsf_1.2.0.0.jar;C:\oracle\MiddlewareNew\modules\javax.ejb_3.0.1.jar;C:\oracle\MiddlewareNew\modules\javax.enterprise.deploy_1.2.jar;C:\oracle\MiddlewareNew\modules\javax.interceptor_1.0.jar;C:\oracle\MiddlewareNew\modules\javax.jms_1.1.1.jar;C:\oracle\MiddlewareNew\modules\javax.jsp_1.1.0.0_2-1.jar;C:\oracle\MiddlewareNew\modules\javax.jws_2.0.jar;C:\oracle\MiddlewareNew\modules\javax.activation_1.1.0.0_1-1.jar;C:\oracle\MiddlewareNew\modules\javax.mail_1.1.0.0_1-1.jar;C:\oracle\MiddlewareNew\modules\javax.xml.soap_1.3.1.0.jar;C:\oracle\MiddlewareNew\modules\javax.xml.rpc_1.2.1.jar;C:\oracle\MiddlewareNew\modules\javax.xml.ws_2.1.1.jar;C:\oracle\MiddlewareNew\modules\javax.management.j2ee_1.0.jar;C:\oracle\MiddlewareNew\modules\javax.resource_1.5.1.jar;C:\oracle\MiddlewareNew\modules\javax.servlet_1.0.0.0_2-5.jar;C:\oracle\MiddlewareNew\modules\javax.transaction_1.0.0.0_1-1.jar;C:\oracle\MiddlewareNew\modules\javax.xml.stream_1.1.1.0.jar;C:\oracle\MiddlewareNew\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\oracle\MiddlewareNew\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\oracle\MiddlewareNew\wlserver_10.3\server\lib\weblogic.jar -javaagent:C:\oracle\MiddlewareNew\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar SAM.CMAUTONUMGENClient
    java.lang.reflect.InvocationTargetException
         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:597)
         at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
         at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
    Caused by: java.lang.reflect.InvocationTargetException
         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:597)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializerAgent.initializeFromAgent(JavaSECMPInitializerAgent.java:45)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializerAgent.premain(JavaSECMPInitializerAgent.java:38)
         ... 6 more
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [SAM_CM_AUTONUM_GEN] failed.
    Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.SamCmAutonumGen] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:870)
         at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:101)
         at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(JPAInitializer.java:149)
         at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(JPAInitializer.java:135)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initializeFromAgent(JavaSECMPInitializer.java:145)
         ... 12 more
    Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [SAM_CM_AUTONUM_GEN] failed.
    Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.SamCmAutonumGen] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:210)
         ... 17 more
    Caused by: Exception [EclipseLink-7161] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.SamCmAutonumGen] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then please make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1245)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1173)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:486)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:443)
    FATAL ERROR in native method: processing of -javaagent failed
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:303)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:830)
         ... 16 more
    Exception in thread "main" Process exited with exit code 1.

    Hi,
    you may want to try the J2EE forum here on OTN in case you don't get a sufficient answer to the problem.
    Frank

  • 3 issues with mapped-superclass

    I created a superclass for my entities which is a simple pojo with 4 properties. I mapped it in JPA with mapped-superclass.
    I want the 'ownerId' and 'created' fields to be read-only on the API, in other words, the pojo shouldn't have setters for those 2 fields.
    TLE objects violently to the absence of those setters. I throws a NPE (see below).
    Secondly, I decided I could live without the read-only requirement, so I put the setters on the pojo, set the mapping's access= to access="FIELD" so that the setters are not called. Out of curiosity, I threw exceptions in the setters just to make sure.
    TLE insists on calling the setters, regardless of the 'access' mode I choose. It's always PROPERTY access which is used. FIELD is ignored.
    So I can live with that too. However once I managed to deploy the whole JPA and started testing it, I realised the prePersist event listener isn't called as it is should be according to the mapping I defined. The prePersist callback is in the mapped-superclass entity mapping and calls a method on the superclass. However it isn't called.
    Does anybody here use mapped-superclass without trouble, or is there an example app out on the net demonstrating its use without issues?
    This is TLE build 58g-fcs, btw.
    Regards
    Adam
    java.lang.NullPointerException
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.objects.MetadataMethod.getSetMethodName(MetadataMethod.java:69)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.MetadataAccessor.getSetMethodName(MetadataAccessor.java:330)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.MetadataAccessor.setAccessorMethods(MetadataAccessor.java:575)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.processDirectToFieldMapping(BasicAccessor.java:182)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.process(BasicAccessor.java:160)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessor(ClassAccessor.java:528)
         at oracle.toplink.essentials.internal.ejb.cmp3.xml.accessors.XMLClassAccessor.processAccessors(XMLClassAccessor.java:371)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processMappedSuperclass(ClassAccessor.java:1128)
         at oracle.toplink.essentials.internal.ejb.cmp3.xml.accessors.XMLMappedSuperclassAccessor.process(XMLMappedSuperclassAccessor.java:67)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processMappedSuperclasses(ClassAccessor.java:1138)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:495)
         at oracle.toplink.essentials.internal.ejb.cmp3.xml.accessors.XMLClassAccessor.process(XMLClassAccessor.java:322)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processMappingFile(MetadataProcessor.java:568)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processMappingFiles(MetadataProcessor.java:533)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:368)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:171)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
         at javax.persistence.Persistence.createFactory(Persistence.java:172)

    https://glassfish.dev.java.net/issues/show_bug.cgi?id=4414

Maybe you are looking for

  • PO Profit Center is not coming in Goods Receipt

    Hi Gurus, 1. We are creating a PO with Account Assignment WBS and in line item we are able to see the Profit Center and this purchase order Account Assignment Category - Q (Proj. make-to-order). 2. In material master we dont have any Profit Center 3.

  • Thawte SSL certificate not trusted?

    I've been searching Google for solutions but haven't found anything. Had to enable SSL for the meeting server so that it would work from behind a firewall that was blocking the FMS. Bought a SSL123 certificate from a Thawte reseller. I installed it f

  • Best way to distribute configuration values to subVIs

    I have a main VI with ~10 subVIs, all of which have a number of default constants embedded. I want to change my architecture so that all the constants are moved to a single ASCII text file which is not changed during program execution. I'm trying to

  • Query on SAP Business Object and Content shipment..

    I know about SAP Business Suite... & SAP Business One... But what is : 1. SAP Business Object and 2. Content Shipment The definitions on the SAP Release & Maintenance Strategy and other docs on SDN were not too clear for my understanding. I want to k

  • My T61 reboots after i hybernate (while on AC power) - Help!

    I just purchased a new T61, which I'm very happy with. While my laptop is docked, if I hybernate, my PC shuts off and then automatically reboots. So I'm forced to hold down the power button on the dock in order to shut off my computer. Anyone else ex