TopLink in JDeveloper Tutorial
I am trying to find a tutorial to get me started using Toplink/EclipseLink/JPA in JDeveloper. I can't seem to find any step by step guide on how this is achieved.
Any tutorials I have found have been for the Eclipse IDE, not for JDeveloper.
Hi,
Check
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_51/jdtut_11r2_51_1.html
http://docs.oracle.com/cd/E16162_01/user.1112/e17455/dev_ejb_jpa.htm#OJDUG954
http://docs.oracle.com/cd/E12839_01/web.1111/b32441/jdev.htm
http://www.packtpub.com/article/building-ejb3-persistence-model-with-oracle-jdeveloper
Similar Messages
-
Jdeveloper tutorial for Toplink
Hi There,
I am a beginner to toplink using Jdeveloper 11g. Please provide me step by step guide or tutorial for creating EJB 3.0 using toplink in Jdeveloper 11g.
Awaiting for your kind reply.
ThanksHi,
Check
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_51/jdtut_11r2_51_1.html
http://docs.oracle.com/cd/E16162_01/user.1112/e17455/dev_ejb_jpa.htm#OJDUG954
http://docs.oracle.com/cd/E12839_01/web.1111/b32441/jdev.htm
http://www.packtpub.com/article/building-ejb3-persistence-model-with-oracle-jdeveloper -
Need one to many toplink+Jdeveloper tutorial with example
Hi
I need tutorial with example of one to many with Toplink+J developer
Thanks
Edited by: user11802935 on Aug 18, 2009 1:06 PMHi,
The following links should get you started.
EclipseLink JPA + Eclipse
http://wiki.eclipse.org/EclipseLink/Examples/JPA
JDeveloper tutorials
http://www.oracle.com/technology/products/jdev/index.html
TopLink + JDeveloper tutorial
http://www.oracle.com/technology/obe/obe11jdev/bulldog/ejb_jpa_jsf/ejb.html
@OneToMany documentation
http://wiki.eclipse.org/Introduction_to_EclipseLink_JPA_%28ELUG%29#.40OneToMany
thank you
/michael
www.eclipselink.org -
Oracle TopLink 10g Introductory Tutorial: No Table Reference available
Hi,
I'm trying to work through the Oracle TopLink 10g Introductory Tutorial (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm).
At the point 'Map the Java Classes: Create One-to-One Mappings' (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm) I'm not able to select a table reference because there is no one available.
As result i get the following message after generating 'Mapping Status Report':
TopLink Map 'tut01Map' -> One of the packages is incomplete.
Package example.model -> One of the descriptors in this package is incomplete.
Descriptor Employee -> Some mappings are incomplete.
Mapping address -> No table reference is selected.
Mapping address -> Table reference is invalid because of the target table chosen.
Mapping version -> Mapping references write lock field stored in cache, but is not read-only.
Mapping phoneNumbers -> No table reference is selected.
Mapping phoneNumbers -> Table reference is invalid because of the target table chosen.
Descriptor PhoneNumber -> Some mappings are incomplete.
Descriptor PhoneNumber -> The following primary key fields are unmapped: EMP_ID
Descriptor PhoneNumber -> The following primary key fields have no writable mappings: EMP_ID
Mapping owner -> No table reference is selected.
Mapping owner -> Table reference is invalid because of the target table chosen.
End TopLink Map 'tut01Map'
Did I make a mistake or is there a wrong configuration? Please help.
I'm using:
JDeveloper 10.1.3.2.0
MySQL 5.0.33 with Connector/J 5.0.5
Windows XP
Thanks, TGau
Message was edited by:
TGau
UpdateYes I did. But my database storage engine is set to MyISAM which don't support foreign keys. So this 'error' results from database configuration (Info: InnoDB do support foreign keys).
I'm wondering why the queries didn't throw any errors. So the foreign key/reference part was just skipped.
Thank you very much, rsapir.
PS:
How can I configure configure 'application side' references/associations? It is described in the TopLink Developers Guide on site 34-10 ... but I have no Add/New Buttons? -
JDeveloper tutorial fails with java.sql.SQLException: ORA-00600
In following the steps to the JDeveloper tutorial, after I successfully created and tested my connections, I proceeded on to run ImageLoader.java (Under DatabaseSetup.jws), and it returns an exception. The debug output log is as follows:
Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.properties");
[00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
[01] CommonMessageBundle (language base) being initialized
[02] Stringmanager using default locale: 'null'
[03] BC4JDeployPlatform: LOCAL
[04] Propertymanager: searching for file and system based properties
[05] {{ begin Loading BC4J properties
[06] -----------------------------------------------------------
[07] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
[08] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
[09] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
[10] Skipping empty Property ConnectionMode from System Default
[11] Skipping empty Property HostName from System Default
[12] Skipping empty Property ConnectionPort from System Default
[13] Skipping empty Property ApplicationPath from System Default
[14] Skipping empty Property java.naming.security.principal from System Default
[15] Skipping empty Property java.naming.security.credentials from System Default
[16] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
[17] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
[18] BC4J Property jbo.pers.max.active.nodes='10' -->(SessionImpl) from System Default
[19] BC4J Property jbo.pcoll.mgr='oracle.jbo.pcoll.OraclePersistManager' -->(SessionImpl) from System Default
[20] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
[21] Skipping empty Property JBODynamicObjectsPackage from System Default
[22] BC4J Property MetaObjectContextFactory='oracle.jbo.server.xml.DefaultMomContextFactory' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[23] BC4J Property MetaObjectContext='oracle.jbo.server.xml.XMLContextImpl' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[24] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
[25] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[26] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
[27] Skipping empty Property HandleName from System Default
[28] Skipping empty Property Factory-Substitution-List from System Default
[29] Skipping empty Property jbo.project from System Default
[30] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
[31] BC4J Property jbo.dofailover='true' -->(MetaObjectManager) from System Default
[32] BC4J Property jbo.doconnectionpooling='false' -->(MetaObjectManager) from System Default
[33] BC4J Property jbo.recyclethreshold='10' -->(MetaObjectManager) from System Default
[34] BC4J Property jbo.passivationstore='null' -->(MetaObjectManager) from System Default
[35] BC4J Property RELEASE_MODE='Reserved' -->(MetaObjectManager) from System Default
[36] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
[37] Skipping empty Property PoolClassName from System Default
[38] BC4J Property jbo.maxpoolsize='2147483647' -->(MetaObjectManager) from System Default
[39] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
[40] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
[41] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
[42] BC4J Property jbo.SQLBuilder='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[43] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
[44] BC4J Property jbo.TypeMapEntries='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
[45] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
[46] BC4J Property oracle.jbo.defineColumnLength='true' -->(MetaObjectManager) from System Default
[47] Skipping empty Property jbo.tmpdir from System Default
[48] Skipping empty Property jbo.server.internal_connection from System Default
[49] Skipping empty Property SessionClass from System Default
[50] Skipping empty Property TransactionFactory from System Default
[51] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
[52] BC4J Property jbo.debug.prefix='DBG' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[53] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[54] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[55] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[56] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[57] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[58] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
[59] BC4J Property jbo.ejb.txntimeout='60' -->(SessionImpl) from System Default
[60] BC4J Property jbo.ejb.txntype='global' -->(MetaObjectManager) from System Default
[61] Skipping empty Property oracle.jbo.schema from System Default
[62] WARNING: Unused property: LC='Calling Function' found in /oracle/jbo/common/Diagnostic.properties resource
[63] }} finished loading BC4J properties
[64] -----------------------------------------------------------
Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
[65] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
[66] JavaVMVersion: 1.2.351 odv
[67] JavaVMVendor: Oracle Corp.
[68] JavaVMName: OJVM VM
[69] OperatingSystemName: Windows NT
[70] OperatingSystemVersion: 5.0
[71] OperatingSystemUsername: Administrator
[72] Connected to Oracle JBO Server - Version: 3.2.9.76.3
[73] {{+++ id=10000 type: 'BC4J_CREATE_ROOTAM' Create Root Application Module 'ImageLoader.ImageLoaderModule'
[74] {{+++ id=10001 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.ImageLoaderModule
[75] {{+++ id=10002 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.ImageLoader
[76] Loading from /ImageLoader/ImageLoader.xml file
[77] Loading from indvidual XML files
[78] Loading the Containees for the Package 'ImageLoader.ImageLoader'.
[79] }}+++ End Event10003 null
[80] Loading from /ImageLoader/ImageLoaderModule.xml file
[81] }}+++ End Event10002 null
[82] {{+++ id=10003 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.InventoryItem1View
[83] Loading from /ImageLoader/InventoryItem1View.xml file
[84] ViewObjectImpl's default fetch mode = 0
[85] {{+++ id=10004 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.InventoryItem
[86] Loading from /ImageLoader/InventoryItem.xml file
[87] Loading Typemap entries from oracle.jbo.server.OracleTypeMapEntries
[88] CSMessageBundle (language base) being initialized
[89] }}+++ End Event10005 null
[90] OracleSQLBuilder reached getInterface
[91] Oracle SQL Builder Version 3.2.0.0.0
[92] }}+++ End Event10004 null
[93] {{+++ id=10005 type: 'BC4J_CREATE_VIEWOBJECT' Create ViewObject 'InventoryItem1View'
[94] }}+++ End Event10006 null
[95] Created root application module: 'ImageLoader.ImageLoaderModule'
[96] Locale is: 'en_US'
[97] }}+++ End Event10001 null
[98] Using DatabaseTransactionFactory implementation oracle.jbo.server.DatabaseTransactionFactory
[99] DBTransactionImpl Max Cursors is 50
[100] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
[101] {{+++ id=10006 type: 'JDBC_CONNECT' null
[102] Trying connection/1: url='jdbc:oracle:thin:bc4j/bc4j@localhost:1521:oracle9i'...
[103] }}+++ End Event10007 null
[104] Successfully logged in
[105] JDBCDriverVersion: 8.1.7.0.0
[106] DatabaseProductName: Oracle
[107] DatabaseProductVersion: Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the Partitioning option JServer Release 9.0.1.1.1 - Production
[108] Column count: 8
[109] {{+++ id=10007 type: 'EXECUTE_QUERY' ViewObject executeQueryForCollection InventoryItem1View
[110] {{+++ id=10008 type: 'VIEWOBJECT_GETSTATEMENT' Viewobject: InventoryItem1View getting prepared statement
[111] ViewObject : Created new QUERY statement
[112] SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
[113] {{+++ id=10009 type: 'JDBC_CREATE_STATEMENT' createPreparedStatement - prefetch size: 1
[114] }}+++ End Event10010 null
[115] }}+++ End Event10009 ViewObject : Creating new QUERY statementSELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
[116] QueryCollection.executeQuery failed...
[117] java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
java.lang.Class java.net.URLClassLoader.findClass(java.lang.String)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class sun.misc.Launcher$AppClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.util.Enumeration oracle.jbo.common.WeakHashtableImpl.elements()
java.util.Enumeration oracle.jbo.common.WeakHashtable.elements()
void oracle.jbo.server.ViewObjectImpl.freeStatement(java.sql.PreparedStatement, boolean)
void oracle.jbo.server.QueryCollection.executeQuery(java.lang.Object[], int)
void oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(java.lang.Object, java.lang.Object[], int)
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
boolean oracle.jbo.server.ViewObjectImpl.hasNext()
void ImageLoader.ImageLoader.main(java.lang.String[])
[118] SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
boolean oracle.jbo.server.ViewObjectImpl.hasNext()
void ImageLoader.ImageLoader.main(java.lang.String[])
## Detail 0 ##
java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
boolean oracle.jbo.server.ViewObjectImpl.hasNext()
void ImageLoader.ImageLoader.main(java.lang.String[])
Exception in thread main
At first I thought maybe this is a configuration specific problem -- but I was able to replicate this on two separate machine with clean Win2K and Oracle9i installs.
It seems like it is not finding a particular class, which leads me to believe that some particular jar is probably missing -- can anyone help me figure out which one? Or is there something else that may be going wrong?
TIAYou need to make sure you're using the Oracle9i JDBC driver, or using the Oracle 8.1.7.2 JDBC driver as I mentioned above.
If you are using JDeveloper9i release 9.0.2 or 9.0.3, the driver you need is in <jdevhome>\jdbc\lib
Otherwise, you can also download the drivers from OTN. -
Error message at jdeveloper tutorial page
Hi,
when I logged in with the OTN user id I tried to open the jdeveloper tutorial page "Database Development with JDeveloper" (http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_%20dbasedevmt.htm) and there I got the message "You do not have sufficient privileges to perform this operation. (WWC-41415)".
What does it mean? What priviliges do I need? The other tutorial pages can be opened without problem.
Regards,
ToniThe problem is solved. The correct url must be: http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_dbasedevmt.htm.
Toni -
Hello Gurus,
I cannot find a R12 jDeveloper tutorial.
Even when i download Jdev patch: p9879989_R12_GENERIC it has a tutorial that seems to be for R11
Can someone tell me where to find tutorial for R12 (jDev 10.1.3.3.0)
Many thanks.
BrianBrianK197719781979 wrote:
Hello Gurus,
I cannot find a R12 jDeveloper tutorial.
Even when i download Jdev patch: p9879989_R12_GENERIC it has a tutorial that seems to be for R11
Can someone tell me where to find tutorial for R12 (jDev 10.1.3.3.0)
Many thanks.
BrianOA Framework - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x [ID 416708.1]
Configuring JDeveloper For Use With Oracle Applications 11i and R12 [ID 330236.1]
http://bit.ly/YxZGEb
https://forums.oracle.com/forums/search.jspa?threadID=&q=Jdeveloper+AND+Tutorial&objID=f210&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Jdeveloper+AND+Tutorial+AND+R12&objID=f210&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Error implementing Auto Suggest Behaviour (JDeveloper Tutorial)
Hi,
I'm using JDev 11g R2 on Mac OSX. In the JDeveloper Tutorial "Developing Rich Web Applications with Oracle ADF", Part 3, Step 3, I don't get the "Insert Auto Suggest Behavior dialog box", so I used the property inspector to enter "#{bindings.JobId.suggestedItems}" in the "SuggestedItems" property.
When I run the application, and type a value in the JobId, I get the error:
suggestedItems="#{bindings.JobId.suggestedItems}": Method not found: 0.suggestedItems(java.lang.String)
I checked the bindings in "query.jsf", and they're all set.
Does anyone have an idea what could be wrong?
Kind regards,
PhilipThe tutorial (http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_3.html) suggests that you can drag and drop the auto suggest behavior onto the JobId. But you cannot.
By default, the JobId item is not created as an element that can accept an auto suggest behavior. The source for the item should resemble:
<af:inputComboboxListOfValues id="jobId1Id"
popupTitle="Search and Select: #{bindings.JobId1.hints.label}"
value="#{bindings.JobId1.inputValue}"
label="#{bindings.JobId1.hints.label}"
model="#{bindings.JobId1.listOfValuesModel}"
required="#{bindings.JobId1.hints.mandatory}"
columns="#{bindings.JobId1.hints.displayWidth}"
shortDesc="#{bindings.JobId1.hints.tooltip}">
<f:validator binding="#{bindings.JobId1.validator}"/>
<af:autoSuggestBehavior suggestedItems="#{bindings.JobId1.suggestedItems}"/>
</af:inputComboboxListOfValues>However, when the form itself is dropped onto the page, the JobId is created as a selectOneChoice.
This seems to be an error with the tutorial (http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_2.html).
Edited by: Dolphin on Sep 29, 2012 2:37 PM -
TopLink ADF Faces Tutorial - Object Generation Error
Hi,
I'm trying to work through the tutorial "Build a Web Application with ADF Faces and Oracle TopLink" (http://www.oracle.com/technology/obe/obe1013jdev/masterdetailedit_adftoplink/endtoend_toplink_adffaces.htm#t2), but I am stuck at the last step of "Creating the Data Model Using Oracle TopLink (http://www.oracle.com/technology/obe/obe1013jdev/masterdetailedit_adftoplink/endtoend_toplink_adffaces.htm#t2s2).
When I hit the Finish button of the Create Java Object from Tables wizard, I get the following error:
java.lang.NullPointerException
at oracle.ideimpl.log.TabbedLogManager.getMsgPage(TabbedLogManager.java:101)
at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1049)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:231)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:201)
at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
at java.lang.Thread.run(Thread.java:595)
It appears the wizard is having a problem opening or displaying log messages?
I searched this forum and found two posts about this problem:
http://forums.oracle.com/forums/thread.jspa?messageID=1397060��
http://forums.oracle.com/forums/thread.jspa?messageID=1447954��
but no solutions or suggestions.
Hoping a JDeveloper guru can help me out.
TIA,
JimSorry - I didn't look hard enough.
Found the answer here:
Re: Business Tier: Toplink: Java Objects from Table: Object Generation error.
Would be nice if someone would update the tutorial with a step to compile the datamodel project before attempting to create the java objects.
Jim -
TopLink - JPA - Jdeveloper 11g
Hi All,
I am having a TopLink - JPA example. I am executing a InsertExample.java which will insert record. But as I run InsertExample.java I keep getting following error.
I am using Jdeveloper 11 g (and NOT Eclipse). How to get rid of following error ?
"C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe" -client -classpath C:\MyJdevUserHomeEnv\mywork\TopLinkDesign\.adf;C:\MyJdevUserHomeEnv\mywork\TopLinkDesign\TopLink\classes;C:\Oracle\MiddlewarePS3\modules\com.oracle.toplink_1.0.0.0_11-1-1-4-0.jar;C:\Oracle\MiddlewarePS3\modules\org.eclipse.persistence_1.0.0.0_2-1.jar;C:\Oracle\MiddlewarePS3\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\MiddlewarePS3\oracle_common\modules\oracle.toplink_11.1.1\javax.persistence_2.0_preview.jar;C:\Oracle\MiddlewarePS3\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle\MiddlewarePS3\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\downloads\toplink_111130_en.zip;C:\downloads\coherence-java-3.6.0.0b17229.zip;C:\downloads\coherence-java-3.6.0.0b17229\coherence\lib\coherence.jar;C:\downloads\eclipselink-2.1.1.v20100817-r8050\eclipselink\jlib\eclipselink.jar;C:\downloads\toplink_111130_en\jlib\toplink-grid.jar;C:\Oracle\MiddlewarePS3\jdeveloper\ide\macros\..\..\..\wlserver_10.3\server\lib\ojdbc6.jar;C:\Oracle\MiddlewarePS3\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Oracle\MiddlewarePS3\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\MiddlewarePS3\oracle_common\modules\oracle.dms_11.1.1\dms.jar -Djavax.net.ssl.trustStore=C:\Oracle\MiddlewarePS3\wlserver_10.3\server\lib\DemoTrust.jks gridcache.example.InsertExample
[EL Info]: 2010-11-20 19:58:59.418--ServerSession(30936685)--EclipseLink, version: Eclipse Persistence Services - 2.1.2.v20101006-r8316
[EL Warning]: 2010-11-20 19:58:59.425--java.lang.ClassNotFoundException: weblogic.version
[EL Info]: 2010-11-20 19:58:59.855--ServerSession(30936685)--file:/C:/MyJdevUserHomeEnv/mywork/TopLinkDesign/TopLink/classes/_employee-pu login successful
[EL Info]: 2010-11-20 19:58:59.855--JMX MBeanServer instance found: [com.sun.jmx.mbeanserver.JmxMBeanServer@146c1d4], # of beans: [20], domain: [DefaultDomain] at index: [0].
[EL Warning]: 2010-11-20 19:58:59.861--Failed to initialize MBean threadPoolRuntime: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
[EL Warning]: 2010-11-20 19:58:59.862--Failed to initialize MBean threadPoolRuntime: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
Exception in thread "main" java.lang.IllegalArgumentException: Object: Employee(0: Smith, Bob) is not a known entity type.
* at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4198)*
* at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:403)*
* at gridcache.example.InsertExample.main(InsertExample.java:29)*
Process exited with exit code 1.It seems this is not a Java EE deployment so is the Employee class listed in the persistence.xml file? Or have you set <exclude-unlisted-classes>false</exclude-unlisted-classes> ? Alternatively you could package the classes into a Jar referenced through the <jar-file></jar-file> element.
--Gordon -
I have been working my way through the Oracle Press-Oracle
JDeveloper book. It needs some help, the instructions
frequently don't match the menu tab names. I have also
discovered that creating a database app, as in Chapter 7 just
plain does not work, an obvious bug. If you select "Data Form
based on a Frame", the program compiles and starts to run, but
the login dialog box is only partially displayed and does not
work. If, instead, you use "Infobus Based Data Form" then
everything works. At the end of chapter 7 there are
instructions to manuall create an application. When I follow
the instructions ( as best I can because they do not match the
names on the component tab bar ), again the program compiles and
starts to run but I get that partial login dialog box that does
not work. I am not asking for help, because I expect to compare
class names between the automatically generated version that
does not work and the Infobus version that does. Then I can
change the manual version to reflect the class that works. I am
just saying that this tutorial (and release in general) needs a
lot of work before it can be released.
nullDonald,
Thank you for your comments and suggestions.We'll forward your
comments to the authors.
Some of the discrepancies that you have observed in the book may
be due to the fact that the books is based on JDeveloper 1.1
while you are using JDeveloper 2.0 beta. For example: Some of
the JBCL data access controls have been moved from the 'Data
Access' tab on the Component Palette to the 'Data Express' tab.
The authors of the JDeveloper book are working on a new edition
which will be in synch with JDeveloper 2.0 production.
Regards,
JDeveloper Team
Donald Peters (guest) wrote:
: I have been working my way through the Oracle Press-Oracle
: JDeveloper book. It needs some help, the instructions
: frequently don't match the menu tab names. I have also
: discovered that creating a database app, as in Chapter 7 just
: plain does not work, an obvious bug. If you select "Data Form
: based on a Frame", the program compiles and starts to run, but
: the login dialog box is only partially displayed and does not
: work. If, instead, you use "Infobus Based Data Form" then
: everything works. At the end of chapter 7 there are
: instructions to manuall create an application. When I follow
: the instructions ( as best I can because they do not match the
: names on the component tab bar ), again the program compiles
and
: starts to run but I get that partial login dialog box that
does
: not work. I am not asking for help, because I expect to
compare
: class names between the automatically generated version that
: does not work and the Infobus version that does. Then I can
: change the manual version to reflect the class that works. I
am
: just saying that this tutorial (and release in general) needs
a
: lot of work before it can be released.
null -
JDeveloper tutorial 404 Not Found
JDeveloper Studio Edition Version 11.1.1.3.0 Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
I am attempting to complete the "Build a Fusion Web Application" tutorial/labs. After completing "Part 2: Create a Simple User Interface", I execute the application by selecting the browseOrders view object and then clicking Run. This compiles, launches WLS and works fine. A browser pops up and I can browse through the orders. My problem is when I navigate to the editOrders screen, make a change and then click Save. When I do this, the database is updated, but then the system returns with a "404 not found error". The Return button works.
http://localhost:7101/BrowseEditApp-ViewController-context-root/faces/adf.task-flow;jsessionid=8sS0NPnPMXNdpTTCb1T5JmJGvpGh4T8fJLGVrq1r7glpRGYKLGSZ!-1172094257?adf.tfId=orders-flow&adf.tfDoc=/WEB-INF/orders-flow.xml&_afrLoop=58446169320402&_afrWindowMode=0&_afrWindowId=null
http://localhost:7101/BrowseEditApp-ViewController-context-root/faces/orders-flow/browseOrders?_adf.ctrl-state=999fom1sg_7
http://localhost:7101/BrowseEditApp-ViewController-context-root/faces/orders-flow/editOrders?_adf.ctrl-state=999fom1sg_7
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not FoundI have the same problem... Does anyone know where is the problem?
-
Trouble with JDeveloper tutorial
I am using JDev 10.1.3 and trying to finish the 'Home Page and Menus' hands on in Oracle JDeveloper for Forms and PL/SQL Developers, chapter11. I have gotten to the section where I am suppossed to create the application module but it is not generating the sources directory with the files *.xml, *.java and bc4j.xcfg. Does anyone have an idea about why these files are not being created? Thanks.
Sand3 wrote:
> I have been trying to make a loading bar using this
tutorial:
>
http://www.m0interactive.com/archives/2006/06/20/flash_preloa.html
>
> I've checked it over several times and I've done
everything it says and
> copy-pasted all the action script right, but it's still
not working properly.
> When I 'test movie' it sticks on the first frame and
won't move onto the second
> scene (off the loading screen) and also the loading bar
doesn't move. This is
> the error report I'm getting:
>
> **Error** Symbol=loading, layer=Layer 1, frame=24:Line
1: ')' or ',' expected
> gotoAndPlay(frame 1);
>
> **Error** Scene=main, layer=Layer 26, frame=851:Line 1:
Statement must appear
> within on handler
> gotoAndPlay("Main", 1);
>
> Total ActionScript Errors: 2 Reported Errors: 2
The error basically state that the way you type the action is
incorrect
so can't tel you much based on it.
You need to upload your FLA and let us check it out, the
actual file, not
paste error.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Look for JDeveloper Tutorial with samples code
Hello All ,
my name is Ron ,
i'm new user of JDeveloper i'm looking for a place to start a tutorial "How to use
the JDeveloper ? " with samples code .
from very basic use ( Hello world program ) to addvanced programming ( Like GUI Forms and Database )
please show me links where to start learning from
thanks in advanceThe tutorials in the JDeveloper help system are a very good place to start. Choose Help | Help Topics from the JDeveloper menu then click the Tutorials book in the Help navigator. The tutorials are also available on OTN, see:
http://otn.oracle.com:8877/jdeveloper/help/
You may also find the 'how to' documents and samples on OTN helpful:
Oracle9i JDeveloper How To Documents
http://otn.oracle.com/products/jdev/howtos/content.html
Oracle9i JDeveloper Sample Code
http://otn.oracle.com/sample_code/products/jdev/content.html
Hope this helps.
- jon -
JDeveloper tutorial using a complete project
Dear All,
I am absolutely new in JDeveloper 11g I need a complete project that will take me from grass root level to expert level.
so that i can get experience in JDeveloper 11g
I shall be very thank full
Regards,
Zafar IqbalA good tutorial to start with is:
http://download.oracle.com/docs/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_1.html
For more on getting started:
http://www.oracle.com/technetwork/developer-tools/jdev/overview/jdeveloper-reviewrguide-086026.html
Maybe you are looking for
-
A Windows XP Pro installation on an old Vectra stopped working properly. I decided to erase the hard disk and reinstall from an installation CD. The PC booted to HP's splash screen. The next thing I got was "Error loading the operating system." I
-
Recovering missing iPhoto photos from iPhone 5
Hi, I reindexed my iPhoto library as I was missing photos. Now it seems I have lost more photos! I have my entire iPhoto library sync'ed with my iPhone 5. Is it possible to sync. from iPhone to iPhoto in an attempt to recover the photos? I am worried
-
Hi all, i have two account groups sold to and ship to my cliant has asked me give employee wise sales report can anybody suggest me on this issue cheers
-
Oracle 9i Lite to Oracle 8i master, & Apache on HP
1. Are there any replication issues or limitations when using 9i lite clients against an 8.1.7 master? 2. In the system requirements, it lists having Apache for NT or OAS9i as requirements. Are these set in stone, or supported versions? We run Apache
-
Adding Subforms on Click + Page Breaks Problem
Hi all, i made a form containing a few Sub forms and Text Fields which grow by the Number of Lines the User writes. However, I made one button to add a sub form containing 5 of these text fields and it works fine but when it comes to the end of the p