Error with hsqldb toplink configuration in oc4j

Hi,
I am trying to user hsqldb with toplink with oc4j.
My independant jpa aplication is working fine.
But when i try to run that application using oc4j that it is giving "No suitable driver found" error.
I have put the toplink's jar and hsqldb.jar into my lib directory.
Application is compiling fine. But on runtime it is giving No suitable driver found.
Anybody has tried to configure hsqldb with toplink in oc4j?
Can anybody provide any help?
- Kumar

Are you having JPA connect directly to JDBC, or are you using a DataSource?
Using a DataSource in OC4J should work and is probably the best way to configure your connection. Either way ensure that your JDBC driver is on the OC4J or your application classpath.
The issue is most likely that TopLink cannot see the JDBC driver on its classpath. You could most likely use a SessionCustomizer to call useDirectDriverConnect(driver, url, url) to workaround the issue.

Similar Messages

  • Error with data transfer configuration in solution manager

    Dear SAP Support
    i have a problem when i enter a tcode solution_manager > goto > data transfer configuration in my sap solutin manager system. the error appear
    The requested URL could not be retrieved
    While trying to retrieve the URL: http://solman.wilmar.com:8000/sap/public/myssocntl?
    The following error was encountered:
    Unable to determine IP address from host name for solman.wilmar.com
    The dnsserver returned:
    Name Error: The domain name does not exist.
    This means that:
    The cache was not able to resolve the hostname presented in the URL.
    Check if the address is correct.
    Your cache administrator is webmaster.
    Generated Sat, 15 Sep 2007 10:03:30 GMT by proxy (squid/2.5.STABLE11)
    are there any solution so i can fix my problem above. thanks.

    Hi Herry,
    Are you working in the same network?
    Are you able to ping the domain?
    Just an idea.
    Regards, Ruediger

  • Error while installing OIM, during the OC4J Instance Configuration Assistan

    Hi, running RHEL 4 32Bit Linux. There's an installation of the SOA Suite 10.1.3.1 (Release 2) on /u01/app/oracle/OracleAS_1, and I am installing OIM on /u01/app/oracle/OraHome_2
    Near the end of the installation, when it's installing the recommended configuration assistants, I get an error while the OC4J Instance Configuration Assistant piece is running.
    Here's the full readout:
    Launched configuration assistant 'OC4J Instance Configuration Assistant'
    Tool type is: Recommended.
    The command being spawned is: '/u01/app/oracle/OraHome_2/jdk/bin/java -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=/tmp -mx512M -classpath /u01/app/oracle/OraHome_2/dcm/lib/dcm.jar:/u01/app/oracle/OraHome_2/dcm/lib/oc4j_deploy_tools.jar:/u01/app/oracle/OraHome_2/opmn/lib/opmnplugin.jar -Doracle.ias.sysmgmt.logging.logdir=/u01/app/oracle/OraHome_2/j2ee/home/log oracle.j2ee.tools.deploy.Oc4jDeploy -oraclehome /u01/app/oracle/OraHome_2 -verbose -inifile /u01/app/oracle/OraHome_2/j2ee/deploy.ini '
    Start output from spawned process:
    Reading ini file - '/u01/app/oracle/OraHome_2/j2ee/deploy.ini'
    Adding web-app 'wirelesssso-web.war' for app 'wirelesssso'.
    Adding web-app 'web.war' for app 'sso'.
    Adding web-app 'ssohelp.war' for app 'sso'.
    Adding web-app 'pls.war' for app 'sso'.
    OC4J instance 'OC4J_SECURITY': Adding java stop command line option '-server'
    OC4J instance 'OC4J_SECURITY': Adding java command line option '-Xmx512m'
    OC4J instance 'OC4J_SECURITY': Adding Environment variable 'LD_LIBRARY_PATH' with value '/u01/app/oracle/OraHome_2/lib32:/u01/app/oracle/OraHome_2/lib'
    OC4J instance 'OC4J_SECURITY': Adding Environment variable 'DISPLAY' with value 'oracleb.djl.com:0.0'
    Adding web-app 'ui.war' for app 'oiddas'.
    OC4J instance 'OC4J_SECURITY': Adding java stop command line option '-Xss1M'
    Ignoring jvm command-line option '-Xmx512m'. Larger heap already specified with '-Xmx512m'
    OC4J instance 'OC4J_SECURITY': Env Option 'LD_LIBRARY_PATH' already exists with value '/u01/app/oracle/OraHome_2/lib32:/u01/app/oracle/OraHome_2/lib'
    Initializing DCM...done.
    Creating OC4J instance 'OC4J_SECURITY' (protected)...done.
    Adding dependent libraries for application 'default'...done.
    Calling SMI to save changes.
    SMISession.saveChanges succeeded.
    Starting OC4J instance 'OC4J_SECURITY'...done.
    Deploying application 'wirelesssso' to OC4J instance 'OC4J_SECURITY'.
    Notification ==> Application Deployer for wirelesssso STARTS [ 2006-11-27T17:20:23.691EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Removing files for app file:/u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso.ear
    Notification ==> Copy the archive to /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso.ear
    Notification ==> Unpack wirelesssso.ear begins...
    Notification ==> Unpack wirelesssso.ear ends...
    Notification ==> Initialize wirelesssso.ear begins...
    Notification ==> Initialize wirelesssso.ear ends...
    Notification ==> Initialize wirelesssso-web begins...
    Notification ==> Initialize wirelesssso-web ends...
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso.ear
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso/wirelesssso-web.war
    Notification ==> Application Deployer for wirelesssso COMPLETES [ 2006-11-27T17:20:24.193EST ]
    Deploying application 'oiddas' to OC4J instance 'OC4J_SECURITY'.
    Notification ==> Application Deployer for oiddas STARTS [ 2006-11-27T17:20:24.246EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Removing files for app file:/u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas.ear
    Notification ==> Copy the archive to /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas.ear
    Notification ==> Unpack oiddas.ear begins...
    Notification ==> Unpack oiddas.ear ends...
    Notification ==> Initialize oiddas.ear begins...
    Notification ==> Initialize oiddas.ear ends...
    Notification ==> Initialize ui begins...
    Notification ==> Initialize ui ends...
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas.ear
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas/ui.war
    Notification ==> Application Deployer for oiddas COMPLETES [ 2006-11-27T17:20:28.312EST ]
    Deploying application 'sso' to OC4J instance 'OC4J_SECURITY'.
    Notification ==> Application Deployer for sso STARTS [ 2006-11-27T17:20:28.351EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Removing files for app file:/u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso.ear
    Notification ==> Copy the archive to /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso.ear
    Notification ==> Unpack sso.ear begins...
    Notification ==> Unpack sso.ear ends...
    Notification ==> Initialize sso.ear begins...
    Notification ==> Initialize sso.ear ends...
    Notification ==> Initialize web begins...
    Notification ==> Initialize web ends...
    Notification ==> Initialize ssohelp begins...
    Notification ==> Initialize ssohelp ends...
    Notification ==> Initialize pls begins...
    Notification ==> Initialize pls ends...
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso.ear
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso/web.war
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso/ssohelp.war
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso/pls.war
    Notification ==> Application Deployer for sso COMPLETES [ 2006-11-27T17:20:29.806EST ]
    Calling updateConfig to notify DCM of new deployments...done.
    Adding OC4J mount points for application 'wirelesssso'...done.
    Adding OC4J mount points for application 'oiddas'...done.
    Adding dependent libraries for application 'sso'...done.
    Adding OC4J mount points for application 'sso'...done.
    Calling SMI to save changes.
    SMISession.saveChanges succeeded.
    Binding web app 'wirelesssso-web' to default-web-site for application 'wirelesssso' in OC4J instance 'OC4J_SECURITY'
    Web app 'wirelesssso-web' bound successfully.
    Binding web app 'ui' to default-web-site for application 'oiddas' in OC4J instance 'OC4J_SECURITY'
    Web app 'ui' bound successfully.
    Binding web app 'web' to default-web-site for application 'sso' in OC4J instance 'OC4J_SECURITY'
    ERROR: Caught exception while binding web app 'web' to default-web-site:
    Calling updateConfig to notify DCM of new web-bindings...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:324)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.doDeploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.execute(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    Caused by: com.evermind.client.orion.AdminCommandException: Disconnected: RMIConnection Disconnected
         at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:31)
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:139)
         ... 8 more
    Caused by: com.evermind.server.rmi.OrionRemoteException: Disconnected: RMIConnection Disconnected
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at __Proxy0.bindWebApp(Unknown Source)
         at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:28)
         ... 9 more
    done.
    Adding application 'wirelesssso' to the DCM repository...done.
    Application 'wirelesssso' deployed successfully.
    Adding application 'oiddas' to the DCM repository...done.
    Application 'oiddas' deployed successfully.
    Undeploying application 'sso' from OC4J instance 'OC4J_SECURITY'.
    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:324)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.doDeploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.execute(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    Caused by: com.evermind.client.orion.AdminCommandException: IOException communicating with the remote server: Connection reset
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:121)
         ... 8 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2508)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2361)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1800)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:725)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:106)
         ... 8 more
    FAILED!
    ERROR: Caught exception while undeploying 'sso' from 'OC4J_SECURITY':
    Removing OC4J mount points for application 'sso'...done.
    Calling SMI to save changes.
    SMISession.saveChanges succeeded.
    Calling updateConfig to notify DCM of undeployments...done.
    Stopping OC4J instance 'OC4J_SECURITY'...done.
    Calling SMI to retry init of failed plugins...done.
    Terminating DCM...done.
    Copying /u01/app/oracle/OraHome_2/j2ee/deploy.ini to /u01/app/oracle/OraHome_2/j2ee/deploy.ini.1164667126315.bak.
    Writing any undeployed entries back to /u01/app/oracle/OraHome_2/j2ee/deploy.ini.
    Oc4jDeploy tool completed, but with errors.
    End output from spawned process.
    Any help is appreciated, thanks!

    Hi, did you ever resolve this problem? We've got the same error.
    Cheers,
    Eystein

  • BUG No Toplink with HSQLDB support

    1. Start HSQLDB in server mode
    2. Log in as SA
    3. Create two tables (in public schema, which is the default) with parent-child relation
    4. Create new schema, switch to new schema
    5. Create two tables (in public schema, which is the default) with parent-child relation in new schema
    6. Create HSQLDB library in JDeveloper
    6. Create connection in JDeveloper jdbc:hsqldb:hsql://...
    7. Create JDeveloper project
    8. Create Toplink map
    9. Start "Java Objects from Tables" wizard.
    10a. Select a table from public schema
    11a. "Public schema is only for synonyms" error message appears
    10b. Select a child table from the other schema.
    11b. "A foreign key constraint must define at least one column" error message appears
    I am using JDeveloper 10.1.3.1.0.3914 and HSQLDB 1.8.0.

    Hi,
    don't have HSQLDB for testing, but typing HSQLDB TopLink into a Google search brought up many messages of people that got this combination working.
    I suggest to post this question on the TopLink forum here on OTN
    Frank

  • Pre-configured standalone OC4J with PDK - ZIP corrupt - ??

    zip is corrupt, what can I do, who can I contact??
    pre-configured standalone OC4J with PDK
    http://www.oracle.com/technology/products/ias/portal/files/pdk_oc4j_extended.zip
    found at page http://www.oracle.com/technology/products/ias/portal/pdk.html

    Sorry for the multiple occurences of this posting, Got an error during posting!

  • I just moved my itunes library from a win 7 computer to a win 8.1 computer. Getting an error message "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly. Can't play CDs or get audio file from web!

    Help! I just moved my itunes library from a Win 7 computer to a new Win 8.1 computer following the instructions on the itunes website. Everything is good except I'm getting an error message on the Win 8 computer if I try to play a CD or get an audio file off of the internet. I get an error message that says "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly. I don't know where to look for or fix the audio configuration on the win 8 computer. As far as I can tell the iTunes configuration looks the same as on the other computers in the house. At this point I don't dare plug my ipod touch into the Win 8 computer for fear it will get messed up.

    I have the same problem and I know that it is due to my PCI Audio driver not being compatible with WIndows 8.1.
    iTunes isn't the only program that can't direct sound to the built-in speakers anymore. The obvious solution would be to update the drivers, but unfortunately Dell does not provide an updated driver for my model, so I am stuck with that.
    However, saying that, only my laptop speakers are affected by this. I can use sound fine on applications where I can choose the output device and direct sound to the head phones, but for some reason iTunes does not let you choose the audio device manually.
    To listen to music I imported the iTunes Library in Windows Media Player and changed the audio output using the following instructions: http://windows.microsoft.com/en-us/windows7/c00d11ba
    However, I would also like to rent movie's from iTunes, 
    Would be great if iTunes would let you choose the output device, too, like most other applications using sound  from Skype to Windows Media Player,...

  • Error message after upgrade to iTunes 11: "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly."  At this point my PC running XP loses all audio.

    Several attempts to upgrade to iTunes 11 have failed.  After an upgrade to 11 the error message reads: "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly."  At this point--after the upgrade to iTunes 11--my PC running Windows XP loses audio playback for all functions--in iTunes, in the browser and the volume icon disappears from the System Tray.  Only by removing iTunes 11, and then using System Restore to turn back the OS settings can I return the PC to normal functioning.
    I did that.  I reinstalled iTunes 10.5.  Everything seemed fine, but when I try to plug in and copy a CD to my iPhone 4S an error message reads roughly: 'iPhone 4S requires iTunes 10.5 or higher to work.'
    What might be the problem with my audio configuration?
    Why doesn't my iPhone 4S work with iTunes 10.5?  It used to work with iTunes 10.5.
    Please advise.
    ep

    This forum is for questions about iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Windows forums.
    Regards.

  • When I connect my I pod shuffle to USB it shows an error message - " I Tunes has deducted a problem with your audio configuration. Audio/Video playback may not operate properly" due to this problem each and every earphone am inserting goes unusable

    When I connect my I pod shuffle to USB it shows an error message - " I Tunes has deducted a problem with your audio configuration. Audio/Video playback may not operate properly" due to this problem whenever i connect  earphone each and every earphone gets un usable. Already made a factory reset. please arrange for a rectification.. :'(

    Hi Ganeshpandianm,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    iTunes for Windows: iTunes cannot run because it detects an issue with QuickTime
    http://support.apple.com/kb/TS1371?viewlocale=en_US
    "iTunes cannot run because it has detected a problem with your audio configuration"
    Cheers,
    - Judy

  • AppContainers_test fails with error during pre-test configuration checks

    Hello,
    AppContainers_test fails with error during pre-test configuration checks:
    "[FAIL] The machine is not properly configured for testing: the test directory "C:\Windows\SYSTEM32\" is not ACL'd to allow execute permission for "APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES"
    But that kind of permission for APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES was allowed, also i tried to allow full access, but error was the same.
    In the test WindowsFilteringPlatform_Tests, the same requirement "REQ - Wfp-based products must not block App Container apps operating within their declared network intentions by default" was checked successfully.
    How can i pass successfully AppContainers_test? 
    I installed lastest versions of QFE and filters on my server, but it didn't help.

    Hi M'Alerter,
    I have the same issue, have you found a solution to your problem ? 
    Cheers,
    Ghalem

  • 12c agent install fails with error - The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed

    Hi,
    I am trying to install 12c agent on windows 7 64 bit server by following m.note   .
    It is failing with Agent Configuration failed, please see below error message.
    INFO: length of temp is2
    INFO: Return value:C:\/Oracle/12.1.0.3.0_AgentCore_233/core
    INFO: ** Agent Port Check completed successfully.**
    INFO: ERROR: The Management Agent configuration failed. The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed, or this plug-in may not be present in the Management Agent software. Ensure that the Management Agent software has the oracle.sysman.oh monitoring plug-in, if not then retry the operation. If the agent software has the oracle.sysman.oh monitoring plug-in, view the plug-in deployment log C:\Oracle\12.1.0.3.0_AgentCore_233\core\install\logs to check if the plug-in configuration for the oracle.sysman.oh monitoring plug-in failed.
    INFO:
    INFO: perform - mode finished for action: configure
    INFO:
    INFO: You can see the log file: C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\cfgtoollogs\oui\configActions2014-10-03_08-48-15-AM.log
    INFO:
    INFO: C:\Oracle\12.1.0.3.0_AgentCore_233>exit /b 3
    INFO: Plugin homes:
    INFO: Plugin homes:
    INFO: C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\oui\bin\runConfig.bat ORACLE_HOME=C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0 RESPONSE_FILE=C:\Oracle\12.1.0.3.0_AgentCore_233\core\12.1.0.3.0\agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true completed with status=3
    SEVERE: ERROR: Agent Configuration Failed
    Thanks,

    Looks like , J2EE is having a problem connecting to the DB.Pls. chk. the following
    -If you have configured the loop-back adapter , if installing on a local system & updated the /etc/host file with your ip address and host name.
    or if the system is part of some n/w group and has ip address assigned ?
    -Jdk 1.4 version is installed in your system
    -Enough free Disk space available in the system
    -How much RAM your system has which windows version you are using  ?
    -Is the DB is coming up properly ? its error related to this. check the logs.
    -If the ports used by sap install / run used by other services running on the system ? & user have admin. privileges on the system .
    Pls. update with your findings on above same , for the step next ...
    Thanks ,
    Uppal

  • SOMEONE PLEASE HELP! I am desperate..."error with audio configuration"

    I have had a flurry of problems that are related in another link, about drives.
    I had to complete restore my library and import back each of my songs individually, which was successful. I also needed to install the new iTunes 7.7
    However, when I launched iTunes only about a minute later, a message popped up saying that "iTunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly." And now, NONE of my songs or videos will play.
    PLEASE HELP! I've spent the past 2 days trying to fix a lot of things, and all of them seemed solved until this problem. I'm leaving in 7 HOURS! So please, help is appreciated.

    Go into your Control panel, and launch the "Sounds and Audio Devices" control panel. Click on the "Audio" tab.
    Is the correct default device showing up in the "Sound Playback" area?

  • Error - itunes has detected a problem with your audio configuration...

    Can anyone help me with this one?
    "itunes has detected a problem with your audio configuration. Audio/video may not playback properly."
    I can get into itunes - but nothing plays - not the radio - not my playlist.
    Please help!

    Then you may have a startup item (an item that starts up when your computer starts up) that is interfering with iTunes/Quicktime. Try following the advice here and seeing if there's anything starting up that doesn't need to be:
    http://www.g4tv.com/screensavers/features/38454/ManageWindows_StartupItems.html
    Be careful of what you remove.
    Also, if you have any sort of USB or such audio hardware, try removing it and trying again.
    =)

  • Spring and TopLink/JPA on OC4J 10.1.3.4.0

    Our configuration worked fine on OC4J 10.1.3.1 (linux) and 10.1.3.3 (windows). We have a problem with JPA (toplink essentials--not eclipselink) on OC4J 10.1.3.4.0 using Spring (2.0.7 and 2.5.6). We found that it was trying to connect to the default OracleDS data source(there were 2 connections in toplink essentials for some reason), but once we defined an OracleDS, it gave us this error:
    javax.servlet.ServletException: javax.faces.el.EvaluationException: Error getting property 'experiments' from bean of type gov.llnl.nif.dataviz.mssar.web.ExperimentListBean: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException:
    Exception Description: Cannot use an EntityTransaction while using JTA.
    Our persistence.xml looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
         <persistence-unit name="mssar">
              <class>gov.llnl.nif.dataviz.mssar.model.ExperimentInfo</class>
              <class>gov.llnl.nif.dataviz.mssar.model.UsePlan</class>
         <properties>
         <property name="toplink.cache.shared.gov.llnl.nif.dataviz.mssar.model.ExperimentInfo" value="false"/>
         <property name="toplink.cache.shared.gov.llnl.nif.dataviz.mssar.model.UsePlan" value="false"/>
         </properties>
         </persistence-unit>
    </persistence>
    Our orm.xml looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0">
    </entity-mappings>
    Our spring configuration looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
         http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
         default-autowire="byName">
    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="dataSource" ref="dataSource"/>
    <property name="jpaVendorAdapter">
    <bean class="org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter">
    <property name="showSql" value="true"/>
    <property name="databasePlatform" value="oracle.toplink.essentials.platform.database.oracle.OraclePlatform"/>
    </bean>
    </property>
    <property name="loadTimeWeaver">
         <bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver"/>
    </property>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="jdbc/SSARDS"/>
    <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="entityManagerFactory" ref="entityManagerFactory" />
         <property name="dataSource" ref="dataSource" />
    </bean>
         <bean id="experimentsQueryBuilder" class="gov.llnl.nif.dataviz.mssar.dao.jpa.ExperimentsQueryBuilderJpa"/>
         <bean id="experimentsDao" class="gov.llnl.nif.dataviz.mssar.dao.jpa.ExperimentsDaoJpa"/>
         <bean id="experimentListManager" class="gov.llnl.nif.dataviz.mssar.service.impl.ExperimentListManagerImpl"/>
    </beans>
    ExperimentInfo.java mapping looks like:
    @Entity
    @Table(name = "EXPERIMENT_IDS")
    public class ExperimentInfo implements ExperimentInformation {
         @Id
         @Column(name="EXPERIMENT_ID")
         String experimentId;
         @Column(name="EXPERIMENT_DESCRIPTION")
         String expDescription;
         @Column(name="STATUS")
         String status;
         @Column(name="EXPERIMENT_PI")
         String expPI;
         //Date lpomDate;
         //Date settingsDate;
         @Column(name="LPOM_DATE")
         Timestamp lpomDate;
         @Column(name="SETTINGS_DATE")
         Timestamp settingsDate;     
    UsePlan.java looks like:
    @Entity
    @Table(name="USE_PLAN")
    public class UsePlan extends BasePlan implements PlanData, Serializable {
         static final long serialVersionUID = -1555327955428351924L;
         @Id
         @Column(name="EXP_SHOT_ID")
         String expShotId;
         @Id
         @Column(name="LOCATION")
         String location;
         @Id
         @Column(name="INFO_VAR")
         String infoVar;
         @Id
         @Column(name="USE_ITEM_NAME")
         String useItemName;
         @Column(name="USE_PRIORITY")
         String usePriority;
    ExperimentListManagerImpl looks like:
    @Transactional(readOnly=true)
    public class ExperimentListManagerImpl implements ExperimentListManager {
    This is a read-only app but it should not use the cache.
    Our Dao Looks like:
    public class ExperimentsDaoJpa extends JpaDaoSupport implements ExperimentsDao {
    private QueryBuilder experimentsQueryBuilder;
    public List<ExperimentInfo> shotsByQueryBean(ExperimentsQueryBean queryBean, String sortColumn, boolean ascending) {
         try {
              getJpaTemplate().flush();
              experimentsQueryBuilder.buildQuery(queryBean);
         experimentsQueryBuilder.setSortColumn(sortColumn, ascending);
         List<ExperimentInfo> result = getJpaTemplate().findByNamedParams(experimentsQueryBuilder.getQuery().toString(), experimentsQueryBuilder.getParams());
         // pull new results from database
         /*for (ExperimentInfo ei : result) {
              getJpaTemplate().refresh(ei);
         return result;
         } catch (Throwable t) {
              t.printStackTrace();
              return null;
         public void setExperimentsQueryBuilder(QueryBuilder experimentsQueryBuilder) {
              this.experimentsQueryBuilder = experimentsQueryBuilder;
    Thanks,
    John Carlson

    We also had this problem. We have changed the TransactionManager.
    Replace the JPATransactionManager with the JTATransactionManager.
    <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" />
    If you are using JTA you can't use the JPA Transaction Manager. It doesn't support JTA.
    Found it on a forum of Spring. (http://forum.springframework.org/showthread.php?t=48191)
    Dennis

  • Error when using Toplink Ant tasks - Several [3] SessionLoaderExceptions

    Hi,
    I'm trying to integrate toplink's session exports with my build process (Apache Ant). I've been working from the example here:
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b32441/mw.htm
    My Ant init target and the session validation target are shown below:
    <!-- =====================================================================================
         init Target
         ==================================================================================== -->
    <target name="init">
         <property name = "toplink.home" value = "C:/APPS/OC4J/toplink"/>     
         <property name = "oracle.home" value = "C:/APPS/OC4J"/>
         <property name = "toplink.log.dir" value = "${basedir}/../toplinklogs"/>
         <property name = "toplink.mwp.dir" value = "${basedir}/../java/mwb"/>
         <property name = "toplink.sessions.dir" value = "${basedir}/config"/>
         <property name = " myProject.classes" value = "${basedir}/../java/classes "/>
         <path id = "database.classpath">
              <pathelement path = "${oracle.home}/lib/dms.jar"/>
         </path>
         <path id = "toplink.classpath">
              <pathelement path = "${toplink.home}/jlib/toplink.jar"/>
              <pathelement path = "${oracle.home}/j2ee/home/lib/ejb.jar"/>
              <pathelement path = "${oracle.home}/lib/xmlparserv2.jar"/>
              <pathelement path = "${toplink.home}/jlib/antlr.jar"/>
         </path>
         <path id = "mw.classpath">
              <pathelement path = "${toplink.home}/jlib/tlmwcore.jar"/>
              <pathelement path = "${toplink.home}/jlib/toplinkmw.jar"/>
         </path>
         <path id = "mwplatforms.classpath">
              <pathelement path = "${toplink.home}/config"/>
         </path>
         <typedef file = "${basedir}/toplink-ant-lib.xml" classpathref = "mw.classpath" uri = "toplinklib" />
    </target>
    <!-- =====================================================================================
         validate session Target
         ==================================================================================== -->     
    <target name="validate.session" depends="export.project" if="export-completed">
         <toplink:session.validate
              sessionsfile = "${basedir}/../java/src/aquila/administrator/accounting/config/toplink/AccountingMapping.xml"
         sessionname = "AccountingMapping"
         property = "session-valid"
         classpathref = "toplink.classpath"
         classpath = "${myProject.classes}" >
              <toplink:classpath refid = "mw.classpath" />
         <toplink:classpath refid = "database.classpath" />
         <toplink:loginspec refid = "loginSpec" />
         </toplink:session.validate>
    </target>
    <!-- =====================================================================================
         Error
         ==================================================================================== -->
    validate.session:
    [toplink:session.validate] An error occured while validating project:
    [toplink:session.validate] Exception Description: Several [3] SessionLoaderExceptions were thrown:
    BUILD FAILED
    C:\Eclipse\Administrator\ant\example.xml:105: An error occured while validating project:
    Exception Description: Several [3] SessionLoaderExceptions were thrown:
    <!-- =====================================================================================
    Verbose Errors      ==================================================================================== -->
    When I turn on verbose mode in ant I can see more details of the error:
    Local Exception Stack:
    Exception [TOPLINK-9001] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: Unknown tag name: [toplink:login] in XML node: [toplink:object-persistence].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.tools.sessionconfiguration.XMLLoader.process_toplink:login_Tag(org.w3c.dom.Node, oracle.toplink.tools.sessionconfiguration.XMLLoader$ObjectHolder)
    Local Exception Stack:
    Exception [TOPLINK-9001] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: Unknown tag name: [opm:class-mapping-descriptors] in XML node: [toplink:object-persistence].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.tools.sessionconfiguration.XMLLoader.process_opm:class_mapping_descriptors_Tag(org.w3c.dom.Node, oracle.toplink.tools.sessionconfiguration.XMLLoader$ObjectHolder)
    Local Exception Stack:
    Exception [TOPLINK-9001] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: Unknown tag name: [opm:name] in XML node: [toplink:object-persistence].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.tools.sessionconfiguration.XMLLoader.process_opm:name_Tag(org.w3c.dom.Node, oracle.toplink.tools.sessionconfiguration.XMLLoader$ObjectHolder)
    <!-- =====================================================================================
    Help
    ==================================================================================== -->
    The 3 errors shown above correspond to the 3 tags at the same level in the session.xml file. I have tested this validation process with a session.xml file generated from the workbench and that failed too. Since its a NoSuchMethodException it looks like my ant process isn't finding the oracle.toplink.tools.sessionconfiguration.XMLLoader class, but that is in toplink.jar which is in the class path.
    Any help appreciated

    Dear Arun,
    The WLS server is the same for (integrated WLS and Production) . For JRF template I'm sure it is the same. I have deploy another application that used BC, and it work fine in production.
    Regards
    Faizul

  • [EPM Configuration] OracleDB - OC4J Configuration issue .... not found

    Hello,
    after analysing endlessly the existing workarounds for this problem, i conclude that mine is not posted yet.
    Intro
    In order to install EPM, i had to install Oracle Database 11g. After the installation, an error ocurred stating that configurations were not saved and i could run manually "ECMA.bat" later.
    I tried to configure it by creating environment variables such as:
    - ORACLE_SID
    - ORACLE_HOSTNAME
    - ORACLE_UNQNAME
    So far, i haven't tried to executed ECMA.bat for the last time, since I am quite sure that i will fail due to not recognizing the hostname.
    The issue
    Whili trying to make sure that the database is correctly configured, i tried to access to the webpage, unsuccessfully.
    Then i found my problem in the forums:
    When i type in CMD:
    --> (I type)
    C:\OracleDB_app\alexandreyin\product\11.2.0\dbhome_1>emctl status dbconsole
    --> (returns)
    OC4J Configuration issue. C:\OracleDB_app\alexandreyin\product\11.2.0\dbhome_1/o
    c4j/j2ee/OC4J_DBConsole_HPCM.lab.pt_orcl not found.
    In fact there was no folder with that name, nor something like "/OC4J_DBConsole_localhost_orcl" as many posts suggests.
    I only have folders like:
    - "home"
    - "oc4j_applications"
    - "OC4J_DBConsole"
    - "OC4J_Workflow_Component_Container"
    - "OC4J_Workflow_Management_Container"
    - "utilities"
    - "deploy_db_wf"
    Some posts suggests me to change my /driver/etc/host file, but i think my current file is correct:
    --> (Content of host gile)
    127.0.0.1 localhost
    XX.XXX.XXX.XXX HPCM.lab.pt
    Honestly, i am out of ideas and i wish any experienced colleague could give me a hint.
    Thanks in advance

    Hi,
    It is worth having a look at the following document on Oracle support.
    Problem - emctl start dbconsole Fails with Error OC4J Configuration issue OC4J_DBConsole_<HOSTNAME>_<DBNAME> not found *[ID 555218.1]*
    Linux 64bit DBConsole Fails With "OC4J Configuration issue cannot find /oc4j/j2ee/oc4j_DBConsole_..." *[ID 462325.1]*
    Thanks,
    HyperEPM

Maybe you are looking for

  • Driver only for the HD 4110 webcam...do not install suite in Win 8.1

    Dear Readers: I mistakenly installed the software suite for the 4110 webcam on a win 8.1 pc and the camera cannot deliver a good image. (I think this is due to the fact that the win 8 platform is not supported for this camera, unless in compatibility

  • Is there a way to access photo information when viewing on iPhone?

    Using iPhone 5S/ IOS 7.1.1.   In iPhoto I have edited my pictures with information (i.e., name of photo, description).  I would like to access (at least) the name of photo/file on my iPhone.  Any way to see the photo file name on phone?

  • From sap to excel file with different sheets?

    can  i upload   an internal table  from  SAP to single Excel file with different sheets for example like : sheet1, sheet2, sheet3.......sheet10. , but need to upload data from sap to excel worksheets ie. from multiple named tabs in Excel. Is this pos

  • Upgrade AS 9.0.4 questions

    Hi !! I am trying to gather information for planning an upgrade of our AS and Portal environment. We are are version 9.0.4.1 and my predecessors had a tentative plan to upgrade our AS to version 10.1.2.0.2 and Portal to version 10.1.4. Both our Metad

  • Saving data for iphone & ipod

    I'm upgrading windows xp to windows 7 so i'm doing a clean install. I want to backup all of my data in itunes for my phone and ipod. i'm not worried about my music and playlists, but i do want to save my apps, data and settings for my phone and games